/* My QORGAN — главная страница. Mobile-first: базовые стили для телефона,
   медиазапросы ниже расширяют раскладку для планшета (768) и компьютера (1100+). */

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  padding-inline: var(--band-w);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy-800);
  color: var(--milk-50);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Только для программ чтения с экрана: заголовок раздела, который не нужен глазам */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Орнамент ---------- */
.ornament-band {
  height: 24px;
  background: url("../img/ornament.svg") repeat-x center / 64px 24px;
  opacity: 0.8;
}
.ornament-band--dark { opacity: 0.55; }

/* Вертикальные полосы по краям — отсылка к референсу MART IN, но в казахском ключе */
.side-band {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 60;
  width: var(--band-w);
  overflow: hidden;
  background: var(--navy-800);
  color: var(--gold-400);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  white-space: nowrap;
}
.side-band span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  writing-mode: vertical-rl;
  padding-block: 24px;
}
.side-band--left { left: 0; }
.side-band--left span { transform: rotate(180deg); }
.side-band--right { right: 0; }
.side-band::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: var(--gold-500);
  opacity: 0.4;
}
.side-band--left::after { inset: 0 0 0 auto; }

/* ---------- Кнопки, бейджи, чипы ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn__icon {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}
.btn--primary {
  background: var(--navy-800);
  color: var(--milk-50);
  box-shadow: 0 10px 24px -10px rgba(14, 27, 61, 0.6);
}
.btn--primary:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(14, 27, 61, 0.6); }
.btn--primary:hover .btn__icon { transform: translateX(3px); }
.btn--ghost {
  background: rgba(255, 252, 245, 0.7);
  border-color: rgba(14, 27, 61, 0.25);
  color: var(--navy-800);
}
.btn--ghost:hover { border-color: var(--navy-800); background: var(--milk-50); transform: translateY(-2px); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--teal-100);
  color: #1d5f5f;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge--light { background: rgba(226, 194, 127, 0.18); color: var(--gold-400); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-700);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1.5px;
  background: var(--gold-500);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 14px;
  border: 1px dashed rgba(122, 92, 34, 0.45);
  border-radius: 999px;
  color: var(--navy-700);
  font-size: var(--fs-xs);
  font-weight: 500;
  background: rgba(255, 252, 245, 0.6);
}

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 240, 228, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
}
.logo__mark { width: 36px; height: 36px; flex: none; }
.logo__text { font-weight: 500; }
.logo__text b { font-weight: 700; letter-spacing: 0.06em; }
.logo--light { color: var(--milk-50); }

.site-header__tools { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--milk-50);
}
/* Каждая языковая версия — отдельная страница, поэтому переключатель состоит из ссылок */
.lang-switch a {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--navy-500);
  transition: background-color 0.2s, color 0.2s;
}
.lang-switch a:hover { color: var(--navy-800); }
.lang-switch a[aria-current="true"] { background: var(--navy-800); color: var(--milk-50); pointer-events: none; }
.lang-switch--dark { margin-top: 20px; background: transparent; border-color: rgba(246, 240, 228, 0.25); }
.lang-switch--dark a { color: rgba(246, 240, 228, 0.75); }
.lang-switch--dark a:hover { color: var(--milk-50); }
.lang-switch--dark a[aria-current="true"] { background: var(--gold-400); color: var(--navy-900); }

.menu-toggle {
  position: relative;
  width: 44px; height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--milk-50);
}
.menu-toggle span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.5px;
  background: var(--navy-800);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Мобильное меню: выпадающая панель под шапкой */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  padding: 8px var(--gutter) 24px;
  background: var(--milk-100);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-size: 1.125rem;
  text-decoration: none;
}

/* ---------- Первый экран ---------- */
.hero { position: relative; padding-top: 28px; }
.hero__inner { display: grid; gap: 32px; padding-bottom: 40px; }
.hero__content { display: grid; gap: 20px; justify-items: start; }
.hero__title { font-size: var(--fs-h1); font-weight: 700; max-width: 14ch; }
.hero__text { font-size: var(--fs-base); color: var(--color-text-muted); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
.hero__actions .btn { flex: 1 1 200px; }

.hero__media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #f4cf6a, #e9b64c 55%, #4b9a96);
  box-shadow: var(--shadow-lg);
}
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  object-position: 82% 60%;
  border-radius: inherit;
}
/* Золотая рамка внутри иллюстрации */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 252, 245, 0.7);
  border-radius: calc(var(--radius-lg) - 10px);
  pointer-events: none;
}

