/* Фирменный стиль КБП (kbp.kz, lk.kbp.kz): белый фон, тёмно-синий текст, бирюзовые акценты и полосы,
   узкий заглавный Oswald для заголовков, Inter для текста. Одна светлая тема — как на портале. */
:root {
  --bg: #ffffff;
  --soft: #f3f7fa;
  --tint: #e9f6f8;
  --navy: #15232e;
  --text: #253d4b;
  --muted: #586e7c;
  --line: #dde6eb;
  --teal: #00abc2;
  --teal-deep: #007583;
  --on-dark: #ffffff;
  --on-dark-muted: #b8c7d0;
  --display: "Oswald", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --step-0: 1.0625rem;
  --step-1: 1.2rem;
  --step-2: clamp(1.35rem, 1.1rem + 0.8vw, 1.6rem);
  --step-3: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem);
  --step-4: clamp(2.5rem, 1.4rem + 4.6vw, 5.2rem);
  --measure: 62ch;
  --radius: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.6;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); font-weight: 700; line-height: 1.05; text-transform: uppercase; text-wrap: balance; overflow-wrap: break-word; margin: 0; letter-spacing: 0.005em; }
h1 em, h2 em { font-style: normal; color: var(--teal); }
p { margin: 0; }

.wrap {
  width: 100%; max-width: 74rem; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-deep); }

/* Шапка */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.product-name { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 0.95rem; line-height: 1.1; padding-left: 12px; border-left: 2px solid var(--teal); white-space: nowrap; }
footer .product-name { display: none; }
.logo svg { width: 178px; height: auto; }
.lang { display: flex; gap: 6px; font-size: 0.85rem; font-weight: 600; }
.lang a, .lang span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.lang span { background: var(--navy); border-color: var(--navy); color: var(--on-dark); }
.lang a:hover { border-color: var(--teal); }

/* Кнопки */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 12px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; }
.btn-primary { background: var(--teal-deep); color: var(--on-dark); }
.btn-primary:hover { background: var(--navy); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: var(--bg); }
.btn-ghost:hover { border-color: var(--teal); }
.btn svg { width: 16px; height: 16px; }

/* Первый экран */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 6vw, 80px); }
.hero-text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero h1 { font-size: var(--step-4); }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 40ch; }

.company { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.company-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.company-head strong { font-family: var(--display); text-transform: uppercase; color: var(--navy); font-size: 1.25rem; font-weight: 600; }
.company-head span { font-size: 0.85rem; color: var(--muted); }
.chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.chain li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.chain .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--tint); color: var(--teal-deep); display: grid; place-items: center; }
.chain .ico svg { width: 22px; height: 22px; }
.chain b { color: var(--navy); font-weight: 600; display: block; line-height: 1.3; }
.chain small { color: var(--muted); font-size: 0.85rem; display: block; line-height: 1.35; }
.chain .tag { font-size: 0.75rem; font-weight: 600; color: var(--teal-deep); background: var(--tint); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.chain .tag.next { color: var(--muted); background: var(--soft); }
.company-note { font-size: 0.82rem; color: var(--muted); }

/* Бирюзовая полоса */
.band { background: var(--teal-deep); color: var(--on-dark); }
.band .wrap { padding-block: clamp(22px, 3.5vw, 34px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; }
.band p { font-family: var(--display); text-transform: uppercase; font-weight: 600; font-size: var(--step-2); line-height: 1.15; max-width: 34ch; }
.band .cities { font-family: var(--body); text-transform: none; font-size: 0.95rem; font-weight: 500; max-width: 44ch; line-height: 1.5; }

/* Разделы */
section { padding-block: clamp(52px, 7vw, 96px); }
.alt { background: var(--soft); }
.head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: var(--measure); }
.head h2 { font-size: var(--step-3); }
.head p { color: var(--muted); font-size: var(--step-1); }

/* Три шага с большими цифрами */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; overflow: hidden; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; right: 12px; top: -14px; font-family: var(--display); font-weight: 700; font-size: 8rem; line-height: 1; color: var(--tint); z-index: 0; }
.steps li > * { position: relative; z-index: 1; }
.steps h3 { font-size: 1.45rem; padding-right: 56px; }
.steps p { color: var(--muted); }

/* Мир игры */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.feature { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; min-width: 0; }
.feature .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--tint); color: var(--teal-deep); display: grid; place-items: center; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 1rem; }

/* Направления */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 9px 16px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--navy); font-weight: 500; }
.chips li.first { background: var(--navy); border-color: var(--navy); color: var(--on-dark); }

/* Долгая игра */
.long .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.long .head { margin-bottom: 0; }
.facts { display: grid; gap: 0; border-top: 2px solid var(--navy); margin: 0; }
.facts div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--display); text-transform: uppercase; color: var(--navy); font-size: 1.15rem; font-weight: 600; line-height: 1.25; }
.facts dd { margin: 0; color: var(--muted); }

/* Для кого */
.who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.who div { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.who h3 { font-size: 1.15rem; }
.who p { color: var(--muted); font-size: 1rem; }

/* Вопросы */
.faq { max-width: 54rem; border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font-weight: 600; color: var(--navy); font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--teal-deep); border-bottom: 2px solid var(--teal-deep); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); max-width: var(--measure); }

/* Финальный призыв */
.cta { background: var(--navy); color: var(--on-dark); }
.cta .wrap { padding-block: clamp(44px, 6vw, 72px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta h2 { color: var(--on-dark); font-size: var(--step-3); max-width: 22ch; }
.cta h2 em { color: var(--teal); }
.cta p { color: var(--on-dark-muted); margin-top: 12px; max-width: 46ch; }
.cta .btn-primary { background: var(--teal); color: var(--navy); }
.cta .btn-primary:hover { background: var(--on-dark); }

/* Подвал */
footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 28px; color: var(--muted); font-size: 0.92rem; }
footer .logo svg { width: 150px; }

@media (max-width: 960px) {
  .hero .wrap, .long .wrap { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .steps, .features, .who { grid-template-columns: minmax(0, 1fr); }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .logo svg { width: 120px; }
  .product-name { font-size: 0.78rem; white-space: normal; max-width: 9rem; }
  .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .chain li { animation: rise 0.5s ease-out both; }
  .chain li:nth-child(2) { animation-delay: 0.08s; }
  .chain li:nth-child(3) { animation-delay: 0.16s; }
  .chain li:nth-child(4) { animation-delay: 0.24s; }
  @keyframes rise { from { transform: translateY(6px); opacity: 0.5; } to { transform: none; opacity: 1; } }
}
