/* =========================================================================
   Zooelon — лендинг продавца

   Все значения сняты из Figma: файл Zooelon (Copy), фрейм 5150:136056,
   1440×6836. Файл разобран через API, размеры не подбирались на глаз.

   Шрифт макета — Averta CY, он платный. Взят Onest: та же геометрическая
   основа, кириллица в базовом наборе, насыщенности до 900.
   Логотип — готовый SVG из макета, отдельный шрифт под него не нужен.
   ========================================================================= */

:root {
  /* Цвета макета */
  --page: #F7F9FC;      /* фон страницы */
  --card: #FFFFFF;
  --ink: #02000F;       /* основной текст, подвал */
  --ink-2: #22232C;     /* тёмные карточки */
  --ink-3: #090909;     /* тёмный блок заявки */
  --mut: #6E6E78;       /* вторичный текст; #838383 из макета не проходит по контрасту */
  --mut-2: #B8BBCD;
  --line: #EDECEC;
  --alt: #F5F7F7;
  --green: #29C840;          /* единственный зелёный на странице */
  --green-tint: rgb(41 200 64 / 14%);   /* его же подложка */
  --green-deep: #21A635;     /* он же темнее — только для наведения */
  --blue: #1F72E0;      /* фон первого экрана; в макете #2684FC, но белый
                           текст на нём даёт 3.63 при норме 4.5 */
  --yellow: #FAF728;    /* акцентные карточки аудитории */

  --f: 'Onest', system-ui, -apple-system, sans-serif;

  /* Сетка макета: 1440 − 2×100 */
  --wrap: 1240px;
  --pad: 100px;

  /* Одна шкала радиусов на всю страницу */
  --r-sm: 8px;      /* мелкие плашки и значки */
  --r-btn: 12px;    /* кнопки, поля, чипы */
  --r-md: 16px;     /* элементы списков */
  --r-card: 24px;   /* карточки и крупные блоки */
  --r-pill: 100px;  /* пилюли */
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 150px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--f);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: inherit; line-height: 1.2; }

/* Одноцветная обводка пропадала на зелёных секциях: даём тёмное кольцо
   с белой подложкой — читается и на светлом, и на цветном фоне. */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgb(255 255 255 / 85%);
  border-radius: var(--r-sm);
}

.wrap { width: min(var(--wrap), 100% - var(--pad) * 2); margin-inline: auto; }

/* Блоки собираются скриптом; без него страница должна объяснить, что делать */
.nojs { padding: 16px var(--pad); background: #FFF3CD; color: #5C4600; font-size: 16px; }
.nojs a { font-weight: 800; text-decoration: underline; }

/* Грид-элементы по умолчанию не уже своего содержимого — снимаем минимум */
.quad > *, .cats > *, .steps > *, .aud > *, .stats__row > *,
.ftr__cols > *, .apply > *, .hero__in > * { min-width: 0; }

/* --- Кнопки: в макете высота 48/56, радиус 10 --------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding-inline: 24px;
  border: 0;
  border-radius: var(--r-btn);
  font-family: var(--f);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.btn--lg { height: 56px; padding-inline: 30px; font-size: 16px; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #1A1A28; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--alt); }
.btn--green { background: var(--green); color: #fff; font-weight: 800; }
.btn--green:hover { background: var(--green-deep); color: #fff; }
.lnk { font-size: 16px; font-weight: 600; }
.lnk:hover { color: var(--green); }

/* =========================== 01 ШАПКА ================================== */
.hdr { position: sticky; top: 0; z-index: 100; }

.hdr__top { height: 48px; background: var(--ink); color: #fff; font-size: 14px; }
.hdr__topin { display: flex; align-items: center; gap: 24px; height: 48px; }
.hdr__topin a:hover { color: var(--green-tint); }
.hdr__sep { width: 1px; height: 14px; background: rgb(255 255 255 / 22%); }
.hdr__topright { display: flex; align-items: center; gap: 24px; margin-left: auto; color: rgb(255 255 255 / 84%); }

.hdr__main { height: 88px; background: var(--card); border-bottom: 1px solid var(--line); }
.hdr__mainin { display: flex; align-items: center; gap: 40px; height: 88px; }
/* Логотип — готовый знак из макета */
.logo { display: inline-flex; align-items: center; }
.logo img { display: block; width: 131px; height: 39px; }
.nav { display: flex; gap: 28px; margin-left: 32px; font-size: 16px; font-weight: 600; }
.nav a:hover { color: var(--green); }
.hdr__act { display: flex; align-items: center; gap: 20px; margin-left: auto; }

/* Бургер и список якорей — только на телефоне, где меню шапки скрыто */
.burger { display: none; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-btn); background: var(--alt); }
.mobnav { display: none; padding: 8px 0 14px; background: var(--card); border-bottom: 1px solid var(--line); }
.mobnav a { display: block; padding: 13px var(--pad); font-size: 16px; font-weight: 600; }
.mobnav a:active { background: var(--alt); }
.mobnav__cta { margin: 10px var(--pad) 0; padding: 14px 20px !important; border-radius: var(--r-btn); background: var(--ink); color: #fff; text-align: center; }
body.menu-open .mobnav { display: block; }

.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; background: none; border: 0; font-size: 14px; font-weight: 600; color: inherit; }
.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: none;
  min-width: 150px;
  padding: 6px;
  border-radius: var(--r-btn);
  background: #fff;
  box-shadow: 0 12px 32px rgb(2 0 15 / 18%);
}
.lang--open .lang__menu { display: block; }
.lang__item { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: var(--r-sm); background: none; text-align: left; font-size: 14px; color: var(--ink); }
.lang__item:hover { background: var(--alt); }

