/* ============================================================
   Jerom — лендинг медицинского костюма
   Мобильный-first: 360px → 1440px
   ============================================================ */

:root {
  --plum: #5b1f4f;
  --plum-dark: #471640;
  --plum-light: #f4eaf2;
  --text: #333333;
  --text-muted: #6b6b6b;
  --bg: #ffffff;
  --bg-soft: #faf8fa;
  --line: #e6e0e5;
  --radius: 10px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--plum);
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid var(--plum);
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.btn--primary {
  background: var(--plum);
  color: #fff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--plum-dark);
}

.btn--outline {
  background: transparent;
  color: var(--plum);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--plum-light);
}

.btn--wide {
  width: 100%;
}

/* Десктоп: кнопка «Оформить заказ» не на всю ширину формы — 400px по центру */
@media (min-width: 768px) {
  .order-form .btn--wide {
    width: 400px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

.linklike {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--plum);
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
}

.header__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--plum);
  text-decoration: none;
}

/* Замок логотипа: слоган лесенкой под именем (2026-10-08) */
.header__slogan {
  margin-top: 3px;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.07em;
  line-height: 1.4;
  color: var(--text-muted);
}

/* Тезисы — у правого края, ближе к кнопке «Заказать» */
.header__tagline {
  margin-left: auto;
  margin-right: 16px;
  text-align: right;
  font-size: 13px;
  color: var(--text-muted);
}

.header__tagline-narrow {
  display: none;
}

/* Разделители-точки: жирнее и с воздухом по бокам */
.header__tagline i {
  font-style: normal;
  font-weight: 700;
  margin: 0 7px;
}

/* Шапка на мобильном: без слогана, с короткой строкой размеров, ростовок и цены */
@media (max-width: 767px) {
  .header {
    flex-wrap: wrap;
    /* Узкие боковые отступы: строке тезисов больше ширины, цена не переносится (2026-11-25) */
    padding: 10px 12px;
  }

  .header__slogan {
    display: none;
  }

  .header__tagline {
    display: block;
    order: 3;
    width: 100%;
    margin: 8px 0 0;
    text-align: center;
    font-size: 11px;
    line-height: 1.5;
  }

  .header__tagline-wide {
    display: none;
  }

  .header__tagline-narrow {
    display: inline;
  }

  .header__tagline i {
    margin: 0 3px;
  }
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 1px solid var(--plum-light);
  border-radius: 999px;
  background: var(--plum-light);
  font-size: 14px;
  font-weight: 600;
  color: var(--plum);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.header__order:hover,
.header__order:focus-visible {
  background: var(--plum);
  border-color: var(--plum);
  color: #ffffff;
}

.header__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
}

.header__burger:hover {
  color: var(--plum);
}

/* После закрытия меню фокус возвращается на бургер — убираем синюю рамку */
.header__burger:focus,
.header__burger:focus-visible {
  outline: none;
}

/* ---------- Меню: узкая выезжающая колонка справа ---------- */

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(30, 10, 25, 0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.menu-backdrop[hidden] {
  display: none;
}

.menu-backdrop--open {
  opacity: 1;
}

.menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  width: min(300px, 84vw);
  display: flex;
  flex-direction: column;
  padding: 20px 26px 32px;
  background: var(--bg);
  box-shadow: -12px 0 40px rgba(30, 10, 25, 0.12);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  /* Колонка длиннее экрана → скроллится внутри себя (контакты доступны всегда) */
  overflow-y: auto;
  overscroll-behavior: contain;
}

.menu[hidden] {
  display: none;
}

/* Плавный выезд и уезд: класс переключает transform, hidden ставится после анимации */
.menu--open {
  transform: translateX(0);
}

.menu__close {
  align-self: flex-end;
  width: 42px;
  height: 42px;
  margin: 0 -12px 12px 0;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
}

/* Убираем синюю рамку фокуса у крестика — кнопка и так очевидна */
.menu__close:focus,
.menu__close:focus-visible {
  outline: none;
}

.menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu__list a {
  display: block;
  padding: 13px 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.menu__list a:hover,
.menu__list a:focus-visible {
  color: var(--plum);
}

/* На низких экранах пункты компактнее — чаще влезает без скролла.
   Блок стоит ПОСЛЕ базового .menu__list a, иначе база его перебивает */
@media (max-height: 700px) {
  .menu__list a {
    padding: 9px 0;
    font-size: 21px;
  }
}

/* Мобильное меню: 7 пунктов + контакты должны входить без скролла */
@media (max-width: 767px) {
  .menu__list a {
    padding: 7px 0;
    font-size: 19px;
  }

  .menu__contacts {
    padding-top: 10px;
  }
}

/* «Как измерить себя» — только в мобильном меню; на десктопе скрыт */
@media (min-width: 768px) {
  .menu__item--mobile {
    display: none;
  }
}
/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
}

.hero__media {
  background: var(--bg-soft);
}

.hero__media img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.hero__content {
  padding: 32px 20px 48px;
  text-align: center;
}

.hero__title {
  font-size: 34px;
  color: var(--plum);
}

.hero__subtitle {
  color: var(--text-muted);
}

.hero__badge {
  display: inline-block;
  margin: 16px 0 0;
  padding: 8px 18px;
  background: var(--plum);
  color: #ffffff;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}

.hero__list {
  margin: 24px auto 0;
  padding: 0;
  max-width: 460px;
  list-style: none;
  text-align: left;
}

.hero__list li {
  position: relative;
  padding-left: 26px;
}

.hero__list li + li {
  margin-top: 12px;
}

.hero__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 14px;
  height: 2px;
  background: var(--plum);
  border-radius: 2px;
}

.hero__cta {
  margin-top: 36px;
}

.hero-card {
  margin: 20px auto 0;
  max-width: 480px;
  padding: 28px 22px;
  background: var(--plum-light);
  border-left: 3px solid var(--plum);
  border-radius: var(--radius);
  text-align: left;
}

.hero-card__title {
  color: var(--plum);
  font-size: 23px;
  margin-bottom: 12px;
}

/* Строки текста в плашке — якоря для чтения */
.hero-card__line {
  margin: 0;
}

.hero-card__line + .hero-card__line {
  margin-top: 22px;
}

