/* Тема «как /praktikum» поверх ice.css + landing.css (08.10, решение владельца).
   Подключается после landing.css и site.css на всех старых публичных страницах: главная, /kurs, /razbor,
   /vaibkoding-s-nulya, /demo, /offer, /privacy, блог. Разметку страниц не меняем — меняем токены и внешний вид
   компонентов: шрифт Onest, тёмно-синий текст, акцент #3A3DD4, кнопки 10 px, карточки с тонкой рамкой и мягкой тенью,
   спокойные заголовки 500, тёмная финальная панель. Инлайн-стилей нет. */

:root {
  --bg: #FFFFFF;
  --bg-soft: #F0F4FA;
  --bg-tint: #F7F9FC;
  --bg-card: #FFFFFF;
  --bg-dark: #11253E;
  --text: #11253E;
  --text-2: #4F6075;
  --text-3: #8695A7;
  --text-muted: #A9B4C2;
  --accent: #3A3DD4;
  --accent-hover: #3739CF;
  --accent-soft: #EDEEFC;
  --accent-line: rgba(58, 61, 212, .18);
  --green: #0E9F6E;
  --green-hover: #0B7A55;
  --green-soft: #EEF8F3;
  --r-xs: 8px; --r-sm: 12px; --r: 16px; --r-lg: 20px; --r-xl: 32px; --r-pill: 10px;
  --sans: 'Onest', Arial, sans-serif;
  --mono: 'Onest', Arial, sans-serif;
  --fs-hero: clamp(34px, 4.6vw, 56px);
  --fs-h1: clamp(32px, 4.2vw, 52px);
  --fs-h2: clamp(28px, 3.2vw, 40px);
  --fs-h3: 22px;
  --fs-h4: 18px;
  --container: 1248px;
  --gutter: 24px;
  --section-y: 96px;
  --line: #E1E6EC;
  --line-soft: #EDF1F7;
}

