/* ============================================================
   CSS CUSTOM PROPERTIES — deep teal / amber palette
   ============================================================ */
:root {
  --base:    #0E3B36;
  --deep:    #082622;
  --accent:  #E9A93C;
  --accent2: #57C2A8;
  --surface: #F7F4EC;
  --ink:     #12211F;
  --muted:   #5E706C;

  --radius:  14px;
  --container: 1120px;
  --font-heading: 'Trebuchet MS', 'Segoe UI', Tahoma, sans-serif;
  --font-body:    Verdana, Geneva, 'DejaVu Sans', sans-serif;
}

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

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

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

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

h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.65rem; margin-top: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--base);
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover { color: var(--accent); }
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

ul { list-style: none; }

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

/* ============================================================
   UTILITY STRIP  (age notice bar above header)
   ============================================================ */
.utility-strip {
  background-color: var(--deep);
  color: var(--surface);
  font-size: 0.72rem;
  text-align: left;
  padding: 0.3rem 1rem;
  letter-spacing: 0.04em;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background-color: var(--base);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

/* Wordmark */
.wordmark,
.footer-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.9rem;
  color: #fff;
  letter-spacing: -0.02em;
  user-select: none;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}

.wordmark-accent {
  color: var(--accent);
}

/* NAV */
.main-nav {
  position: relative;
}

.nav-toggle {
  display: block;
  background: none;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.3rem 0.6rem;
  font-size: 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: var(--accent);
  color: var(--deep);
  outline: 3px solid var(--accent2);
  outline-offset: 2px;
}

.nav-list {
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--deep);
  border-radius: var(--radius);
  border: 1px solid var(--muted);
  min-width: 220px;
  padding: 0.5rem 0;
  z-index: 200;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.nav-list.is-open {
  display: flex;
}

.nav-list li a {
  display: block;
  padding: 0.55rem 1.25rem;
  color: var(--surface);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s;
}
.nav-list li a:hover,
.nav-list li a:focus-visible {
  background: var(--base);
  color: var(--accent);
  outline: none;
}
.nav-list li a.nav-active {
  color: var(--accent);
  font-weight: 700;
}

/* ============================================================
   BONUS BANNER
   ============================================================ */