/* Обводные кнопки слайдов — одного размера */
.colors-cta,
.sizes-help,
.sizes-order {
  font-size: 14px;
  padding: 10px 18px;
}

/* Ссылка-интрига — финальная строка плашки (2026-10-08: кнопки из hero убраны) */
.hero-link {
  display: inline-block;
  margin: 20px 0 0;
  color: var(--plum);
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-link:hover {
  color: var(--plum-dark);
}

/* Мобильный hero: текст на фото + детали костюма ниже */
.hero__media-card,
.hero-mobile-details {
  display: none;
}

@media (max-width: 767px) {
  .hero__media {
    position: relative;
    /* Поля у фото: текст плашки всегда внутри снимка (2026-11-25) */
    padding: 0 12px;
  }

  /* Фото — всегда во всю ширину полей: без max-height нет случайных
     серых полос по бокам на низких экранах (iPhone SE и т.п.) */
  .hero__media img {
    max-height: none;
  }

  .hero__media-card {
    display: block;
    position: absolute;
    /* 12px поле + 16px от края фото */
    left: 28px;
    top: 24px;
    width: 62%;
    max-width: 220px;
    padding: 0;
    font-family: var(--font-display);
    font-size: 19px;
    line-height: 1.35;
    color: var(--plum);
    text-align: left;
  }

  .hero__media-card p {
    margin: 0;
  }

  .hero__content {
    padding: 24px 20px 16px;
  }

  .hero__title {
    font-size: 30px;
  }

  /* Длинная плашка заменена текстом и коллажем деталей ниже */
  .hero-card {
    display: none;
  }

  .hero-mobile-details {
    display: block;
    padding: 0 20px 40px;
    text-align: left;
  }

  .hero-mobile-details__intro {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.6;
  }

  .hero-mobile-collage {
    position: relative;
    margin-bottom: 14%;
  }

  .hero-mobile-collage__main {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
  }

  .hero-mobile-collage__detail {
    position: absolute;
    right: 0;
    bottom: -8%;
    width: 46%;
    border: 5px solid #ffffff;
    border-radius: var(--radius);
    box-shadow: 0 10px 28px rgba(30, 10, 25, 0.18);
    transform: rotate(5deg);
  }

  .hero-mobile-details__list p {
    margin: 0;
    line-height: 1.55;
  }

  .hero-mobile-details__list p + p {
    margin-top: 12px;
  }

  .hero-mobile-details__feature {
    position: relative;
    padding-left: 18px;
  }

  .hero-mobile-details__feature::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--plum);
  }
}

.hero__description {
  margin: 20px auto 0;
  max-width: 480px;
}

.hero__price {
  margin: 20px 0;
  font-size: 26px;
  font-weight: 500;
  color: var(--plum);
}

/* ---------- Секции ---------- */

/* При переходе по якорю заголовок остаётся ниже липкой шапки */
.section[id] {
  scroll-margin-top: 60px;
}

/* Якорь «Таблица размеров» внутри слайда — отступ больше высоты двухэтажной
   мобильной шапки (~87px), иначе строка «Размер/Грудь/Талия/Бёдра» прячется (2026-11-25) */
#size-table {
  scroll-margin-top: 100px;
}

/* Десктоп: отступ больше — виден заголовок «Гид по безупречной посадке» */
@media (min-width: 768px) {
  #size-table {
    scroll-margin-top: 150px;
  }
}

.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 20px;
}

.section + .section,
.hero + .section {
  border-top: 1px solid var(--line);
}

.section__title {
  font-size: 23px;
  color: var(--plum);
  text-align: center;
  margin-bottom: 24px;
}

.section__lead {
  text-align: center;
  color: var(--text-muted);
  margin-top: -12px;
  margin-bottom: 24px;
}

/* Названия цветов — одной строкой через жирные точки (2026-10-08) */
.color-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin: 0 auto;
  padding: 0;
  max-width: 520px;
  list-style: none;
  text-align: left;
  font-size: 15px;
}

.color-list li {
  display: flex;
  align-items: baseline;
  padding-left: 4px;
}

/* Разделитель-точка остаётся после предыдущего названия при переносе строки */
.color-list li:not(:last-child)::after {
  content: "•";
  margin: 0 10px 0 6px;
  font-weight: 700;
  color: var(--text-muted);
}

.color-list strong {
  color: var(--text);
}

/* Кликабельная строка цвета: без паддингов — строки не разъезжаются.
   Наведение: цветное подчёркивание названия + подсветка-маркер по размеру букв.
   Цвет строки приходит через inline-переменную --c (у белого — серый #8a8a8a,
   белое подчёркивание было бы невидимым). */
.color-option {
  display: flex;
  align-items: baseline;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.color-option:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 2px;
}

.color-option:hover > span,
.color-option:focus-visible > span {
  background: var(--plum-light);
}

.color-option:hover strong,
.color-option:focus-visible strong {
  color: var(--c, var(--plum));
  text-decoration: underline;
  text-decoration-color: var(--c, var(--plum));
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

/* Активный цвет: то же цветное подчёркивание, постоянно */
.color-option[aria-pressed="true"] strong {
  color: var(--c, var(--plum));
  text-decoration: underline;
  text-decoration-color: var(--c, var(--plum));
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}



/* ---------- Слайд цветов: чистое групповое фото + автокарусель (2026-10-18) ---------- */

/* Групповое фото — ведущий кадр слайда; сверху скрыто 2 см отображаемого изображения */
.colors-group__photo {
  overflow: hidden;
  border-radius: var(--radius);
}

.colors-group__img {
  display: block;
  width: 100%;
  margin-top: -2cm;
}

/* Маленькая автокарусель цветов с подписью на фото;
   на десктопе верхнее и боковое паспарту 54px — по высоте нижней полосы (2026-10-18) */
.colors-mini {
  position: relative;
  margin: 24px auto 0;
  max-width: 404px;
  padding: 54px 54px 12px;
  background: var(--plum-light);
  border: 1px solid rgba(90, 45, 75, 0.35);
}

/* На мобильном компактный блок до 332px, без бокового паспарту и рамок */
@media (max-width: 767px) {
  /* Воздух после группового фото; перечень вплотную к слайдеру */
  #colors .color-list {
    margin-top: 24px;
  }

  #colors .colors-mini {
    width: 100%;
    max-width: 332px;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    padding: 12px 0;
    border-left: 0;
    border-right: 0;
  }

  /* Узкие боковые отступы подписи — полное описание белого помещается */
  #colors .colors-mini__caption {
    padding-left: 8px;
    padding-right: 8px;
  }
}

