/* Hellcasecode — styles inspired by hellcase.com */

/* ===== CSS RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Remove default browser styles */
html, body {
  width: 100%;
  height: 100%;
}

/* Typography reset */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Media elements */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Form elements */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* Remove list styles */
ul,
ol {
  list-style: none;
}

/* Links reset */
a {
  text-decoration: none;
  color: inherit;
}

/* Headings reset */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

/* Button reset */
button {
  cursor: pointer;
  background: none;
  border: none;
}


* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #05070c;              /* очень тёмный фон */
    color: #f5f5fa;
}

/* Links */

a {
    color: #ff9a1f;                         /* фирменный оранжевый акцент */
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
} 
/* Header */

header {
    background: radial-gradient(circle at top left, #242633 0, #11131b 45%, #05060a 100%);
    border-bottom: 1px solid rgba(255, 154, 31, 0.25);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

/* обёртка меню + селектора */
.header-nav-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* сами ссылки меню */
.main-nav a {
    margin: 0 8px;
    font-size: 14px;
}

/* компактный селект */
.header-lang-select select {
    min-width: auto;
    padding: 2px 10px;
    font-size: 13px;
    line-height: 1.2;
    background: #05070c;
    border-radius: 999px;
    border: 1px solid #2b3247;
    color: #f5f5fa;
}

/* на маленьких экранах можно стэкнуть */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-nav-wrap {
        flex-wrap: wrap;
        gap: 8px;
    }

    .main-nav a {
        font-size: 13px;
        margin: 0 6px 4px 0;
    }
}


.logo {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 154, 31, 0.45);
}

nav a {
    margin-left: 16px;
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
nav a:hover {
    opacity: 1;
}

/* Language switcher */

.lang-switcher a {
    margin-left: 8px;
    font-size: 13px;
    opacity: 0.65;
}
.lang-switcher a.active {
    font-weight: 700;
    opacity: 1;
    text-decoration: none;
    border-bottom: 2px solid #ff9a1f;
    padding-bottom: 2px;
}

/* Layout */

main {
    padding: 28px 0 44px;
}

h1 {
    font-size: 30px;
    margin-bottom: 10px;
    color: #ffffff;
}

.subtitle {
    font-size: 16px;
    color: #a5afcc;
}

section {
    margin-top: 32px;
}

section h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #ffffff;
}

section p {
    font-size: 15px;
    line-height: 1.6;
    color: #c7cde4;
}

/* Codes grid */

.codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.code-card {
    background: radial-gradient(circle at top, #191f30 0, #141824 35%, #0a0d16 100%);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid rgba(255, 154, 31, 0.28);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(255, 154, 31, 0.12);
    position: relative;
    overflow: hidden;
}

.code-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 154, 31, 0.16), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

.code-card-header {
    position: relative;
    font-size: 12px;
    text-transform: uppercase;
    color: #ffcf8a;
    margin-bottom: 6px;
    letter-spacing: 0.12em;
}

.code-title {
    position: relative;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.code-code {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1a2134, #101420);
    border: 1px solid rgba(255, 154, 31, 0.7);
    font-family: "SF Mono", Menlo, monospace;
    font-size: 14px;
    margin-bottom: 8px;
    color: #ffdfaa;
    box-shadow: 0 0 10px rgba(255, 154, 31, 0.5);
}

.code-desc {
    position: relative;
    font-size: 14px;
    margin-bottom: 12px;
    color: #c7cde4;
}

.code-meta {
    position: relative;
    font-size: 12px;
    color: #9099bc;
    margin-bottom: 12px;
}

/* Buttons */

.btn {
    position: relative;
    display: inline-block;
    padding: 9px 16px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #ff9a1f, #ff4d00);
    color: #05070c;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow:
        0 0 14px rgba(255, 154, 31, 0.7),
        0 6px 14px rgba(0, 0, 0, 0.9);
    transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease;
}
.btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow:
        0 0 20px rgba(255, 154, 31, 0.95),
        0 10px 20px rgba(0, 0, 0, 0.9);
}
.btn:active {
    transform: translateY(1px);
    box-shadow:
        0 0 8px rgba(255, 154, 31, 0.6),
        0 2px 6px rgba(0, 0, 0, 0.9);
}

