/* =========================================================
   Эпик мерч — стили сайта
   Брейкпоинты (как в ТЗ):
     ≥1200 — десктоп
     980–1199 — те же раскладки, кегли меньше
     640–979 — одна колонка, меню в бургер
     480–639 и 320–479 — цифры в столбик, кнопки на всю ширину
   ========================================================= */

/* ---------- 1. Переменные ---------- */
:root {
  --c-text: #201E1F;
  --c-text-2: #3A3632;
  --c-text-3: #4A4552;
  --c-lime: #DAFF02;
  --c-cta: #FE572A;
  --c-cta-hover: #E8481D;
  --c-violet: #685BC7;
  --c-bg: #FFFFFF;
  --c-bg-soft: #F5F4F8;
  --c-line: #DDDAE6;
  --c-line-soft: #E4E1EC;

  --f-head: "Unbounded", "Arial Black", sans-serif;
  --f-text: "Manrope", "Helvetica Neue", Arial, sans-serif;

  /* Кегли — по таблице из ТЗ, меняются на брейкпоинтах ниже */
  --fs-h1: 100px;
  --fs-h2: 56px;
  --fs-stat: 52px;
  --fs-offer: 20px;
  --fs-text: 16px;
  --fs-eyebrow: 13px;

  --gutter: 24px;        /* боковое поле контейнера */
  --radius: 6px;
}

@media (max-width: 1199px) {
  :root { --fs-h1: 72px; --fs-h2: 48px; --fs-stat: 40px; --fs-offer: 18px; --fs-eyebrow: 12px; }
}
@media (max-width: 979px) {
  :root { --fs-h1: 60px; --fs-h2: 40px; --fs-stat: 28px; --fs-offer: 17px; --fs-text: 15px; --fs-eyebrow: 12px; }
}
@media (max-width: 639px) {
  :root { --fs-h1: 46px; --fs-h2: 34px; --fs-stat: 30px; --fs-offer: 16px; --fs-text: 15px; --fs-eyebrow: 11px; --gutter: 20px; }
}
@media (max-width: 479px) {
  :root { --fs-h1: 38px; --fs-h2: 30px; --fs-stat: 28px; --fs-offer: 15px; --fs-text: 14px; --fs-eyebrow: 10px; --gutter: 16px; }
}

/* ---------- 2. Базовые стили ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-text);
  font-size: var(--fs-text);
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-bg);
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-cta); }

:focus-visible { outline: 3px solid var(--c-violet); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: calc(1200px + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- 3. Общие элементы ---------- */

/* Надзаголовок с лаймовой точкой */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-2);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--c-lime);
}

/* Подчёркивание под заголовками (с сайта на Tilda).
   Использовать так: <img class="underline" src="assets/underline.svg" alt="" width="284" height="14">
   Ширину задаёт класс секции, высота подстраивается сама. */
.underline { height: auto; }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0 38px;
  border: 0;
  border-radius: 999px;
  font-family: var(--f-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s;
}
.btn--cta { background: var(--c-cta); color: #FFFFFF; }
.btn--cta:hover { background: var(--c-cta-hover); color: #FFFFFF; }
.btn--small {
  min-height: 48px;
  padding: 0 26px;
  font-family: var(--f-text);
  font-size: 15px;
  letter-spacing: 0.04em;
}

/* Лаймовая плашка (Печать DTF) */
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--c-lime);
  font-weight: 700;
}
.pill:hover { color: var(--c-text); background: #CBEF00; }

/* Подчёркнутая ссылка */
.link-underline {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* ---------- 4. Шапка ---------- */
.header { position: relative; z-index: 50; background: var(--c-bg); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 36px;
  padding-bottom: 36px;
}

.header__logo img { height: 36px; width: auto; }

.nav { display: flex; align-items: center; gap: 36px; }

.nav__link {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav__link.pill { font-weight: 700; }

/* Мобильные элементы шапки на десктопе скрыты */
.header__dtf, .header__burger { display: none; }

@media (max-width: 1199px) {
  .nav { gap: 24px; }
  .nav__link { font-size: 14px; }
}

/* ---------- 5. Первый экран ---------- */
.hero {
  padding: 56px 0 72px;
  overflow: hidden;   /* декор не должен вылезать за край страницы */
  overflow: clip;
  isolation: isolate;   /* фиолетовое пятно лежит под текстом, но над фоном страницы */
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 1fr);
  grid-template-areas:
    "text  media"
    "stats stats";
  column-gap: 48px;
  row-gap: 64px;
  align-items: center;
}

.hero__text { grid-area: text; display: flex; flex-direction: column; align-items: flex-start; }

.hero__title {
  margin-top: 24px;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: var(--fs-h1);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.hero__underline { width: calc(var(--fs-h1) * 4.2); margin-top: 8px; }

.hero__offer {
  margin-top: 24px;
  max-width: 480px;
  font-size: var(--fs-offer);
  line-height: 1.5;
  color: var(--c-text-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 28px;
}

/* Фото с декором — повторяет композицию первого экрана на Tilda.
   Блок .hero__media равен самому фото (квадрат), весь декор
   позиционируется в процентах от него, поэтому пропорции
   одинаковые на любом десктопном экране. */
.hero__media {
  grid-area: media;
  position: relative;
  justify-self: end;
  width: calc(100% - 40px);   /* справа место под стрелку с дугой и точки */
  max-width: 500px;
  margin-right: 40px;
  aspect-ratio: 1 / 1;
}

/* Фиолетовое размытое пятно у нижнего левого угла фото */
.hero__media::before {
  content: "";
  position: absolute;
  left: -28%;
  top: 69%;
  width: 67%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 91, 199, 0.62) 0%, rgba(104, 91, 199, 0.32) 38%, rgba(104, 91, 199, 0) 70%);
  z-index: -1;           /* под всем содержимым первого экрана */
  pointer-events: none;
}

.hero__photo { position: relative; z-index: 1; width: 100%; }
.hero__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 41% 30%;
  border-radius: 12px;
}

.hero__frame,
.hero__dots,
.hero__arc,
.hero__badge { position: absolute; height: auto; pointer-events: none; }

.hero__dots  { left: 93.4%; top: 88.2%; width: 12.1%; z-index: 0; }   /* точки, частично за фото */
.hero__frame { left: 2.75%; top: -1.9%; width: 91%; z-index: 2; }     /* рамка поверх фото, как на Tilda */
.hero__arc   { left: 80.5%; top: 10.4%; width: 26%; z-index: 3; }     /* стрелка с дугой */

.hero__badge {
  width: 22.3%;
  top: -7%;
  left: -9.9%;               /* центр круга — у верхнего левого угла фото */
  z-index: 4;
  animation: badge-spin 36s linear infinite;   /* скорость: секунд на один оборот */
}

@keyframes badge-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .hero__badge { animation: none; }
  html { scroll-behavior: auto; }
}