.colors-mini__frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-soft);
}

.colors-mini__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Графитовый кадр: CSS-кроп логотипа в левом верхнем углу (до получения чистого файла) */
.colors-mini__image--zoom {
  transform: scale(1.15);
}

/* Подпись цвета — белёсая полоса внизу кадра: название строкой, описание строкой */
.colors-mini__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 12.5px;
  line-height: 1.45;
  text-align: left;
  white-space: nowrap;
  transition: opacity 0.25s ease;
}

.colors-mini__caption b {
  font-size: 13.5px;
  color: var(--plum);
}

/* Первая строка: название (+ у синего короткая часть описания), вторая — остаток */
.colors-mini__lead {
  font-size: 13.5px;
}

/* Вторая строка — тем же размером, что название и lead: единый размер для всех цветов */
.colors-mini__desc {
  display: block;
  font-size: 13.5px;
}

.colors-mini__image.is-fading,
.colors-mini__caption.is-fading {
  opacity: 0;
}

/* Кнопка — по центру под фото карусели (2026-10-08) */
.colors-cta {
  display: flex;
  width: fit-content;
  margin: 24px auto 0;
}

/* Цена на слайде цветов (решение 2026-09-06: в hero не показываем — клиент не прогрет) */
.colors-price {
  margin: 20px auto 0;
  max-width: 460px;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--plum);
}

.fabric-layout__figure {
  margin-bottom: 0;
}

/* Чистое фото ткани (кроп коллажа 3×3) + HTML-выноски с составом */
.fabric-photo {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft) url("../assets/fabric-collage.png") no-repeat 0% 100% / 300% 300%;
}

.fabric-callout {
  position: absolute;
  color: #ffffff;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(30, 10, 25, 0.35);
}

.fabric-callout b {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Тонкая линия-выноска с точкой на конце */
.fabric-callout::after {
  content: "";
  display: block;
  width: 64px;
  height: 7px;
  margin-top: 5px;
  background:
    radial-gradient(circle at calc(100% - 2px) 50%, #ffffff 0 2px, transparent 2.5px),
    linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)) left center / 100% 1px no-repeat;
}

.fabric-badges {
  list-style: none;
  padding: 0;
  margin: 16px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 460px;
}

.fabric-badges li {
  background: var(--plum-light);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
}

/* Научные термины — строка на всю ширину слайда, у каждой карточки своя подсветка (2026-09-09) */
.term-lead {
  margin: 20px 0 0 19px;
  text-align: left;
  color: var(--text-muted);
}

.term-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.term-card {
  padding: 12px 14px;
  background: var(--plum-light);
  border-left: 3px solid var(--plum);
  border-radius: var(--radius);
  font-size: 14px;
  text-align: left;
}

.term-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--plum);
  margin-bottom: 2px;
}

.section__note--plain {
  background: none;
  padding: 0;
}

.measure {
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
}

.measure-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.measure-list li {
  position: relative;
  padding-left: 18px;
}

.measure-list li + li {
  margin-top: 12px;
}

/* Тонкая точка-маркер вместо тире (решение 2026-09-01) */
.measure-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--plum);
}

/* Параметр — жирным, расшифровка — мельче и светлее следующей строкой */
.measure-list strong {
  display: block;
  font-weight: 600;
}

.measure-list span {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
}

/* Схема обмера: тонкие линии в фирменном цвете */
.measure-scheme {
  margin: 20px 0 0;
  color: var(--plum);
}

.measure-scheme svg {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
}

.measure-scheme text {
  font-family: var(--font);
  font-size: 12px;
  fill: var(--text-muted);
}


/* Блок «Уход» переехал в модалку «Клиентам» (2026-09-09) */

.section__subtitle {
  color: var(--plum);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin-top: -14px;
  margin-bottom: 24px;
}

/* Длинный текст в «Почему нам доверяют» — по левому краю, иначе «расхлябано» */
#why .section__lead {
  text-align: left;
  color: var(--text);
}

.sizes-help {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
}

.sizes-order {
  display: block;
  width: fit-content;
  margin: 22px auto 0;
}

.sizes-help-text {
  max-width: 460px;
  margin: 10px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.measure-flex {
  margin-top: 16px;
}

/* Вступление над фото ткани (перенос из песочницы, 2026-10-09) */
.fabric-intro {
  max-width: 560px;
  margin: 0 auto 16px;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
  color: var(--text-muted);
}

/* Подпись под фото — факт о безопасности, чуть крупнее, чем в песочнице */
.fabric-caption {
  max-width: 560px;
  margin: 12px auto 0;
  font-size: 15px;
  font-style: italic;
  line-height: 1.5;
  text-align: left;
  color: var(--text-muted);
}

/* Выноски — активные кнопки: сброс кнопочного оформления, вид прежний */
#fabric .fabric-callout {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease;
}

#fabric .fabric-callout:hover,
#fabric .fabric-callout:focus-visible {
  transform: translateX(4px);
}

#fabric .fabric-callout:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Пульсация линии первой выноски — намёк на интерактив */
#fabric .fabric-callout[data-zoom="viscose"]::after {
  animation: callout-pulse 2.2s ease-in-out infinite;
}

@keyframes callout-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
  #fabric .fabric-callout[data-zoom="viscose"]::after {
    animation: none;
  }
}

/* Тексты компонентов: зум по наведению на выноску или на сам текст */
#fabric .section__title,
.fabric-lead {
  margin-left: 19px;
}

.fabric-facts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  text-align: left;
}