.bonus-banner {
  background: linear-gradient(135deg, var(--deep) 0%, var(--base) 60%, #1a5c53 100%);
  padding-block: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* decorative teal glow strip */
.bonus-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(87,194,168,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.bonus-banner--mid {
  border-radius: var(--radius);
  margin-block: 2.5rem;
}

.bonus-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.bonus-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent2);
  margin-bottom: 0.5rem;
}

.bonus-headline {
  font-family: var(--font-heading);
  line-height: 1.25;
  font-size: 1.55rem;
  font-weight: 900;
  color: #fff;
  margin-block: 0.25rem 0.75rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.bonus-sub {
  color: rgba(247,244,236,0.85);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.bonus-fine {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: var(--muted);
  color: rgba(247,244,236,0.5);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-cta {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 0.7rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}
.btn-cta:hover {
  background: var(--accent);
  color: var(--deep);
  box-shadow: 0 4px 20px rgba(233,169,60,0.45);
  transform: translateY(-2px);
}
.btn-cta:focus-visible {
  outline: 3px solid var(--accent2);
  outline-offset: 3px;
}
.btn-cta:active {
  transform: translateY(0);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  padding-block: 2rem 3rem;
}

.main-content article {
  max-width: 100%;
}

/* ============================================================
   CARDS GRID
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-block: 2rem;
}

.card {
  background: #fff;
  border: 1.5px solid var(--muted);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  transition: box-shadow 0.2s, border-left-color 0.2s;
}

.card:hover {
  box-shadow: 0 6px 24px rgba(14,59,54,0.12);
  border-left-color: var(--accent2);
}

.card h3 {
  color: var(--base);
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

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

/* ============================================================
   TABLES
   ============================================================ */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-block: 1.5rem;
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}

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

thead th {
  font-family: var(--font-heading);
  color: var(--accent);
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--deep);
}

tbody tr {
  border-bottom: 1px solid rgba(94,112,108,0.25);
}

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

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

tbody tr:hover td {
  background: rgba(87,194,168,0.07);
}

/* ============================================================
   FAQ ACCORDION — CSS-only hidden checkbox technique
   ============================================================ */
.faq-section {
  margin-block: 2.5rem;
}

.faq-section > h2 {
  margin-bottom: 1.25rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1.5px solid var(--muted);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

/* Hide the checkbox itself */
.faq-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

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

.faq-label:hover {
  background: rgba(14,59,54,0.05);
  color: var(--accent);
}

.faq-toggle:focus-visible + .faq-label {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

/* Plus sign using ::after */
.faq-label::after {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  background:
    linear-gradient(var(--base), var(--base)) center/2px 100% no-repeat,
    linear-gradient(var(--base), var(--base)) center/100% 2px no-repeat;
  transition: background 0.2s, transform 0.25s;
  border-radius: 1px;
}

/* Minus sign when open */
.faq-toggle:checked + .faq-label::after {
  background:
    linear-gradient(var(--accent), var(--accent)) center/100% 2px no-repeat;
  transform: rotate(0deg);
}

.faq-toggle:checked + .faq-label {
  color: var(--accent);
  border-bottom: 1px solid rgba(94,112,108,0.25);
}

/* Body hidden by default */
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
  padding-inline: 1.25rem;
}

.faq-body p {
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0;
}

/* Reveal on checked */
.faq-toggle:checked ~ .faq-body {
  max-height: 600px;
  padding-block: 1rem;
}

/* ============================================================
   CHECKLIST (registraciya.html)
   ============================================================ */
.checklist {
  background: #fff;
  border: 1.5px solid var(--muted);
  border-left: 5px solid var(--accent2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-block: 1.5rem;
}

.checklist h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--base);
  font-size: 1rem;
}

.checklist ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.checklist ul li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.88rem;
  color: var(--ink);
}

.checklist ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 12px;
  height: 12px;
  background: var(--accent2);
  border-radius: 3px;
  flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--deep);
  color: var(--surface);
  padding-block: 2rem;
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo {
  font-size: 1.6rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: #fff;
  letter-spacing: -0.02em;
}

/* Footer nav */
.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.footer-nav-list a {
  color: rgba(247,244,236,0.7);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}
.footer-nav-list a:hover {
  color: var(--accent);
}
.footer-nav-list a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Footer disclaimer */
.footer-disclaimer p {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  line-height: 1.5;
}
.footer-disclaimer p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   SECTION SPACINGS
   ============================================================ */
.main-content > article + article,
.main-content > article + section,
.main-content > section + article {
  margin-top: 0;
}

/* ============================================================
   640px BREAKPOINT
   ============================================================ */
@media (min-width: 640px) {
  html { font-size: 18px; }

  .bonus-headline {
    font-size: 1.9rem;
  }

  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-logo {
    width: 100%;
  }

  .footer-nav {
    flex: 1 1 auto;
  }

  .footer-disclaimer {
    flex: 1 1 100%;
  }

  .utility-strip {
    font-size: 0.75rem;
  }
}

/* ============================================================
   1024px BREAKPOINT
   ============================================================ */
@media (min-width: 1024px) {
  /* Nav: horizontal inline */
  .nav-toggle {
    display: none;
  }

  .nav-list {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 0.15rem;
    min-width: auto;
    border-radius: 0;
  }

  .nav-list li a {
    color: rgba(247,244,236,0.85);
    font-size: 0.82rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    white-space: nowrap;
  }

  .nav-list li a:hover,
  .nav-list li a:focus-visible {
    background: rgba(255,255,255,0.1);
    color: var(--accent);
  }

  .nav-list li a.nav-active {
    color: var(--accent);
    background: rgba(233,169,60,0.12);
  }

  /* Banner headline bigger */
  .bonus-headline {
    font-size: 2.2rem;
  }

  /* Cards: 4-col on main, 2-col otherwise */
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Footer */
  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 2rem;
  }

  .footer-logo {
    width: auto;
    flex-shrink: 0;
  }

  .footer-nav {
    flex: 1 1 auto;
  }

  .footer-nav-list {
    flex-direction: column;
    gap: 0.3rem;
  }

  .footer-disclaimer {
    flex: 0 0 340px;
    max-width: 340px;
  }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.3rem; }
}