/* Цифры */
.stats { grid-area: stats; display: flex; flex-wrap: wrap; row-gap: 24px; }

.stat { padding: 0 44px; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--c-line); }

.stat__num {
  display: block;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: var(--fs-stat);
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.stat__label { display: block; margin-top: 18px; color: var(--c-text-2); }

/* 980–1199: та же раскладка, декор чуть меньше */
@media (max-width: 1199px) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .stat { padding: 0 32px; }
}

/* ---------- 6. Планшет и телефон: 979 и уже ---------- */
@media (max-width: 979px) {

  /* Шапка */
  .header { border-bottom: 1px solid #EEECF3; }
  .header__inner { padding-top: 10px; padding-bottom: 10px; min-height: 64px; gap: 12px; }
  .header__logo { margin-right: auto; }
  .header__logo img { height: 26px; }

  .header__dtf { display: inline-flex; min-height: 36px; padding: 0 14px; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }

  .header__burger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    background: var(--c-bg);
    cursor: pointer;
  }
  .header__burger span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--c-text);
    transition: transform .2s, opacity .2s;
  }
  .header.is-open .header__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .header.is-open .header__burger span:nth-child(2) { opacity: 0; }
  .header.is-open .header__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* Выпадающее меню */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 16px 32px rgba(32, 30, 31, 0.08);
  }
  .header.is-open .nav { display: flex; }

  .nav__link {
    display: flex;
    align-items: center;
    min-height: 56px;
    font-size: 16px;
    border-bottom: 1px solid var(--c-line-soft);
  }
  .nav__link.pill {
    align-self: flex-start;
    min-height: 44px;
    margin: 12px 0;
    border-bottom: 0;
  }
  .nav .btn { margin-top: 20px; min-height: 56px; }

  /* Первый экран: одна колонка — текст, цифры, фото */
  .hero { padding: 28px 0 56px; }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "text"
      "stats"
      "media";
    row-gap: 32px;
  }
  .hero__title { margin-top: 18px; }
  .hero__offer { margin-top: 18px; max-width: 560px; }
  .hero__actions { margin-top: 22px; }

  .hero__media { justify-self: stretch; width: 100%; max-width: none; margin: 0; aspect-ratio: auto; }
  .hero__photo { width: 100%; }
  .hero__photo img { aspect-ratio: 16 / 10; object-position: 41% 30%; }

  /* Декор, включая круговую надпись, скрыт */
  .hero__frame, .hero__dots, .hero__arc, .hero__media::before, .hero__badge { display: none; }

  .stat { padding: 0 24px; }
}

/* ---------- 7. Телефон: 639 и уже ---------- */
@media (max-width: 639px) {
  .eyebrow { gap: 10px; }
  .eyebrow::before { width: 10px; height: 10px; }

  .btn { min-height: 58px; padding: 0 24px; font-size: 15px; }

  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; gap: 8px; }
  .hero__actions .link-underline { align-self: center; }

  .hero__photo img { aspect-ratio: 7 / 6; }

  /* Цифры в столбик */
  .stats { flex-direction: column; row-gap: 0; }
  .stat { padding: 14px 0; }
  .stat:first-child { padding-top: 0; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--c-line-soft); }
  .stat__label { margin-top: 6px; font-size: 14px; }
}

/* =========================================================
   8. Лента «Нам доверяют» (как на Tilda)
   ========================================================= */
.trust { background: var(--c-text); }

.trust__inner {
  display: flex;
  justify-content: center;
  align-items: stretch;       /* цветные полосы справа — на всю высоту ленты */
  gap: 22px;
  min-height: 76px;
}

.trust__label {
  align-self: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #D5D1CB;
}

.trust__logos {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* Все логотипы одной ширины, как на Tilda; VK — квадратный, поэтому уже */
.trust__logo { width: 76px; height: auto; }
.trust__logo--vk { width: 34px; }
.trust__logo--drinkit { width: 92px; }

/* Три цветные полосы справа */
.trust__stripes { display: flex; margin-left: 9px; }
.trust__stripes span { display: block; }
.trust__stripes span:nth-child(1) { width: 51px; background: var(--c-cta); }
.trust__stripes span:nth-child(2) { width: 105px; background: var(--c-violet); }
.trust__stripes span:nth-child(3) { width: 57px; background: var(--c-lime); }

/* 980–1199: всё чуть меньше, чтобы ряд с полосами поместился */
@media (max-width: 1199px) {
  .trust__inner, .trust__logos { gap: 14px; }
  .trust__logo { width: 60px; }
  .trust__logo--vk { width: 26px; }
  .trust__logo--drinkit { width: 72px; }
  .trust__stripes { margin-left: 6px; } .trust__stripes span:nth-child(1) { width: 31px; } .trust__stripes span:nth-child(2) { width: 63px; } .trust__stripes span:nth-child(3) { width: 34px; }
}

/* 979 и уже: подписи сверху и снизу, логотипы переносятся по центру,
   полосы — тонкой линией по нижнему краю ленты */
@media (max-width: 979px) {
  .trust { position: relative; }
  .trust__inner {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding-top: 28px;
    padding-bottom: 34px;
    text-align: center;
  }
  .trust__logos { flex-wrap: wrap; justify-content: center; gap: 20px 28px; max-width: 520px; }
  .trust__logo { width: 76px; }
  .trust__logo--vk { width: 34px; }
  .trust__logo--drinkit { width: 92px; }

  .trust__stripes {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    margin: 0;
  }
  .trust__stripes span:nth-child(1) { width: auto; flex: 51; }
  .trust__stripes span:nth-child(2) { width: auto; flex: 105; }
  .trust__stripes span:nth-child(3) { width: auto; flex: 57; }
}

/* =========================================================
   9. Общие элементы секций: отступы и заголовок
   (используются в «Процессе» и дальше в «Ассортименте»)
   ========================================================= */
.section { padding: 104px 0; }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 52px;
}
.section-head__title {
  margin-top: 14px;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: -0.035em;
}
.section-head__underline { width: calc(var(--fs-h2) * 5.4); margin-top: 8px; }
.section-head__lead {          /* поясняющий текст — под заголовком, слева */
  max-width: 520px;
  font-size: var(--fs-offer);
  line-height: 1.5;
  color: var(--c-text-2);
}

/* Серая плашка-тег */
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: #F1EFF6;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-2);
}

@media (max-width: 979px) {
  .section { padding: 72px 0; }
  .section-head { gap: 16px; margin-bottom: 36px; }
}
@media (max-width: 639px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  .tag { min-height: 28px; padding: 0 12px; font-size: 12px; }
}

/* =========================================================
   10. Процесс: 5 шагов
   ========================================================= */