.fabric-fact {
  position: relative;
  padding: 10px 14px;
  font-size: 16px;
  line-height: 1.55;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.fabric-fact b {
  font-weight: 600;
  color: var(--plum);
}

.fabric-fact:hover,
.fabric-fact.is-zoom {
  transform: scale(1.12);
  transform-origin: left center;
  z-index: 3;
  background: var(--bg);
  box-shadow: 0 10px 28px rgba(30, 10, 25, 0.18);
}

@media (max-width: 767px) {
  .fabric-fact:hover,
  .fabric-fact.is-zoom {
    transform: scale(1.05);
  }
}

.colors-group .section__title {
  font-size: 23px;
  line-height: 1.35;
}

.section__figure {
  margin: 0 0 32px;
}

.section__figure img {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  border-radius: var(--radius);
}

.section__text {
  max-width: 640px;
  margin: 0 auto;
}

.section__text h3 {
  margin-top: 1.2em;
  font-size: 18px;
  color: var(--plum);
}

.section__text ul {
  padding-left: 20px;
}

.section__note {
  max-width: 640px;
  margin: 24px auto 0;
  padding: 14px 18px;
  background: var(--plum-light);
  border-radius: var(--radius);
}

.section--accent {
  background: var(--bg-soft);
  max-width: none;
}

.section--accent > * {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Преимущества ---------- */

.features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 20px;
}

.features__item {
  padding: 20px;
  background: var(--bg-soft);
  border-radius: var(--radius);
}

.features__item h3 {
  font-size: 20px;
  color: var(--plum);
}

.features__item p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Кликабельные карточки в «Покупателям»: подсветка, подъём, стрелка уезжает */
#clients .features__item {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

#clients .features__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(91, 31, 79, 0.12);
  background: var(--plum-light);
}

/* Браузерную рамку фокуса у «Подробнее» заменяем аккуратной — без «квадрата» */
#clients .card-link:focus-visible {
  outline: none;
  color: var(--plum-dark);
}

#clients .features__item .card-link::after {
  display: inline-block;
  transition: transform 0.15s ease;
}

#clients .features__item:hover .card-link::after,
#clients .card-link:focus-visible::after {
  transform: translateX(3px);
}

/* Акцентная карточка — тёмная, одна на сетку (решение 2026-09-05) */
.features__item--accent {
  background: var(--plum);
}

.features__item--accent h3 {
  color: #ffffff;
}

.features__item--accent p {
  color: var(--plum-light);
}

/* Слайд «Почему нам доверяют»: левая колонка + сетка преимуществ */
/* Заголовки слайдов — один размер, как на слайде цветов (правило 2026-09-05:
   крупный 34/44px — ТОЛЬКО у hero «Медицинский костюм. Ваша вторая кожа») */
/* Заголовок слайда — по центру над сеткой карточек (2026-09-06) */
.why-title {
  font-size: 23px;
  line-height: 1.35;
  text-align: center;
}

.why-layout__text .section__lead {
  text-align: left;
  margin-top: 0;
}

/* Лид — как hero-card: лёгкая сливовая подсветка + вертикальная линия слева */
.why-lead {
  padding: 18px 20px;
  background: var(--plum-light);
  border-left: 3px solid var(--plum);
  border-radius: var(--radius);
}

.why-lead p {
  margin: 0;
}

.why-lead p + p {
  margin-top: 10px;
}

/* ---------- Таблицы размеров ---------- */

.table-wrap {
  overflow-x: auto;
  margin-bottom: 28px;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  text-align: center;
}

.size-table caption {
  padding-bottom: 10px;
  font-weight: 600;
  text-align: left;
  color: var(--text-muted);
}

.size-table th,
.size-table td {
  padding: 10px 8px;
  border: 1px solid var(--line);
}

.size-table thead th {
  background: var(--plum);
  color: #fff;
  font-weight: 600;
}

.size-table tbody th {
  background: var(--plum-light);
  font-weight: 600;
}

/* ---------- Выбор размера ---------- */

.size-picker {
  max-width: 560px;
  margin: 32px auto 0;
  padding: 24px 20px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  display: grid;
  gap: 16px;
}

.sizes-photo {
  max-width: 560px;
  margin: 24px auto 0;
}

.sizes-photo summary {
  cursor: pointer;
  color: var(--plum);
  font-weight: 600;
}

.sizes-photo img {
  margin-top: 12px;
  border-radius: var(--radius);
}

/* ---------- Контакты в меню (слайд убран 2026-09-13) ---------- */

.menu__contacts {
  margin-top: auto;
  padding-top: 24px;
}

.menu__phone {
  font-size: 19px;
  font-weight: 600;
  color: var(--plum);
  text-decoration: none;
}

/* Мобильный телефон в меню — после базового правила, иначе база перебивает */
@media (max-width: 767px) {
  .menu__phone {
    font-size: 15px;
    font-weight: 500;
  }
}

.menu__max {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  color: var(--plum);
}

.menu__city {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- Форма ---------- */

.field {
  display: block;
  margin-bottom: 16px;
}

.field__label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.field__hint {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.field__optional {
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
  color: var(--text);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--plum);
  outline-offset: 1px;
  border-color: var(--plum);
}

.order-form {
  margin-top: 24px;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.consent input {
  margin-top: 4px;
  flex: 0 0 auto;
}

.form-status {
  display: none;
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius);
}

.form-status.show {
  display: block;
}

.form-status.ok {
  background: #e8f5e9;
  color: #256029;
}

.form-status.err {
  background: #fdecea;
  color: #8c2f25;
}

/* Honeypot-поле прячем от людей: боты видят input в разметке и заполняют */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* Поле с ошибкой валидации (например, неполный телефон) */
.field-error {
  border-color: #c0392b !important;
}

/* Автозаполнение браузера красит поле в чужой жёлтый — возвращаем нашу палитру */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
}

/* Сервисное сообщение прямо под полем — видно без скролла */
.field-status {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: #8c2f25;
}

.field-status:empty {
  display: none;
}

/* ---------- Подвал ---------- */

.footer {
  padding: 48px 20px 96px;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 14px;
}

.footer__logo {
  margin: 0 auto 12px;
  border-radius: 8px;
}

.footer__brand {
  margin: 0 0 20px;
  color: var(--text);
  font-weight: 600;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.footer__requisites {
  margin: 0 0 12px;
}

.footer__contacts {
  margin: 0;
}

/* ---------- Плавающая кнопка ---------- */

.fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--plum);
  color: #fff;
  box-shadow: 0 4px 14px rgba(91, 31, 79, 0.35);
  text-decoration: none;
}

