/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --base:    #1F2933;
  --deep:    #121A21;
  --accent:  #3DA9FC;
  --accent2: #F2B705;
  --surface: #F2F5F7;
  --ink:     #161E26;
  --muted:   #5C6B7A;

  --radius: 14px;
  --max-w:  1200px;

  --font-head: '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: 16px;
  scroll-behavior: smooth;
}

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

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

h1 { font-size: 2.5rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.65rem; margin-top: 2.25rem; margin-bottom: 0.65rem; }
h3 { font-size: 1.2rem;  margin-top: 1.5rem;  margin-bottom: 0.5rem; }

p  { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }

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

strong { color: var(--base); }

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

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

.header-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* --- Logo wordmark (CSS/text only) --- */
.logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  user-select: none;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 7px;
  margin-right: 0.45rem;
  letter-spacing: -0.03em;
  box-shadow: 0 0 0 2px var(--accent2);
}

.logo-text {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.logo-accent {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent2);
  letter-spacing: 0.01em;
}

/* --- Site nav --- */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.05rem;
  align-items: center;
}

.site-nav a {
  color: rgba(255,255,255,0.82);
  font-family: var(--font-body);
  font-size: 0.78rem;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}

.site-nav a:hover {
  background: rgba(61,169,252,0.18);
  color: #fff;
}

.site-nav a.active {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.site-nav a:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

/* ============================================================
   BONUS BANNER
   ============================================================ */
.bonus-banner {
  background: var(--deep);
  position: relative;
}

/* Thin accent underline */
.bonus-banner::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 100%);
}

.bonus-banner-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
}

.bonus-banner-text .bonus-banner-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.bonus-banner-text .bonus-banner-title strong {
  color: var(--accent2);
}

.bonus-banner-text p {
  color: rgba(255,255,255,0.78);
  font-size: 0.87rem;
  margin-bottom: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

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

/* Accent2 variant */
.btn-accent2 {
  border-color: var(--accent2);
  color: var(--accent2);
}

.btn-accent2:hover {
  background: var(--accent2);
  color: var(--deep);
}

.btn-accent2:focus-visible {
  outline-color: var(--accent);
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
main {
  padding-block: 2rem;
}

main .container > * + * {
  /* spacing handled per element */
}

/* ============================================================
   HERO / INTRO
   ============================================================ */
.hero-intro {
  padding: 2rem 0 1rem;
}

.hero-intro .sub {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

/* ============================================================
   RATING STRIP
   ============================================================ */
.rating-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.rating-item {
  background: #fff;
  border: 1px solid rgba(92,107,122,0.18);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  flex: 1 1 130px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(31,41,51,0.07);
}

.r-val {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.r-label {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ============================================================
   HIGHLIGHT BOX
   ============================================================ */
.highlight-box {
  background: #fff;
  border-left: 4px solid var(--accent2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  box-shadow: 0 2px 10px rgba(31,41,51,0.07);
}

.highlight-box p { margin-bottom: 0; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(31,41,51,0.09);
  margin: 1.5rem 0;
}

table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

thead tr {
  background: var(--base);
}

thead th {
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  text-align: left;
  padding: 0.8rem 1rem;
  white-space: nowrap;
}

tbody tr:nth-child(odd)  { background: #fff; }
tbody tr:nth-child(even) { background: rgba(61,169,252,0.05); }

tbody tr:hover { background: rgba(61,169,252,0.1); }

tbody td {
  text-align: left;
  padding: 0.7rem 1rem;
  color: var(--ink);
  border-bottom: 1px solid rgba(92,107,122,0.12);
}

/* ============================================================
   FAQ ACCORDION (hidden-checkbox technique)
   ============================================================ */
.faq {
  margin: 1.5rem 0 2rem;
}

.faq-item {
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31,41,51,0.07);
  overflow: hidden;
}

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

/* Label = accordion header */
.faq-item > label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.2rem;
  font-family: var(--font-head);
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--base);
  cursor: pointer;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius) var(--radius) 0 0;
  transition: background 0.18s, color 0.18s;
  user-select: none;
}

.faq-item > label:hover {
  background: rgba(61,169,252,0.07);
  color: var(--accent);
}

/* Plus/minus indicator drawn in CSS */
.faq-toggle {
  flex-shrink: 0;
  position: relative;
  width: 1.3rem;
  height: 1.3rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;            /* hide text character */
  transition: background 0.18s, border-color 0.18s;
}

/* Horizontal bar (always shown) */
.faq-toggle::before {
  content: '';
  position: absolute;
  width: 0.55rem;
  height: 2px;
  background: var(--accent);
  transition: background 0.18s;
}

/* Vertical bar (plus → hidden when open) */
.faq-toggle::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 0.55rem;
  background: var(--accent);
  transition: opacity 0.18s, transform 0.18s, background 0.18s;
}

/* Answer panel — collapsed by default */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
  padding: 0 1.2rem;
  border-left: 4px solid transparent;
}

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

/* Checked state — open */
.faq-item > input[type="checkbox"]:checked ~ label {
  background: var(--base);
  color: #fff;
  border-left-color: var(--accent2);
  border-radius: var(--radius) var(--radius) 0 0;
}

.faq-item > input[type="checkbox"]:checked ~ label .faq-toggle {
  background: var(--accent2);
  border-color: var(--accent2);
}

.faq-item > input[type="checkbox"]:checked ~ label .faq-toggle::before {
  background: var(--deep);
}

/* Hide vertical bar (minus) */
.faq-item > input[type="checkbox"]:checked ~ label .faq-toggle::after {
  opacity: 0;
  transform: rotate(90deg);
}

.faq-item > input[type="checkbox"]:checked ~ .faq-answer {
  max-height: 600px;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--accent);
  border-top: 1px solid rgba(92,107,122,0.12);
}

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

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

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem 3.5rem;
  box-shadow: 0 4px 18px rgba(31,41,51,0.1);
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  border-top: 3px solid var(--accent);
}