/* Модульная карточка-подпись с пунктиром — как в коллаже референса */
.hero__note {
  position: absolute;
  left: 16px;
  bottom: -22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--navy-800);
  color: var(--milk-50);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  box-shadow: var(--shadow);
}
.hero__note-mark { width: 26px; height: 26px; }
.hero__note::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: 36px;
  border-top: 1.5px dashed var(--gold-500);
}
.hero__note::before {
  content: "";
  position: absolute;
  left: calc(100% + 36px);
  top: calc(50% - 4px);
  width: 9px; height: 9px;
  background: var(--gold-500);
}

/* ---------- Разделы ---------- */
.section { padding-block: var(--section-gap); }
.section--tint { background: var(--milk-200); }

.section__head { display: grid; gap: 16px; margin-bottom: 40px; }
.section__title-wrap { display: flex; align-items: center; gap: 14px; }
.section__title { font-size: var(--fs-h2); }
.section__lead { color: var(--color-text-muted); max-width: 56ch; }

/* Номер раздела в кружке: «① TASK» из референса */
.section__num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 34px; height: 34px;
  border: 1.5px solid var(--gold-500);
  border-radius: 50%;
  color: var(--gold-700);
  font-family: var(--font-display);
  font-size: 0.875rem;
}
.section__num--light { color: var(--gold-400); border-color: var(--gold-400); }