/* ---------- Модальные окна ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Галерея примеров может открываться поверх «Клиентам» — приоритет выше */
#modal-branding {
  z-index: 70;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 28, 0.45);
  /* Современный вход: размытие фона + плавное появление */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modal-fade 0.25s ease;
}

@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px 22px;
  background: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
  animation: modal-up 0.3s ease;
}

@keyframes modal-up {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal__close {
  position: sticky;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.modal__panel h2 {
  color: var(--plum);
  font-size: 22px;
}

.modal__body {
  font-size: 15px;
}

.modal__body .btn {
  margin-top: 16px;
}

/* Две кнопки действия в модалке: в ряд, на узком экране — друг под другом */
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.modal-actions .btn {
  margin-top: 0;
}

.modal__body .section__note {
  margin-top: 16px;
}

/* ---------- Планшет и десктоп ---------- */

/* ---------- Слайд «Как он будет сидеть на вас» ---------- */

.fit-layout__text .section__title {
  font-size: 23px;
  line-height: 1.35;
}

.fit-lead {
  font-size: 17px;
  color: var(--plum);
  margin: -8px 0 16px;
}

.fit-cta {
  display: block;
  width: fit-content;
  margin: 22px auto 0;
}

/* Базовая рамка 4:3; у слайда посадки ниже переопределена на 3:4 */
.fit-viewer__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  max-width: 560px;
  margin: 0 auto;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
}

.fit-viewer__frame [hidden] {
  display: none;
}

/* Реальные фото трио: вертикальные 3:4, без рамки-заглушки */
#fit .fit-viewer__frame {
  aspect-ratio: 3 / 4;
  width: 90%;
  max-width: 504px;
  border: none;
}

#fit .fit-placeholder {
  padding: 0;
  font-style: normal;
}

#fit .fit-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* На мобильном и планшете — короткая подпись «Размер N»: полная не влезает */
.fit-model-tag__short {
  display: none;
}

@media (max-width: 1023px) {
  .fit-model-tag__full {
    display: none;
  }

  .fit-model-tag__short {
    display: inline;
  }
}

/* Размер на модели — тонкая подпись над головой, как выноски на ткани */
.fit-model-tag {
  position: absolute;
  top: 7%;
  z-index: 1;
  transform: translateX(-50%);
  font-size: clamp(10px, 2.8vw, 13px);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.3;
  color: var(--plum);
  white-space: nowrap;
}

.fit-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  font-style: italic;
  color: var(--text-muted);
}


/* Параметры моделей — компактные колонки под соответствующими моделями */
.fit-params {
  max-width: 504px;
  margin: 10px auto 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-muted);
}

.fit-params__title {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.fit-params__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.fit-param span {
  display: block;
}

/* ---------- Таблица размеров: живой HTML вместо инфографики ---------- */

.size-tables {
  max-width: 960px;
  margin: 32px auto 0;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  text-align: center;
}

.size-table + .size-table {
  margin-top: 28px;
}

.size-table caption {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--plum);
  text-align: left;
  margin-bottom: 10px;
}

/* Ссылка-выноска в подписи таблицы (вход в индпошив) */
.size-table caption a {
  color: inherit;
}

.size-table caption a:hover,
.size-table caption a:focus-visible {
  color: var(--plum-dark);
}

/* Заголовок слайда размеров — в левую часть (как в песочнице, 2026-10-09) */
#sizes .section__title {
  text-align: left;
}

.size-table thead th {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 9px 10px;
  background: none;
  border: none;
  border-bottom: 1.5px solid rgba(90, 45, 75, 0.4);
}

.size-table td {
  padding: 9px 10px;
  border: none;
  border-bottom: 1px solid rgba(90, 45, 75, 0.14);
}

/* Первая колонка — размер крупным журнальным шрифтом */
.size-table td:first-child {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--plum);
}

.size-table tbody tr {
  transition: background-color 0.15s ease;
}

.size-table tbody tr:hover,
.size-table tbody tr.is-active {
  background: var(--plum-light);
}

.size-tables__note {
  margin-top: 16px;
}

/* Ссылка на таблицу из формы заказа */
.size-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--plum);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Ссылка в карточке преимущества (открывает модалку): без подчёркивания, со стрелкой */
.card-link {
  margin-top: 10px;
  font-size: 14px;
  color: var(--plum);
  /* .linklike несёт underline — здесь гасим, акцент со стрелкой */
  text-decoration: none;
  cursor: pointer;
}

.card-link::after {
  content: " →";
}

.card-link:hover,
.card-link:focus-visible {
  color: var(--plum-dark);
}

/* Подзаголовки блоков на слайде «Индивидуальный заказ» (база, мобильная) */
.custom-sub {
  font-size: 20px;
  color: var(--plum);
  margin: 22px 0 8px;
}

.custom-sub:first-child {
  margin-top: 0;
}

/* Стрелки-переключатели в кружке поверх фото (единый паттерн, 2026-09-21) */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--plum);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.carousel-arrow--prev {
  left: 10px;
}

.carousel-arrow--next {
  right: 10px;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  background: #ffffff;
  border-color: var(--plum);
}

.carousel-arrow:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 1px;
}

/* У слайдов посадки и персонального брендирования — лёгкие типографские стрелки без кружков */
#fit .carousel-arrow,
#custom .carousel-arrow {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: none;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  color: var(--plum);
  opacity: 0.78;
}

/* Стрелки прижаты к самому краю кадра, чтобы не залезать на костюм */
#fit .carousel-arrow--prev,
#custom .carousel-arrow--prev {
  left: 0;
}

#fit .carousel-arrow--next,
#custom .carousel-arrow--next {
  right: 0;
}

#fit .carousel-arrow:hover,
#fit .carousel-arrow:focus-visible,
#custom .carousel-arrow:hover,
#custom .carousel-arrow:focus-visible {
  background: none;
  border: 0;
  color: var(--plum-dark);
}

#fit .carousel-arrow:focus-visible,
#custom .carousel-arrow:focus-visible {
  outline: none;
}

/* Мобильный порядок слайда посадки: заголовок → фото с параметрами → текст → кнопка */
@media (max-width: 767px) {
  #fit .fit-layout {
    display: flex;
    flex-direction: column;
  }

  #fit .fit-layout__text {
    display: contents;
  }

  #fit .fit-layout__text .section__title {
    order: 1;
  }

  #fit .fit-layout__media {
    order: 2;
  }

  #fit .fit-layout__text p {
    order: 3;
  }

  /* Подзаголовок после параметров: убираем отрицательный отступ, чтобы не залезал на ростовки */
  #fit .fit-lead {
    margin-top: 18px;
  }

  #fit .fit-cta {
    order: 4;
  }
}

