/* КДМ — лендинг по брифу от 25.11.2026. Mobile-first. Белый фон, крупные чёрные слова,
   цвет только там, где нажимают или где важна цифра. */
:root {
  --bg: #FFFFFF; --alt: #F7F7FA; --ink: #14121C; --soft: #57535F; --line: #DEDDE6;
  --main: #3F398E; --main-d: #322D76;
  --n: #2E9E5B; --p: #F28C28; --k: #2F6FD6;
  --f: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --g: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 18px/1.5 var(--f); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--main); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--main); color: #fff; padding: 12px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--g); }
.wrap--s { max-width: 800px; }

/* Заголовки */
.h1, .h2 { margin: 0; font-weight: 800; line-height: 1.06; letter-spacing: -.025em; text-transform: uppercase; text-wrap: balance; }
.h1 { font-size: clamp(34px, 10vw, 44px); }
.h2 { font-size: clamp(32px, 9.2vw, 44px); }
.h1 em { font-style: normal; display: block; color: var(--main); }
.h2 s { text-decoration: none; position: relative; white-space: nowrap; color: #6B6773; }
.h2 s::after { content: ""; position: absolute; left: -3px; right: -3px; top: 52%; height: .1em; background: var(--p); border-radius: 9px; transform: rotate(-3deg); }
.h3 { margin: 48px 0 18px; font-size: 24px; line-height: 1.2; font-weight: 800; }
.sub { margin: 14px 0 0; color: var(--soft); max-width: 620px; }
.note { margin: 14px 0 0; color: var(--soft); }
.big { margin: 32px 0 0; font-size: 22px; line-height: 1.35; font-weight: 700; max-width: 720px; }

/* Кнопки */
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 60px; padding: 14px 16px; border-radius: 16px; border: 2px solid transparent; font-weight: 800; font-size: 18px; line-height: 1.15; text-align: center; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.btn--main { background: var(--main); color: #fff; }
.btn--main:hover { background: var(--main-d); }
.btn--line { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--alt); }
.btn:active { transform: scale(.98); }
.acts { display: grid; gap: 12px; margin-top: 32px; }

/* Рассрочка и шапка */
.strip { display: block; padding: 12px var(--g); background: var(--p); color: var(--ink); text-align: center; text-decoration: none; font-size: 16px; line-height: 1.25; }
.strip b { font-weight: 800; font-size: 20px; text-transform: uppercase; }
.strip span { display: block; font-weight: 700; }
.head { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__m { width: 40px; height: 40px; }
.logo b { display: block; font-weight: 800; font-size: 18px; line-height: 1; }
.logo small { display: block; margin-top: 4px; font-size: 12px; line-height: 1; color: var(--soft); }
.langs { display: inline-flex; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; }
.langs a { display: grid; place-items: center; min-width: 46px; min-height: 42px; font-weight: 800; font-size: 15px; text-decoration: none; }
.langs a[aria-current] { background: var(--ink); color: #fff; }

/* 1. Первый экран */
.hero { padding-top: 28px; padding-bottom: 80px; }
.lead { margin: 18px 0 0; font-size: 20px; line-height: 1.4; }
.nums { list-style: none; display: grid; grid-template-columns: auto auto auto; justify-content: space-between; gap: 12px; margin: 30px 0 0; padding: 0; }
.nums b { display: block; font-weight: 800; font-size: clamp(30px, 9vw, 40px); line-height: 1; letter-spacing: -.03em; }
.nums span { display: block; margin-top: 6px; max-width: 104px; font-size: 14px; line-height: 1.25; color: var(--soft); }

/* Экраны */
.sec { padding: 80px 0; }
.sec--alt { background: var(--alt); }

/* 2. Карточки */
.cards { display: grid; gap: 14px; margin-top: 30px; }
.card { background: #fff; border: 2px solid var(--line); border-radius: 22px; overflow: hidden; }
.card.is-open { border-color: var(--main); }
.card__h { margin: 0; font: inherit; }
.card__btn { position: relative; display: block; width: 100%; padding: 22px 60px 22px 20px; border: 0; background: none; text-align: left; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.card__btn:active { background: var(--alt); }
.card__t { display: block; font-weight: 800; font-size: 18px; line-height: 1.2; text-transform: uppercase; }
.card__n { display: block; margin: 8px 0 6px; font-weight: 800; font-size: clamp(40px, 12.4vw, 48px); line-height: 1.05; letter-spacing: -.035em; color: var(--main); }
.card__n small { font-size: .56em; letter-spacing: -.02em; }
.card__s { display: block; color: var(--soft); line-height: 1.4; }
.card__x { position: absolute; right: 20px; top: 24px; width: 28px; height: 28px; }
.card__x::before, .card__x::after { content: ""; position: absolute; left: 4px; right: 4px; top: 12px; height: 4px; border-radius: 4px; background: var(--main); transition: transform .2s; }
.card__x::after { transform: rotate(90deg); }
.is-open .card__x::after { transform: none; }
.card__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.is-open .card__more { grid-template-rows: 1fr; }
.card__in { overflow: hidden; min-height: 0; padding: 0 20px; visibility: hidden; transition: visibility .28s; }
.is-open .card__in { visibility: visible; }
.card__in > .btn { margin-bottom: 20px; }
.card__m img, .card__m video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--alt); }
.ticks { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; line-height: 1.4; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 9px; height: 15px; border: solid var(--main); border-width: 0 4px 4px 0; transform: rotate(42deg); }
.term { padding: 22px 18px; border-radius: 14px; background: var(--alt); }
.term i { display: block; height: 10px; border-radius: 9px; background: var(--main); }
.term dl { display: flex; justify-content: space-between; gap: 12px; margin: 14px 0 0; }
.term div:last-child { text-align: right; }
.term dt { font-size: 15px; color: var(--soft); }
.term dd { margin: 2px 0 0; font-weight: 800; font-size: 16px; line-height: 1.25; }

/* До / После */
.ba { display: grid; gap: 48px; margin-top: 32px; }
.ba__row { display: grid; gap: 14px; }
.ba__t { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 800; }
.ba figure { margin: 0; display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; }
.ba figcaption { align-self: flex-start; margin: 14px 0 12px 14px; padding: 6px 14px; border-radius: 99px; font-weight: 800; font-size: 16px; background: #E6E5EC; }
.ba .now { border-color: var(--main); }
.ba .now figcaption { background: var(--main); color: #fff; }
.ba img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: left center; }
.ba .was img { filter: grayscale(.7); }
.ba figure p { margin: 0; padding: 14px 16px 18px; font-weight: 700; }
.ba .was p { color: var(--soft); }
.chats, .road { list-style: none; margin: 0; padding: 4px 16px; display: grid; gap: 8px; flex: 1; align-content: center; }
.chats li { padding: 13px 16px; border-radius: 12px; background: var(--alt); color: var(--soft); line-height: 1.25; }
.chats li:nth-child(even) { margin-left: 22px; }
.chats li:nth-child(odd) { margin-right: 22px; }
.road li { padding: 17px 18px; border-radius: 12px; font-weight: 800; font-size: 20px; line-height: 1.2; }
.c-n { background: var(--n); color: var(--ink); }
.c-p { background: var(--p); color: var(--ink); }
.c-k { background: var(--k); color: #fff; }

/* 3. Три шага */
.steps { list-style: none; display: grid; gap: 12px; margin: 30px 0 0; padding: 0; }
.steps li { padding: 28px 22px; border-radius: 22px; }
.steps b { display: block; font-weight: 800; font-size: 34px; line-height: 1.1; letter-spacing: -.02em; text-transform: uppercase; }
.steps span { display: block; margin-top: 8px; font-weight: 700; font-size: 19px; line-height: 1.35; }

/* 4. Попробовать */
.tries { display: grid; gap: 14px; margin-top: 30px; }
.try { display: block; padding: 26px 22px; border-radius: 22px; background: #fff; border: 3px solid var(--ink); text-decoration: none; touch-action: manipulation; }
.try:hover { background: var(--alt); }
.try:active { transform: scale(.98); }
.try b { display: block; font-weight: 800; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; text-transform: uppercase; }
.try span { display: block; margin-top: 6px; color: var(--soft); }
.lessons { display: grid; gap: 34px; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--alt); border: 2px solid var(--line); }
.player__btn { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.player__btn img { width: 100%; height: 100%; object-fit: cover; }
.player__play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--main); }
.player__play::after { content: ""; position: absolute; left: 30px; top: 23px; border: solid transparent; border-width: 15px 0 15px 24px; border-left-color: #fff; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.player__end { position: absolute; inset: 0; display: grid; align-content: center; gap: 10px; padding: 12px 18px; background: rgba(255, 255, 255, .97); text-align: center; }
.player__end p { margin: 0; font-weight: 700; font-size: 17px; line-height: 1.3; }
.player__end .btn { min-height: 56px; }
.again { min-height: 40px; border: 0; background: none; font-weight: 700; font-size: 16px; text-decoration: underline; cursor: pointer; }
.lesson__k { margin: 14px 0 0; font-size: 16px; font-weight: 700; color: var(--main); }
.lesson__t { margin: 4px 0 0; font-size: 22px; line-height: 1.2; font-weight: 800; }
.lesson__s { margin: 6px 0 0; color: var(--soft); }

/* 5. Бағасы */
.price { display: grid; gap: 10px; margin-top: 28px; padding: 26px 20px; border-radius: 24px; background: #fff; border: 3px solid var(--main); }
.price__big { margin: 0; font-weight: 800; font-size: clamp(30px, 8.6vw, 40px); line-height: 1.1; letter-spacing: -.025em; }
.price__sub { margin: 10px 0 20px; font-weight: 700; line-height: 1.4; }
.price__split { margin: 0 0 16px; padding: 16px 18px; border-radius: 16px; background: var(--p); color: var(--ink); line-height: 1.3; }
.price__split b { display: block; font-weight: 800; font-size: 23px; line-height: 1.15; text-transform: uppercase; }
.price__split span { display: block; margin-top: 4px; font-weight: 700; font-size: 17px; }
.pay { list-style: none; counter-reset: p; display: grid; gap: 10px; margin: 0; padding: 0; }
.pay li { counter-increment: p; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 2px solid var(--line); font-weight: 700; font-size: 20px; line-height: 1.25; }
.pay li::before { content: counter(p); flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--main); color: #fff; font-weight: 800; }

/* 6. Сұрақтар */
.faq { display: grid; gap: 12px; margin-top: 28px; }
.faq details { border: 2px solid var(--line); border-radius: 18px; background: #fff; }
.faq details[open] { border-color: var(--main); }
.faq summary { position: relative; list-style: none; padding: 20px 56px 20px 20px; font-weight: 800; font-size: 19px; line-height: 1.3; cursor: pointer; touch-action: manipulation; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 20px; height: 4px; margin-top: -2px; border-radius: 4px; background: var(--main); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { display: none; }
.faq p { margin: 0; padding: 0 20px 22px; }

/* 7. Финал, подвал, кнопка внизу */
.final { padding: 100px 0; }
.foot { display: grid; gap: 12px; padding-top: 34px; padding-bottom: 120px; font-size: 16px; color: var(--soft); }
.foot a { justify-self: start; padding: 10px 0; font-weight: 800; font-size: 18px; color: var(--main); text-transform: uppercase; }
.foot small { font-size: 14px; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px var(--g) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); visibility: hidden; }
.dock.is-on { visibility: visible; }

@media (max-width: 369px) {
  .btn { font-size: 16px; }
}
@media (min-width: 700px) {
  .acts { grid-template-columns: auto auto; justify-content: start; }
  .acts .btn { padding: 14px 34px; }
  .nums { justify-content: start; gap: 48px; }
  .nums b { font-size: 56px; }
  .nums span { max-width: 180px; font-size: 17px; }
  .cards { grid-template-columns: 1fr 1fr; align-items: start; }
  .card__btn { min-height: 226px; display: flex; flex-direction: column; justify-content: flex-start; }
  .card__n { font-size: 56px; }
  .strip span { display: inline; }
  .ba__row { grid-template-columns: 1fr 1fr; gap: 20px; }
  .ba__t { grid-column: 1 / -1; }
  .ba img { object-fit: contain; background: #FBF5EA; }
  .ba .was img { object-fit: cover; }
  .lessons { grid-template-columns: 1fr 1fr; gap: 20px; }
  .steps, .tries, .pay { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .price { grid-template-columns: 1.15fr 1fr; gap: 48px; padding: 44px; align-items: center; }
  .price__r { margin: 0; gap: 16px; }
  .dock { display: none; }
  .foot { grid-template-columns: 1fr auto; align-items: center; padding-bottom: 48px; }
  .foot small { grid-column: 1 / -1; }
}
@media (min-width: 700px) and (max-width: 999px) {
  .steps b, .try b { font-size: 22px; }
}
@media (min-width: 1000px) {
  .h1 { font-size: 72px; }
  .h2 { font-size: 64px; }
  .hero { padding-top: 64px; padding-bottom: 120px; }
  .sec { padding: 120px 0; }
  .final { padding: 160px 0; }
  .lead { font-size: 26px; }
  .nums b { font-size: 64px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .card__n { font-size: 64px; }
  .card__in > .btn { font-size: 16px; }
  .steps li { padding: 40px 30px; min-height: 230px; }
  .tries .try { padding: 40px 30px; }
  .big { font-size: 28px; }
}
@media (min-width: 1200px) {
  .card__in > .btn { font-size: 18px; }
  .card__btn { padding: 26px 56px 26px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Предметы: кнопки на первом экране */
.subj { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 22px 0 0; padding: 0; }
.subj a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px; border-radius: 12px; background: #fff; border: 2px solid var(--main); color: var(--main); font-weight: 800; font-size: 16px; line-height: 1.15; text-decoration: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .subj a:hover { background: var(--main); color: #fff; } }
.subj a:active { transform: scale(.97); }

/* Предметы и темы */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 26px; }
.tab { min-height: 56px; padding: 10px 8px; border-radius: 14px; border: 2px solid var(--ink); background: #fff; font-weight: 800; font-size: 16px; line-height: 1.15; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.tab[aria-selected="true"] { background: var(--main); border-color: var(--main); color: #fff; }
.tab:active { transform: scale(.98); }
.panel { margin-top: 14px; padding: 24px 20px; border-radius: 22px; border: 3px solid var(--main); background: #fff; }
.panel__t { margin: 0; font-weight: 800; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; text-transform: uppercase; color: var(--main); }
.panel__s { margin: 8px 0 0; font-weight: 700; font-size: 19px; line-height: 1.35; }
.groups { display: grid; gap: 26px; margin-top: 24px; }
.group h4 { margin: 0 0 12px; font-weight: 800; font-size: 20px; line-height: 1.25; }
.group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.group li { position: relative; padding-left: 22px; line-height: 1.35; }
.group li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 9px; height: 9px; border-radius: 3px; background: var(--main); }
.after { margin-top: 40px; padding: 26px 20px; border-radius: 22px; background: var(--alt); border: 2px solid var(--line); }
.after__t { margin: 0 0 18px; font-weight: 800; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
.after__l { list-style: none; counter-reset: a; display: grid; gap: 10px; margin: 0 0 20px; padding: 0; }
.after__l li { counter-increment: a; position: relative; padding: 18px 18px 18px 72px; border-radius: 16px; background: #fff; border: 2px solid var(--line); }
.after__l li::before { content: counter(a); position: absolute; left: 16px; top: 18px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--main); color: #fff; font-weight: 800; font-size: 20px; }
.after__l b { display: block; font-weight: 800; font-size: 20px; line-height: 1.25; }
.after__l span { display: block; margin-top: 4px; color: var(--soft); line-height: 1.4; }
@media (max-width: 369px) { .subj a, .tab { font-size: 15px; } }
@media (min-width: 700px) {
  .subj { display: flex; flex-wrap: wrap; gap: 12px; }
  .subj a { padding: 10px 22px; font-size: 20px; min-height: 54px; }
  .tabs { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .tab { font-size: 19px; min-height: 64px; }
  .panel { padding: 36px 34px; }
  .groups { grid-template-columns: 1fr 1fr; gap: 34px; }
  .after { padding: 36px 34px; }
  .after > .btn { width: auto; display: inline-flex; padding: 14px 34px; }
}
@media (min-width: 1000px) {
  .groups { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .panel__t { font-size: 44px; }
  .after__t { font-size: 34px; }
  .after__l { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