.btn-secondary {
    background: linear-gradient(135deg, #141824, #080a12);
    color: #f5f5fa;
    border: 1px solid rgba(121, 130, 168, 0.7);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}
.btn-secondary:hover {
    filter: none;
    box-shadow:
        0 0 12px rgba(121, 130, 168, 0.7),
        0 8px 16px rgba(0, 0, 0, 0.9);
}

/* Two-column blocks */

.two-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 24px;
}

/* Forms */

form {
    background: radial-gradient(circle at top left, #181c28 0, #11141f 40%, #060810 100%);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid rgba(121, 130, 168, 0.5);
    font-size: 14px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.85);
}

.form-group {
    margin-bottom: 12px;
}

label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: #d4daee;
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 7px 9px;
    border-radius: 10px;
    border: 1px solid #2b3247;
    background: #05070c;
    color: #f5f5fa;
    font-size: 14px;
    outline: none;
    transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    border-color: #ff9a1f;
    box-shadow: 0 0 0 1px rgba(255, 154, 31, 0.3);
    background: #080b14;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

/* Footer */

footer {
    border-top: 1px solid rgba(255, 154, 31, 0.18);
    padding: 16px 0 24px;
    margin-top: 40px;
    font-size: 13px;
    color: #8089ac;
    background: #05060b;
}

/* Responsive */

@media (max-width: 720px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .two-columns {
        grid-template-columns: 1fr;
    }
    nav a {
        margin-left: 0;
        margin-right: 12px;
    }
}

.header-lang-select select {
    background: #05070c;
    border-radius: 8px;
    border: 1px solid #2b3247;
    color: #f5f5fa;
    font-size: 13px;
    padding: 4px 8px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.footer-lang-switcher a {
    margin-left: 10px;
    font-size: 13px;
    opacity: 0.8;
}

.footer-lang-switcher a.active {
    opacity: 1;
    text-decoration: underline;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* Media blocks */
.hero {
  margin-top: 18px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  background: radial-gradient(circle at top left, #181c28 0, #11141f 40%, #060810 100%);
  border: 1px solid rgba(255, 154, 31, 0.22);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.85);
}
.hero-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 154, 31, 0.35);
  color: #ffcf8a;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 10px;
}
.hero-img, .section-img, .wide-img, .code-card-media img, .steps-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(121, 130, 168, 0.35);
}
.section-media, .hero-media, .wide-media {
  overflow: hidden;
}
.wide-media {
  margin-top: 14px;
}

/* Steps images */
.steps-media {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.step-figure { margin: 0; }

/* CTA row */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* Table */
.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(121, 130, 168, 0.35);
  background: #05060b;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.75);
}
.codes-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.codes-table th, .codes-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(121, 130, 168, 0.22);
  vertical-align: top;
}
.codes-table th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #ffcf8a;
  background: rgba(255, 154, 31, 0.06);
}
.td-desc {
  margin-top: 6px;
  font-size: 13px;
  color: #c7cde4;
}
.code-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 154, 31, 0.7);
  background: linear-gradient(135deg, #1a2134, #101420);
  color: #ffdfaa;
  font-family: "SF Mono", Menlo, monospace;
  font-size: 13px;
}
.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(121, 130, 168, 0.5);
  color: #d4daee;
}
.status-active {
  border-color: rgba(255, 154, 31, 0.55);
  color: #ffcf8a;
}
.td-action {
  white-space: nowrap;
}

/* Code card image */
.code-card-media {
  position: relative;
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; }
  .steps-media { grid-template-columns: 1fr; }
  .codes-table { min-width: 640px; }
}