/* Слайд «Индивидуальный заказ»: сетка трёх равных блоков */
.custom-grid {
  display: grid;
  gap: 16px;
}

/* Текст — как в остальных разделах (16px), не карточные 14px от features__item */
.custom-cell p {
  font-size: 16px;
  line-height: 1.55;
}

/* Ячейка с каруселью — без подложки карточки, рамка на всю ширину */
.custom-cell--media .fit-viewer__frame {
  max-width: 100%;
}

.custom-actions {
  margin-top: 24px;
  text-align: center;
}

/* Десктоп: кнопка и телефон чуть выше — плотнее к блокам */
@media (min-width: 768px) {
  .custom-actions {
    margin-top: 8px;
  }
}

.btn--sm {
  padding: 10px 22px;
  font-size: 14px;
}

@media (min-width: 768px) {

  .custom-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
  .hero {
    flex-direction: row-reverse;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px;
    gap: 40px;
  }

  .colors-layout {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 48px;
  }

  .fit-layout {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 48px;
  }

  .why-layout {
    display: flex;
    align-items: flex-start;
    gap: 48px;
  }

  .why-layout__text {
    flex: 1 1 44%;
    /* левая колонка на ~1 см ниже заголовка — выравнивание с сеткой */
    margin-top: 38px;
  }

  .why-layout__features {
    flex: 1 1 56%;
    /* поднимаем заголовок и сетку на ~1 см */
    margin-top: -38px;
  }

  .why-title {
    font-size: 25px;
  }

  .why-layout .features {
    grid-template-columns: repeat(2, 1fr);
  }

  #why {
    max-width: 1160px;
  }

  .fit-layout__media {
    flex: 1 1 46%;
  }

  .fit-layout__text {
    flex: 1 1 54%;
  }

  .fit-layout__text .section__title {
    text-align: left;
    font-size: 25px;
  }

  .fit-layout__text .fit-lead {
    text-align: left;
  }

  .fit-layout__text .fit-cta {
    margin-left: 0;
  }

  #fit,
  #custom {
    max-width: 1160px;
  }

  /* Индивидуальный заказ: карусель слева, текст справа (против направления fit-layout) */
  #custom .fit-layout {
    flex-direction: row;
  }

  /* Карусель примеров — компактная рамка */
  #custom .fit-viewer__frame {
    max-width: 420px;
  }

  /* Подзаголовки блоков на слайде «Индивидуальный заказ» */
  .custom-sub {
    font-size: 20px;
    color: var(--plum);
    margin: 22px 0 8px;
  }

  .custom-sub:first-child {
    margin-top: 0;
  }

  .colors-group {
    flex: 1 1 46%;
    margin: 0;
  }

  .colors-layout__text {
    flex: 1 1 54%;
    margin-top: 3.5cm;
  }

  #colors {
    max-width: 1160px;
  }

  .fabric-layout {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 48px;
  }

  .term-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fabric-layout__media {
    flex: 1 1 44%;
    margin-top: 7px;
  }

  .fabric-layout__text {
    flex: 1 1 56%;
  }

  .fabric-layout__text .section__title {
    text-align: left;
    font-size: 25px;
    line-height: 1.35;
  }

  #fabric,
  #sizes {
    max-width: 1160px;
  }

  .sizes-layout {
    display: flex;
    align-items: flex-start;
    gap: 72px;
  }

  /* Таблицы — главное содержимое слайда, слева; фото убрано (2026-09-01) */
  .size-tables {
    flex: 1 1 56%;
    /* поднимаем: заголовок таблицы на одном уровне со строкой «Чтобы костюм сел…» */
    margin-top: 0;
    /* таблица уже колонки и прижата вправо — воздух между текстом и таблицей (2026-10-09) */
    max-width: 520px;
    margin-left: auto;
  }

  .sizes-layout__text {
    flex: 1 1 44%;
    /* чуть поднимаем правую колонку для выравнивания с таблицей */
    margin-top: -8px;
  }

  .sizes-layout__text .section__title {
    text-align: left;
    /* 20px: строка заголовка помещается в колонку текста без переноса (2026-10-09) */
    font-size: 20px;
    line-height: 1.35;
  }

  .sizes-layout__text .section__subtitle {
    text-align: left;
  }

  .sizes-layout__text .section__lead {
    text-align: left;
  }

  .sizes-layout__text .measure,
  .sizes-layout__text .section__note--plain,
  .sizes-layout__text .size-picker {
    margin-left: 0;
    margin-right: 0;
  }

  .sizes-layout__text .size-picker__color {
    grid-column: 1 / -1;
  }

  .sizes-layout__text .sizes-help {
    margin-left: 0;
  }

  .sizes-layout__text .sizes-order {
    margin-left: 0;
  }

  .sizes-layout__text .sizes-help-text {
    margin-left: 0;
    text-align: left;
  }

  #sizes {
    max-width: 1160px;
  }

  .colors-group .section__title {
    text-align: center;
    font-size: 25px;
    line-height: 1.35;
  }

  .colors-layout__text .section__subtitle {
    text-align: left;
  }

  .colors-layout__text .color-list,
  .colors-layout__text .colors-price {
    margin-left: 0;
    margin-right: 0;
  }

  .hero__media {
    flex: 1 1 50%;
    border-radius: var(--radius);
    overflow: hidden;
  }

  .hero__media img {
    max-height: 80vh;
  }

  .hero__content {
    flex: 1 1 50%;
    text-align: left;
    padding: 0;
    /* Заголовок прижат к верху, плашка — к нижнему краю фото (2026-10-08) */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .hero-card {
    margin: 24px 0 0;
  }

  .hero__title {
    font-size: 44px;
  }

  /* Подзаголовок hero — единый размер заголовков слайдов (правило 2026-09-06) */
  .hero-card__title {
    font-size: 25px;
  }

  .hero__description {
    margin-left: 0;
  }

  .section {
    padding: 72px 32px;
  }

  .section__title {
    font-size: 25px;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .size-picker {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .size-picker .btn {
    grid-column: 1 / -1;
  }

  .footer__nav {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
  }

  .modal {
    align-items: center;
    padding: 24px;
  }

  .modal__panel {
    border-radius: var(--radius);
    max-height: 80vh;
  }
}

@media (min-width: 1100px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }

  /* В слайде «Почему нам доверяют» карточки в две колонки (2×3) рядом с текстом */
  .why-layout .features {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Плавающая кнопка — только на мобильных */
  .fab {
    display: none;
  }

  .footer {
    padding-bottom: 48px;
  }
}

/* ---------- Слайд «Таблица размеров» из песочницы v2 (2026-10-09) ---------- */

.v2-sizes__spread {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1160px;
  margin: 0 auto;
}

.v2-sizes .section__title {
  margin: 0;
  text-align: left;
  font-size: 25px;
  line-height: 1.35;
}

.v2-sizes__lead {
  margin: 12px 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Линейный чертёж: тонкие сливовые линии */
.v2-sizes__scheme {
  margin: 0 0 20px;
  max-width: 400px;
  color: var(--plum);
}

.v2-sizes__scheme svg {
  display: block;
  width: 100%;
  height: auto;
}

.v2-sizes__scheme text {
  font-family: "PT Mono", monospace;
  font-size: 13px;
  fill: var(--plum);
}

/* Шаги обмера — наш основной шрифт (2026-10-09: скобки [01] убраны) */
.v2-steps {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  font-size: 14.5px;
  line-height: 1.65;
}

.v2-steps li + li {
  margin-top: 6px;
}

/* Строка помощи: вопрос текстом, ответ — активная ссылка */
.v2-sizes__help {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* Ссылка-стрелка к стилисту */
.v2-sizes__stylist {
  font-size: 14px;
  color: var(--plum);
  text-decoration: none;
  border-bottom: 1px solid rgba(90, 45, 75, 0.3);
  transition: border-color 0.15s ease;
}

.v2-sizes__stylist:hover,
.v2-sizes__stylist:focus-visible {
  border-bottom-color: var(--plum);
}

/* Таблица-линейка: тонкие горизонтали, без вертикалей и заливок */
.v2-sizetable {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.v2-sizetable th,
.v2-sizetable td {
  padding: 9px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(90, 45, 75, 0.14);
}

.v2-sizetable thead th {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--text-muted);
  border-bottom: 1.5px solid rgba(90, 45, 75, 0.4);
}

/* Единицы измерения — строчные и вдвое меньше ОГ/ОТ/ОБ */
.v2-sizetable__unit {
  font-size: 10px;
  text-transform: lowercase;
}

/* Размеры — крупным журнальным шрифтом */
.v2-sizetable tbody th {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--plum);
}

.v2-sizetable tbody tr {
  transition: background-color 0.15s ease;
}

.v2-sizetable tbody tr:hover,
.v2-sizetable tbody tr.is-active {
  background: var(--plum-light);
}

.v2-sizes__note {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.6;
}

.v2-sizes__note b {
  font-weight: 600;
  color: var(--plum);
}

@media (min-width: 768px) {
  .v2-sizes__spread {
    flex-direction: row;
    gap: 48px;
    align-items: flex-start;
  }

  .v2-sizes__left,
  .v2-sizes__right {
    flex: 1 1 50%;
    min-width: 0;
  }

  .v2-sizes__right {
    padding-top: 8px;
  }
}

/* ---------- Слайд «Почему нас выбирают»: центральный «О бренде» + карточки со звездой (2026-10-10) ---------- */

/* Центральный квадрат «О бренде»: нежно-лиловая подложка, при наведении — белый (реверс карточек, 2026-10-16) */
.why-brand {
  max-width: 760px;
  margin: 32px auto 48px;
  padding: 32px 40px;
  border: 1px solid rgba(90, 45, 75, 0.35);
  background: var(--plum-light);
  text-align: center;
  transition: background-color 0.15s ease;
}

.why-brand:hover,
.why-brand:focus-within {
  background: #ffffff;
}

.why-brand__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
  color: var(--plum);
}

.why-brand__lead {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
}

.why-brand p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
}

.why-brand p + p {
  margin-top: 10px;
}

/* Тонкая контурная звезда-акцент в карточке */
.features__star {
  color: var(--plum);
  margin-bottom: 8px;
}

/* Карточки кольца: чуть ярче при наведении (2026-10-10) */
#why .features__item {
  transition: background-color 0.15s ease;
}