.process__steps {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}
/* линия, соединяющая точки: от первой до последней */
.process__steps::before {
  content: "";
  position: absolute;
  left: 8px;
  right: calc(20% - 27px);
  top: 61px;
  height: 2px;
  background: var(--c-line-soft);
}

.step__marker { display: flex; flex-direction: column; }
.step__num {
  font-family: var(--f-head);
  font-size: 30px;
  font-weight: 800;
  line-height: 36px;
}
.step__dot {
  position: relative;
  width: 16px;
  height: 16px;
  margin: 18px 0 26px;
  border-radius: 999px;
  background: #C9C5D6;
}
.step--first .step__num { color: var(--c-cta); }
.step--first .step__dot { background: var(--c-cta); }
.step:last-child .step__dot { background: var(--c-lime); }   /* финиш — лаймовый */

.step__title {
  margin-bottom: 10px;
  font-family: var(--f-head);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}
.step__text { font-size: 14px; line-height: 1.55; color: var(--c-text-2); }
.step__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

@media (max-width: 1199px) {
  .process__steps { gap: 16px; }
  .process__steps::before { right: calc(20% - 21px); }
  .step__num { font-size: 26px; }
  .step__title { font-size: 15px; }
}

/* 979 и уже: вертикальная лента шагов, как в мобильном макете */
@media (max-width: 979px) {
  .process__steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .process__steps::before { display: none; }

  .step { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; }
  .step__marker { align-items: center; }
  .step__marker::after {       /* вертикальная линия до следующего шага */
    content: "";
    flex-grow: 1;
    width: 2px;
    margin-top: 6px;
    background: var(--c-line-soft);
  }
  .step:last-child .step__marker::after { display: none; }

  .step__num { font-size: 15px; line-height: 1.2; }
  .step__dot { width: 12px; height: 12px; margin: 8px 0 0; }
  .step__body { padding-bottom: 24px; }
  .step:last-child .step__body { padding-bottom: 0; }
  .step__title { font-size: 16px; margin-bottom: 6px; }
  .step__text { font-size: 14px; line-height: 1.5; }
  .step__tags { margin-top: 10px; }
}

/* =========================================================
   11. Леопардовая заливка текста, как «ЭПИК» в логотипе
   Использовать так: <span class="leopard">PRO</span>
   ========================================================= */
.leopard {
  background: #726BC9 url("../assets/leopard.svg") 0 0 / 1.32em auto repeat;   /* узор из логотипа */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* =========================================================
   12. Ассортимент: 4 категории по 3 карточки
   ========================================================= */
.category {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 40px;
  padding: 36px 0 44px;
  border-top: 1px solid var(--c-line-soft);
}
.category__num {
  font-family: var(--f-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-cta);
}
.category__title {
  margin-top: 14px;
  font-family: var(--f-head);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.category__text { margin-top: 14px; font-size: 15px; line-height: 1.55; color: var(--c-text-2); }

.category__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Фото изделия: квадрат. Пока фото нет — светлая заглушка */
.card__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--c-bg-soft);
  color: #9A95A8;
  font-size: 13px;
  font-weight: 600;
}
.card__photo img { width: 100%; height: 100%; object-fit: cover; }
.card__title {
  margin: 16px 0 0;
  font-family: var(--f-head);
  font-size: 16px;
  font-weight: 700;
}
.card__text { margin-top: 6px; font-size: 14px; color: var(--c-text-3); }

/* Фиолетовая плашка внизу секции */
.custom-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 24px;
  padding: 40px 48px;
  border-radius: 16px;
  background: var(--c-violet);
  color: #FFFFFF;
}
.custom-banner__text {
  max-width: 660px;
  font-family: var(--f-head);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.custom-banner__btn { flex: none; background: var(--c-lime); color: var(--c-text); }
.custom-banner__btn:hover { background: #CBEF00; color: var(--c-text); }

@media (max-width: 1199px) {
  .category { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; }
  .category__title { font-size: 26px; }
  .category__cards { gap: 16px; }
  .custom-banner__text { font-size: 22px; }
}

/* 979 и уже: описание категории над карточками */
@media (max-width: 979px) {
  .category { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 28px 0 32px; }
  .category__text { max-width: 560px; }
  .custom-banner { flex-direction: column; align-items: flex-start; padding: 32px; }
}

/* 639 и уже: карточки листаются пальцем вбок */
@media (max-width: 639px) {
  .category__title { font-size: 22px; margin-top: 8px; }
  .category__text { margin-top: 8px; font-size: 14px; }
  .category__cards {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1);   /* ряд до краёв экрана */
    padding: 0 var(--gutter) 4px;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .category__cards::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: start; }
  .card__title { margin-top: 12px; font-size: 15px; }

  .custom-banner { padding: 26px 22px; border-radius: 14px; }
  .custom-banner__text { font-size: 19px; }
  .custom-banner__btn { width: 100%; }
}

/* =========================================================
   13. Полоса технологий нанесения (между «Процессом» и «Ассортиментом»)
   ========================================================= */
.tech { background: var(--c-text); }   /* чёрная, как лента «Нам доверяют» */

.tech__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 22px;
  margin: 0;
  padding: 26px 0;
  list-style: none;
}
.tech__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #F3F0EB;
}
.tech__item::before {          /* лаймовая точка перед каждой технологией */
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--c-lime);
}

@media (max-width: 1199px) {
  .tech__list { gap: 10px 10px; }
  .tech__item { gap: 6px; font-size: 10px; }
}
@media (max-width: 639px) {
  .tech__list { gap: 10px 20px; padding: 20px 0; }
  .tech__item { gap: 8px; font-size: 12px; }
  .tech__item::before { width: 6px; height: 6px; }
}

/* =========================================================
   14. Раскрывающиеся модели в ассортименте
   ========================================================= */
/* Карточка-кнопка: выглядит как обычная карточка */
.card__toggle {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.card__toggle .card__photo { position: relative; outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .2s; }
.card__toggle:hover .card__photo,
.card.is-open .card__photo { outline-color: var(--c-violet); }
.card__toggle .card__title, .card__toggle .card__text { display: block; }

.card__badge {                    /* «4 модели» в углу фото */
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--c-lime);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text);
}
.card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-violet);
}
.card__more::after { content: "↓"; transition: transform .2s; }
.card.is-open .card__more::after { transform: rotate(180deg); }

/* Панель с моделями — на всю ширину категории */
.models-panel {
  grid-column: 1 / -1;
  padding: 24px;
  border-radius: 16px;
  background: var(--c-bg-soft);
}
.models-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.models-panel__title { font-family: var(--f-head); font-size: 20px; font-weight: 700; }
.models-panel__close {
  width: 40px; height: 40px; flex: none;
  border: 1px solid var(--c-line); border-radius: 999px;
  background: var(--c-bg); font-size: 22px; line-height: 1; cursor: pointer;
}