/* =========================== 02 ГЕРОЙ ================================== */
.hero { background: var(--blue); color: #fff; }
.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 765px) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  min-height: 496px;
  padding-block: 64px;
}
.hero__kicker { font-size: 28px; font-weight: 400; text-transform: uppercase; color: #fff; }
.hero__h1 {
  margin-top: 12px;
  max-width: 765px;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero .btn--lg { margin-top: 32px; }

.hero__phone { display: flex; align-items: center; gap: 16px; margin-top: 48px; }
.hero__phone-ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  background: rgb(255 255 255 / 18%);
  color: #fff;
}
.hero__phone-num { font-size: 28px; font-weight: 400; letter-spacing: -0.01em; text-transform: uppercase; }
.hero__phone-num b { font-weight: 800; }
.hero__phone-note { margin-top: 2px; font-size: 16px; color: #fff; }

.hero__art { width: 100%; max-width: 400px; height: auto; margin-left: auto; margin-right: 16px; }

/* ====================== ОБЩЕЕ ДЛЯ СЕКЦИЙ =============================== */
.section { padding-block: 48px; }
.section--soft { background: var(--page); }
.section--alt { background: var(--alt); }
.section--flush { padding-top: 83px; padding-bottom: 83px; }

.head { max-width: 930px; margin-bottom: 48px; }
.head--center { margin-inline: auto; text-align: center; }

.chip {
  display: inline-block;
  margin-bottom: 20px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  background: #F5F4F4;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.h2 { font-size: 44px; font-weight: 800; line-height: 1.16; letter-spacing: -0.022em; }
.lead { margin-top: 18px; color: var(--mut); font-size: 20px; line-height: 1.55; }
.head--center .lead { margin-inline: auto; max-width: 652px; }

/* =================== 03 ЧЕТЫРЕ ПРЕИМУЩЕСТВА ============================ */
/* В макете: 4 карточки 283×304, радиус 24, зазор 20, вторая тёмная */
.quad { display: grid; grid-template-columns: repeat(4, 283px); justify-content: center; gap: 20px; }
.qcard {
  display: flex;
  flex-direction: column;
  min-height: 290px;
  padding: 28px;
  border-radius: var(--r-card);
  background: var(--card);
}
.qcard--dark { background: var(--ink-2); color: #fff; }
.qcard__ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 26px;
  border-radius: var(--r-btn);
  background: var(--green-tint);
  color: var(--green);
}
.qcard--dark .qcard__ico { background: rgb(255 255 255 / 14%); color: #fff; }
.qcard__t { font-size: 20px; font-weight: 800; line-height: 1.22; }
.qcard__d { margin-top: 14px; color: #5A5A63; font-size: 16px; line-height: 1.5; }
.qcard--dark .qcard__d { color: rgb(255 255 255 / 74%); }

/* ========================= 04 КАТЕГОРИИ ================================ */
/* В макете: контейнер 1129, карточка 247 шириной и 300 высотой вместе с
   подписью, зазор 47, второй ряд из двух карточек выровнен по центру. */
.cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.cc { display: flex; flex-direction: column; text-align: center; }
.cc__ph {
  position: relative;
  display: grid;
  place-items: center;
  height: 268px;
  border-radius: var(--r-card);
  background: var(--card);
  overflow: hidden;
  transition: transform .2s ease;
}
.cc__ph img { width: auto; height: auto; max-width: 78%; max-height: 212px; object-fit: contain; }

.cc__t { margin-top: 18px; font-size: 24px; font-weight: 800; line-height: 1.2; }
.cc__d { margin-top: 7px; color: var(--mut); font-size: 16px; font-weight: 600; line-height: 1.4; }

/* ==================== 05 ПОЛОСА-ПРИЗЫВ ================================= */
/* В макете: 1192×180, радиус 20, фон #22232C, 3D-магазин справа */
/* Карточка-призыв: текст слева, 3D-магазин справа. Заголовок и кнопка
   держатся вместе, картинка уравновешивает их по правому краю. */
.band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 32px;
  min-height: 240px;
  padding: 40px 48px;
  border-radius: var(--r-card);
  background: var(--ink-2);
  color: #fff;
  overflow: hidden;
}
/* Мягкое свечение в углу — иначе большой тёмный прямоугольник читается глухо */
.band::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(41 200 64 / 16%), transparent 68%);
  pointer-events: none;
}
.band__copy { position: relative; }
.band__t {
  max-width: 620px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.01em;
}
.band .btn {
  position: relative;
  margin-top: 24px;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  font-weight: 600;
}
.band .btn:hover { background: #ECECEE; }
.band__lead { margin-top: 12px; max-width: 560px; font-size: 16px; line-height: 1.55; color: rgb(255 255 255 / 68%); }
.band__facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.band__facts li {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 10%);
  font-size: 14px;
  font-weight: 600;
}
.band__art { position: relative; width: 100%; max-width: 300px; height: auto; justify-self: end; pointer-events: none; }

/* ========================== 06 ПЯТЬ ШАГОВ ============================== */
/* Карточки 410×312, зазор 24, вторая строка из двух — по центру */
/* Шесть колонок по половине карточки: три сверху, две снизу по центру */
.steps { display: grid; grid-template-columns: repeat(6, 193px); justify-content: center; gap: 24px; }
.steps > * { grid-column: span 2; }
.steps > :nth-child(4) { grid-column: 2 / span 2; }
.steps > :nth-child(5) { grid-column: 4 / span 2; }
.st {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 32px;
  border-radius: var(--r-card);
  background: var(--card);
}
.st__n {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  font-size: 20px;
  font-weight: 800;
}
.st__t { font-size: 28px; font-weight: 800; line-height: 1.2; }
.st__d { margin-top: 14px; color: #5A5A63; font-size: 16px; font-weight: 600; line-height: 1.55; }

/* ========================= 07 СТАТИСТИКА =============================== */
/* Минималистично: цифры прямо на зелёном, разделены волосяными линиями.
   Тёмные плашки на насыщенном фоне спорили с ним и утяжеляли полосу. */
/* Текст на зелёном белый по просьбе заказчика. Контраст 2.23 при норме
   4.5 — это осознанное отступление в пользу фирменной подачи. */
.stats { padding-block: 56px; background: var(--green); color: #fff; }
.stats__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.stats__t { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; }
.stats__note { font-size: 14px; font-weight: 600; color: rgb(255 255 255 / 82%); }

.stats__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 36px;
}
.stats__row > div { display: flex; align-items: center; gap: 16px; padding: 4px 34px; }
.stats__row > div:first-child { padding-left: 0; }
.stats__row > div + div { border-left: 1px solid rgb(255 255 255 / 28%); }

.stats__ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--r-btn);
  background: rgb(255 255 255 / 18%);
  color: #fff;
}
.stats__n { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
.stats__l { margin-top: 5px; font-size: 14px; line-height: 1.35; color: rgb(255 255 255 / 86%); }

/* =========================== 08 ЗАЯВКА ================================= */
/* Тёмный блок 1280×718, внутри слева текст, справа белая форма 620×622 */
.apply {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 620px;
  align-items: stretch;
  gap: 48px;
  min-height: 0;
  padding: 56px;
  border-radius: var(--r-card);
  background: var(--ink-3);
  color: #fff;
}
.apply__left { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.apply__text { max-width: 482px; font-size: 24px; font-weight: 600; line-height: 1.45; letter-spacing: -0.01em; color: rgb(255 255 255 / 86%); }
.apply__contact { display: grid; gap: 8px; }
.apply__lead { max-width: 440px; font-size: 16px; line-height: 1.55; color: rgb(255 255 255 / 62%); }
.apply__phone { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.apply__tg { font-size: 16px; color: var(--green-tint); }

/* Форма по высоте содержимого и по центру тёмной карточки: фиксированные
   622px оставляли под кнопкой четверть пустого блока. */
.apply__form {
  display: grid;
  gap: 18px;
  align-content: start;
  align-self: center;
  padding: 44px 40px;
  border-radius: var(--r-card);
  background: #FAFAFA;
  color: var(--ink);
}
.fld { display: grid; gap: 8px; }
.fld__l { font-size: 16px; font-weight: 600; color: var(--ink); }
.fld select {
  height: 52px;
  padding-inline: 14px;
  border: 0;
  border-radius: var(--r-btn);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236E6E78' stroke-width='2.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
  box-shadow: inset 0 0 0 1px var(--line);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  appearance: none;
}
.fld select:invalid { color: var(--mut); }

.fld input {
  height: 52px;
  padding-inline: 16px;
  border: 0;
  border-radius: var(--r-btn);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}
.fld input::placeholder { color: var(--mut); }
.apply__note { font-size: 14px; color: #5F5F68; }
.apply__status { font-size: 14px; color: #C0392B; }
.apply__ok {
  grid-column: 1 / -1;
  align-self: center;
  display: grid;
  gap: 8px;
  padding: 28px;
  border-radius: var(--r-btn);
  background: var(--card);
  color: var(--ink);
}
.apply__ok strong { font-size: 20px; }
.apply__ok span { color: #5F5F68; }

/* ============================ 09 FAQ =================================== */
/* Контейнер 840, элементы с зазором 16 на светлой подложке */
.faq { display: grid; gap: 16px; max-width: 840px; margin-inline: auto; }
.faq__i { border-radius: var(--r-card); background: var(--card); overflow: hidden; }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 80px;
  padding: 20px 32px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
}
.faq__s { flex: none; width: 22px; height: 22px; color: var(--green); transition: transform .2s ease; }
.faq__i--open .faq__s { transform: rotate(45deg); }
.faq__a { overflow: hidden; animation: faq-open .22s ease; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-4px); } }
.faq__a p { padding: 0 32px 26px; color: #5A5A63; font-size: 16px; font-weight: 600; line-height: 1.6; }

/* ===================== 10 ЗЕЛЁНАЯ ПОЛОСА =============================== */
.trust { background: var(--green); color: #fff; }
.trust__in {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 183px;
}
.trust__t { max-width: 430px; font-size: 24px; font-weight: 800; line-height: 1.3; }
.trust__cat { position: absolute; left: 43%; bottom: 0; width: 150px; height: auto; pointer-events: none; }
.trust__dog { position: absolute; left: 53%; bottom: 0; width: 176px; height: auto; pointer-events: none; }
.trust .btn { margin-left: auto; }

/* ================== 11 КТО МОЖЕТ ПРОДАВАТЬ ============================= */
/* Первый ряд: четыре карточки 302×228; второй: две по 631×163 */
.aud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 27px; }
.ac { position: relative; padding: 28px; border-radius: var(--r-card); background: var(--card); min-height: 228px; }
/* Круглая стрелка в углу — как в макете: зелёная на белой, белая на жёлтой */
.ac__arr {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.4px currentColor;
  color: var(--green);
}
.ac--hl .ac__arr { background: var(--ink); box-shadow: none; color: #fff; }
.ac__t { padding-right: 40px; }
.ac:nth-child(5), .ac:nth-child(6) { grid-column: span 2; min-height: 163px; }
.ac--hl { background: var(--yellow); }
.ac__t { font-size: 20px; font-weight: 800; line-height: 1.3; }
.ac__d { margin-top: 14px; color: #5A5A63; font-size: 16px; font-weight: 600; line-height: 1.5; }
.ac--hl .ac__d { color: #3D3B06; }

/* ========================== 12 ПОДВАЛ ================================== */
.ftr { padding-block: 60px 0; background: var(--ink); color: #fff; }
.ftr__cols { display: grid; grid-template-columns: 340px repeat(3, minmax(0, 200px)); justify-content: space-between; gap: 40px; }
/* В подвале фон почти чёрный — берём вариант знака с инвертированной капсулой */
.ftr__logo { line-height: 0; }
.ftr__logo img { display: block; width: 170px; height: 51px; }
.ftr__about { margin-top: 16px; font-size: 16px; line-height: 1.6; color: rgb(255 255 255 / 78%); }
.ftr__soc { display: flex; gap: 18px; margin-top: 20px; font-size: 14px; font-weight: 800; color: var(--green-tint); }
.ftr__col h4 { font-size: 14px; font-weight: 800; }
.ftr__col ul { display: grid; gap: 11px; margin-top: 18px; font-size: 14px; color: rgb(255 255 255 / 80%); }
.ftr__col a:hover { color: #fff; }
.ftr__soon { color: rgb(255 255 255 / 56%); cursor: default; }
.ftr__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin-top: 52px;
  padding: 26px 0 30px;
  border-top: 1px solid rgb(255 255 255 / 14%);
  font-size: 12px;
  color: rgb(255 255 255 / 72%);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =========================================================================
   ПОВЕДЕНИЕ

   Теней на карточках нет намеренно: на светлом фоне они дают ощущение
   дешёвого шаблона. Разделение держится на шаге фона и скруглениях.
   ========================================================================= */

/* Наведение: лёгкий подъём и подкрашивание фона, без тени */
.qcard, .st, .ac, .cc__ph, .faq__i { transition: transform .2s ease, background .2s ease; }
.qcard:not(.qcard--dark):hover, .st:hover, .cc:hover .cc__ph { transform: translateY(-3px); }
.qcard--dark:hover { transform: translateY(-3px); }
.ac:hover { transform: translateY(-3px); }
.faq__i:hover { background: #FCFCFD; }
.ac__arr { transition: transform .2s ease; }
.ac:hover .ac__arr { transform: rotate(45deg); }

/* Шапка отделяется от контента волосяной линией, а не тенью */
.hdr__main { transition: border-color .2s ease; }
body.scrolled .hdr__main { border-bottom-color: #DEDEE4; }

.nav a { position: relative; }
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: var(--r-sm);
  background: var(--green);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.nav a:hover::after { transform: scaleX(1); }

/* Короткое появление блоков при первом показе */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
}

/* =========================================================================
   ЗАГРУЗКА И ДЕКОР
   ========================================================================= */

/* Скелетон: подложка и блик — псевдоэлементы поверх, а не фон самого блока.
   Иначе снятие скелетона стирало бы собственный фон (так пропала тёмная
   заливка полосы-призыва). Снимается по событию load, не по таймеру. */
.sk { position: relative; overflow: hidden; }
.sk::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #EEF0F6;
}
.sk::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 70%), transparent);
  animation: sk 1.25s ease-in-out infinite;
}
@keyframes sk { to { transform: translateX(100%); } }
.sk--done::before, .sk--done::after { content: none; }
.sk img { opacity: 0; transition: opacity .3s ease; }
.sk--done img { opacity: 1; }

/* Вырезки по краям секций: страница про животных, а на двух экранах
   подряд их не было совсем. Декор не мешает тексту и скрыт от чтения. */
.deco { position: absolute; width: 150px; height: auto; opacity: .9; pointer-events: none; user-select: none; z-index: 0; }
.deco--left { left: 0; bottom: 40px; transform: rotate(-6deg); }
.deco--right { right: 0; bottom: 48px; transform: rotate(6deg); }
#categories .deco--right { top: 56px; bottom: auto; width: 128px; }
/* Секции с декором подрезают его, иначе он растягивает документ */
.section { position: relative; }
.section:has(.deco) { overflow: hidden; }
.section > .wrap { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .sk::after { animation: none; }
}

@media (max-width: 1200px) {
  .deco { display: none; }
}


/* --- Скелетоны блоков, которые собирает скрипт -------------------------
   Лежат прямо в разметке, поэтому видны сразу и не ждут выполнения JS.
   Заменяются настоящим содержимым, когда словарь собран. */
.skb { border-radius: var(--r-card); background: var(--card); overflow: hidden; }
.skb--line { border-radius: var(--r-sm); background: #EEF0F6; }
.skl { position: relative; overflow: hidden; background: #EEF0F6; border-radius: var(--r-sm); }
.skl::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 75%), transparent);
  animation: sk 1.25s ease-in-out infinite;
}
.skb__pad { padding: 28px; display: grid; gap: 12px; }
.skb__ph { height: 212px; }
.skb__t { height: 20px; width: 62%; }
.skb__d { height: 14px; }
.skb__d--short { width: 78%; }
.skb__row { height: 80px; border-radius: var(--r-card); }
@media (prefers-reduced-motion: reduce) { .skl::after { animation: none; } }


/* ========================== АДАПТИВ ==================================== */
@media (max-width: 1400px) {
  /* Ниже 1400 фиксированные колонки макета не помещаются — переходим на доли */
  .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
  .cats > :nth-child(5) { grid-column: auto; }
  .quad { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 1200px) {
  :root { --pad: 40px; }
  .quad, .cats, .aud, .stats__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__row > div { padding-block: 14px; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps > * { grid-column: span 1 !important; }
  .ac:nth-child(5), .ac:nth-child(6) { grid-column: span 1; }
  .hero__h1 { font-size: 44px; }
  .h2 { font-size: 44px; }
}

@media (max-width: 900px) {
  :root { --pad: 20px; }
  .hdr__top, .nav { display: none; }
  .burger { display: grid; }
  /* На телефоне в строку помещаются логотип, язык и бургер; «Войти» и
     кнопку заменяет список якорей под шапкой. */
  .hdr__act .lnk, .hdr__act .btn { display: none; }
  .hdr__act { gap: 10px; }
  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .hero__art { max-width: 320px; margin-inline: auto; }
  .steps, .apply { grid-template-columns: minmax(0, 1fr); }
  .ftr__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust__in { flex-direction: column; align-items: flex-start; padding-block: 32px 200px; }
  .trust .btn { margin-left: 0; }
  /* Картинки уходят вправо и вниз, кнопка остаётся слева и ничем не закрыта */
  .trust__cat { left: auto; right: 124px; width: 128px; }
  .trust__dog { left: auto; right: 0; width: 116px; }
  .band__art { position: static; margin-top: 20px; width: 160px; }
  .band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  /* Логотип, «Войти» и кнопка не помещаются в строку — ссылку прячем */
  .hdr__mainin { gap: 12px; }
  .logo { font-size: 20px; }
  .quad, .cats, .aud, .stats__row, .steps { grid-template-columns: minmax(0, 1fr); }
  .stats__row > div + div { border-left: 0; border-top: 1px solid rgb(2 0 15 / 16%); padding-top: 18px; margin-top: 18px; }
  .st { height: auto; min-height: 0; }
  .hero__h1 { font-size: 32px; }
  .hero__kicker { font-size: 20px; }
  .h2 { font-size: 32px; }
  .apply { padding: 28px 22px; }
  .faq__q { font-size: 20px; padding: 20px; }
  .band { padding: 26px 22px; }
  .band__t { font-size: 24px; }
  .section { padding-block: 48px; }
}