#why .features__item:hover,
#why .features__item:focus-within {
  background: var(--plum-light);
}

/* Кольцо карточек вокруг центрального квадрата */
.why-ring {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-ring .why-brand {
  margin: 0;
}

@media (min-width: 768px) {
  .why-ring {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
      "l1 brand r1"
      "l2 b2b r2"
      "l3 b2b r3";
    gap: 16px;
    align-items: stretch;
    max-width: 1160px;
    margin: 0 auto;
  }

  .why-ring .why-brand {
    grid-area: brand;
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .why-pos--l1 { grid-area: l1; }
  .why-pos--l2 { grid-area: l2; }
  .why-pos--l3 { grid-area: l3; }
  .why-pos--r1 { grid-area: r1; }
  .why-pos--r2 { grid-area: r2; }
  .why-pos--r3 { grid-area: r3; }

  #why .why-ring .features__item {
    padding: 16px 18px;
  }

  #why .why-ring .features__item h3 {
    font-size: 18px;
  }

  #why {
    max-width: 1160px;
  }
}

/* B2B-блок под кольцом: фоновый, как карточки; ширина = блок «О бренде» (2026-10-10) */
.why-b2b {
  max-width: 460px;
  margin: 16px auto 0;
  padding: 16px 18px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  text-align: left;
  font-size: 16px;
  line-height: 1.6;
  transition: background-color 0.15s ease;
}

/* Как маленькие карточки: ярче при наведении */
.why-b2b:hover,
.why-b2b:focus-within {
  background: var(--plum-light);
}

.why-b2b__tag {
  display: block;
  text-align: left;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--plum);
}

.why-b2b__title {
  margin-top: 20px;
  text-align: left;
}

