/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --base: #12203F;
  --deep: #0A1428;
  --accent: #FF6B4A;
  --accent2: #4EA8DE;
  --surface: #F4F6FA;
  --ink: #101A2E;
  --muted: #5C6880;

  --radius: 0px;
  --container: 1120px;
  --font-heading: Tahoma, 'Segoe UI', Verdana, sans-serif;
  --font-body: Georgia, 'Times New Roman', serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent2);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--base);
  line-height: 1.25;
}

h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.6rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

li { margin-bottom: 0.25rem; }

strong { font-weight: bold; }

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  background: var(--base);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(10, 20, 40, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

/* Logo wordmark */
.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.06em;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
  text-transform: uppercase;
}

.logo span {
  color: var(--accent);
}

.logo:hover {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.88;
}

.logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Nav */
header nav {
  display: none;
  flex-wrap: wrap;
  gap: 0.25rem;
}

header nav a {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

header nav a:hover {
  color: #ffffff;
  background: rgba(255, 107, 74, 0.2);
  text-decoration: none;
}

header nav a.active {
  color: var(--accent);
  font-weight: 700;
}

header nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Header CTA */
.header-cta {
  flex-shrink: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(255, 107, 74, 0.35);
  white-space: nowrap;
}

.btn:hover {
  background: #e55a38;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 107, 74, 0.45);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.btn-lg {
  font-size: 1.05rem;
  padding: 0.85rem 2rem;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255, 107, 74, 0.45);
}

.btn-outline:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============================================================
   BONUS BANNER (top)
   ============================================================ */
.bonus-banner {
  background: linear-gradient(135deg, var(--deep) 0%, var(--base) 100%);
  padding: 2rem 0;
}

.bonus-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bonus-banner-text .bonus-banner-title {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.bonus-banner-text p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

.bonus-badge {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.bonus-terms-box {
  border: 2px solid var(--accent2);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: rgba(78, 168, 222, 0.08);
}

.bonus-terms-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bonus-terms-box li {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(78, 168, 222, 0.2);
  padding-left: 1.2rem;
  position: relative;
}

.bonus-terms-box li:last-child {
  border-bottom: none;
}

.bonus-terms-box li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent2);
}

/* ============================================================
   MAIN CONTENT SECTIONS
   ============================================================ */
main {
  padding: 2rem 0 3rem;
}

.section {
  margin-bottom: 2.5rem;
}

.intro-section {
  margin-bottom: 2.5rem;
  padding-top: 0.5rem;
}

.intro-section h1 {
  color: var(--base);
}

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
  border: 1px solid var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.9rem;
  min-width: 360px;
}

thead tr {
  border-bottom: 2px solid var(--muted);
}

thead th {
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: left;
  padding: 0.7rem 1rem;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid rgba(92, 104, 128, 0.3);
}

tbody tr:last-child {
  border-bottom: none;
}

tbody td {
  padding: 0.65rem 1rem;
  color: var(--ink);
  vertical-align: top;
}

/* No zebra striping */

/* ============================================================
   SECOND BONUS BANNER (mid-page)
   ============================================================ */
.banner-mid {
  background: linear-gradient(135deg, var(--base) 0%, var(--deep) 100%);
  padding: 2.5rem 0;
  margin: 2.5rem -1rem;
  text-align: center;
}

.banner-mid h2 {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.banner-mid p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.25rem;
}

/* ============================================================
   HIGHLIGHT BOX
   ============================================================ */
.highlight-box {
  background: rgba(78, 168, 222, 0.1);
  border-left: 4px solid var(--accent2);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.highlight-box p {
  color: var(--ink);
  margin: 0;
}

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(92, 104, 128, 0.25);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-top: 4px solid var(--accent);
  box-shadow: 0 2px 10px rgba(18, 32, 63, 0.07);
}

.card h3 {
  color: var(--base);
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.card p {
  color: var(--ink);
  font-size: 0.92rem;
  margin: 0;
}

/* ============================================================
   FAQ ACCORDION (CSS-only checkbox technique)
   ============================================================ */
.faq-section h2 {
  margin-bottom: 1.25rem;
}

.faq-item {
  border-bottom: 1px solid rgba(92, 104, 128, 0.3);
}

.faq-item:first-of-type {
  border-top: 1px solid rgba(92, 104, 128, 0.3);
}

/* Hide the checkbox */
.faq-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.faq-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--base);
  user-select: none;
  transition: color 0.2s;
}

.faq-label:hover {
  color: var(--accent);
}

/* Plus/minus icon drawn in CSS */
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Horizontal bar */
.faq-icon::before {
  width: 14px;
  height: 2px;
  top: 9px;
  left: 3px;
}

/* Vertical bar */
.faq-icon::after {
  width: 2px;
  height: 14px;
  top: 3px;
  left: 9px;
}

/* When checked: vertical bar collapses → minus */
.faq-item input[type="checkbox"]:checked ~ .faq-label .faq-icon::after {
  transform: scaleY(0);
  opacity: 0;
}

.faq-item input[type="checkbox"]:checked ~ .faq-label {
  color: var(--accent);
}

/* Accordion body */
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item input[type="checkbox"]:checked ~ .faq-body {
  max-height: 600px;
}

.faq-body-inner {
  padding: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.7;
}

/* Focus visible on label when checkbox is focused */
.faq-item input[type="checkbox"]:focus-visible ~ .faq-label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================================
   LISTS (custom for vhod / registraciya pages)
   ============================================================ */
.num-list {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.num-list li {
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.checklist {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.checklist li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent2);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 0 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.footer-logo span {
  color: var(--accent);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.footer-col .footer-title {
  font-family: var(--font-heading);
  line-height: 1.25;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.5;
}

.footer-col a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-col a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ============================================================
   BREAKPOINT: 640px
   ============================================================ */
@media (min-width: 640px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.7rem; }

  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .bonus-banner-inner {
    flex-direction: row;
    align-items: flex-start;
  }

  .bonus-banner-text {
    flex: 1 1 55%;
  }

  .bonus-terms-box {
    flex: 0 0 42%;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer-col {
    flex: 1 1 45%;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .banner-mid {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
  }
}

/* ============================================================
   BREAKPOINT: 1024px
   ============================================================ */
@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .header-inner {
    flex-wrap: nowrap;
    padding: 0;
  }

  header nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    gap: 0.15rem;
  }

  header nav a {
    font-size: 0.78rem;
    padding: 0.4rem 0.55rem;
  }

  .bonus-banner {
    padding: 3rem 0;
  }

  .bonus-banner-text .bonus-banner-title {
    font-size: 1.75rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-wrap: nowrap;
  }

  .footer-col {
    flex: 1 1 0;
  }

  .banner-mid {
    margin-left: -2rem;
    margin-right: -2rem;
    padding: 3rem 0;
  }

  .banner-mid h2 {
    font-size: 1.7rem;
  }

  main {
    padding: 2.5rem 0 4rem;
  }

  .section {
    margin-bottom: 3rem;
  }
}

/* ============================================================
   BREAKPOINT: 1200px — wider card grid
   ============================================================ */
@media (min-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}