.models {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.model {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 16px;
  border-radius: 12px;
  background: var(--c-bg);
}
.model__title { margin: 14px 0 0; font-family: var(--f-head); font-size: 16px; font-weight: 700; }
.model__specs { display: grid; gap: 5px; margin: 10px 0 0; }
.model__spec { display: grid; grid-template-columns: 76px 1fr; gap: 8px; font-size: 13px; line-height: 1.4; }
.model__spec dt { color: var(--c-text-3); }
.model__spec dd { margin: 0; }
.model__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.model__tags .tag { min-height: 26px; padding: 0 10px; font-size: 12px; }
.model__bottom { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 16px; }
.model__price { font-family: var(--f-head); font-size: 17px; font-weight: 800; }
.model__btn { width: 100%; min-height: 44px; padding: 0 16px; font-size: 13px; }

/* Доп. «модель»: своя разработка */
.model--custom {
  justify-content: flex-end;
  gap: 10px;
  padding: 20px;
  background: var(--c-violet);
  color: #FFFFFF;
}
.model--custom__title { font-family: var(--f-head); font-size: 20px; font-weight: 700; line-height: 1.2; }
.model--custom__text { font-size: 14px; line-height: 1.5; opacity: .9; }
.model--custom__btn { margin-top: 8px; width: 100%; min-height: 44px; padding: 0 10px; font-size: 12px; white-space: nowrap; background: var(--c-lime); color: var(--c-text); }
.model--custom__btn:hover { background: #CBEF00; color: var(--c-text); }

/* 639 и уже: модели листаются пальцем вбок, как карточки */
@media (max-width: 639px) {
  .models-panel { margin: 0 calc(var(--gutter) * -1); padding: 20px 0; border-radius: 0; }
  .models-panel__head { padding: 0 var(--gutter); }
  .models-panel__title { font-size: 17px; }
  .models {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 var(--gutter) 4px;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .models::-webkit-scrollbar { display: none; }
  .model { scroll-snap-align: start; }
}

/* =========================================================
   15. Фоновый декор секций: пятна фирменных цветов, стикер, леопард
   ========================================================= */
.process, .assortment { position: relative; isolation: isolate; overflow: hidden; overflow: clip; }

/* «Процесс»: лаймовое пятно справа сверху и круглый стикер «5 шагов до готового мерча» */
.process::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -80px;
  right: -140px;
  width: 560px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(218, 255, 2, 0.42) 0%, rgba(218, 255, 2, 0.16) 40%, rgba(218, 255, 2, 0) 70%);
  pointer-events: none;
}
.process::after {
  content: "5 шагов\Aдо готового\Aмерча";
  white-space: pre;
  position: absolute;
  top: 88px;
  right: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--c-lime);
  box-shadow: 0 10px 24px rgba(32, 30, 31, 0.10);
  transform: rotate(-12deg);
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  color: var(--c-text);
  pointer-events: none;
}

/* «Ассортимент»: оранжевое пятно слева у заголовка */
.assortment::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 20px;
  left: -220px;
  width: 600px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 87, 42, 0.20) 0%, rgba(254, 87, 42, 0.08) 40%, rgba(254, 87, 42, 0) 70%);
  pointer-events: none;
}

/* Фиолетовая плашка: леопардовые пятна, растворяющиеся к центру */
.custom-banner { position: relative; overflow: hidden; isolation: isolate; }
.custom-banner::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -30%;
  right: -4%;
  width: 46%;
  height: 160%;
  background: url("../assets/leopard.svg") 0 0 / 300px auto repeat;
  opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse at 80% 50%, #000 0%, rgba(0,0,0,.6) 35%, transparent 70%);
  mask-image: radial-gradient(ellipse at 80% 50%, #000 0%, rgba(0,0,0,.6) 35%, transparent 70%);
  pointer-events: none;
}
.custom-banner__btn { position: relative; }

/* На телефоне декор спокойнее: без точек, пятна меньше */
@media (max-width: 639px) {
  .process::after { width: 96px; top: 40px; right: 16px; font-size: 9px; }
  .process::before { width: 340px; right: -140px; top: -40px; }
  .assortment::before { width: 360px; left: -180px; }
  .custom-banner::after { width: 80%; top: -20%; right: -30%; opacity: .35; }
}

/* =========================================================
   16. Форма заявки «Обсудим ваш проект»
   ========================================================= */
.lead { position: relative; isolation: isolate; overflow: hidden; overflow: clip; }
.lead::before {                       /* фиолетовое пятно — как на первом экране, замыкает страницу */
  content: "";
  position: absolute;
  z-index: -1;
  bottom: 40px;
  left: -180px;
  width: 620px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 91, 199, 0.30) 0%, rgba(104, 91, 199, 0.12) 40%, rgba(104, 91, 199, 0) 70%);
  pointer-events: none;
}

.lead__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: 64px;
  align-items: start;
}
.lead__intro { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.lead__intro .section-head__title { margin-top: 0; }
.lead__marker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--c-lime);
  font-weight: 700;
  font-size: 14px;
}
.lead__marker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-text); }
.lead__badge {
  width: 150px;
  height: auto;
  margin-top: 24px;
  animation: badge-spin 36s linear infinite;
}

/* Карточка формы */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px;
  border-radius: 20px;
  background: var(--c-bg-soft);
}
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field__label { display: block; margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 700; }
.field__optional { font-weight: 400; color: var(--c-text-3); }
.field__input {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1.5px solid var(--c-line);
  border-radius: 12px;
  background: var(--c-bg);
  font: inherit;
  font-size: 16px;               /* 16px — чтобы iPhone не увеличивал страницу при вводе */
  color: var(--c-text);
  transition: border-color .2s;
}
.field__input--area { min-height: 110px; resize: vertical; line-height: 1.45; }
.field__input::placeholder { color: #A7A2B3; }
.field__input:focus { outline: none; border-color: var(--c-violet); }
.field__input[aria-invalid="true"] { border-color: var(--c-cta); }
.field__error { min-height: 0; margin-top: 6px; font-size: 13px; color: #D93F16; }
.field__error:empty { display: none; }

/* Выбор способа связи — плашки-переключатели */
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice__item { position: relative; cursor: pointer; }
.choice__item input { position: absolute; opacity: 0; pointer-events: none; }
.choice__item span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-bg);
  font-weight: 600;
  font-size: 15px;
  transition: background-color .2s, border-color .2s, color .2s;
}
.choice__item:hover span { border-color: var(--c-violet); }
.choice__item input:checked + span { background: var(--c-text); border-color: var(--c-text); color: #FFFFFF; }
.choice__item input:focus-visible + span { outline: 3px solid var(--c-violet); outline-offset: 2px; }

/* Ловушка для ботов — скрыта от людей */
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--c-text-2); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--c-violet); }
.consent a { text-decoration: underline; text-underline-offset: 3px; }