/* ---------- Карточки ---------- */
.cards { display: grid; gap: 16px; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px 24px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
/* Уголок-орнамент */
.card::before {
  content: "";
  position: absolute;
  top: 18px; right: 18px;
  width: 48px; height: 18px;
  background: url("../img/ornament.svg") no-repeat center / contain;
  opacity: 0.6;
}
.card .badge { margin-top: auto; }

.card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--navy-800);
}
.card__icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: var(--gold-400); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.card__title { font-size: var(--fs-h3); }
.card__kicker { color: var(--gold-700); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-top: -6px; }
.card__text { color: var(--color-text-muted); font-size: var(--fs-sm); margin-bottom: 8px; }
.card__tag { color: var(--gold-700); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

.card--material { min-height: 220px; }

/* «Обучающие истории» — акцентная карточка с иллюстрацией */
.card--stories {
  --stories-shade: linear-gradient(rgba(14, 27, 61, 0.9), rgba(14, 27, 61, 0.9));
  background: var(--stories-shade), url("../img/hero.jpg") 85% 70% / cover;
  border-color: transparent;
  color: var(--milk-50);
}
.card--stories .card__text { color: rgba(246, 240, 228, 0.82); max-width: 40ch; }
.card--stories .card__tag { color: var(--gold-400); }
.card--stories::before { filter: brightness(1.3); opacity: 0.8; }
.card--stories:target { outline: 2px solid var(--gold-500); outline-offset: 4px; }

/* ---------- Блок доверия ---------- */
.trust {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-gap);
  background: radial-gradient(120% 80% at 80% 0%, var(--navy-700), var(--navy-900));
  color: var(--milk-50);
}
.trust__shanyrak {
  position: absolute;
  right: -120px;
  top: -80px;
  width: 420px;
  fill: none;
  stroke: var(--gold-500);
  stroke-width: 1;
  opacity: 0.16;
}
.trust__inner { position: relative; display: grid; gap: 24px; }
.trust__quote { margin: 0; }
.trust__quote h2 {
  font-size: clamp(1.75rem, 1.1rem + 3.4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.15;
  max-width: 18ch;
}
.trust__quote h2::before { content: "«"; color: var(--gold-400); }
.trust__quote h2::after { content: "»"; color: var(--gold-400); }
.trust__lead { color: rgba(246, 240, 228, 0.8); max-width: 58ch; font-size: var(--fs-lg); line-height: 1.55; }

.principles { display: grid; gap: 12px; margin-top: 16px; counter-reset: p; }
.principles li {
  position: relative;
  padding: 22px 22px 22px 64px;
  border: 1px solid rgba(226, 194, 127, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 252, 245, 0.04);
  counter-increment: p;
}
.principles li::before {
  content: counter(p, decimal-leading-zero);
  position: absolute;
  left: 22px; top: 22px;
  color: var(--gold-400);
  font-family: var(--font-display);
  font-size: 0.875rem;
}
.principles h3 { font-size: 1rem; margin-bottom: 6px; color: var(--milk-50); }
.principles p { color: rgba(246, 240, 228, 0.75); font-size: var(--fs-sm); }

/* ---------- Присоединиться ---------- */
.join__card {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 18px;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: var(--milk-50);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.join__card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 24px;
  background: url("../img/ornament.svg") repeat-x center / 64px 24px;
  opacity: 0.6;
}
.join__intro { display: grid; gap: 16px; justify-items: start; align-content: start; }
.join__title { font-size: var(--fs-h2); max-width: 20ch; }
.join__text { color: var(--color-text-muted); max-width: 60ch; }
.join__note { display: inline-flex; align-items: center; gap: 8px; color: var(--navy-700); font-size: var(--fs-sm); font-weight: 500; }
.join__check { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--teal-500); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.join__card .form { width: 100%; margin-bottom: 20px; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--navy-900); color: rgba(246, 240, 228, 0.85); }
.site-footer__inner { display: grid; gap: 36px; padding-block: 48px 32px; }
.site-footer__brand p { margin-top: 14px; max-width: 32ch; font-size: var(--fs-sm); }
.site-footer__heading {
  margin-bottom: 14px;
  color: var(--gold-400);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer__list { display: grid; gap: 4px; }
.site-footer__list a { display: inline-block; padding-block: 6px; text-decoration: none; }
.site-footer__list a:hover { color: var(--gold-400); }
.site-footer__muted { font-size: var(--fs-sm); color: rgba(246, 240, 228, 0.7); }
.site-footer__bottom {
  padding-block: 20px 28px;
  border-top: 1px solid rgba(246, 240, 228, 0.12);
  font-size: var(--fs-xs);
  color: rgba(246, 240, 228, 0.6);
}

/* ---------- Ссылки в карточках: кликается вся карточка ---------- */
.card__link { color: inherit; text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy-800);
}
.card__more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.card:hover .card__more svg { transform: translateX(3px); }
.card--stories .card__more { color: var(--gold-400); }
.btn--sm { min-height: 40px; padding: 8px 18px; }

/* Пункт меню «Присоединиться» — кнопка */
.site-nav__cta { padding-top: 16px; }
.site-nav .btn { width: 100%; justify-content: center; border-bottom: 0; color: var(--milk-50); font-family: var(--font-body); font-size: var(--fs-sm); }
.site-nav a[aria-current="page"] { color: var(--navy-900); box-shadow: inset 3px 0 0 var(--gold-500); padding-left: 12px; }