/* Между заголовком и текстом — одна строка воздуха */
.why-b2b p + p {
  margin-top: 20px;
}

.why-b2b__title {
  text-align: left;
}

.why-b2b__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--plum);
}

.why-b2b p {
  margin: 0;
}

.why-b2b strong {
  color: var(--plum);
}

.why-b2b a {
  display: inline-block;
  padding: 4px 0;
  color: var(--plum);
  text-decoration: none;
  border-bottom: 1px solid rgba(90, 45, 75, 0.3);
  transition: border-color 0.15s ease;
}

/* Мобильный: ссылки не прижаты друг к другу — не промахнуться пальцем */
@media (max-width: 767px) {
  .why-b2b a {
    padding: 8px 0;
  }
}

.why-b2b a:hover,
.why-b2b a:focus-visible {
  border-bottom-color: var(--plum);
}

/* Слайдер примеров вышивки: реальные фото вместо заглушек (2026-10-16) */
.branding-slide {
  position: absolute;
  inset: 0;
  background: var(--bg-soft);
}

/* Фото целиком, без обрезки (полный рост и вышивка видны) */
.branding-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Пунктирная рамка-заглушка больше не нужна */
#custom .fit-viewer__frame {
  border: none;
}

/* Увеличенный вышитый логотип — наложение на 4-м кадре (рукав):
   верхний правый угол, наклон, белая кайма, тень. Логотип на рукаве не перекрывает */
.branding-slide__logo {
  position: absolute;
  right: 5%;
  top: 6%;
  left: auto;
  bottom: auto;
  width: 30% !important;
  height: auto !important;
  object-fit: contain;
  border: 4px solid #ffffff;
  box-shadow: 0 8px 20px rgba(30, 10, 25, 0.25);
  transform: rotate(-5deg);
}

/* Текстовая ссылка MAX в подвале — только десктоп */
@media (max-width: 767px) {
  .footer__max {
    display: none;
  }
}

/* Модалка размеров на мобильном: числа не переносятся, всё в одну строку (2026-10-16) */
@media (max-width: 767px) {
  .modal .v2-sizetable th,
  .modal .v2-sizetable td {
    padding: 8px 2px;
    font-size: 14px;
    white-space: nowrap;
  }

  .modal .v2-sizetable tbody th {
    font-size: 20px;
  }
}

/* Ростовки в подписях — тоже неразрывные */
.v2-sizes__note b {
  white-space: nowrap;
}

/* Крестик модалки: убираем фокусную рамку при открытии (2026-10-16) */
.modal__close:focus,
.modal__close:focus-visible {
  outline: none;
}

/* Модалки на мобильном — во весь экран (2026-10-17) */
@media (max-width: 767px) {
  .modal {
    align-items: stretch;
  }

  .modal__panel {
    width: 100%;
    max-width: none;
    max-height: none;
    height: 100dvh;
    padding: 24px 20px;
    border-radius: 0;
  }
}

/* Модалки на десктопе — квадратные окна по центру (2026-10-17) */
@media (min-width: 768px) {
  .modal {
    align-items: center;
  }

  .modal__panel {
    width: min(560px, 92vw);
    aspect-ratio: 1 / 1;
    max-height: 92vh;
    border-radius: var(--radius);
  }
}

/* Центральный блок «Почему нас выбирают»: кнопка «О бренде» + коллаж 3×3 (2026-10-17) */
.why-brand__img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 16px;
  border-radius: 2px;
}

/* Центральная колонка кольца: «О бренде», монограмма, B2B (2026-10-17) */
.why-logo {
  grid-area: logo;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.why-logo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.why-b2b {
  grid-area: b2b;
}

/* Якорь из бургера «Для клиник и салонов (B2B)»: отступ от шапки + подсветка при переходе */
#b2b {
  scroll-margin-top: 80px;
}

#b2b:target {
  background: var(--plum-light);
}



/* На мобильном центральный блок «О бренде» скрыт (модалка в подвале остаётся, 2026-10-17) */
@media (max-width: 767px) {
  .why-brand {
    display: none;
  }
}

/* На мобильном B2B-блок — в конец слайда (2026-10-17) */
@media (max-width: 767px) {
  .why-b2b {
    order: 99;
  }
}

/* Таблица размеров на мобильном: числа не переносятся (2026-10-17) */
@media (max-width: 767px) {
  .v2-sizetable th,
  .v2-sizetable td {
    padding: 8px 2px;
    font-size: 14px;
    white-space: nowrap;
  }

  .v2-sizetable tbody th {
    font-size: 20px;
  }
}

/* На мобильном сами ростовки — на новую строку (десктоп не меняется, 2026-10-17) */
@media (max-width: 767px) {
  .v2-sizes__heights {
    display: block;
  }
}

/* Мобильные заголовки слайдов — единые 23px; у «Ткани» первая фраза использует всю ширину экрана (2026-10-18) */
@media (max-width: 767px) {
  .v2-sizes .section__title {
    font-size: 23px;
  }

  .fabric-layout {
    display: flex;
    flex-direction: column;
  }

  .fabric-layout__text {
    display: contents;
  }

  #fabric .fabric-layout__text > .section__title {
    order: -1;
    margin-left: -20px;
    margin-right: -20px;
    font-size: 23px;
  }

  .fabric-title__first {
    white-space: nowrap;
  }
}

/* ---------- Плашка куки (Яндекс.Метрика, 2026-11-04) ---------- */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(30, 10, 25, 0.14);
  font-size: 14px;
  line-height: 1.5;
}

/* display:flex перебивает атрибут hidden — возвращаем скрытие */
.cookie-bar[hidden] {
  display: none;
}

.cookie-bar__text {
  margin: 0;
  color: var(--text-muted);
}

.cookie-bar__text .linklike {
  color: var(--plum);
  text-decoration: underline;
}

.cookie-bar__btn {
  flex: 0 0 auto;
  padding: 8px 20px;
  border: 1px solid var(--plum-light);
  border-radius: 999px;
  background: var(--plum-light);
  color: var(--plum);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cookie-bar__btn:hover,
.cookie-bar__btn:focus-visible {
  background: var(--plum);
  border-color: var(--plum);
  color: #ffffff;
}

@media (max-width: 767px) {
  .cookie-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-bar__btn {
    align-self: center;
  }
}