.card:hover {
  box-shadow: 0 8px 28px rgba(31,41,51,0.15);
  transform: translateY(-2px);
}

.card-num {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(61,169,252,0.4);
}

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

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

/* ============================================================
   CHECKLIST (registraciya.html)
   ============================================================ */
.checklist {
  list-style: none;
  padding-left: 0;
  margin: 1.25rem 0;
}

.checklist li {
  padding: 0.45rem 0.5rem 0.45rem 2rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--ink);
  border-bottom: 1px solid rgba(92,107,122,0.1);
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--accent);
  /* checkmark drawn with clip */
}

.checklist li::after {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-58%) rotate(45deg);
  width: 0.32rem;
  height: 0.55rem;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--deep);
  color: rgba(255,255,255,0.65);
  margin-top: 3rem;
  padding: 2rem 0 1.5rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.footer-nav a {
  color: rgba(255,255,255,0.65);
  font-size: 0.83rem;
  transition: color 0.18s;
}

.footer-nav a:hover { color: var(--accent); }

.footer-nav a:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
  border-radius: 3px;
}

.footer-copy {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
}

.footer-disclaimer {
  font-size: 0.77rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 0.75rem;
}

/* ============================================================
   BREAKPOINT: 640px
   ============================================================ */
@media (min-width: 640px) {
  .bonus-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

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

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

  .rating-strip {
    flex-wrap: nowrap;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }
}

/* ============================================================
   BREAKPOINT: 1024px
   ============================================================ */
@media (min-width: 1024px) {
  .header-inner {
    padding: 0.75rem 2rem;
  }

  .container {
    padding-inline: 2rem;
  }

  .site-nav a {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
  }

  .bonus-banner-inner {
    padding: 1.25rem 2rem;
  }

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

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

  .footer-inner {
    padding-inline: 2rem;
  }

  main {
    padding-block: 2.5rem;
  }
}

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