.lead-form__submit { width: 100%; margin-top: 4px; }
.lead-form__submit:disabled { opacity: .6; cursor: default; }
.lead-form__status:empty { display: none; }
.lead-form__status { padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.lead-form__status.is-ok { background: #EAFBC2; color: #2F4700; }
.lead-form__status.is-error { background: #FFE6DE; color: #9C2A0B; }

@media (max-width: 979px) {
  .lead__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .lead__intro { gap: 16px; }
  .lead__badge { display: none; }
  .lead-form { padding: 28px; }
}
@media (max-width: 639px) {
  .lead-form { margin: 0 calc(var(--gutter) * -1); padding: 24px var(--gutter); border-radius: 0; }
  .choice__item span { padding: 0 14px; font-size: 14px; }
}

/* =========================================================
   17. Текстовые страницы: политика, согласие
   ========================================================= */
.doc { padding: 32px 0 96px; }
.doc__inner { max-width: 820px; }
.doc__crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: 14px; color: var(--c-text-3); }
.doc__crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.doc__title {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(26px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.doc__meta { margin-top: 12px; font-size: 14px; color: var(--c-text-3); }
.doc h2 { margin: 36px 0 12px; font-family: var(--f-head); font-size: 20px; font-weight: 700; line-height: 1.25; }
.doc p, .doc li { font-size: 16px; line-height: 1.65; color: var(--c-text-2); }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 10px 0 12px; padding-left: 22px; list-style: disc; }
.doc li::marker { color: var(--c-violet); }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--c-violet); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 639px) {
  .doc { padding: 20px 0 64px; }
  .doc h2 { font-size: 18px; margin-top: 28px; }
  .doc p, .doc li { font-size: 15px; }
}

/* =========================================================
   18. Контакты и подвал
   ========================================================= */
.contacts__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: stretch;
}
.contacts__info { display: flex; flex-direction: column; gap: 26px; }
.contact__label {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-3);
}
.contact__value {
  display: inline-block;
  font-family: var(--f-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-text);
}
a.contact__value:hover { color: var(--c-violet); }
.contact__note { margin-top: 4px; font-size: 15px; color: var(--c-text-2); }
.contact__route { margin-top: 12px; }
.contact__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.msg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1.5px solid var(--c-line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--c-text);
  background: var(--c-bg);
}
a.msg:hover { border-color: var(--c-violet); }
.msg__name {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--c-lime);
  font-size: 12px;
  font-weight: 700;
}
.contacts__map {
  min-height: 460px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--c-bg-soft);
}
.contacts__map iframe { display: block; width: 100%; height: 100%; min-height: 460px; border: 0; }