body { font-family: var(--sans); color: var(--text); background: #fff; overflow-x: clip; }

/* ── Типографика: спокойные заголовки, как на Практикуме ─────────── */
.h-hero, .hero h1, .h1, h1 { font-weight: 500; line-height: 1.12; letter-spacing: -.015em; }
.h2, h2 { font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.h3, h3 { font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
.h4 { font-weight: 600; }
/* Заголовок первого экрана: перенос .br-desk перед «которые» всегда, на телефоне ещё .br-mobile (landing.css) — 2 строки на компьютере, 3 ровные на телефоне */
.hero h1 { max-width: none; }
.hero h1 .br-desk { display: inline; }
.lead { font-weight: 400; color: var(--text-2); }
.t-blue { color: var(--accent); }
.eyebrow, .section-head-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; line-height: 1.2; letter-spacing: 0;
  color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 7px 14px; text-transform: none; }

/* ── Кнопки: прямоугольные 10 px, как .pk-btn ─────────────────── */
.btn, .pill { border-radius: 10px; font-weight: 600; letter-spacing: 0; border-width: 1px; font-family: var(--sans); }
.btn-primary, .pill-primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 24px -10px rgba(58, 61, 212, .55); }
.btn-primary:hover, .pill-primary:hover { background: var(--accent-hover); box-shadow: 0 10px 28px -10px rgba(58, 61, 212, .7); }
.btn-dark, .pill-dark { background: var(--text); border-color: var(--text); }
.btn-dark:hover, .pill-dark:hover { background: #1A375C; }
.btn-light, .pill-light { background: #fff; color: var(--text); border-color: var(--line); padding: 13px 27px; }
.btn-light:hover, .pill-light:hover { background: var(--bg-soft); color: var(--text); border-color: var(--line); }
.btn-lg, .pill-lg { padding: 16px 32px; }
.btn .arrow, .pill .arrow { background: rgba(255, 255, 255, .18); }
.btn-light .arrow, .pill-light .arrow, .btn-ghost .arrow { background: var(--accent-soft); color: var(--accent); }
.chip { border-radius: 999px; }
.chip-accent { background: var(--accent); }

/* Подвал общий: секции страниц уже со своими отступами. */
.pk-foot { margin-top: 0; }

/* ── Секции ────────────────────────────────────────────────────── */
.section-soft { background: var(--bg-soft); }
.section-head h2 { margin-bottom: 16px; }

/* ── Карточки: белые, тонкая рамка, мягкая тень ────────────────── */
.card { border-radius: var(--r-lg); }
.course-card, .why-card, .case-card, .review-card, .host-card, .scenario-card, .audience-card, .included-card,
.pricing-card, .blog-card, .feature-mini, .vk-flow-step, .vk-result, .vk-vs-col, .vk-chat, .info-card, .rz-host, .rz-form-wrap, .dm-card {
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 16px 34px -26px rgba(26, 55, 92, .42);
}
.courses-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1080px) { .courses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .courses-grid { grid-template-columns: minmax(0, 1fr); } }
.course-card.featured { border: 1.5px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 24px 50px -30px rgba(17, 37, 62, .45); }
.feature-mini-icon { color: var(--accent); border-color: var(--line); background: var(--accent-soft); }
.case-stats, .case-author, .course-foot, .footer-bottom, .lesson-row, .legal-head, .legal-divider { border-color: var(--line-soft); }
.case-foot .chip, .course-filter { border-color: var(--line); }
.course-filter { border-radius: 999px; }
.course-filter.active { background: var(--text); border-color: var(--text); color: #fff; }
.course-tag { border-radius: 999px; font-weight: 600; }
.course-tag-free { background: var(--green-soft); color: var(--green-hover); }
.course-tag-main { background: var(--accent-soft); color: var(--accent); }
.faq-item { border-bottom-color: var(--line); }
.blog-card { overflow: hidden; }
.blog-cat { color: var(--accent); }
.review-stars { color: #F2A93B; }

/* ── Тёмная финальная панель, как .pk-final ────────────────────── */
.final-cta { background: #11253E; border-radius: 32px; }
.final-cta::before { content: ''; position: absolute; left: 50%; top: -220px; width: 760px; height: 440px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(58, 61, 212, .55), rgba(58, 61, 212, 0)); pointer-events: none; }
.final-cta > * { position: relative; }
.final-cta h2 .t-blue { color: #A9ADFF; }
.final-cta p { color: #B7C4D6; }
.final-cta .pill-primary { background: #fff; border-color: #fff; color: var(--accent); box-shadow: none; }
.final-cta .pill-primary:hover { background: var(--accent-soft); }
.final-cta .pill-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.final-cta .pill-light:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* ── Формы ─────────────────────────────────────────────────────── */
.rz-input, .dm-input { border-color: var(--line); border-radius: 10px; font-family: var(--sans); }
.rz-input:focus, .dm-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.rz-seg-btn { border-radius: 10px; }

/* ── Блог и юридические страницы ───────────────────────────────── */
.blog-page h1, .post-title { font-weight: 500; }
.post-body h2 { font-weight: 600; letter-spacing: -.01em; }
.post-body h3 { font-weight: 600; }
.post-body blockquote { border-left-color: var(--accent); }
.legal-head h1 { font-weight: 500; }

/* ── Доводка вёрстки (08.10): заголовки карточек, цена, сетки ─────── */
.course-card h3, .host-body h3, .rz-host h3, .rz-success h3, .scenario-card h3, .included-card h3 { font-weight: 600; letter-spacing: -.01em; }
.dm-title { font-weight: 500; letter-spacing: -.015em; line-height: 1.12; }
.dm-h2 { font-weight: 600; letter-spacing: -.01em; }
.pricing-title { font-weight: 500; letter-spacing: -.015em; line-height: 1.1; font-size: clamp(32px, 3.6vw, 46px); }
.pricing-amount { font-weight: 600; letter-spacing: -.03em; font-size: clamp(52px, 6vw, 80px); }
.pricing-amount .currency { font-weight: 600; }
.pricing-eyebrow, .pricing-label { font-size: 13px; letter-spacing: 0; }
.lesson-num { font-weight: 600; letter-spacing: -.02em; }
.metric-num, .hero-metrics .metric-num { font-weight: 600; letter-spacing: -.03em; }
.post-title { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -.015em; }
.post-body h2 { font-size: clamp(24px, 2.6vw, 28px); }
.info-callout-num, .vk-flow-num { font-weight: 700; }

/* сетка из двух карточек не оставляет пустую колонку; список и подвал карточки не слипаются */
.courses-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .courses-grid:has(> :nth-child(2):last-child) { grid-template-columns: minmax(0, 1fr); } }
.course-incl:has(+ .course-foot) { margin-bottom: 24px; }
.scenario-card p + .chip, .scenario-card p + .scenario-tag { margin-top: 14px; }
.blog-cover { background: linear-gradient(135deg, #3A3DD4, #6C6FF0); }
.case-head { flex: 1; }
.case-head h3, .blog-card h3 { font-weight: 600; }
.feature-mini { justify-content: space-between; border: 1px solid var(--line); }

@media (max-width: 720px) {
  .hero-cta { width: 100%; flex-direction: column; align-items: stretch; }
  .hero-cta .pill, .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-metrics .metric { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; }
  .hero-metrics .metric-num { min-width: 0; font-size: 30px !important; }
  .pricing-card { padding: 28px 22px; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --section-y: 64px; }
  .final-cta { border-radius: 20px; }
}

/* ── Заголовки без принудительных <br>: ширину строки держим символами (08.10) ── */
.section-head h2, .pricing-title, .final-cta h2 { max-width: 20ch; text-wrap: balance; }
.section-head.center h2, .final-cta h2 { margin-left: auto; margin-right: auto; }
.hero h1 { text-wrap: balance; }
.rz-hero h1, .dm-title { max-width: 22ch; text-wrap: balance; }
@media (max-width: 720px) {
  .section-head h2, .pricing-title, .final-cta h2 { max-width: none; }
}

/* ── /kurs «Не только видео-уроки»: все шесть карточек светлые, сцены в языке Практикума (kr-) ── */
.included-card.card-blue, .included-card.card-dark, .included-card.card-green { background: #fff; color: var(--text); border-color: var(--line); }
.included-card.card-blue .num, .included-card.card-dark .num, .included-card.card-green .num { color: var(--text-3); }
.included-card.card-blue p, .included-card.card-dark p, .included-card.card-green p { color: var(--text-2); }
.included-card .viz { margin: 18px 18px 0; padding: 8px 12px; height: 168px; border-radius: 14px; background: var(--bg-soft); }
.included-card .viz.kr-a { background: var(--accent-soft); }
.included-card .viz.kr-b { background: var(--bg-soft); }
.included-card .body { padding-top: 20px; }
.included-card .num { font-family: var(--sans); font-weight: 500; }
.included-card h3 { font-weight: 600; letter-spacing: -.01em; }
.included-card.card-blue h3, .included-card.card-dark h3, .included-card.card-green h3 { color: var(--text); }

/* ── Главная: выбор «Что вам нужно?» и метки «Для кого» (hm-), /kurs: развилка ── */
.hm-choose { padding: 8px 0 var(--section-y, 80px); }
.hm-choose__title { text-align: center; font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; letter-spacing: -.02em; margin: 0 0 28px; }
.hm-choose__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; margin: 0 auto; }
.hm-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px; background: #fff; border: 1px solid #E1E6EC; border-radius: 20px; box-shadow: 0 16px 34px -26px rgba(26, 55, 92, .42); }
.hm-choice h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.hm-choice p { margin: 0; color: var(--text-2); line-height: 1.55; flex: 1; }
.hm-choice__tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; }
.hm-choice__tag--soft { background: var(--bg-soft); color: var(--text-2); }
.hm-choice .pill { margin-top: 6px; }
.hm-choose__note { text-align: center; margin: 22px auto 0; max-width: 620px; color: var(--text-2); }
.hm-for { margin: 0 0 10px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.hm-for b { color: var(--accent); font-weight: 600; }
.hm-fork { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding: 22px 26px; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 20px; }
.hm-fork p { margin: 0; color: var(--text); line-height: 1.5; }
@media (max-width: 720px) {
  .hm-choose__grid { grid-template-columns: 1fr; }
  .hm-choice { padding: 22px; }
  .hm-choice .pill { width: 100%; justify-content: center; }
  .hm-fork { flex-direction: column; align-items: stretch; text-align: left; }
  .hm-fork .pill { width: 100%; justify-content: center; }
}

/* ── Узкие телефоны (360 px): ничего не выходит за край (08.10) ── */
.btn, .pill { max-width: 100%; }
.course-foot { flex-wrap: wrap; gap: 12px; }
.pricing-wrap > *, .pricing-features-grid > *, .pricing-card, .feature-mini { min-width: 0; }
.legal-body, .post-body { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .pricing-wrap, .pricing-features-grid { grid-template-columns: minmax(0, 1fr); }
  .btn, .pill { white-space: normal; text-align: center; }
}
/* Длинные слова в крупных заголовках («конфиденциальности») переносятся по слогам, а не распирают страницу */
h1, h2, .legal-head h1, .post-title { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 360px) {
  .team-strip .team-circle { width: 44px; height: 44px; }
  .legal-head h1 { font-size: 28px; }
}

/* ── /kurs: программа курса — 4 темы карточками, у урока строка «что научитесь», без аккордеона (владелец 09.10) ── */
.prog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.prog-card { display: flex; flex-direction: column; padding: 24px; border: 1px solid #E1E6EC; border-radius: 20px; background: #fff; box-shadow: 0 6px 20px rgba(17, 37, 62, .05); min-width: 0; }
.prog-card__head { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding-bottom: 16px; border-bottom: 1px solid #EEF1F5; }
.prog-card__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.prog-card__ic svg { width: 22px; height: 22px; }
.prog-card__ttl h3 { margin: 0; font-size: 18px; line-height: 1.3; color: #11253E; }
.prog-card__ttl p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: #5B6B7F; }
.prog-card__meta { padding: 4px 10px; border-radius: 999px; background: #F3F5F8; font-size: 12.5px; font-weight: 600; color: #11253E; white-space: nowrap; }
.prog-card__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.prog-ls { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid #EEF1F5; }
.prog-ls:last-child { border-bottom: 0; padding-bottom: 0; }
.prog-ls__n { width: 36px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #F3F5F8; font-size: 13px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.prog-ls__b { display: grid; gap: 2px; min-width: 0; }
.prog-ls__b b { font-size: 15px; line-height: 1.35; color: #11253E; }
.prog-ls__b span { font-size: 13.5px; line-height: 1.45; color: #5B6B7F; }
.prog-ls__t { padding-top: 4px; font-size: 13px; color: #8A96A6; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .prog-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .prog-card { padding: 18px 16px; border-radius: 16px; }
  .prog-card__head { grid-template-columns: 40px minmax(0, 1fr); }
  .prog-card__meta { grid-column: 2; justify-self: start; }
  .prog-ls { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .prog-ls__n { width: 32px; }
  .prog-ls__t { grid-column: 2; padding-top: 0; }
}

/* ─── Бегущая галерея кейсов (kurs.html #cases) ─── */
.cs-gallery {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.cs-track {
  display: flex;
  width: max-content;
  animation: cs-scroll 80s linear infinite;
}
.cs-gallery:hover .cs-track,
.cs-gallery:focus-within .cs-track { animation-play-state: paused; }
.cs-set { display: flex; gap: 16px; padding-right: 16px; }
.cs-card { flex: 0 0 360px; width: 360px; min-width: 0; padding: 26px; box-sizing: border-box; }
.cs-link { color: inherit; text-decoration: none; }
.cs-link:hover { color: var(--accent); }
.cs-note { margin: 18px 0 0; font-size: 13px; line-height: 1.5; opacity: .6; }
@keyframes cs-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) { .cs-card { flex-basis: 280px; width: 280px; padding: 22px; } }
@media (prefers-reduced-motion: reduce) {
  .cs-gallery { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .cs-track { animation: none; }
  .cs-set[aria-hidden="true"] { display: none; }
}

/* ── /kurs: программа курса вкладками по темам (radio + label, без JS; владелец 09.10: «громоздко, сделай продуктово») ── */
.pt { margin-top: 32px; }
.pt__r { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pt__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 6px; border-radius: 18px; background: #F3F5F8; }
.pt__tab { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 13px; cursor: pointer; color: #11253E; transition: background .15s, box-shadow .15s; min-width: 0; }
.pt__tab:hover { background: rgba(255, 255, 255, .6); }
.pt__ic { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--accent); }
.pt__ic svg { width: 19px; height: 19px; }
.pt__tt { display: grid; gap: 1px; min-width: 0; }
.pt__tt b { font-size: 15px; line-height: 1.25; }
.pt__tt small { font-size: 12.5px; color: #5B6B7F; }
.pt__panel { list-style: none; margin: 16px 0 0; padding: 0; display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pt__ls { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid #E1E6EC; border-radius: 16px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.pt__ls:hover { border-color: var(--accent-line); box-shadow: 0 6px 18px rgba(17, 37, 62, .06); }
.pt__n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pt__b { display: grid; gap: 3px; min-width: 0; }
.pt__b b { font-size: 15px; line-height: 1.3; color: #11253E; }
.pt__b span { font-size: 13.5px; line-height: 1.4; color: #5B6B7F; }
.pt__t { align-self: start; padding: 3px 8px; border-radius: 8px; background: #F3F5F8; font-size: 12.5px; color: #5B6B7F; white-space: nowrap; font-variant-numeric: tabular-nums; }
#pt-base:checked ~ .pt__panel[data-tab="base"], #pt-book:checked ~ .pt__panel[data-tab="book"], #pt-crm:checked ~ .pt__panel[data-tab="crm"], #pt-chan:checked ~ .pt__panel[data-tab="chan"] { display: grid; }
#pt-base:checked ~ .pt__tabs [for="pt-base"], #pt-book:checked ~ .pt__tabs [for="pt-book"], #pt-crm:checked ~ .pt__tabs [for="pt-crm"], #pt-chan:checked ~ .pt__tabs [for="pt-chan"] { background: #fff; box-shadow: 0 4px 14px rgba(17, 37, 62, .08); }
#pt-base:checked ~ .pt__tabs [for="pt-base"] .pt__ic, #pt-book:checked ~ .pt__tabs [for="pt-book"] .pt__ic, #pt-crm:checked ~ .pt__tabs [for="pt-crm"] .pt__ic, #pt-chan:checked ~ .pt__tabs [for="pt-chan"] .pt__ic { background: var(--accent); color: #fff; }
#pt-base:focus-visible ~ .pt__tabs [for="pt-base"], #pt-book:focus-visible ~ .pt__tabs [for="pt-book"], #pt-crm:focus-visible ~ .pt__tabs [for="pt-crm"], #pt-chan:focus-visible ~ .pt__tabs [for="pt-chan"] { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 960px) { .pt__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pt__panel { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .pt__tab { padding: 10px; gap: 8px; }
  .pt__ic { flex-basis: 30px; width: 30px; height: 30px; }
  .pt__tt b { font-size: 13.5px; }
  .pt__ls { grid-template-columns: 34px minmax(0, 1fr); padding: 14px; gap: 10px; }
  .pt__n { width: 34px; height: 34px; }
  .pt__t { grid-column: 2; justify-self: start; }
}
/* вкладки .pt — общие правила по порядку (для любой страницы, до 6 вкладок; /kurs и /vaibkoding-s-nulya) */
.pt__r:nth-of-type(1):checked ~ .pt__panel:nth-of-type(1), .pt__r:nth-of-type(2):checked ~ .pt__panel:nth-of-type(2),
.pt__r:nth-of-type(3):checked ~ .pt__panel:nth-of-type(3), .pt__r:nth-of-type(4):checked ~ .pt__panel:nth-of-type(4),
.pt__r:nth-of-type(5):checked ~ .pt__panel:nth-of-type(5), .pt__r:nth-of-type(6):checked ~ .pt__panel:nth-of-type(6) { display: grid; }
.pt__r:nth-of-type(1):checked ~ .pt__tabs .pt__tab:nth-child(1), .pt__r:nth-of-type(2):checked ~ .pt__tabs .pt__tab:nth-child(2),
.pt__r:nth-of-type(3):checked ~ .pt__tabs .pt__tab:nth-child(3), .pt__r:nth-of-type(4):checked ~ .pt__tabs .pt__tab:nth-child(4),
.pt__r:nth-of-type(5):checked ~ .pt__tabs .pt__tab:nth-child(5), .pt__r:nth-of-type(6):checked ~ .pt__tabs .pt__tab:nth-child(6) { background: #fff; box-shadow: 0 4px 14px rgba(17, 37, 62, .08); }
.pt__r:nth-of-type(1):checked ~ .pt__tabs .pt__tab:nth-child(1) .pt__ic, .pt__r:nth-of-type(2):checked ~ .pt__tabs .pt__tab:nth-child(2) .pt__ic,
.pt__r:nth-of-type(3):checked ~ .pt__tabs .pt__tab:nth-child(3) .pt__ic, .pt__r:nth-of-type(4):checked ~ .pt__tabs .pt__tab:nth-child(4) .pt__ic,
.pt__r:nth-of-type(5):checked ~ .pt__tabs .pt__tab:nth-child(5) .pt__ic, .pt__r:nth-of-type(6):checked ~ .pt__tabs .pt__tab:nth-child(6) .pt__ic { background: var(--accent); color: #fff; }
.pt__r:nth-of-type(1):focus-visible ~ .pt__tabs .pt__tab:nth-child(1), .pt__r:nth-of-type(2):focus-visible ~ .pt__tabs .pt__tab:nth-child(2),
.pt__r:nth-of-type(3):focus-visible ~ .pt__tabs .pt__tab:nth-child(3), .pt__r:nth-of-type(4):focus-visible ~ .pt__tabs .pt__tab:nth-child(4),
.pt__r:nth-of-type(5):focus-visible ~ .pt__tabs .pt__tab:nth-child(5), .pt__r:nth-of-type(6):focus-visible ~ .pt__tabs .pt__tab:nth-child(6) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Кнопки: обводка 2 px у всех (белые на белом фоне видны; владелец 09.10), отступ меньше на 1 px — размер прежний,
   белая и синяя рядом одной высоты ── */
.btn, .pill { border-width: 2px; padding: 13px 27px; }
.btn-lg, .pill-lg { padding: 15px 31px; }
.btn-light, .pill-light { border-color: #CDD4DE; }
.btn-light:hover, .pill-light:hover { border-color: #AEB8C6; }
.final-cta .pill-light { border-color: rgba(255, 255, 255, .5); }

/* Строка «заголовок раздела + кнопка справа» — во всю ширину контейнера, кнопка по правому краю сетки (владелец 09.10);
   ширина текста ограничена у самого блока текста */
.section-head.section-head-row { max-width: none; }
.section-head-row > div { max-width: 880px; flex: 1 1 420px; }
.section-head-row > .pill { flex: 0 0 auto; }
@media (max-width: 640px) { .section-head-row > .pill { width: 100%; justify-content: center; } }
/* Галерея кейсов: пауза только мышью на устройствах с наведением (на телефоне касание не стопорит ленту), движение на видеокарте */
.cs-gallery:hover .cs-track { animation-play-state: running; }
@media (hover: hover) and (pointer: fine) { .cs-gallery:hover .cs-track { animation-play-state: paused; } }
.cs-gallery:focus-within .cs-track { animation-play-state: paused; }
.cs-track { will-change: transform; backface-visibility: hidden; }