/* ---------- Обложки-рисунки в цветах бренда ---------- */
.art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  background: radial-gradient(130% 110% at 85% 5%, var(--a1), var(--a2));
  color: var(--ac);
}
.art__shan { position: absolute; right: -16%; top: -32%; width: 72%; aspect-ratio: 1; fill: none; stroke: currentColor; stroke-width: 1.2; opacity: 0.22; }
.art__icon {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 32%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.art__band {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  height: 24px;
  background: currentColor;
  -webkit-mask: url("../img/ornament.svg") repeat-x center / 64px 24px;
  mask: url("../img/ornament.svg") repeat-x center / 64px 24px;
  opacity: 0.5;
}
.art--hero { box-shadow: var(--shadow-lg); aspect-ratio: 16 / 10; border-radius: var(--radius-lg); }

/* ---------- Карточки статей ---------- */
.cards--articles { display: grid; gap: 20px; }
.card--article { padding: 0; overflow: hidden; gap: 0; align-items: stretch; }
.card--article::before { display: none; }
.card--article .art { border-radius: 0; aspect-ratio: 16 / 9; }
.card__body { display: grid; gap: 10px; padding: 22px 24px 26px; }
.section__title + .cards { margin-top: 28px; }
.section__more { margin-top: 32px; }

/* ---------- Шапка внутренних страниц ---------- */
.page-hero { position: relative; padding-top: 24px; background: linear-gradient(180deg, var(--milk-100), var(--milk-200)); }
.page-hero__inner { display: grid; gap: 28px; padding-bottom: 44px; }
.page-hero__title { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3rem); font-weight: 700; max-width: 22ch; }
.page-hero__lead { margin-top: 14px; max-width: 60ch; color: var(--color-text-muted); font-size: var(--fs-lg); line-height: 1.55; }
.page-hero__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--gold-700); font-size: var(--fs-sm); font-weight: 600; }
.page-hero__kicker a { color: inherit; text-underline-offset: 3px; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; font-size: var(--fs-xs); color: var(--navy-500); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--gold-500); }
.breadcrumbs a { color: var(--navy-700); text-decoration-color: rgba(14, 27, 61, 0.3); text-underline-offset: 3px; }
/* Название текущей страницы повторяет заголовок ниже — в цепочке достаточно одной строки */
.breadcrumbs li:last-child { min-width: 0; max-width: 100%; }
.breadcrumbs [aria-current] { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.breadcrumbs li:last-child { display: flex; overflow: hidden; }

.badge--warn { background: rgba(201, 164, 92, 0.22); color: var(--gold-700); }
.badge--warn::before { display: none; }

/* ---------- Текст статей ---------- */
.section--article { padding-block: clamp(40px, 6vw, 72px); }
.prose { max-width: 760px; font-size: 1.0625rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
.prose h3 { margin-top: 1.6em; font-size: 1.2rem; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul { padding-left: 1.3em; list-style: disc; }
.prose ol { padding-left: 1.5em; list-style: decimal; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--gold-700); font-weight: 600; }
.prose a { color: #1d5f5f; text-underline-offset: 3px; }
.prose strong { font-weight: 600; color: var(--navy-900); }
.prose blockquote {
  margin: 1.4em 0;
  padding: 16px 22px;
  border-left: 4px solid var(--gold-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--milk-50);
  color: var(--navy-700);
}
.prose hr { height: 24px; border: 0; background: url("../img/ornament.svg") repeat-x center / 64px 24px; opacity: 0.6; }
.note { padding: 16px 20px; border-radius: var(--radius-sm); background: var(--teal-100); color: #1d5f5f; font-size: var(--fs-sm); line-height: 1.55; }

/* ---------- Вопросы и ответы ---------- */
.faq { display: grid; gap: 12px; margin-top: 24px; }
.faq__item { border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--milk-50); }
.faq__item summary {
  position: relative;
  padding: 18px 56px 18px 20px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.35;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-700);
  font-size: 1.5rem;
  font-weight: 500;
}
.faq__item[open] summary::after { content: "−"; }
.faq__answer { padding: 0 20px 20px; color: var(--navy-700); }
.faq__answer > * + * { margin-top: 0.8em; }

/* ---------- Формы ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field legend { padding: 0; color: var(--navy-800); font-size: var(--fs-sm); font-weight: 600; }
.field legend { margin-bottom: 8px; }
.field__hint { color: var(--navy-500); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1.5px solid rgba(14, 27, 61, 0.24);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--navy-800);
  font: inherit;
  transition: border-color 0.2s, background-color 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: rgba(14, 27, 61, 0.45); }
.field input:focus, .field textarea:focus { border-color: var(--navy-700); }
.field [aria-invalid="true"] { border-color: #b3261e; background: #fff8f7; }
.field__error { color: #b3261e; font-size: var(--fs-xs); font-weight: 500; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1.5px solid rgba(14, 27, 61, 0.24);
  border-radius: 999px;
  background: #fff;
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.choice input:checked + span { border-color: var(--navy-800); background: var(--navy-800); color: var(--milk-50); }
.choice input:focus-visible + span { outline: 3px solid var(--color-focus); outline-offset: 2px; }

.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy-800); cursor: pointer; }
.field--check label { color: var(--navy-700); font-size: var(--fs-sm); font-weight: 400; line-height: 1.5; }
.field--check label a { color: #1d5f5f; text-underline-offset: 3px; }
.field--check .field__error { grid-column: 1 / -1; }

.form__submit { justify-self: start; }
.form__submit:disabled { opacity: 0.7; cursor: progress; transform: none; }
.form__status { padding: 14px 18px; border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 500; line-height: 1.5; }
.form__status--ok { background: var(--teal-100); color: #1d5f5f; }
.form__status--error { background: #fdecea; color: #8c1d18; }
.form__status--info { background: rgba(201, 164, 92, 0.2); color: var(--gold-700); }

.field select {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1.5px solid rgba(14, 27, 61, 0.24);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--navy-800);
  font: inherit;
}
.field select:hover { border-color: rgba(14, 27, 61, 0.45); }
.field select:focus { border-color: var(--navy-700); }
.field--check .field__hint, .field > .field__hint { font-size: var(--fs-xs); line-height: 1.5; }

/* Необязательный блок формы: «рассказать подробнее» */
.form__more { border: 1px dashed rgba(122, 92, 34, 0.45); border-radius: var(--radius-sm); background: rgba(246, 240, 228, 0.5); }
.form__more summary {
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  color: var(--navy-700);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.form__more summary::-webkit-details-marker { display: none; }
.form__more summary::before { content: "+"; display: inline-block; width: 1.2em; color: var(--gold-700); font-weight: 700; }
.form__more[open] summary::before { content: "−"; }
.form__more-body { display: grid; gap: 18px; padding: 4px 18px 20px; }

.join__links { display: flex; flex-wrap: wrap; gap: 10px; }
.cards--2, .cards--3 { display: grid; gap: 16px; }
.card--download .card__more { margin-top: auto; }
.help .section__head { margin-bottom: 28px; }
@media (min-width: 768px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Баннер чек-листа на главной ---------- */
.promo { padding-block: clamp(40px, 6vw, 72px); }
.promo__card {
  display: grid;
  gap: 28px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 120% at 100% 0%, var(--teal-500), #1d5f5f);
  color: var(--milk-50);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.promo__text { display: grid; gap: 14px; justify-items: start; align-content: center; }
.promo__text .eyebrow { color: var(--gold-400); }
.promo__text .eyebrow::before { background: var(--gold-400); }
.promo__title { font-size: var(--fs-h2); max-width: 18ch; }
.promo__text p { max-width: 52ch; color: rgba(246, 240, 228, 0.9); }
.promo .btn--primary { background: var(--milk-50); color: var(--navy-800); box-shadow: none; }
.promo .btn--primary:hover { background: #fff; }
.promo__steps { display: grid; gap: 12px; align-content: center; }
.promo__steps li { display: flex; flex-wrap: wrap; gap: 8px; }
.promo__steps span {
  padding: 8px 16px;
  border: 1px solid rgba(246, 240, 228, 0.35);
  border-radius: 999px;
  background: rgba(246, 240, 228, 0.1);
  font-size: var(--fs-sm);
  font-weight: 600;
}

/* ---------- Персональный чек-лист ---------- */
.kids { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.kids[hidden] { display: none; }
.kids button {
  min-height: 44px; padding: 10px 16px; border: 2px solid var(--color-border); border-radius: 999px;
  background: #fff; color: var(--navy-700); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.kids button:hover { border-color: var(--navy-500); }
.kids button:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.kids__tab[aria-pressed="true"] { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.kids__add { border-style: dashed !important; color: #1d5f5f !important; }
.kids__remove { border-color: transparent !important; background: transparent !important; text-decoration: underline; text-underline-offset: 3px; }
.checklist__form {
  display: grid;
  gap: 24px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--milk-50);
  box-shadow: var(--shadow-sm);
}
.checklist__result { margin-top: 32px; }
.checklist__prompt, .checklist__hint {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--teal-100);
  color: #1d5f5f;
  font-size: var(--fs-sm);
  font-weight: 500;
}
.checklist__bar { display: grid; gap: 8px; margin-bottom: 8px; }
.checklist__bar h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
.checklist__progress { color: var(--navy-700); font-size: var(--fs-sm); font-weight: 600; }
.checklist__meter { height: 10px; border-radius: 999px; background: rgba(14, 27, 61, 0.1); overflow: hidden; }
.checklist__meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal-500), var(--gold-500)); transition: width 0.4s var(--ease); }
.checklist__group { margin-top: 32px; }
.checklist__group h3 { margin-bottom: 14px; font-size: 1.2rem; }
.checklist__hint { margin-bottom: 14px; background: rgba(201, 164, 92, 0.2); color: var(--gold-700); }
.check-list { display: grid; gap: 10px; }
.check-item { border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--milk-50); transition: background-color 0.2s, border-color 0.2s; }
.check-item[hidden], .checklist__group[hidden], .checklist__hint[hidden] { display: none; }
.check-item { display: grid; gap: 10px; padding: 16px 18px; border-left-width: 5px; scroll-margin-top: 96px; }
.check-item__body { display: grid; gap: 4px; }
.check-item__body b { font-weight: 600; line-height: 1.35; }
.check-item__body b .badge { margin-left: 6px; vertical-align: 2px; }
.check-item__body > span { color: var(--navy-500); font-size: var(--fs-sm); line-height: 1.55; }
.check-item__how summary { display: inline-block; cursor: pointer; color: #1d5f5f; font-size: var(--fs-sm); font-weight: 600; text-underline-offset: 3px; }
.check-item__how summary:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.check-item__how[open] summary { margin-bottom: 8px; }
.check-item__how p, .check-item__how li { font-size: var(--fs-sm); line-height: 1.6; color: var(--navy-700); }
.check-item__how p + p { margin-top: 8px; }
.check-item__how ol { margin: 4px 0 0; padding-left: 22px; list-style: decimal; display: grid; gap: 4px; }
.check-item__more { display: inline-block; margin-top: 8px; color: #1d5f5f; font-size: var(--fs-sm); font-weight: 600; text-underline-offset: 3px; }
.check-item__status { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.status { position: relative; }
.status input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.status span {
  display: inline-block; min-height: 44px; padding: 10px 16px; border: 2px solid var(--color-border); border-radius: 999px;
  background: #fff; color: var(--navy-700); font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.status:hover span { border-color: var(--navy-500); }
.status input:focus-visible + span { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.status--done input:checked + span { background: var(--teal-500); border-color: var(--teal-500); color: #fff; }
.status--later input:checked + span { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900, #0e1b3d); }
.status--help input:checked + span { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.check-item[data-state="done"] { background: var(--teal-100); border-color: rgba(46, 140, 140, 0.4); border-left-color: var(--teal-500); }
.check-item[data-state="done"] .check-item__body b { text-decoration: line-through; text-decoration-color: rgba(14, 27, 61, 0.35); }
.check-item[data-state="later"] { border-left-color: var(--gold-500); }
.check-item[data-state="help"] { border-left-color: var(--navy-700); }
.checklist__counts { color: var(--navy-500); font-size: var(--fs-sm); }
.checklist__first { margin-top: 20px; padding: 20px; border: 2px solid var(--gold-500); border-radius: var(--radius-sm); background: #fff; }
.checklist__first h3 { margin-bottom: 8px; font-size: 1.2rem; }
.checklist__first p { font-size: var(--fs-sm); }
.checklist__first-list { margin: 10px 0 0; padding-left: 24px; list-style: decimal; display: grid; gap: 8px; }
.checklist__first-list a { color: #1d5f5f; font-weight: 600; text-underline-offset: 3px; }
.checklist__first[hidden], .checklist__first-list[hidden], .checklist__first p[hidden], .checklist__helpbox[hidden] { display: none; }
.checklist__helpbox { margin-top: 16px; padding: 14px 18px; border-radius: var(--radius-sm); background: rgba(201, 164, 92, 0.2); color: var(--gold-700); font-size: var(--fs-sm); font-weight: 500; }
.checklist__helpbox a { font-weight: 700; color: inherit; text-underline-offset: 3px; }
.checklist__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.checklist__disclaimer { margin-top: 32px; }

@media print {
  .site-header, .side-band, .site-footer, .skip-link, .checklist__form, .kids, .checklist__actions, .checklist__cta,
  .breadcrumbs, .ornament-band, .check-item__more, .page-hero__lead, .checklist__first, .checklist__helpbox,
  .check-item[data-state="done"] { display: none !important; }
  body { padding: 0; background: #fff; }
  .page-hero { padding: 0; background: none; }
  .check-item { break-inside: avoid; background: #fff !important; }
  .status input:not(:checked) + span { display: none; }
  .status input:checked + span { border-color: #000 !important; background: #fff !important; color: #000 !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Услуги и подписка ---------- */
.plans { display: grid; gap: 20px; }
.plan { display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 4vw, 28px); border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--milk-50); box-shadow: var(--shadow-sm); }
.plan--soon { border: 2px solid var(--gold-500); background: #fff; }
.plan--dev { border-style: dashed; background: transparent; box-shadow: none; }
.plan .badge { align-self: flex-start; }
.plan__title { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); }
.plan__lead { color: var(--navy-700); }
.plan__price { display: grid; gap: 4px; font-weight: 700; color: #1d5f5f; }
.plan__tier { display: block; }
.plan__list { display: grid; gap: 10px; margin: 4px 0 8px; padding: 0; list-style: none; }
.plan__list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: var(--fs-sm); line-height: 1.55; }
.plan__list svg { width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: var(--teal-500); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.plan__cta { margin-top: auto; align-self: flex-start; }
.plans__trust { margin-top: 24px; }
.plans__how { display: grid; gap: 12px; margin: 16px 0 0; padding-left: 24px; list-style: decimal; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Новости ---------- */
.news__tabs { display: flex; gap: 8px; margin-bottom: 20px; padding: 6px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--milk-50); width: fit-content; max-width: 100%; }
.news__tab { min-height: 44px; padding: 8px 22px; border: 0; border-radius: 999px; background: transparent; color: var(--navy-700); font: inherit; font-weight: 600; cursor: pointer; }
.news__tab:hover { background: rgba(201, 164, 92, 0.18); }
.news__tab[aria-selected="true"] { background: var(--navy-800); color: var(--milk-50); }
.news__panel + .news__panel { margin-top: 40px; }
.news.is-tabbed .news__panel + .news__panel { margin-top: 0; }
.news.is-tabbed .news__heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.news__desc { margin: 4px 0 16px; color: var(--navy-700); }
.news__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.news-item { padding: 16px 18px; border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.news-item__title { font-weight: 600; line-height: 1.4; color: var(--navy-800); text-decoration: none; }
.news-item__title:hover { text-decoration: underline; text-decoration-color: var(--gold-500); text-underline-offset: 3px; }
.news-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: var(--fs-sm); color: var(--navy-500); }
.news__updated, .news__note { margin-top: 20px; }
.news__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
@media (min-width: 760px) { .news__list { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Подвал: соцсети и помощь ---------- */
.site-footer__social { display: inline-flex !important; align-items: center; gap: 8px; }
.site-footer__social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.site-footer__help { margin-top: 16px; max-width: 34ch; color: rgba(246, 240, 228, 0.8); font-size: var(--fs-sm); line-height: 1.5; }
.site-footer__help b { color: var(--milk-50); font-weight: 600; }
.site-footer__bottom p + p { margin-top: 6px; }

/* ---------- 404 ---------- */
.notfound__code { color: var(--gold-500); font-family: var(--font-display); font-size: clamp(4rem, 3rem + 6vw, 8rem); font-weight: 700; line-height: 1; }
.notfound .btn { margin: 24px 8px 0 0; }

/* ---------- Появление при прокрутке ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Планшет ---------- */
@media (min-width: 768px) {
  .hero { padding-top: 48px; }
  .hero__actions .btn, .join__actions .btn { flex: 0 0 auto; }
  .hero__media img { aspect-ratio: 16 / 10; }
  .hero__note { left: 32px; }

  .cards--4, .cards--materials { grid-template-columns: repeat(2, 1fr); }
  .card--stories {
    grid-column: span 2;
    min-height: 260px;
    --stories-shade: linear-gradient(100deg, rgba(14, 27, 61, 0.97) 0%, rgba(14, 27, 61, 0.9) 45%, rgba(14, 27, 61, 0.35) 100%);
  }

  .section__head { grid-template-columns: 1fr 1fr; align-items: end; gap: 32px; }
  .principles { grid-template-columns: repeat(3, 1fr); }
  .join__card { padding: 64px 56px 72px; }
  .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }

  .cards--articles { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr 1fr; }
  .promo__card { grid-template-columns: 1.2fr 0.8fr; gap: 48px; }
  .page-hero { padding-top: 36px; }
}

/* ---------- Компьютер ---------- */
@media (min-width: 1120px) {
  .page-hero--art .page-hero__inner { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 56px; }
  .join__card { grid-template-columns: 0.9fr 1.1fr; column-gap: 56px; align-items: start; }
}

/* Меню в одну строку — только на широких экранах; ниже остаётся кнопка-бургер (в казахской версии пункты длиннее) */
@media (min-width: 1280px) {
  .menu-toggle { display: none; }
  .site-nav {
    position: static;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .site-nav ul { display: flex; gap: 2px; }
  .site-nav a {
    min-height: 40px;
    padding: 0 8px;
    white-space: nowrap;
    border: 0;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--navy-700);
    transition: background-color 0.2s;
  }
  .site-nav a:hover { background: rgba(14, 27, 61, 0.06); }
  .site-nav ul { align-items: center; }
  .site-nav a[aria-current="page"] { padding-left: 14px; box-shadow: inset 0 -2px 0 var(--gold-500); border-radius: 0; }
  .site-nav__cta { padding-top: 0; margin-left: 8px; }
  .site-nav .btn { width: auto; color: var(--milk-50); }
  .site-nav .btn:hover { background: var(--navy-700); }
}

@media (min-width: 1100px) {
  /* Иллюстрация на весь первый экран, текст — на пустой стене слева */
  .hero { padding-top: 0; }
  .hero__inner {
    position: relative;
    max-width: none;
    padding: 0;
    min-height: min(calc(100vh - var(--header-h) - 24px), 860px);
    align-items: center;
  }
  .hero__media { position: absolute; inset: 0; border-radius: 0; box-shadow: none; }
  .hero__media img { height: 100%; aspect-ratio: auto; object-position: right 70%; border-radius: 0; }
  .hero__media::after { display: none; }
  .hero__media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(246, 240, 228, 0.82) 0%, rgba(246, 240, 228, 0.5) 34%, rgba(246, 240, 228, 0) 52%);
  }
  .hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding: 64px var(--gutter);
  }
  .hero__content > * { max-width: 520px; }
  .hero__text { color: var(--navy-700); font-size: var(--fs-lg); }
  /* На компьютере подпись уходит в правый нижний угол, пунктир тянется влево */
  .hero__note { left: auto; right: 4%; bottom: 6%; z-index: 2; }
  .hero__note::after { left: auto; right: 100%; width: 64px; }
  .hero__note::before { left: auto; right: calc(100% + 64px); }

  .cards--4 { grid-template-columns: repeat(4, 1fr); }
  .cards--materials { grid-template-columns: repeat(3, 1fr); }
  .card--stories { grid-column: span 2; }
  .cards--articles { grid-template-columns: repeat(3, 1fr); }
  .page-hero { padding-top: 48px; }
  .page-hero__inner { padding-bottom: 64px; }

  .trust__inner { grid-template-columns: 1.2fr 1fr; column-gap: 64px; align-items: end; }
  .trust__inner > .section__num { grid-column: 1 / -1; }
  .principles { grid-column: 1 / -1; margin-top: 40px; }
}

@media (min-width: 1200px) {
  .side-band { display: block; }
}

/* Шапка: на широких экранах пункты меню просторнее */
@media (min-width: 1360px) {
  .site-nav ul { gap: 6px; }
  .site-nav a { padding: 0 11px; }
}

/* ---------- Связь без форм ---------- */
.reach { display: grid; gap: 16px; align-content: start; }
.reach__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.reach__tpl { display: grid; gap: 8px; justify-items: start; padding: 16px 18px; border: 1px dashed var(--gold-500); border-radius: var(--radius); background: var(--milk-50); }
.reach__label { font-size: var(--fs-sm); font-weight: 600; color: var(--navy-700); }
.reach__text { margin: 0; padding: 0; border: 0; font-size: var(--fs-sm); line-height: 1.6; color: var(--navy-800); user-select: all; }