@media (max-width: 979px) {
  .contacts__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .contacts__map, .contacts__map iframe { min-height: 360px; }
}
@media (max-width: 639px) {
  .contact__value { font-size: 19px; }
  .contacts__map { margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
  .contacts__map, .contacts__map iframe { min-height: 320px; }
}

/* Подвал: тёмный, как ленты «Нам доверяют» и технологий */
.footer { position: relative; background: var(--c-text); color: #D9D5DE; }
.footer__inner {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 24px 56px;
  align-items: start;
  padding: 48px var(--gutter) 56px;
}
.footer__logo img { width: 150px; height: auto; }
.footer__contacts { display: flex; flex-direction: column; gap: 8px; font-family: var(--f-head); font-weight: 700; font-size: 15px; color: #FFFFFF; }
.footer__contacts a:hover, .footer__legal a:hover { color: var(--c-lime); }
.footer__legal { justify-self: end; text-align: right; font-size: 13px; line-height: 1.6; color: #A9A4B0; }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer__stripes { display: flex; height: 6px; }
.footer__stripes span:nth-child(1) { flex: 1; background: var(--c-cta); }
.footer__stripes span:nth-child(2) { flex: 2; background: var(--c-violet); }
.footer__stripes span:nth-child(3) { flex: 1; background: var(--c-lime); }

@media (max-width: 979px) {
  .footer__inner { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 40px var(--gutter) 44px; }
  .footer__legal { justify-self: start; text-align: left; }
}

/* =========================================================
   19. «Обсудим ваш проект» на тёмном фоне
   ========================================================= */
.lead { background: var(--c-text); color: #F3F0EB; }
.lead .eyebrow { color: #D9D5DE; }
.lead .section-head__title { color: #FFFFFF; }
.lead .section-head__lead { color: #C9C5D2; }
.lead__marker { color: var(--c-text); }
.lead::before {                       /* на тёмном пятно ярче */
  background: radial-gradient(circle, rgba(114, 107, 201, 0.55) 0%, rgba(114, 107, 201, 0.20) 40%, rgba(114, 107, 201, 0) 70%);
}
.lead::after {                        /* второе, лаймовое пятно за формой */
  content: "";
  position: absolute;
  z-index: -1;
  top: -120px;
  right: -160px;
  width: 520px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(218, 255, 2, 0.16) 0%, rgba(218, 255, 2, 0.05) 40%, rgba(218, 255, 2, 0) 70%);
  pointer-events: none;
}
.lead-form { background: #FFFFFF; color: var(--c-text); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
@media (max-width: 639px) {
  .lead-form { box-shadow: none; }
  .lead::after { width: 320px; right: -140px; top: -80px; }
}

/* =========================================================
   20. Круговая надпись: новая, тонкая, крупнее
   ========================================================= */
.hero__badge { width: 32%; top: -11.85%; left: -14.75%; }   /* центр круга на прежнем месте — у угла фото */
.lead__badge { width: 210px; filter: brightness(1.6) saturate(1.1); }   /* на тёмном — светлее */

/* =========================================================
   21. Мобильное меню на весь экран
   ========================================================= */
.nav__extra { display: none; }
@media (max-width: 979px) {
  .nav {
    min-height: calc(100vh - 64px);
    min-height: calc(100dvh - 64px);   /* меню закрывает страницу целиком, ничего не просвечивает */
    overflow-y: auto;
    box-shadow: none;
  }
  html:has(.header.is-open) { overflow: hidden; }   /* страница под меню не прокручивается */
  .nav__extra {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 32px;
    font-size: 15px;
    color: var(--c-text-2);
  }
  .nav__extra a { font-family: var(--f-head); font-weight: 700; font-size: 17px; color: var(--c-text); }
}

/* =========================================================
   22. Меню: лаймовое подчёркивание при наведении (компьютер)
   ========================================================= */
@media (min-width: 980px) {
  .nav__link:not(.pill) {
    padding: 6px 0;
    background: url("../assets/underline.svg") left bottom / 0 7px no-repeat;
    transition: background-size .25s ease;
  }
  .nav__link:not(.pill):hover,
  .nav__link:not(.pill):focus-visible { background-size: 100% 7px; }
}

/* =========================================================
   24. «Умная» шапка: закреплена, прячется при прокрутке вниз
   ========================================================= */
html { scroll-padding-top: 88px; }          /* заголовок раздела не уходит под шапку при переходе по меню */
.header {
  position: sticky;
  top: 0;
  transition: transform .3s ease, box-shadow .3s ease;
}
.header__inner { transition: padding .25s ease; }
.header.is-stuck { box-shadow: 0 6px 20px rgba(32, 30, 31, 0.08); }
.header.is-stuck .header__inner { padding-top: 16px; padding-bottom: 16px; }
.header.is-hidden { transform: translateY(-100%); box-shadow: none; }
@media (max-width: 979px) {
  html { scroll-padding-top: 72px; }
  .header.is-stuck .header__inner { padding-top: 10px; padding-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .header, .header__inner { transition: none; }
}

/* =========================================================
   25. Страница DTF
   ========================================================= */
.link-underline { cursor: pointer; }
.dtf-hero { padding: 40px 0 72px; }
.dtf-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 64px; align-items: center; }
.dtf-hero__title {
  margin-top: 14px;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: var(--fs-h1);
  line-height: .95;
  letter-spacing: -0.04em;
}
.dtf-hero__media { position: relative; }
.dtf-hero__photo {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; border-radius: 16px;
  background: radial-gradient(circle at 30% 20%, rgba(114,107,201,.35), transparent 60%), var(--c-text);
  color: #C9C5D2; font-weight: 700; text-align: center; line-height: 1.5;
}

.dtf-tiles-wrap { padding-bottom: 24px; }
.dtf-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.dtf-tile { padding: 26px 24px 28px; border-radius: 14px; background: var(--c-bg-soft); }
.dtf-tile:last-child { background: var(--c-text); color: #F3F0EB; }
.dtf-tile:last-child .dtf-tile__title { color: var(--c-lime); }
.dtf-tile__title { margin: 0 0 10px; font-family: var(--f-head); font-size: 18px; font-weight: 700; line-height: 1.2; }
.dtf-tile__text { font-size: 14px; line-height: 1.5; color: inherit; opacity: .85; }

.price-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-radius: 12px; background: var(--c-bg-soft); }
.price-row__range { font-size: 16px; font-weight: 600; }
.price-row__value { font-family: var(--f-head); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.price-row:last-child { background: var(--c-text); color: #F3F0EB; }
.price-row:last-child .price-row__value { color: var(--c-lime); }

/* Калькулятор */
.calc { padding: 24px; border-radius: 20px; background: var(--c-bg-soft); }
.calc__items { display: flex; flex-direction: column; gap: 14px; }
.calc__item { padding: 20px; border-radius: 14px; background: var(--c-bg); }
.calc__item-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding-bottom: 16px; border-bottom: 1px solid var(--c-line-soft); }
.calc__num { align-self: center; font-family: var(--f-head); font-weight: 800; font-size: 18px; color: var(--c-cta); }
.calc__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.calc__field--type { flex: 1 1 240px; max-width: 320px; }
.calc__field--qty { flex: 0 0 140px; }
.calc__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-3); }
.calc__input {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--c-line); border-radius: 10px; background: var(--c-bg);
  font: inherit; font-size: 16px; color: var(--c-text);
}
.calc__input:focus { outline: none; border-color: var(--c-violet); }
.calc__static { display: flex; align-items: center; min-height: 48px; font-weight: 600; }
.calc__tier { flex: 1 1 200px; align-self: center; font-size: 13px; color: var(--c-text-3); }
.calc__places { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.calc__place { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) 40px; gap: 12px; align-items: end; }
.calc__price { display: flex; align-items: center; min-height: 48px; font-weight: 700; }
.calc__remove, .calc__remove-gap { width: 40px; height: 40px; margin-bottom: 4px; }
.calc__remove { border: 1px solid var(--c-line); border-radius: 50%; background: var(--c-bg); font-size: 20px; line-height: 1; cursor: pointer; }
.calc__remove:hover { border-color: var(--c-cta); color: var(--c-cta); }
.calc__item-head .calc__remove { margin: 0 0 4px auto; }
.calc__warn { grid-column: 1 / -1; margin: 0; font-size: 13px; color: #9C2A0B; }
.calc__add { margin-top: 12px; padding: 10px 18px; border: 1.5px dashed var(--c-line); border-radius: 999px; background: none; font: inherit; font-weight: 700; font-size: 14px; color: var(--c-violet); cursor: pointer; }
.calc__add:hover { border-color: var(--c-violet); }
.calc__add--item { margin-top: 16px; background: var(--c-bg); border-style: solid; }

.calc__totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.calc__total { padding: 18px 20px; border-radius: 14px; background: var(--c-bg); }
.calc__total-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-3); }
.calc__total-value { margin-top: 6px; font-family: var(--f-head); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.calc__total-note { margin-top: 4px; font-size: 13px; color: var(--c-text-3); }
.calc__total--sum { background: var(--c-text); color: #FFFFFF; }
.calc__total--sum .calc__total-label, .calc__total--sum .calc__total-note { color: #C9C5D2; }
.calc__total--sum .calc__total-value { color: var(--c-lime); }

.calc-send { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 16px; padding: 18px; border-radius: 14px; background: var(--c-bg); }
.calc-send__btn { min-height: 48px; padding: 0 22px; font-size: 14px; white-space: nowrap; }
.calc-send__consent, .calc-send__hint, .calc-send__status { grid-column: 1 / -1; }
.calc-send__hint { font-size: 13px; color: var(--c-text-3); }
.calc-send__hint .link-underline { margin-left: 6px; color: var(--c-text); font-weight: 700; }
.calc-send__status:empty { display: none; }
.calc-send__status { padding: 12px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.calc-send__status.is-ok { background: #EAFBC2; color: #2F4700; }
.calc-send__status.is-error { background: #FFE6DE; color: #9C2A0B; }

/* Требования к макету */
.req-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; margin: 0; padding: 0; list-style: none; }
.req { padding-top: 16px; border-top: 2px solid var(--c-text); }
.req__title { margin: 0 0 8px; font-family: var(--f-head); font-size: 17px; font-weight: 700; }
.req__text { font-size: 14px; line-height: 1.55; color: var(--c-text-2); }

/* Тёмная полоса */
.dtf-cta { background: var(--c-text); color: #FFFFFF; }
.dtf-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 56px; }
.dtf-cta__title { font-family: var(--f-head); font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; max-width: 520px; }
.dtf-cta__note { margin-top: 8px; font-size: 14px; color: #C9C5D2; }
.dtf-cta__phone { font-family: var(--f-head); font-size: 22px; font-weight: 700; color: #FFFFFF; white-space: nowrap; }
.dtf-cta__phone:hover { color: var(--c-lime); }
.dtf-cta__btn { background: var(--c-lime); color: var(--c-text); }
.dtf-cta__btn:hover { background: #CBEF00; color: var(--c-text); }
.dtf-cta + .footer .footer__inner { border-top: 1px solid #34313A; }

@media (max-width: 1199px) {
  .dtf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 979px) {
  .dtf-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .dtf-hero__photo { aspect-ratio: 4 / 3; }
  .calc__place { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .calc__field--place { grid-column: 1 / -1; }
  .calc__field--price { grid-column: 1 / 2; }
  .calc__place .calc__remove, .calc__place .calc__remove-gap { grid-column: 2 / 3; justify-self: end; }
  .calc__place { padding-bottom: 12px; border-bottom: 1px dashed var(--c-line-soft); }
  .calc__totals { grid-template-columns: minmax(0, 1fr); }
  .calc-send { grid-template-columns: minmax(0, 1fr); }
  .calc-send__btn { width: 100%; }
  .req-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dtf-cta__title { font-size: 22px; }
}
@media (max-width: 639px) {
  .dtf-hero { padding: 24px 0 48px; }
  .dtf-tiles { grid-template-columns: minmax(0, 1fr); }
  .price-row { padding: 14px 16px; }
  .price-row__value { font-size: 20px; }
  .calc { margin: 0 calc(var(--gutter) * -1); padding: 16px var(--gutter); border-radius: 0; }
  .calc__item { padding: 16px; }
  .calc__field--type, .calc__field--qty { flex: 1 1 100%; max-width: none; }
  .req-list { grid-template-columns: minmax(0, 1fr); }
  .dtf-cta__btn { width: 100%; }
}

/* =========================================================
   26. DTF: выбор способа связи в отправке расчёта
   ========================================================= */
.calc-send__choice { grid-column: 1 / -1; margin: 0; padding: 0; border: 0; min-width: 0; }
.calc-send__choice .calc__label { display: block; margin-bottom: 8px; padding: 0; }

/* =========================================================
   27. DTF: меньше белого — тёмный прайс, сиреневый калькулятор
   ========================================================= */
/* Прайс на тёмном фоне, как блок заявки на главной */
.dtf-price { position: relative; isolation: isolate; overflow: hidden; overflow: clip; background: var(--c-text); color: #F3F0EB; }
.dtf-price::before {
  content: ""; position: absolute; z-index: -1; top: -140px; right: -160px; width: 560px; aspect-ratio: 1 / 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(114, 107, 201, 0.50) 0%, rgba(114, 107, 201, 0.18) 40%, rgba(114, 107, 201, 0) 70%);
  pointer-events: none;
}
.dtf-price .eyebrow { color: #D9D5DE; }
.dtf-price .section-head__title { color: #FFFFFF; }
.dtf-price .section-head__lead { color: #C9C5D2; }
.dtf-price .price-row { background: #2C2A2F; }
.dtf-price .price-row__range { color: #D9D5DE; }
.dtf-price .price-row:last-child { background: var(--c-lime); color: var(--c-text); }
.dtf-price .price-row:last-child .price-row__range,
.dtf-price .price-row:last-child .price-row__value { color: var(--c-text); }

/* Калькулятор на мягком сиреневом фоне, карточки белые */
.dtf-calc { background: #EFEDF9; }
.dtf-calc .calc { background: transparent; padding: 0; }
.dtf-calc .calc__add--item { background: #FFFFFF; }
@media (max-width: 639px) {
  .dtf-calc .calc { margin: 0; padding: 0; }
}

/* =========================================================
   28. DTF: цветные плашки прайса — от тёмно-фиолетовой к лаймовой
   ========================================================= */
.dtf-price .price-row { color: #FFFFFF; }
.dtf-price .price-row__range { color: rgba(255, 255, 255, 0.82); }
.dtf-price .price-row:nth-child(1) { background: #3B3570; }
.dtf-price .price-row:nth-child(2) { background: #463F88; }
.dtf-price .price-row:nth-child(3) { background: #5249A0; }
.dtf-price .price-row:nth-child(4) { background: #685BC7; }

/* =========================================================
   29. DTF: фото в первом экране
   ========================================================= */
.dtf-hero__photo { overflow: hidden; }
.dtf-hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }

/* =========================================================
   30. Логотип крупнее
   ========================================================= */
.header__logo img { height: 50px; }
.header.is-stuck .header__logo img { height: 42px; }
.header__logo img { transition: height .25s ease; }
.footer__logo img { width: 200px; }
@media (max-width: 1199px) {
  .header__logo img { height: 44px; }
  .header.is-stuck .header__logo img { height: 38px; }
}
@media (max-width: 979px) {
  .header__logo img, .header.is-stuck .header__logo img { height: 34px; }
}
@media (max-width: 374px) {
  .header__logo img, .header.is-stuck .header__logo img { height: 30px; }
}

/* =========================================================
   31. Логотип ещё крупнее
   ========================================================= */
.header__logo img { height: 60px; }
.header.is-stuck .header__logo img { height: 48px; }
.footer__logo img { width: 230px; }
@media (max-width: 1199px) {
  .header__logo img { height: 52px; }
  .header.is-stuck .header__logo img { height: 44px; }
}
@media (max-width: 979px) {
  .header__logo img, .header.is-stuck .header__logo img { height: 38px; }
}
@media (max-width: 374px) {
  .header__logo img, .header.is-stuck .header__logo img { height: 33px; }
}

/* =========================================================
   32. Калькулятор: выпадающие списки одной высоты с полями (Safari)
   ========================================================= */
.calc__input { height: 48px; }
select.calc__input {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23201E1F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px;
  cursor: pointer;
}
select.calc__input::-ms-expand { display: none; }

/* =========================================================
   33. Страница 404
   ========================================================= */
.e404 { position: relative; isolation: isolate; overflow: hidden; overflow: clip; padding: 72px 0 120px; }
.e404::before {
  content: ""; position: absolute; z-index: -1; right: -180px; top: -120px; width: 620px; aspect-ratio: 1 / 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 91, 199, 0.28) 0%, rgba(104, 91, 199, 0.10) 40%, rgba(104, 91, 199, 0) 70%);
  pointer-events: none;
}
.e404__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.e404__title { font-family: var(--f-head); font-weight: 800; font-size: clamp(120px, 24vw, 260px); line-height: .9; letter-spacing: -0.05em; }
.e404__text { max-width: 560px; font-size: 18px; line-height: 1.55; color: var(--c-text-2); }
.e404__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 10px; }
.e404__btn-dtf { background: var(--c-lime); color: var(--c-text); }
.e404__btn-dtf:hover { background: #CBEF00; color: var(--c-text); }
@media (max-width: 639px) {
  .e404 { padding: 40px 0 72px; }
  .e404__text { font-size: 16px; }
  .e404__actions .btn { width: 100%; }
}

/* =========================================================
   34. Модели: материал на фото, совет и выноска про подбор ткани
   ========================================================= */
.model__specs { gap: 8px; }
.model__spec { grid-template-columns: minmax(0, 1fr); gap: 1px; }
.model__spec dt { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.model__tip {
  margin: 10px 0 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: #F3FFC0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--c-text);
}
.model__tip b { font-weight: 700; }

/* Выноска-стикер «Поможем подобрать ткань» у категории «Одежда» */
.fabric-callout {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 250px;
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 16px 16px 16px 4px;
  background: var(--c-violet);
  box-shadow: 0 12px 26px rgba(104, 91, 199, 0.28);
  transform: rotate(-4deg);
  color: #FFFFFF;
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.fabric-callout__star { flex: none; color: var(--c-lime); font-size: 22px; line-height: 1; }
@media (max-width: 979px) {
  .fabric-callout { max-width: 320px; margin-top: 16px; transform: rotate(-2deg); }
}

/* =========================================================
   35. Уведомление о cookie
   ========================================================= */
.cookie {
  position: fixed;
  z-index: 200;
  left: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 460px;
  padding: 16px 16px 16px 20px;
  border-radius: 16px;
  background: var(--c-text);
  box-shadow: 0 16px 40px rgba(32, 30, 31, 0.28);
  color: #F3F0EB;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s ease, transform .3s ease;
}
.cookie.is-visible { opacity: 1; transform: none; }
.cookie__text { margin: 0; font-size: 13px; line-height: 1.45; }
.cookie__text a { color: var(--c-lime); text-decoration: underline; text-underline-offset: 3px; }
.cookie__btn { flex: none; min-height: 40px; padding: 0 18px; font-size: 13px; background: var(--c-lime); color: var(--c-text); }
.cookie__btn:hover { background: #CBEF00; color: var(--c-text); }
@media (max-width: 639px) {
  .cookie { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .cookie { transition: none; } }

/* =========================================================
   36. Брендинг: технологии нанесения и готовые изделия
   ========================================================= */
.branding { background: #F3F1FB; }
.tech-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; margin: 0; padding: 0; list-style: none; }
.tech-card { scroll-margin-top: 110px; }
.tech-card__photo {
  position: relative; display: flex; align-items: flex-end; justify-content: flex-start;
  aspect-ratio: 1 / 1; overflow: hidden; border-radius: 14px; padding: 12px;
  background-color: #E4E0F5;
}
.tech-card__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tech-card__photo span { position: relative; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.85); font-size: 11px; font-weight: 700; color: var(--c-text-3); }
.tech-card__title { margin: 14px 0 0; font-family: var(--f-head); font-size: 16px; font-weight: 700; }
.tech-card__text { margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--c-text-3); }
/* Заглушки-фактуры, пока нет фото */
.tech-card__photo--silk { background: radial-gradient(circle, #685BC7 38%, transparent 40%) 0 0 / 14px 14px, #DAFF02; }
.tech-card__photo--embroidery { background: repeating-linear-gradient(35deg, #685BC7 0 4px, #7F73D6 4px 7px, #5B4FB8 7px 10px); }
.tech-card__photo--dtf { background: linear-gradient(135deg, #FE572A, #DAFF02 45%, #685BC7); }
.tech-card__photo--dtg { background: radial-gradient(circle at 30% 30%, #FFFFFF, #CFC8F0 45%, #8E83D9); }
.tech-card__photo--jacquard { background: conic-gradient(#201E1F 25%, #3A3640 0 50%, #201E1F 0 75%, #3A3640 0) 0 0 / 12px 12px; }
.tech-card__photo--patch { background: radial-gradient(circle at 50% 45%, #DAFF02 0 26%, #201E1F 26.5% 30%, transparent 30.5%), #E4E0F5; }
.tech-card__photo--print3d { background: repeating-linear-gradient(0deg, #C9C3EC 0 3px, #B3ABE6 3px 6px); }
.tech-card__photo--paracord { background: repeating-linear-gradient(45deg, #685BC7 0 6px, #201E1F 6px 12px), repeating-linear-gradient(-45deg, #DAFF02 0 6px, transparent 6px 12px); background-blend-mode: multiply; }
.ready { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--c-line-soft); }
a.fabric-callout { text-decoration: none; transition: transform .2s ease; }
a.fabric-callout:hover { transform: rotate(-2deg) scale(1.03); }
.tech__item a { color: inherit; text-decoration: none; }
.tech__item a:hover { color: var(--c-lime); }
@media (max-width: 979px) {
  .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .ready { margin-top: 40px; padding-top: 28px; }
}

/* =========================================================
   37. DTF: «Работаем 7 дней в неделю» на первом экране
   ========================================================= */
.dtf-hero__marker { margin-top: 18px; font-size: 15px; padding: 11px 18px; }
.dtf-hero__marker + .hero__actions { margin-top: 26px; }

/* =========================================================
   38. Цифры на первом экране: «За 9 лет нами»
   ========================================================= */
.stats__lead { flex: 0 0 100%; margin: 0 0 -4px; }
.stats__lead + .stat { padding-left: 0; }
@media (max-width: 639px) {
  .stats__lead { margin: 0 0 6px; }
}
.tech-card__photo--flex { background: linear-gradient(120deg, #B9B4C9 0%, #FFFFFF 22%, #8F88B8 40%, #E8E4F6 58%, #685BC7 78%, #DAFF02 100%); }
/* Готовые изделия в «Брендинге»: вырезанные предметы прямо на фоне раздела */
.ready .card__photo { background: transparent; border-radius: 0; overflow: visible; }
.ready .card__photo img { object-fit: contain; filter: drop-shadow(0 14px 18px rgba(32, 30, 31, 0.16)); }

/* =========================================================
   40. Брендинг: плашка «И ещё много всего» в готовых изделиях
   ========================================================= */
@media (min-width: 980px) {
  .ready .category__cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}
@media (min-width: 640px) and (max-width: 979px) {
  .ready .category__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ready-more__inner {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  aspect-ratio: 1 / 1; padding: 20px; border-radius: 14px;
  background: var(--c-violet); color: #FFFFFF; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ready-more__inner:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(104, 91, 199, 0.3); }
.ready-more__title { font-family: var(--f-head); font-size: 20px; font-weight: 700; line-height: 1.2; }
.ready-more__text { font-size: 14px; line-height: 1.5; opacity: .9; }
.ready-more__btn { margin-top: 6px; width: 100%; min-height: 44px; padding: 0 10px; font-size: 12px; white-space: nowrap; background: var(--c-lime); color: var(--c-text); }
.ready-more__inner:hover .ready-more__btn { background: #CBEF00; }
@media (min-width: 980px) {
  .ready-more__inner { padding: 16px; gap: 8px; }
  .ready-more__title { font-size: 17px; }
  .ready-more__text { font-size: 13px; }
}
