/* ==========================================================================
   AZHUR — первая секция (header + hero)
   ========================================================================== */

/* Свои шрифты из assets/fonts: Gilroy — тексты, Austin Cyr — заголовки и акценты.
   В курсивах Austin неразрывный пробел (U+00A0) в 2 раза шире обычного — берём его из прямого начертания. */
@font-face { font-family: "Gilroy"; src: url("../assets/fonts/Gilroy-Light.ttf") format("truetype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("../assets/fonts/Gilroy-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("../assets/fonts/Gilroy-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("../assets/fonts/Gilroy-Semibold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("../assets/fonts/Gilroy-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("../assets/fonts/Gilroy-RegularItalic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Austin Cyr"; src: url("../assets/fonts/AustinCyr-Roman.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Austin Cyr"; src: url("../assets/fonts/AustinCyr-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap;; unicode-range: U+0000-009F, U+00A1-10FFFF; }
@font-face { font-family: "Austin Cyr"; src: url("../assets/fonts/AustinCyr-Roman.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+00A0; }
@font-face { font-family: "Austin Cyr"; src: url("../assets/fonts/AustinCyr-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Austin Cyr"; src: url("../assets/fonts/AustinCyr-MediumItalic.woff") format("woff"); font-weight: 500; font-style: italic; font-display: swap;; unicode-range: U+0000-009F, U+00A1-10FFFF; }
@font-face { font-family: "Austin Cyr"; src: url("../assets/fonts/AustinCyr-Medium.woff") format("woff"); font-weight: 500; font-style: italic; font-display: swap; unicode-range: U+00A0; }

:root {
  /* Цвета */
  --green-900: #003c38;
  --green-800: #0a4b45;
  --ink: #0d3833;
  --text: #4c5754;
  --muted: #7a827f;
  --gold: #b08a5a;
  --gold-text: #8a683f;   /* золото для мелкого текста на --paper: 4.8:1 (у --gold всего 3.1:1) */
  --gold-soft: #c8a77c;
  --gold-light: #d9c3a0;
  --copper: #b1834e;
  --line: #ece9e3;
  --paper: #faf8f4;        /* общий тёплый фон страницы — «небелёный лён»; белые рамки и кнопки на нём светятся */

  /* Шрифты */
  --serif: "Austin Cyr", Georgia, "Times New Roman", serif;   /* заголовки и акценты */
  --sans: "Gilroy", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;  /* тексты */
  /* Вёрстка курсивных акцентов подогнана под x-height .4 (был Cormorant),
     первые строки заголовков — под .5 (рубленый шрифт). У Austin x-height .42,
     font-size-adjust приводит его к нужной высоте строчных в обоих случаях. */
  --serif-fit: .4;
  --head-fit: .5;

  /* Сетка */
  --maxw: 1920px;
  --gutter: clamp(16px, 4.4vw, 88px);

  --ease: cubic-bezier(.22, .7, .12, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(clamp(64px, 5.3vw, 102px) + 20px);   /* якоря не прячутся под липкой шапкой */
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* длинные слова («Трудновоспламеняемые») не должны вылезать за край на узких экранах */
h1, h2, h3, p, dd, li, figcaption { overflow-wrap: break-word; }
@media (max-width: 599px) {
  .post__facts dd, .hr-docs__grid, .cat-tile__desc { -webkit-hyphens: auto; hyphens: auto; }
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.icon {
  width: 1em; height: 1em;
  flex: none;
  transition: transform .45s var(--ease);
}

/* ==========================================================================
   Header
   ========================================================================== */

.header { position: sticky; top: 0; z-index: 20; background: var(--paper); }

.header__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  min-height: clamp(64px, 5.3vw, 102px);
}

.header__inner::after {
  content: "";
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: 0;
  height: 1px;
  background: var(--line);
}

.logo {
  justify-self: start;
  display: inline-flex;
  flex-direction: column;
  color: var(--green-900);
}

.logo__mark { width: clamp(112px, 7.7vw, 150px); height: auto; }

.logo__sub {
  margin-top: clamp(5px, .45vw, 9px);
  font-size: clamp(8px, .5vw, 10px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .55em;
  text-transform: uppercase;
  color: var(--gold-text);
}

/* Навигация */
.nav__list { display: flex; gap: clamp(32px, 3.6vw, 70px); }

.nav__link {
  position: relative;
  display: inline-block;
  padding-block: 8px;
  font-size: clamp(14px, .95vw, 17px);
  color: var(--ink);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}

.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

/* выделенный пункт «Для бизнеса»: контурная пилюля с золотой точкой */
.nav__link--biz {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block: -3px;
  padding: 9px 16px;
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  background: rgba(200, 167, 124, .1);
  color: var(--green-900);
  font-weight: 500;
  transition: background-color .3s, border-color .3s, color .3s;
}
.nav__link--biz::after { display: none; }
.nav__link--biz:hover { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.nav__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.nav__link--biz:hover .nav__dot { background: var(--gold-light); }

.nav__cta { display: none; }

/* CTA — контурная «пилюля» */
.header__cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: clamp(200px, 15vw, 290px);
  height: clamp(42px, 3.1vw, 58px);
  padding-inline: clamp(18px, 1.45vw, 28px);
  border: 1px solid rgba(13, 56, 51, .2);
  border-radius: 12px;
  font-size: clamp(13.5px, .9vw, 16px);
  color: var(--ink);
  transition: background-color .35s, border-color .35s, color .35s;
}

.header__cta .icon { font-size: 16px; color: var(--green-900); transition: transform .45s var(--ease), color .35s; }
.header__cta:hover { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.header__cta:hover .icon { color: #fff; transform: translate(2px, -2px); }

.burger { display: none; }

/* ==========================================================================
   Hero
   Геометрия задана в единицах макета: 1u = 1px макета при ширине контента 1450px.
   Всё масштабируется вместе с контейнером.
   ========================================================================== */

.hero { position: relative; padding-bottom: calc(var(--gutter) * .6); }

.hero__inner {
  container-type: inline-size;
  --u: calc(100cqi / 1450);
}

.hero__meta {
  padding-top: calc(22 * var(--u));
  font-size: clamp(9.5px, calc(10.5 * var(--u)), 13px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-text);
}

/* ---------- Вордмарк ---------- */
.hero__wordmark {
  width: 90%;
  margin: calc(14 * var(--u)) auto 0;
}

/* Контейнер точно в пропорциях логотипа; маска = контур букв из azhur-mask.svg */
.wordmark {
  position: relative;
  width: 100%;
  aspect-ratio: 14520 / 3110;
  overflow: hidden;
  background: #3b3b3b url("../assets/img/wordmark-poster.webp") 50% 62% / cover no-repeat;
  -webkit-mask: url("../assets/img/azhur-mask.svg") center / 100% 100% no-repeat;
          mask: url("../assets/img/azhur-mask.svg") center / 100% 100% no-repeat;
  filter: grayscale(1) contrast(1.08);   /* ч/б: и видео, и постер */
  animation: curtain-open 1.6s var(--ease) .1s both;
}

.wordmark__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 62%;
  opacity: 0;
  transition: opacity 1s ease;
}

.wordmark__video.is-playing { opacity: 1; }

.wordmark__tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .06) 0%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .22) 100%);
  pointer-events: none;
}

@keyframes curtain-open {
  from { clip-path: inset(0 50% 0 50%); }
  to   { clip-path: inset(0 0 0 0); }
}

/* ---------- Зелёная панель ---------- */
.hero__panel {
  --r: calc(56 * var(--u));
  --ring: calc(18 * var(--u));
  --ring-r: calc(60 * var(--u));

  position: relative;
  display: grid;
  grid-template-columns: 1fr calc(848 * var(--u));
  grid-template-rows: 1fr auto;
  column-gap: calc(32 * var(--u));
  margin: calc(117 * var(--u)) calc(-20 * var(--u)) 0;
  padding: 0 calc(20 * var(--u)) 0 calc(45 * var(--u));
  border-radius: min(calc((var(--r)) * 0.45), 20px);
  color: #fff;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(255, 255, 255, .08), transparent 60%),
    radial-gradient(80% 80% at 100% 100%, rgba(0, 0, 0, .22), transparent 70%),
    #0d3f39 url("../assets/img/panel-fabric.webp") center / cover no-repeat;
  box-shadow:
    0 2px 4px rgba(0, 30, 26, .08),
    0 40px 70px -40px rgba(0, 30, 26, .55);
  animation: rise 1.1s var(--ease) .35s both;
}

/* ---------- Текст ---------- */
.hero__copy {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: calc(44 * var(--u)) 0 calc(44 * var(--u));
}

.hero__title {
  display: flex;
  flex-direction: column;
  font-weight: 400;
  color: #fff;
}

.hero__title-sans {
  font-family: var(--serif);
  font-size-adjust: var(--head-fit);
  font-size: clamp(30px, calc(55 * var(--u)), 72px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.hero__title-serif {
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(38px, calc(71 * var(--u)), 94px);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.01em;
}

.hero__lead {
  max-width: 27em;
  margin-top: calc(22 * var(--u));
  font-size: clamp(15px, calc(15.5 * var(--u)), 19px);
  line-height: 1.65;
  color: rgba(255, 255, 255, .9);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-width: clamp(220px, calc(262 * var(--u)), 340px);
  height: clamp(48px, calc(54 * var(--u)), 68px);
  white-space: nowrap;
  margin-top: calc(28 * var(--u));
  padding-inline: clamp(20px, calc(24 * var(--u)), 30px);
  border-radius: 12px;
  background: #fff;
  color: var(--green-900);
  font-size: clamp(14px, calc(14 * var(--u)), 17px);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .5);
  transition: background-color .35s, color .35s;
}

.btn .icon { font-size: 16px; }
.btn:hover { background: var(--gold-light); }
.btn:hover .icon { transform: translate(2px, -2px); }

/* Преимущества — три коротких факта одной строкой (подробности — в блоке «Как мы работаем») */

/* перед каждым пунктом — золотой стежок; при переносе строки ничего не ломается */



/* ---------- Фото ---------- */
.hero__media {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  margin-top: calc(-67 * var(--u));      /* фото выходит за верхний край панели */
}

/* тонкое золотое кольцо вокруг фото — и на белом, и на зелёном.
   Висит на самой рамке фото: блок .hero__media бывает выше фото, и кольцо съезжало вниз */
.hero__photo::before {
  content: "";
  position: absolute;
  /* ровно по центру: одинаковый зазор со всех сторон, скругление = радиус фото + зазор */
  --gap: calc(var(--ring) * 1.1);
  inset: calc(var(--gap) * -1);
  border: 1px solid rgba(200, 167, 124, .75);
  border-radius: calc(min(calc((40 * var(--u)) * 0.45), 20px) + var(--gap));
  pointer-events: none;
}

.hero__photo {
  position: relative;
  padding: calc(10 * var(--u));
  border-radius: min(calc((40 * var(--u)) * 0.45), 20px);
  background: #fff;
  box-shadow:
    0 2px 6px rgba(0, 30, 26, .08),
    0 30px 50px -30px rgba(0, 30, 26, .55);
}

.hero__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 828 / 452;
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: min(calc((30 * var(--u)) * 0.45), 20px);
  background: #efe9df;
}



/* ---------- Подпись под фото ---------- */




/* ---------- Появление ---------- */
.hero__copy > *, .hero__media { animation: rise 1s var(--ease) both; }
.hero__copy > :nth-child(1) { animation-delay: .5s; }
.hero__copy > :nth-child(2) { animation-delay: .58s; }
.hero__copy > :nth-child(3) { animation-delay: .66s; }
.hero__copy > :nth-child(4) { animation-delay: .74s; }
.hero__media { animation-delay: .6s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (max-width: 1199px) {
  .nav__list { gap: 28px; }
  .header__cta { width: 196px; gap: 16px; }
}

/* Планшет и мобильный */
@media (max-width: 1023px) {
  .header__inner { grid-template-columns: 1fr auto; }
  .header__cta { display: none; }

  .burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 44px; height: 44px;
    margin-right: -10px;
    padding: 10px;
    background: none;
    border: 0;
    cursor: pointer;
  }

  .burger__line {
    display: block;
    width: 24px; height: 1.5px;
    background: var(--green-900);
    transition: transform .4s var(--ease);
  }

  .header.is-open .burger__line:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
  .header.is-open .burger__line:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    padding: 12px var(--gutter) 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(0, 40, 36, .25);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .3s, transform .4s var(--ease), visibility 0s .4s;
  }

  .header.is-open .nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .3s, transform .4s var(--ease);
  }

  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding-block: 14px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__link--biz { display: inline-flex; margin-top: 14px; padding: 10px 18px; border-bottom: 1px solid var(--gold-soft); }

  .nav__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 0 22px;
    height: 54px;
    border-radius: 12px;
    background: var(--green-900);
    color: #fff;
    font-size: 16px;
  }

  /* Hero: вордмарк → панель (фото выходит за верх) → подпись → текст */
  .hero__meta { padding-top: 22px; font-size: 10px; }
  .hero__wordmark { width: 100%; margin-top: 14px; }

  .hero__panel {
    --r: 28px;
    --ring: 10px;
    --ring-r: 30px;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    margin: 72px 0 0;
    padding: 0 14px;
  }

  .hero__media { grid-column: 1; grid-row: 1; margin-top: -44px; }
  .hero__copy  { grid-row: 2; padding: 36px 14px 40px; }

  .hero__photo::before { --gap: 8px; border-radius: 18px; }   /* фото 10px + зазор 8px */
  .hero__photo { padding: 6px; border-radius: 10px; }
  .hero__photo img { border-radius: 7.5px; aspect-ratio: 3 / 2; }

  .hero__title-sans { font-size: clamp(34px, 7vw, 52px); }
  .hero__title-serif { font-size: clamp(42px, 8.8vw, 66px); }
  .hero__lead { margin-top: 16px; font-size: 16px; }
  .btn { margin-top: 26px; height: 54px; width: 260px; font-size: 15px; }

}

@media (max-width: 599px) {
  .hero__panel { margin-top: 56px; padding: 0 10px; --r: 24px; }
  .hero__media { margin-top: -36px; }
  .hero__copy { padding: 30px 10px 32px; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================================================
   Блок 2 — «Студия»
   Единицы макета: 1s = 1px макета шириной 1344px. Фото+надпись слева,
   оффер справа. Ч/б, зерно, мягкая виньетка.
   ========================================================================== */

:root {
  --cond: "Sofia Sans Extra Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  /* тёплый серо-бежевый вместо нейтрально-серого — дружит с белым, золотом и зелёным hero.
     Совпадает с тоном стены на фото (тёплый тон запечён в studio*.webp) */
  --studio-bg: #bebbb4;
  --studio-ink: #111;
}

/* Панель того же языка, что зелёная в hero: та же ширина (контент + 2×20u),
   тот же радиус 56u, мягкая длинная тень — только тёплая, под ч/б фото */
.studio {
  --content-w: calc(min(100%, var(--maxw)) - 2 * var(--gutter));
  /* контейнер для .studio__inner: его собственные колонки (640 * --s) считаются от ширины панели.
     Без этого cqi на самом .studio__inner брался от окна, и на экранах шире ~2000px
     колонка с фото разрасталась, а текст обрезался краем панели */
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: calc(var(--content-w) * 1.02759);
  margin: calc(var(--gutter) * .45) auto calc(var(--gutter) * .7);
  /* = 56u панели hero; vw, т.к. % в border-radius считается от самого блока */
  border-radius: min(calc(((min(100vw, var(--maxw)) - 2 * var(--gutter)) * .03862) * 0.45), 20px);
  color: var(--studio-ink);
  background:
    radial-gradient(120% 90% at 42% 55%, rgba(255, 255, 255, .08), transparent 60%),
    linear-gradient(90deg, var(--studio-bg) 0%, var(--studio-bg) 52%, #aea9a1 78%, #96918a 100%);
  box-shadow:
    0 2px 4px rgba(45, 35, 25, .06),
    0 40px 70px -40px rgba(45, 35, 25, .5);
}

/* плёночное зерно поверх фона — чтобы стыковалось с зерном фото */
.studio::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .32;
  mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.6 -.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.studio__inner {
  container-type: inline-size;
  --s: calc(100cqi / 1344);
  position: relative;
  display: grid;
  grid-template-columns: calc(640 * var(--s)) minmax(0, 1fr);
  align-items: center;
  max-width: var(--maxw);
  min-height: calc(752 * var(--s));
  margin-inline: auto;
}

/* ---------- Фото + вертикальная надпись ---------- */
.studio__stage {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(793 * var(--s));          /* родные пропорции кадра 1414×1340 */
}

.studio__photo,
.studio__word {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  max-width: none;
}

.studio__photo {
  object-fit: cover;
  object-position: 0 50%;               /* = xMinYMid у svg */
  /* справа растворяется в фон; сверху/снизу/слева кадр обрезает скругление панели */
  -webkit-mask: linear-gradient(90deg, #000 80%, transparent 99%);
          mask: linear-gradient(90deg, #000 80%, transparent 99%);
}

/* вырезка фигуры появляется только вместе с основным фото (класс ставит JS) */
.studio__word image { opacity: 0; transition: opacity .4s var(--ease); }
.studio__stage.is-loaded .studio__word image { opacity: 1; }

.studio__word text {
  font-family: var(--cond);
  font-weight: 800;
  font-size: 450px;                     /* в единицах viewBox; длину строки фиксирует textLength */
  fill: var(--studio-ink);
}

/* ---------- Обращение руководителя ---------- */
.studio__content {
  grid-column: 2;
  position: relative;
  padding: calc(12 * var(--s)) calc(64 * var(--s)) calc(36 * var(--s)) 0;
  color: #1a1a1a;
}

.studio__title {
  margin: 0;
  font-family: var(--serif);
  font-size-adjust: var(--head-fit);
  font-size: calc(64 * var(--s));
  line-height: 1.06;
  letter-spacing: -.01em;
  color: #161616;
}

.studio__title > * { display: block; white-space: nowrap; }   /* масштаб в s — строки всегда влезают */
.studio__hello { font-weight: 300; }
/* курсивный акцент — как «Характер дома.» и «Интерьеры с характером.» */
.studio__name {
  margin-top: .04em;
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: 1.16em;                    /* у акцентного шрифта меньше x-height — выравниваем визуальный кегль */
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.01em;
}

.studio__role {
  display: flex;
  align-items: center;
  gap: calc(22 * var(--s));
  margin-top: calc(30 * var(--s));
  font-size: clamp(11px, calc(12 * var(--s)), 16px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.studio__role::before {
  content: "";
  flex: none;
  width: calc(50 * var(--s));
  height: 1px;
  background: currentColor;
}

.studio__letter {
  max-width: calc(560 * var(--s));
  margin-top: calc(28 * var(--s));
  font-size: clamp(15px, calc(16 * var(--s)), 20px);
  line-height: 1.6;
  color: #2a2a2a;
}

.studio__letter p + p { margin-top: .8em; }

/* подпись — картинка */
.studio__sign {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-top: calc(4 * var(--s));
}

.studio__signature {
  width: max(190px, calc(300 * var(--s)));
  height: auto;
}

/* ---------- Появление при прокрутке (только с JS) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease);
}
.js .studio__title[data-reveal]  { transition-delay: .08s; }
.js .studio__role[data-reveal]   { transition-delay: .2s; }
.js .studio__letter[data-reveal] { transition-delay: .3s; }
.js .studio__sign[data-reveal]   { transition-delay: .42s; }
.js .is-visible [data-reveal] { opacity: 1; transform: none; }

/* ---------- Планшет и мобильный ---------- */
@media (max-width: 1023px) {
  .studio__inner {
    display: block;
    min-height: 0;
  }

  /* кадр уже: правая часть фото за надписью срезается (cover + выравнивание влево) */
  .studio__stage {
    position: relative;
    inset: auto;
    width: min(100%, 640px);
    aspect-ratio: 1040 / 1340;
  }

  .studio {
    width: var(--content-w);           /* как панель hero на планшете/телефоне */
    margin-top: 40px;
    border-radius: 12.5px;
  }

  .studio__photo {
    -webkit-mask: linear-gradient(90deg, #000 86%, transparent), linear-gradient(180deg, #000 90%, transparent);
    -webkit-mask-composite: source-in;
            mask: linear-gradient(90deg, #000 86%, transparent), linear-gradient(180deg, #000 90%, transparent);
            mask-composite: intersect;
  }

  .studio__content { padding: 8px 28px 40px; }


  .studio__title { font-size: clamp(34px, 8.6vw, 60px); }
  .studio__title > * { white-space: normal; }
  .studio__role { margin-top: 22px; gap: 16px; font-size: 11px; letter-spacing: .3em; }
  .studio__role::before { width: 32px; }
  .studio__letter { max-width: 620px; margin-top: 22px; font-size: 16px; }
  .studio__sign { margin-top: 6px; }
}

@media (max-width: 599px) {
  .studio { margin-top: 32px; border-radius: 11px; }
  .studio__content { padding: 4px 20px 32px; }
  .studio__role { font-size: 11px; letter-spacing: .2em; }
  .studio__letter { font-size: 15.5px; }
}

/* ---------- Лента постов Instagram внизу панели ---------- */
.insta {
  --s: calc(100cqi / 1344);             /* те же единицы макета, что у .studio__inner */
  position: relative;
  padding: calc(28 * var(--s)) 0 calc(48 * var(--s));
  border-top: 1px solid rgba(17, 17, 17, .14);
  margin-inline: calc(64 * var(--s));
}

.insta__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: calc(20 * var(--s));
}

.insta__handle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(11px, calc(12 * var(--s)), 16px);
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #1a1a1a;
}
.insta__handle b {
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: 1.9em;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  margin-left: .3em;
}
.insta__logo { width: 22px; height: 22px; flex: none; }
.insta__handle:hover b { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }

.insta__nav { display: flex; gap: 8px; }
.insta.is-static .insta__nav { visibility: hidden; }
.insta__btn {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, .35);
  border-radius: 50%;
  background: transparent;
  color: #1a1a1a;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), opacity .25s;
}
.insta__btn svg { width: 14px; height: 14px; }
.insta__btn:hover:not(:disabled) { background: #1a1a1a; color: var(--studio-bg); }
.insta__btn:disabled { opacity: .3; cursor: default; }

.insta__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 5 * 12px) / 6);   /* 6 постов в ряд на десктопе */
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.insta__track::-webkit-scrollbar { display: none; }
.insta__track > li { scroll-snap-align: start; }

.insta__post {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  background: #a9a59e;
}
.insta__post img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.insta__post::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(17, 17, 17, .0)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='5' fill='none' stroke='white' stroke-width='1.5'/%3E%3Ccircle cx='12' cy='12' r='4.2' fill='none' stroke='white' stroke-width='1.5'/%3E%3Ccircle cx='17.4' cy='6.6' r='1.1' fill='white'/%3E%3C/svg%3E")
    center / 28px no-repeat;
  opacity: 0;
  transition: opacity .35s var(--ease), background-color .35s var(--ease);
}
.insta__post:hover img,
.insta__post:focus-visible img { transform: scale(1.04); }
.insta__post:hover::after,
.insta__post:focus-visible::after { opacity: 1; background-color: rgba(17, 17, 17, .28); }
.insta__post:focus-visible { outline-offset: 3px; }

@media (max-width: 1023px) {
  .insta { margin-inline: 28px; padding: 22px 0 32px; }
  .insta__head { margin-bottom: 16px; }
  .insta__track { grid-auto-columns: calc((100% - 2 * 10px) / 3.3); gap: 10px; }
}

@media (max-width: 599px) {
  .insta { margin-inline: 20px; padding-bottom: 24px; }
  .insta__handle { gap: 10px; letter-spacing: .2em; }
  .insta__handle b { display: block; margin-left: 0; }   /* длинный ник — отдельной строкой под подписью */
  .insta__nav { display: none; }        /* на телефоне листают пальцем */
  .insta__track { grid-auto-columns: 42%; margin-right: -20px; padding-right: 20px; scroll-padding-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .insta__track { scroll-behavior: auto; }
  .insta__post img { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Шов между hero и «О студии»
   .seam-ready — панели сшиты: блок подтянут вплотную к зелёной панели,
                 углы в месте стыка прямые, по стыку золотые стежки;
   .is-cut     — ножницы плавно скользят по шву (1.8s) с чуть раскрытыми лезвиями,
                 стежки исчезают ровно за ними,
                 затем блок отъезжает на место и углы скругляются.
   Без JS и при reduced-motion классов нет — сразу финальное состояние.
   ========================================================================== */

.seam {
  --content-w: calc(min(100%, var(--maxw)) - 2 * var(--gutter));
  --seam-w: calc(var(--content-w) * 1.02759);        /* = ширина панелей */
  position: relative;
  z-index: 5;
  top: calc(var(--gutter) * -.6);                     /* линия = низ зелёной панели */
  width: var(--seam-w);
  height: 0;
  margin-inline: auto;
  display: none;
  pointer-events: none;
}

.seam-ready .seam { display: block; }

/* обмёточный шов: короткие косые стежки поперёк стыка */
.seam__stitches {
  position: absolute;
  left: 4%; right: 4%;
  top: -7px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M3 1.5 11 12.5' stroke='%23c8a77c' stroke-width='1.6' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") 0 0 / 14px 14px repeat-x;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .25));
}

.seam__scissors {
  position: absolute;
  left: 4%;
  top: 0;
  --sc: clamp(52px, 5.4vw, 96px);
  width: var(--sc);
  height: auto;
  margin-left: calc(var(--sc) * -.95);  /* точка реза (кончики лезвий) — на линии */
  transform: translateY(-50%);
  opacity: 0;
  overflow: visible;
  filter: drop-shadow(0 4px 6px rgba(0, 20, 18, .35));
}

.seam__scissors circle:not(.seam__pivot) { fill: none; stroke: var(--copper); stroke-width: 3.2; }
.seam__arm   { fill: none; stroke: var(--copper); stroke-width: 3.2; stroke-linecap: round; }
.seam__edge  { fill: var(--gold-light); stroke: var(--gold); stroke-width: .8; stroke-linejoin: round; }
.seam__pivot { fill: var(--gold); }

.seam__blade { transform-box: view-box; transform-origin: 39px 20px; }
/* лезвия чуть раскрыты и не двигаются — ножницы скользят, а не щёлкают */
.seam__blade--a { transform: rotate(-7deg); }
.seam__blade--b { transform: rotate(7deg); }

/* сшитое состояние */
.seam-ready:not(.is-cut) .hero__panel {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.seam-ready:not(.is-cut) .studio {
  transform: translateY(calc(-1 * var(--join)));
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* расстояние, которое блок проходит при расхождении = зазор между панелями */
.studio { --join: calc(var(--gutter) * 1.05); }

/* разрез */
/* одна и та же длительность и кривая у ножниц и стежков — стежки исчезают точно за остриём */
.seam { --cut: 1.8s; --cut-ease: cubic-bezier(.45, .05, .35, 1); }
.is-cut .seam__stitches { animation: unstitch var(--cut) var(--cut-ease) forwards; }
.is-cut .seam__scissors { animation: scissors-in .35s ease-out forwards, scissors-run var(--cut) var(--cut-ease) forwards, scissors-out .45s ease-in var(--cut) forwards; }

.is-cut .hero__panel { transition: border-radius .9s var(--ease) 1.85s; }
.is-cut .studio {
  transition:
    transform 1.05s cubic-bezier(.6, 0, .2, 1) 1.85s,
    border-radius .9s var(--ease) 1.85s;
}

@keyframes unstitch     { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }
@keyframes scissors-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes scissors-run { from { left: 4%; } to { left: 96%; } }
@keyframes scissors-out { from { opacity: 1; } to { opacity: 0; transform: translate(18px, -50%); } }

@media (max-width: 1023px) {
  .studio { --join: calc(40px + var(--gutter) * .6); }
  .seam { --seam-w: var(--content-w); }
}

@media (max-width: 599px) {
  .studio { --join: calc(32px + var(--gutter) * .6); }
}

/* ==========================================================================
   Блок 3 — Портфолио
   Единицы макета: 1p = ширина контента / 1200 (макет 1344 с полями ~72).
   Карусель-веер: все карточки одного размера, позицию задаёт data-pos
   (0 — центр, ±1, ±2 — уменьшенные по бокам, off/out — скрыты).
   ========================================================================== */

.pf {
  padding: calc(var(--gutter) * .7) 0 var(--gutter);
  overflow-x: hidden;   /* боковые карточки веера не дают горизонтальный скролл */
  overflow-x: clip;
}

.pf__inner {
  container-type: inline-size;
  --p: calc(100cqi / 1200);
}

/* ---------- Шапка секции ---------- */
.pf__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: calc(64 * var(--p));
}

.pf__title {
  display: flex;
  flex-direction: column;
  white-space: nowrap;                  /* масштаб в p — строки всегда влезают */
  margin: 0;
  font-weight: 400;
  color: var(--green-900);
}

.pf__title-sans {
  font-family: var(--serif);
  font-size-adjust: var(--head-fit);
  font-size: clamp(32px, calc(50 * var(--p)), 66px);
  line-height: 1.08;
  letter-spacing: -.01em;
}

.pf__title-serif {
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(34px, calc(52 * var(--p)), 70px);
  font-style: italic;
  line-height: 1.02;
  letter-spacing: -.01em;
}

.pf__lead {
  max-width: calc(400 * var(--p));
  min-width: 260px;
  margin-bottom: calc(8 * var(--p));
  padding-left: calc(34 * var(--p));
  /* вертикальная стёжка вместо сплошной линии */
  background: repeating-linear-gradient(180deg, var(--gold-soft) 0 6px, transparent 6px 11px) 0 0 / 1.5px 100% no-repeat;
  font-size: clamp(14.5px, calc(15 * var(--p)), 18px);
  line-height: 1.65;
  color: var(--text);
}

/* ---------- Фильтры ---------- */
.pf__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: calc(30 * var(--p));
}

.pf__filter {
  flex: none;
  padding: 0 clamp(16px, calc(20 * var(--p)), 26px);
  min-height: clamp(38px, calc(40 * var(--p)), 48px);
  border: 1px solid rgba(0, 60, 56, .16);
  border-radius: 12px;
  background: none;
  cursor: pointer;
  font-size: clamp(13.5px, calc(14 * var(--p)), 17px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.pf__filter[hidden] { display: none; }
.pf__filter:hover { background: rgba(0, 60, 56, .07); }
.pf__filter.is-active { background: var(--green-900); border-color: var(--green-900); color: #fff; }

/* ---------- Сцена карусели ---------- */
.pf__stage {
  /* Центральная карточка — портрет: шторы тянутся от потолка до пола.
     Высота ограничена экраном (100svh − шапка, заголовок, фильтры и стрелки ≈ 30vw),
     чтобы карусель целиком помещалась на ноутбуке; ширина и всё внутри считаются от высоты. */
  --ch: clamp(400px, calc(100vh - 30vw), calc(500 * var(--p)));
  --ch: clamp(400px, calc(100svh - 30vw), calc(500 * var(--p)));
  --cw: calc(var(--ch) * .76);
  --c: calc(var(--cw) / 392);          /* единица карточки: 1c = 1px при ширине карточки 392px */
  --x1: calc(var(--cw) * .745);        /* смещения центров боковых карточек */
  --x2: calc(var(--cw) * 1.235);
  --k1: .86;
  --k2: .74;
  position: relative;
  height: calc(var(--ch) + 24 * var(--c));
  margin-top: calc(22 * var(--p));
  touch-action: pan-y;
  user-select: none;
  outline: none;
}
.pf__stage:focus-visible { outline: 1px solid var(--gold); outline-offset: 6px; border-radius: 11px; }

.pf__track { position: absolute; inset: 0; }

.pf-card {
  --x: 0px;
  --k: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--cw);
  height: var(--ch);
  transform: translate(-50%, -50%) translateX(var(--x)) scale(var(--k));
  transition: transform .75s var(--ease), opacity .5s var(--ease), filter .5s var(--ease);
  will-change: transform;
}

.pf-card[data-pos="0"]  { z-index: 5; }
.pf-card[data-pos="-1"] { --x: calc(-1 * var(--x1)); --k: var(--k1); z-index: 4; }
.pf-card[data-pos="1"]  { --x: var(--x1);            --k: var(--k1); z-index: 4; }
.pf-card[data-pos="-2"] { --x: calc(-1 * var(--x2)); --k: var(--k2); z-index: 3; }
.pf-card[data-pos="2"]  { --x: var(--x2);            --k: var(--k2); z-index: 3; }
.pf-card[data-pos="out-l"] { --x: calc(-1 * var(--x2)); --k: .6; z-index: 1; opacity: 0; pointer-events: none; }
.pf-card[data-pos="out-r"] { --x: var(--x2);            --k: .6; z-index: 1; opacity: 0; pointer-events: none; }
.pf-card[data-pos="off"]   { --k: .6; z-index: 0; opacity: 0; pointer-events: none; visibility: hidden; }

.pf-card:not([data-pos="0"]) { cursor: pointer; }
.pf-card:not([data-pos="0"]):hover { filter: brightness(1.04); }

/* белая рамка, как у фото в hero */
.pf-card__frame {
  position: relative;
  height: 100%;
  padding: max(3px, calc(4 * var(--c)));
  border-radius: min(calc((26 * var(--c)) * 0.45), 20px);
  background: #fff;
  /* многослойная тень зелёного оттенка: контактная + средняя + длинная мягкая снизу */
  box-shadow:
    0 1px 3px rgba(0, 30, 26, .08),
    0 14px 28px -10px rgba(0, 30, 26, .22),
    0 36px 60px -28px rgba(0, 30, 26, .42);
  transition: box-shadow .6s var(--ease);
}

/* центральная карточка «приподнята» сильнее боковых */
.pf-card[data-pos="0"] .pf-card__frame {
  box-shadow:
    0 2px 6px rgba(0, 30, 26, .1),
    0 22px 44px -14px rgba(0, 30, 26, .32),
    0 60px 90px -40px rgba(0, 30, 26, .55);
}

.pf-card__frame img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border-radius: min(calc((22 * var(--c)) * 0.45), 20px);
  background: #efe9df;
  pointer-events: none;
}

/* ---------- Подпись: зелёная ткань с выступом-язычком слева ----------
   ОДИН элемент с одной текстурой: язычок входит в его высоту (--tab сверху),
   а форму вырезает маска из трёх слоёв — тело, ровная часть язычка и S-изгиб (SVG).
   Поэтому нет стыков ни в ткани, ни в цвете. */
.pf-card__caption {
  --tab: calc(22 * var(--c));                 /* высота язычка */
  --flat: calc(var(--cw) * .42);              /* ровная часть язычка */
  --curve: calc(var(--tab) * 3);              /* ширина S-изгиба */
  position: absolute;
  left: max(3px, calc(4 * var(--c)));
  right: max(3px, calc(4 * var(--c)));
  bottom: max(3px, calc(4 * var(--c)));
  padding: calc(var(--tab) * .45 + 10 * var(--c)) calc(92 * var(--c)) calc(22 * var(--c)) calc(26 * var(--c));
  border-radius: 0 0 min(calc((22 * var(--c)) * 0.45), 20px) min(calc((22 * var(--c)) * 0.45), 20px);
  background: #0d3f39 url("../assets/img/panel-fabric.webp") center / 640px auto;
  color: #fff;
  -webkit-mask:
    linear-gradient(#000 0 0) 0 var(--tab) / 100% calc(100% - var(--tab)) no-repeat,
    linear-gradient(#000 0 0) 0 0 / calc(var(--flat) + 2px) calc(var(--tab) + 1px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0C50 0 50 100 100 100H0Z'/%3E%3C/svg%3E") var(--flat) 0 / var(--curve) calc(var(--tab) + 1px) no-repeat;
          mask:
    linear-gradient(#000 0 0) 0 var(--tab) / 100% calc(100% - var(--tab)) no-repeat,
    linear-gradient(#000 0 0) 0 0 / calc(var(--flat) + 2px) calc(var(--tab) + 1px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0C50 0 50 100 100 100H0Z'/%3E%3C/svg%3E") var(--flat) 0 / var(--curve) calc(var(--tab) + 1px) no-repeat;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s var(--ease), transform .6s var(--ease);
}

.pf-card[data-pos="0"] .pf-card__caption { opacity: 1; transform: none; transition-delay: .25s; }

.pf-card__kind {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(11px, calc(11 * var(--c)), 13px);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.pf-card__kind::after { content: ""; width: calc(40 * var(--c)); height: 1px; background: currentColor; opacity: .7; }

.pf-card__title {
  margin: calc(8 * var(--c)) 0 0;
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(20px, calc(29 * var(--c)), 40px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.01em;
}

.pf-card__text {
  margin-top: calc(8 * var(--c));
  max-width: 34ch;
  font-size: clamp(13px, calc(13.5 * var(--c)), 16.5px);
  line-height: 1.45;
  color: rgba(255, 255, 255, .86);
}

/* медная круглая кнопка — как FAB в hero */
.pf-card__fab {
  position: absolute;
  right: calc(22 * var(--c));
  top: calc(50% + var(--tab) / 2);      /* центр по телу подписи, без язычка */
  display: grid;
  place-items: center;
  width: clamp(44px, calc(52 * var(--c)), 68px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c39561, var(--copper) 60%, #9c7243);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(60, 35, 10, .6);
  transform: translateY(-50%);
  transition: transform .5s var(--ease);
}
.pf-card__fab .icon { font-size: clamp(16px, calc(20 * var(--c)), 26px); }
.pf-card__fab:hover { transform: translateY(-50%) scale(1.06); }
.pf-card__fab:hover .icon { transform: translate(2px, -2px); }
.pf-card:not([data-pos="0"]) .pf-card__fab { visibility: hidden; }

.pf__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(22px, calc(30 * var(--p)), 38px);
  font-style: italic;
  color: var(--text);
}
.pf__empty[hidden] { display: none; }

/* ---------- Управление ---------- */
.pf__controls {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: calc(10 * var(--p));
}

.pf__arrows { display: flex; gap: calc(12 * var(--p)); }

.pf__arrow {
  display: grid;
  place-items: center;
  width: clamp(42px, calc(44 * var(--p)), 56px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .3s, color .3s, transform .4s var(--ease);
}
.pf__arrow svg { width: 38%; }
.pf__arrow--prev { background: #ebe8e3; color: var(--ink); }
.pf__arrow--next { background: var(--green-900); color: #fff; }
.pf__arrow--prev:hover { background: #dfdbd4; }
.pf__arrow--next:hover { background: var(--green-800); }
.pf__arrow:active { transform: scale(.94); }
.pf__arrow:disabled { opacity: .35; cursor: default; }

.pf__dots { display: flex; }

.pf__dot {
  position: relative;
  width: calc(82 * var(--p));
  min-width: 44px;
  padding: 6px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  cursor: pointer;
  font-size: clamp(12.5px, calc(13 * var(--p)), 16px);
  font-variant-numeric: tabular-nums;
  color: #6b7370;
  transition: color .3s;
}
.pf__dot::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .5s var(--ease);
}
.pf__dot:hover { color: var(--ink); }
.pf__dot.is-active { color: var(--ink); font-weight: 600; }
.pf__dot.is-active::after { transform: scaleX(1); }

/* ---------- Планшет и телефон ---------- */
@media (max-width: 1023px) {
  .pf__head {
    grid-template-columns: 1fr;
    row-gap: 22px;
  }
  .pf__title { white-space: normal; }
  .pf__lead { max-width: 560px; min-width: 0; margin-bottom: 0; padding-left: 20px; font-size: 15.5px; }

  /* фильтры — горизонтальная лента со скроллом */
  .pf__filters {
    flex-wrap: nowrap;
    margin: 28px calc(var(--gutter) * -1) 0;
    padding: 2px var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .pf__filters::-webkit-scrollbar { display: none; }
  .pf__filter { padding: 0 18px; min-height: 40px; font-size: 14px; scroll-snap-align: start; }

  /* портретные карточки, видны центр и края ±1 */
  .pf__stage {
    --cw: min(76vw, 460px);
    --ch: calc(var(--cw) * 1.25);
    --x1: calc(var(--cw) * .62);
    --x2: calc(var(--cw) * .9);
    --k1: .84;
    --k2: .7;
    height: calc(var(--ch) + 20px);
    margin-top: 24px;
  }
  .pf-card[data-pos="-2"], .pf-card[data-pos="2"] { opacity: 0; pointer-events: none; }

  .pf-card__frame { padding: 4px; border-radius: 10px; }
  .pf-card__frame img { border-radius: 8px; }
  .pf-card__caption {
    --tab: 18px;
    left: 4px; right: 4px; bottom: 4px;
    padding: calc(var(--tab) * .45 + 8px) 76px 20px 22px;
    border-radius: 0 0 8px 8px;
  }
  .pf-card__kind { font-size: 11px; }
  .pf-card__title { margin-top: 6px; font-size: 24px; }
  .pf-card__text { margin-top: 6px; font-size: 13px; }
  .pf-card__fab { right: 18px; width: 48px; }
  .pf-card__fab .icon { font-size: 17px; }

  .pf__controls { grid-template-columns: auto 1fr; gap: 20px; margin-top: 16px; }
  .pf__dots { justify-content: flex-end; }
  .pf__dot { width: 48px; }
}

@media (max-width: 599px) {
  .pf__stage { --cw: 80vw; }
  .pf-card__caption { padding: calc(var(--tab) * .45 + 6px) 68px 18px 18px; }
  .pf-card__title { font-size: 22px; }
  .pf-card__fab { right: 14px; width: 44px; }
}

/* ==========================================================================
   Надзаголовок первого экрана
   Капс с разрядкой и линия 40px. Раньше такой же стоял над каждым блоком —
   теперь он один: заголовки секций говорят сами за себя.
   ========================================================================== */
.hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(11px, .8vw, 13px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.hero__meta::before {
  content: "";
  flex: none;
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

@media (max-width: 599px) {
  .hero__meta { gap: 12px; letter-spacing: .22em; }
  .hero__meta::before { width: 28px; }
}

/* ==========================================================================
   Сквозные мотивы: стёжка и золотое кольцо
   ========================================================================== */

/* Стёжка — прямой шов золотой нитью на всю ширину панелей.
   С JS «прошивается» слева направо при появлении на экране. */
.stitch {
  --content-w: calc(min(100%, var(--maxw)) - 2 * var(--gutter));
  width: calc(var(--content-w) * 1.02759);
  height: 2px;
  margin-inline: auto;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

/* Нить — на псевдоэлементе: clip-path на самом .stitch обнулял его видимую площадь,
   IntersectionObserver в Chromium не срабатывал, и шов не появлялся вовсе. */
.stitch::before {
  content: "";
  display: block;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 17px);
}

.js .stitch::before {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.8s cubic-bezier(.45, 0, .2, 1);
}
.js .stitch.is-visible::before { clip-path: inset(0 0 0 0); }

@media (max-width: 1023px) {
  .stitch { width: var(--content-w); }
}

/* Золотое кольцо — как вокруг фото в hero (там .hero__photo::before).
   1) вокруг центральной карточки портфолио: ровно по центру, как в hero */
.pf-card::before {
  content: "";
  position: absolute;
  --gap: calc(12 * var(--c));
  inset: calc(var(--gap) * -1);
  z-index: -1;                           /* за рамкой карточки, но над боковыми */
  border: 1px solid rgba(200, 167, 124, .75);
  border-radius: calc(min(calc((26 * var(--c)) * 0.45), 20px) + var(--gap));
  opacity: 0;
  transform: scale(.97);
  transition: opacity .5s var(--ease), transform .7s var(--ease);
  pointer-events: none;
}
.pf-card[data-pos="0"]::before { opacity: 1; transform: none; transition-delay: .3s; }

@media (max-width: 1023px) {
  .pf-card::before { --gap: 8px; border-radius: 18px; }   /* рамка 10px + зазор 8px */
}

/* 2) вокруг панели «О студии»: контур по скруглению панели */
.studio {
  outline: 1px solid rgba(176, 138, 90, .55);
  outline-offset: clamp(8px, 1vw, 16px);
  transition: outline-color .6s var(--ease);
}
/* пока панели сшиты, кольца нет — оно наложилось бы на зелёную панель */
.seam-ready:not(.is-cut) .studio { outline-color: transparent; }
.is-cut .studio {
  transition:
    transform 1.05s cubic-bezier(.6, 0, .2, 1) 1.15s,
    border-radius .9s var(--ease) 1.15s,
    outline-color .8s var(--ease) 2s;
}

@media (prefers-reduced-motion: reduce) {
  .js .stitch::before { clip-path: none; }
}

/* ==========================================================================
   Общий заголовок новых секций: строка гротеском + строка курсивной антиквой,
   те же размеры, что у «Наши проекты.» (единица p = ширина контента / 1200)
   ========================================================================== */
.sec-title {
  display: flex;
  flex-direction: column;
  font-weight: 400;
  color: var(--green-900);
}
.sec-title--light { color: #fff; }

.sec-title__sans {
  font-family: var(--serif);
  font-size-adjust: var(--head-fit);
  font-size: clamp(32px, calc(50 * var(--p)), 66px);
  line-height: 1.08;
  letter-spacing: -.01em;
}

.sec-title__serif {
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(34px, calc(52 * var(--p)), 70px);
  font-style: italic;
  line-height: 1.04;
  letter-spacing: -.01em;
}

/* ==========================================================================
   Блок 4 — «Как мы работаем»
   Портновский сантиметр: белая лента с делениями уходит за правый край экрана.
   Шесть этапов в три колонки: нить каждой колонки спускается от ленты через оба ряда.
   ========================================================================== */
.way {
  padding: calc(var(--gutter) * .9) 0 calc(var(--gutter) * 1.15);
  overflow-x: hidden;
  overflow-x: clip;
}

.way__inner {
  container-type: inline-size;
  --p: calc(100cqi / 1200);
}

.way__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, calc(440 * var(--p)));
  align-items: end;
  column-gap: calc(64 * var(--p));
}

.way__lead {
  margin-bottom: calc(8 * var(--p));
  font-size: clamp(14.5px, calc(15 * var(--p)), 18px);
  line-height: 1.65;
  color: var(--text);
}

/* ---------- Лента ---------- */
/* обёртка держит отступы и служит целью для IntersectionObserver (сама лента до появления обрезана) */
.tape-rail { margin: calc(52 * var(--p)) calc(var(--gutter) * -1) 0 0; }

.tape {
  --cm: clamp(7px, calc(8.2 * var(--p)), 11px);          /* один «сантиметр» ленты */
  --tip: calc(var(--cm) * 1.6);                          /* металлический наконечник */
  display: flex;
  height: calc(var(--cm) * 5.4);
  overflow: hidden;
  border-block: 1px solid var(--gold-soft);
  border-radius: 3px 0 0 3px;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px calc(var(--cm) * 10)) var(--tip) 0 / 100% 62% no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px calc(var(--cm) * 5)) var(--tip) 0 / 100% 40% no-repeat,
    repeating-linear-gradient(90deg, rgba(13, 56, 51, .7) 0 1px, transparent 1px var(--cm)) var(--tip) 0 / 100% 22% no-repeat,
    #fff;
  box-shadow: 0 12px 22px -16px rgba(0, 30, 26, .4);
  counter-reset: cm;
}

.tape::before {
  content: "";
  flex: none;
  width: var(--tip);
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-soft));
}

/* отрезок 10 см: цифра стоит слева от своего длинного деления, как на настоящем сантиметре */
.tape i {
  flex: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: calc(var(--cm) * 10);
  padding: 0 calc(var(--cm) * .55) calc(var(--cm) * .35) 0;
  font-size: calc(var(--cm) * 1.5);
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  counter-increment: cm 10;
}
.tape i::after { content: counter(cm); }

.js .tape {
  clip-path: inset(-30px 100% -30px 0);
  transition: clip-path 1.7s cubic-bezier(.45, 0, .2, 1);
}
.js .tape-rail.is-visible .tape { clip-path: inset(-30px 0 -30px 0); }

/* ---------- Этапы ---------- */
.way__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: calc(56 * var(--p));
  row-gap: 0;                            /* без зазора: нить колонки не рвётся между рядами */
}

.way__step {
  padding: calc(40 * var(--p)) calc(8 * var(--p)) calc(44 * var(--p)) calc(26 * var(--p));
  /* вертикальная стёжка от ленты — та же нить, что у текста в портфолио */
  background: repeating-linear-gradient(180deg, var(--gold-soft) 0 6px, transparent 6px 11px) 0 0 / 1.5px 100% no-repeat;
}

.way__num {
  display: block;
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(52px, calc(72 * var(--p)), 96px);
  font-style: italic;
  font-weight: 400;
  line-height: .8;
  color: #a3804f;                  /* чуть темнее --gold: ≥3:1 на льняном фоне */
}

.way__name {
  margin-top: calc(22 * var(--p));
  font-size: clamp(19.5px, calc(23 * var(--p)), 28px);   /* ≥1.33× текста шага */
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.02em;
  text-wrap: balance;                    /* без одиноких слов во второй строке */
  color: var(--green-900);
}

.way__text {
  margin-top: calc(10 * var(--p));
  font-size: clamp(14.5px, calc(14.5 * var(--p)), 17.5px);
  line-height: 1.6;
}

@media (max-width: 1023px) {
  .way { padding: 56px 0 64px; }
  .way__head { grid-template-columns: 1fr; row-gap: 20px; }
  .way__lead { max-width: 560px; margin-bottom: 0; font-size: 15.5px; }
  .tape { --cm: 8px; }
  .tape-rail { margin-top: 36px; }
  .way__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .way__step { padding: 32px 8px 32px 22px; }
  .way__num { font-size: 60px; }
  .way__name { margin-top: 16px; font-size: 20px; }
  .way__text { margin-top: 8px; font-size: 15px; }
}

@media (max-width: 599px) {
  .way { padding: 44px 0 52px; }
  .way__steps { grid-template-columns: 1fr; }
  .way__step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 8px;
    padding: 26px 0 22px 20px;
  }
  .way__num { grid-row: 1 / 3; font-size: 52px; line-height: .85; }
  .way__name { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .js .tape { clip-path: none; }
}

/* ==========================================================================
   Блок 5 — контакты
   Панель того же языка, что в первом экране: зелёная ткань, тот же радиус и тень.
   ========================================================================== */
.contact {
  --content-w: calc(min(100%, var(--maxw)) - 2 * var(--gutter));
  container-type: inline-size;
  width: calc(var(--content-w) * 1.02759);
  margin: 0 auto;
  border-radius: min(calc(((min(100vw, var(--maxw)) - 2 * var(--gutter)) * .03862) * 0.45), 20px);
  color: #fff;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(255, 255, 255, .08), transparent 60%),
    radial-gradient(80% 80% at 100% 100%, rgba(0, 0, 0, .22), transparent 70%),
    #0d3f39 url("../assets/img/panel-fabric.webp") center / cover no-repeat;
  box-shadow:
    0 2px 4px rgba(0, 30, 26, .08),
    0 40px 70px -40px rgba(0, 30, 26, .55);
}

.contact__inner {
  --p: calc(100cqi / 1240);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: end;
  column-gap: calc(80 * var(--p));
  padding: calc(72 * var(--p)) calc(64 * var(--p)) calc(68 * var(--p));
}

.contact__lead {
  max-width: 30em;
  margin-top: calc(22 * var(--p));
  font-size: clamp(15px, calc(16 * var(--p)), 19px);
  line-height: 1.65;
  color: rgba(255, 255, 255, .9);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px clamp(20px, calc(34 * var(--p)), 44px);
  margin-top: calc(32 * var(--p));
}

/* в панели контактов кнопка — в размерах этой панели (у hero свои единицы) */
.contact .btn {
  width: clamp(240px, calc(280 * var(--p)), 340px);
  height: clamp(52px, calc(58 * var(--p)), 68px);
  margin-top: 0;
  padding-inline: clamp(22px, calc(26 * var(--p)), 30px);
  font-size: clamp(15px, calc(15.5 * var(--p)), 17.5px);
}

.contact__phone {
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(26px, calc(34 * var(--p)), 44px);
  font-style: italic;
  line-height: 1.1;
  white-space: nowrap;
  color: #fff;
  transition: color .3s;
}
.contact__phone:hover { color: var(--gold-light); }

.contact__row {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  column-gap: 20px;
  padding: calc(18 * var(--p)) 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: clamp(14.5px, calc(15 * var(--p)), 18px);
  line-height: 1.5;
}
.contact__row:last-child { border-bottom: 1px solid rgba(255, 255, 255, .18); }
.contact__row dt { color: var(--gold-light); }
.contact__row dd { color: #fff; }
.contact__row a { border-bottom: 1px solid rgba(255, 255, 255, .4); transition: border-color .3s, color .3s; }
.contact__row a:hover { border-color: var(--gold-light); color: var(--gold-light); }

@media (max-width: 1023px) {
  .contact { width: var(--content-w); border-radius: 12.5px; }
  .contact__inner { grid-template-columns: 1fr; row-gap: 40px; padding: 44px 28px 40px; }
  .contact__lead { margin-top: 16px; font-size: 16px; }
  .contact__actions { margin-top: 26px; }
  .contact .btn { width: 260px; height: 54px; font-size: 15px; }
  .contact__phone { font-size: 30px; }
  .contact__row { padding: 16px 0; font-size: 15.5px; }
}

@media (max-width: 599px) {
  .contact { border-radius: 11px; }
  .contact__inner { padding: 36px 20px 32px; row-gap: 32px; }
  .contact .btn { width: 100%; }
  .contact__phone { font-size: 28px; }
}

/* ==========================================================================
   Подвал
   ========================================================================== */
.footer { padding: clamp(28px, 2.6vw, 44px) 0 clamp(28px, 2.4vw, 40px); }

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  font-size: clamp(13.5px, .92vw, 15.5px);
  color: var(--text);
}

.footer__nav { display: flex; flex-wrap: wrap; gap: 8px clamp(20px, 2.4vw, 40px); }
.footer__nav a { display: inline-block; padding-block: 6px; color: var(--ink); border-bottom: 1px solid transparent; transition: border-color .3s; }
.footer__nav a:hover { border-color: var(--gold); }

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

/* ==========================================================================
   Блок 5 — «Наши дизайнеры»
   Раскрывающиеся карточки: активная широкая (золотое кольцо + подпись на зелёной
   ткани с язычком, как в портфолио), остальные — узкие полосы с номером
   и вертикальным именем. Клик / наведение раскрывает полосу.
   На планшете и телефоне — горизонтальная лента со snap.
   ========================================================================== */
.team {
  padding: calc(var(--gutter) * .9) 0 calc(var(--gutter) * 1.05);
  overflow-x: hidden;
  overflow-x: clip;
}

.team__inner {
  container-type: inline-size;
  --p: calc(100cqi / 1200);
}

.team__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, calc(440 * var(--p)));
  align-items: end;
  column-gap: calc(64 * var(--p));
}

.team__lead {
  margin-bottom: calc(8 * var(--p));
  font-size: clamp(14.5px, calc(15 * var(--p)), 18px);
  line-height: 1.65;
  color: var(--text);
}

.team__list {
  --r: calc(24 * var(--p));                      /* радиус карточки */
  display: flex;
  gap: calc(14 * var(--p));
  height: clamp(440px, min(calc(528 * var(--p)), calc(100svh - 180px)), 720px);
  margin-top: calc(60 * var(--p));
}

/* ---------- Карточка ---------- */
.tm {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: min(calc((var(--r)) * 0.45), 20px);
  transition: flex-grow .8s var(--ease);
}
.tm.is-active { flex-grow: 5; }

/* рамка с обрезкой: фото внутри приближается, а золотое кольцо на .tm остаётся снаружи */
.tm__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: #d9cfc3;
  box-shadow:
    0 1px 3px rgba(0, 30, 26, .08),
    0 24px 44px -26px rgba(0, 30, 26, .45);
}

.tm__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  /* x работает, пока карточка узкая (лицо в полосе), y — когда широкая */
  object-position: var(--fx, 50%) var(--fy, 45%);
  /* в полосе фото во весь рост — лицо мелкое. У каждого фото своя точка лица (--hy — доля высоты
     кадра) и своё увеличение (--hz): лица приводим к одной высоте (37% полосы) и одному размеру (~17%) */
  transform: translateY(calc((.37 - var(--hy, .37)) * 100%)) scale(var(--hz, 1.38));
  transform-origin: 50% calc(var(--hy, .37) * 100%);
  transition: transform .8s var(--ease), filter .4s;
}
.tm.is-active .tm__photo { transform: none; }

/* затемнение полосы — под номером и именем */
.tm::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(20, 14, 8, .38), transparent 26%),
    linear-gradient(0deg, rgba(20, 14, 8, .5), transparent 55%);
  transition: opacity .6s var(--ease);
  pointer-events: none;
}
.tm.is-active::after { opacity: 0; }

/* золотое кольцо вокруг активной, как у фото в hero и центральной карточки портфолио */
.tm::before {
  content: "";
  position: absolute;
  inset: calc(-12 * var(--p));
  border: 1px solid rgba(200, 167, 124, .75);
  border-radius: min(calc((var(--r) + 12 * var(--p)) * 0.45), 20px);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.tm.is-active::before { opacity: 1; transition-delay: .5s; }

/* ---------- Полоса: кнопка на всю карточку ---------- */
.tm__toggle {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: none;
  color: #fff;
  cursor: pointer;
  transition: opacity .35s var(--ease);
}
.tm__toggle:focus-visible { outline-offset: -6px; outline-color: var(--gold-light); }

.tm.is-active .tm__toggle { visibility: hidden; opacity: 0; }

.tm__num,
.tm__vname {
  position: absolute;
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.tm__num {
  top: calc(24 * var(--p));
  left: calc(22 * var(--p));
  font-size: clamp(24px, calc(32 * var(--p)), 44px);
  transition: transform .5s var(--ease);
}

.tm__vname {
  left: calc(18 * var(--p));
  bottom: calc(24 * var(--p));
  font-size: clamp(24px, calc(36 * var(--p)), 48px);
  letter-spacing: -.01em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);                 /* читается снизу вверх */
}

.tm:not(.is-active):hover .tm__photo { filter: brightness(1.06); }
.tm:not(.is-active):hover .tm__num { transform: translateY(-3px); }

/* ---------- Подпись активной: зелёная ткань с язычком слева ----------
   Та же техника, что у .pf-card__caption: один элемент, форму вырезает маска. */
.tm__info {
  --tab: calc(24 * var(--p));                 /* высота язычка */
  --flat: calc(190 * var(--p));               /* ровная часть язычка */
  --curve: calc(var(--tab) * 3);              /* ширина S-изгиба */
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: calc(var(--tab) + 16 * var(--p)) calc(120 * var(--p)) calc(26 * var(--p)) calc(36 * var(--p));
  border-radius: 0 0 min(calc((var(--r)) * 0.45), 20px) min(calc((var(--r)) * 0.45), 20px);
  background: #0d3f39 url("../assets/img/panel-fabric.webp") center / 640px auto;
  color: #fff;
  -webkit-mask:
    linear-gradient(#000 0 0) 0 var(--tab) / 100% calc(100% - var(--tab)) no-repeat,
    linear-gradient(#000 0 0) 0 0 / calc(var(--flat) + 2px) calc(var(--tab) + 1px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0C50 0 50 100 100 100H0Z'/%3E%3C/svg%3E") var(--flat) 0 / var(--curve) calc(var(--tab) + 1px) no-repeat;
          mask:
    linear-gradient(#000 0 0) 0 var(--tab) / 100% calc(100% - var(--tab)) no-repeat,
    linear-gradient(#000 0 0) 0 0 / calc(var(--flat) + 2px) calc(var(--tab) + 1px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0C50 0 50 100 100 100H0Z'/%3E%3C/svg%3E") var(--flat) 0 / var(--curve) calc(var(--tab) + 1px) no-repeat;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .3s var(--ease), transform .5s var(--ease), visibility 0s .3s;
}

/* подпись появляется, когда карточка почти раскрылась — текст не переносится на ходу */
.tm.is-active .tm__info {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .5s var(--ease) .5s, transform .7s var(--ease) .5s, visibility 0s;
}

.tm__role {
  font-size: clamp(11px, calc(11.5 * var(--p)), 13.5px);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.tm__name {
  margin-top: calc(8 * var(--p));
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(30px, calc(46 * var(--p)), 62px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.01em;
  text-wrap: balance;                  /* длинное настоящее имя перенесётся, а не уйдёт под кнопку */
}

.tm__text {
  margin-top: calc(8 * var(--p));
  font-size: clamp(14px, calc(15 * var(--p)), 18px);
  line-height: 1.45;
  color: rgba(255, 255, 255, .86);
}

/* медная кнопка — как FAB в hero и портфолио */
.tm__fab {
  position: absolute;
  right: calc(32 * var(--p));
  top: calc(50% + var(--tab) / 2);
  display: grid;
  place-items: center;
  width: clamp(48px, calc(60 * var(--p)), 78px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c39561, var(--copper) 60%, #9c7243);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(60, 35, 10, .6);
  transform: translateY(-50%);
  transition: transform .5s var(--ease);
}
.tm__fab .icon { font-size: clamp(17px, calc(22 * var(--p)), 28px); }
.tm__fab:hover { transform: translateY(-50%) scale(1.06); }
.tm__fab:hover .icon { transform: translate(2px, -2px); }

/* ---------- Планшет и телефон: лента карточек ---------- */
@media (max-width: 1023px) {
  .team { padding: 56px 0 64px; }
  .team__head { grid-template-columns: 1fr; row-gap: 20px; }
  .team__lead { max-width: 560px; margin-bottom: 0; font-size: 15.5px; }

  .team__list {
    --r: 24px;
    height: auto;
    margin: 28px calc(var(--gutter) * -1) 0;
    padding: 4px var(--gutter) 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    gap: 14px;
  }
  .team__list::-webkit-scrollbar { display: none; }

  .tm,
  .tm.is-active {
    flex: 0 0 min(64vw, 400px);
    aspect-ratio: 3 / 4.1;
    scroll-snap-align: start;
  }
  /* карточка почти в пропорциях фото: приближаем, опорная точка ниже лица — лицо поднимается над плашкой */
  .tm .tm__photo,
  .tm.is-active .tm__photo { object-position: var(--fx, 50%) 30%; transform: scale(var(--mz, 1.2)); transform-origin: 50% 85%; }

  .tm::before,
  .tm::after,
  .tm__toggle { display: none; }

  .tm__info,
  .tm.is-active .tm__info {
    --tab: 16px;
    --flat: 140px;                    /* в px: процент в mask-position считается иначе, чем в mask-size */
    padding: calc(var(--tab) + 12px) 72px 18px 20px;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .tm__role { font-size: 10.5px; letter-spacing: .18em; }
  .tm__name { margin-top: 6px; font-size: 28px; }
  .tm__text { margin-top: 6px; font-size: 13.5px; }
  .tm__fab { right: 16px; width: 46px; }
  .tm__fab .icon { font-size: 17px; }
}

@media (max-width: 599px) {
  .tm,
  .tm.is-active { flex-basis: 80vw; }
}

@media (prefers-reduced-motion: reduce) {
  .tm,
  .tm__info,
  .tm.is-active .tm__info,
  .tm::before { transition: none; }
}

/* ==========================================================================
   Заявка на звонок — светлый льняной «лоскут» со стёжкой по краю.
   Та же ширина и радиус, что у панелей «О студии» и контактов;
   поле — белая «пилюля», кнопка внутри неё — зелёная, как акценты страницы.
   ========================================================================== */
.cb {
  --content-w: calc(min(100%, var(--maxw)) - 2 * var(--gutter));
  --r: calc((min(100vw, var(--maxw)) - 2 * var(--gutter)) * .03862);
  position: relative;
  container-type: inline-size;
  width: calc(var(--content-w) * 1.02759);
  margin: 0 auto calc(var(--gutter) * .9);
  border-radius: min(calc((var(--r)) * 0.45), 20px);
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(255, 255, 255, .7), transparent 60%),
    radial-gradient(70% 120% at 100% 100%, rgba(176, 138, 90, .12), transparent 70%),
    #eee7dc;
  box-shadow:
    0 1px 3px rgba(45, 35, 25, .06),
    0 30px 60px -44px rgba(45, 35, 25, .5);
}

/* стёжка по краю лоскута */
.cb::before {
  content: "";
  position: absolute;
  inset: clamp(8px, calc(12 * 100cqi / 1240), 16px);
  border: 1.5px dashed rgba(176, 138, 90, .55);
  border-radius: min(calc((var(--r) - clamp(8px, calc(12 * 100cqi / 1240), 16px)) * 0.45), 20px);
  pointer-events: none;
}

.cb__inner {
  --p: calc(100cqi / 1240);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, calc(560 * var(--p)));
  align-items: center;
  column-gap: calc(64 * var(--p));
  padding: calc(60 * var(--p)) calc(72 * var(--p)) calc(52 * var(--p));
}

.cb__title {
  display: flex;
  flex-direction: column;
  font-weight: 400;
  color: var(--green-900);
}

.cb__title-sans {
  font-family: var(--serif);
  font-size-adjust: var(--head-fit);
  font-size: clamp(24px, calc(34 * var(--p)), 46px);
  line-height: 1.12;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.cb__title-serif {
  margin-top: .08em;
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(27px, calc(38 * var(--p)), 52px);
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -.01em;
}

/* ---------- Поле ---------- */
.cb__field {
  position: relative;
  display: flex;
  align-items: center;
  height: clamp(60px, calc(70 * var(--p)), 86px);
  padding: 6px 6px 6px clamp(18px, calc(24 * var(--p)), 30px);
  border: 1px solid rgba(13, 56, 51, .14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 30px -20px rgba(0, 30, 26, .4);
  transition: border-color .3s, box-shadow .3s;
}
.cb__field:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 167, 124, .25), 0 14px 30px -20px rgba(0, 30, 26, .4);
}
.cb__form.is-invalid .cb__field { border-color: #a5463a; }

.cb__icon {
  flex: none;
  width: clamp(20px, calc(22 * var(--p)), 26px);
  height: auto;
  color: var(--gold);
}

.cb__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 14px;
  border: 0;
  background: none;
  font: inherit;
  font-size: clamp(16px, calc(17 * var(--p)), 20px);   /* ≥16px — iOS не увеличивает страницу */
  letter-spacing: .01em;
  color: var(--ink);
  outline: none;
}
.cb__input::placeholder { color: #6b7370; }   /* 4.8:1 на белом */

.cb__btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding-inline: clamp(22px, calc(30 * var(--p)), 38px);
  border: 0;
  border-radius: 12px;
  background: var(--green-900);
  color: #fff;
  font-size: clamp(14.5px, calc(15.5 * var(--p)), 18px);
  font-weight: 500;
  cursor: pointer;
  transition: background-color .35s;
}
.cb__btn .icon { font-size: 15px; }
.cb__btn:hover { background: var(--copper); }
.cb__btn:hover .icon { transform: translate(2px, -2px); }
.cb__btn:focus-visible { outline-offset: 3px; }
.cb__form.is-sending .cb__btn { opacity: .7; cursor: progress; }

.cb__note {
  margin-top: 14px;
  padding-inline: clamp(18px, calc(24 * var(--p)), 30px);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text);
}
.cb__note a { color: var(--ink); border-bottom: 1px solid rgba(13, 56, 51, .3); transition: border-color .3s; }
.cb__note a:hover { border-color: var(--gold); }

.cb__status {
  min-height: 1.5em;
  margin-top: 6px;
  padding-inline: clamp(18px, calc(24 * var(--p)), 30px);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--green-900);
}
.cb__status:empty { display: none; }
.cb__form.is-invalid .cb__status,
.cb__form.is-error .cb__status { color: #a5463a; }

@media (max-width: 1023px) {
  .cb { --r: 28px; width: var(--content-w); margin-bottom: 48px; }
  .cb__inner { grid-template-columns: 1fr; row-gap: 24px; padding: 40px 32px 32px; }
  .cb__title-sans { font-size: 26px; }
  .cb__title-serif { font-size: 29px; }
}

/* телефон: поле и кнопка — двумя строками, каждая своей «пилюлей» */
@media (max-width: 599px) {
  .cb { --r: 24px; }
  .cb__inner { padding: 32px 20px 24px; }
  .cb__field {
    flex-wrap: wrap;
    height: auto;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    row-gap: 10px;
  }
  .cb__field:focus-within { box-shadow: none; }
  .cb__icon { position: absolute; left: 20px; top: 29px; transform: translateY(-50%); }
  .cb__input {
    flex: 1 0 100%;
    height: 58px;
    padding: 0 18px 0 52px;
    border: 1px solid rgba(13, 56, 51, .14);
    border-radius: 12px;
    background: #fff;
    transition: border-color .3s, box-shadow .3s;
  }
  .cb__input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200, 167, 124, .25); }
  .cb__form.is-invalid .cb__field { border: 0; }
  .cb__form.is-invalid .cb__input { border-color: #a5463a; }
  .cb__btn { flex: 1 0 100%; justify-content: center; height: 56px; }
  .cb__note,
  .cb__status { padding-inline: 4px; }
}

/* ==========================================================================
   Блок 6 — отзывы: бенто-сетка
   Три колонки карточек разной высоты: светлые — с тонкой сеткой, как на
   миллиметровке раскроя; зелёные — рейтинги и приглашение; тёмные — отзывы,
   рейтинг и фото. При появлении карточки проявляются по очереди из размытия.
   ========================================================================== */
.rvb { padding: calc(var(--gutter) * .9) 0 calc(var(--gutter) * 1.05); }

.rvb__inner {
  container-type: inline-size;
  --p: calc(100cqi / 1200);
}

.rvb__head {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.rvb__title { align-items: center; }
.rvb__lead {
  margin-top: 16px;
  font-size: clamp(15px, calc(16 * var(--p)), 19px);
  line-height: 1.6;
  color: var(--text);
}

/* ---------- Сетка ---------- */
.rvb__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-height: clamp(560px, calc(680 * var(--p)), 860px);
  margin-top: calc(48 * var(--p));
}

.rvb__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.rvb__col > * { flex: 1 1 0; }
.rvb__col > .rvb-card--tall { flex-grow: 7; }
.rvb__col > .rvb-card--short { flex-grow: 3; flex-basis: auto; }

/* ---------- Карточка ---------- */
.rvb-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0;
  padding: clamp(20px, calc(26 * var(--p)), 32px);
  overflow: hidden;
  border-radius: 6.5px;
}

.rvb-card--light {
  border: 1px solid rgba(13, 56, 51, .1);
  background: #fff;
  color: var(--ink);
}
/* тонкая сетка, гаснущая книзу */
.rvb-card--light::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(13, 56, 51, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 56, 51, .07) 1px, transparent 1px);
  background-size: 50px 56px;
  -webkit-mask: radial-gradient(ellipse 80% 55% at 50% 0%, #000 70%, transparent 110%);
          mask: radial-gradient(ellipse 80% 55% at 50% 0%, #000 70%, transparent 110%);
}

.rvb-card--green {
  background-color: var(--green-900);
  color: #fff;
}
/* мягкий блик в углу — отдельным слоем, фон карточки остаётся сплошным */
.rvb-card--green::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .1), transparent 60%);
  pointer-events: none;
}

.rvb-card--dark {
  background: #0d1f1c;
  color: #fff;
}

/* фото во всю карточку, подпись по затемнению снизу */
.rvb-card--photo { min-height: 220px; padding: 18px 20px; background: #3f4a44; color: #fff; }
.rvb-card--photo .rvb-card__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.rvb-card--photo::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 20, 18, 0), rgba(0, 20, 18, .66));
}
.rvb-card__cap { font-size: 14px; line-height: 1.4; }

/* светлая карточка с фото сверху и подписью под ним */
.rvb-card--photo-in { justify-content: stretch; }
.rvb-card--photo-in .rvb-card__img {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  max-width: none;
  object-fit: cover;
  border-radius: 6px;
}

/* ---------- Содержимое ---------- */
.rvb-card__quote { margin: 0; }
.rvb-card__quote p,
.rvb-card__quote--sm {
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(19px, calc(22 * var(--p)), 27px);
  font-style: italic;
  line-height: 1.3;
  text-wrap: pretty;
}
.rvb-card--tall .rvb-card__quote p { font-size: clamp(24px, calc(31 * var(--p)), 40px); line-height: 1.22; color: var(--green-900); }
.rvb-card__quote--sm { margin-top: 8px; font-size: clamp(17px, calc(19 * var(--p)), 23px); }

.rvb-card__who {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
}
.rvb-card__who > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rvb-card__name { font-size: clamp(16px, calc(17.5 * var(--p)), 20px); font-weight: 600; line-height: 1.25; }
.rvb-card__role { font-size: 13.5px; line-height: 1.4; opacity: .72; }

.rvb-card__pic {
  flex: none;
  width: clamp(48px, calc(60 * var(--p)), 68px);
  height: clamp(48px, calc(60 * var(--p)), 68px);
  border-radius: 6px;
  object-fit: cover;
}
.rvb-card__pic--mono {
  display: grid;
  place-items: center;
  background: rgba(200, 167, 124, .18);
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: 30px;
  font-style: italic;
  line-height: 1;
  color: var(--gold-light);
}

.rvb-card__src {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.rvb-card__score {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 6px;
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(52px, calc(68 * var(--p)), 88px);
  font-style: italic;
  line-height: .95;
}
.rvb-card__stars {
  font-family: var(--sans);
  font-size: 15px;
  font-style: normal;
  letter-spacing: .14em;
  color: var(--gold-soft);
}

.rvb-card__link,
.rvb-card__more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding-bottom: 2px;
  font-size: 15px;
  font-weight: 500;
  color: inherit;
  border-bottom: 1px solid rgba(217, 195, 160, .6);
  transition: border-color .3s, color .3s;
}
.rvb-card__link .icon,
.rvb-card__more .icon { font-size: 10px; }
.rvb-card__link:hover,
.rvb-card__more:hover { border-color: currentColor; }
.rvb-card__more { flex: none; margin-top: 0; color: var(--green-900); border-color: var(--gold-soft); }

/* нижняя черта со «стёжкой» и булавками на концах */
.rvb__rule {
  position: relative;
  height: 2px;
  margin-top: calc(40 * var(--p));
  background: repeating-linear-gradient(90deg, var(--gold-soft) 0 10px, transparent 10px 17px);
}

/* ---------- Появление: карточки по очереди из размытия ---------- */
html.js .rvb .rvb-card,
html.js .rvb .rvb__head > * {
  transition:
    opacity .6s var(--ease) calc(var(--i, 0) * .12s + .2s),
    filter .6s var(--ease) calc(var(--i, 0) * .12s + .2s),
    transform .7s var(--ease) calc(var(--i, 0) * .12s + .2s);
}
html.js .rvb .rvb__head > :nth-child(1) { --i: -1.5; }
html.js .rvb .rvb__head > :nth-child(2) { --i: -1; }
html.js .rvb:not(.is-visible) .rvb-card,
html.js .rvb:not(.is-visible) .rvb__head > * {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(-20px);
}

/* ---------- Планшет: группы колонок одна под другой, внутри — по две карточки ---------- */
@media (max-width: 1023px) {
  .rvb { padding: 56px 0 64px; }
  .rvb__grid { grid-template-columns: 1fr; min-height: 0; margin-top: 32px; }
  .rvb__col { display: grid; grid-template-columns: 1fr 1fr; }
  .rvb__col > :only-child,
  .rvb__col:nth-child(2) > :first-child { grid-column: 1 / -1; }
  .rvb-card--tall { min-height: 300px; }
  .rvb-card--photo { min-height: 240px; }
  .rvb-card--photo-in .rvb-card__img { min-height: 200px; }
  .rvb__rule { margin-top: 32px; }
}

@media (max-width: 599px) {
  .rvb { padding: 44px 0 52px; }
  .rvb__col { grid-template-columns: 1fr; }
  .rvb-card--tall { min-height: 0; }
  .rvb-card--tall .rvb-card__quote p { font-size: 24px; }
  .rvb-card--photo { min-height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .rvb .rvb-card,
  html.js .rvb .rvb__head > * { transition: none; }
  html.js .rvb:not(.is-visible) .rvb-card,
  html.js .rvb:not(.is-visible) .rvb__head > * { opacity: 1; filter: none; transform: none; }
}

/* ---------- Бегущие колонки (main.js добавляет .rvb--marquee) ----------
   Ленты в соседних колонках едут в разные стороны, сверху и снизу карточки тают в фоне.
   Карточки здесь своей высоты, а не растянуты по колонке. */
.rvb--marquee .rvb__grid {
  height: clamp(560px, calc(700 * var(--p)), 840px);
  min-height: 0;
  overflow: hidden;
  -webkit-mask: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
          mask: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
}
.rvb--marquee .rvb__col { display: block; min-height: 0; overflow: hidden; }
.rvb__col--all,
.rvb--marquee .rvb__col--all { display: none; }
.rvb__track {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: rvb-run var(--dur, 30s) linear infinite;
}
.rvb__col:nth-child(2) > .rvb__track { animation-direction: reverse; }
.rvb__set { display: flex; flex-direction: column; gap: 10px; }
.rvb__set > * { flex: none; }
.rvb--marquee .rvb-card { min-height: 240px; }
.rvb--marquee .rvb-card--tall { min-height: 380px; }
.rvb--marquee .rvb-card--short { min-height: 210px; }
.rvb--marquee .rvb-card--photo { min-height: 290px; }
.rvb--marquee .rvb-card--photo-in .rvb-card__img { min-height: 220px; }
/* пауза, пока читают */
.rvb__grid:hover .rvb__track,
.rvb__grid:focus-within .rvb__track { animation-play-state: paused; }
@keyframes rvb-run { to { transform: translateY(calc(-50% - 5px)); } }

/* планшет и телефон: одна колонка из всех карточек */
@media (max-width: 1023px) {
  .rvb--marquee .rvb__grid { grid-template-columns: 1fr; height: 640px; }
  .rvb--marquee .rvb__col { display: none; }
  .rvb--marquee .rvb__col--all { display: block; }
  .rvb--marquee .rvb__col--all .rvb__set { display: grid; grid-template-columns: 1fr; }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .rvb--marquee .rvb__col--all { max-width: 520px; margin-inline: auto; width: 100%; }
}

/* ==========================================================================
   Блок 7 — для бизнеса (HoReCa)
   Тёмная секция во всю ширину — «ночь в отеле», разбивает светлую середину
   страницы. Три сегмента набраны огромными словами; справа от каждого —
   «окно» с жаккардовыми шторами (fabric.jpg). У выбранного сегмента шторы
   раздвигаются на подхваты и открывают, что мы шьём.
   ========================================================================== */
.hc {
  position: relative;
  isolation: isolate;
  padding: calc(var(--gutter) * 1.1) 0 calc(var(--gutter) * 1.2);
  background-color: #04211e;
  color: #fff;
}
/* мягкий свет «лампы» сверху справа и глубина снизу слева — отдельным слоем под контентом */
.hc::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 88% 0%, rgba(217, 195, 160, .13), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(10, 75, 69, .55), transparent 70%);
  pointer-events: none;
}

.hc__inner {
  container-type: inline-size;
  --p: calc(100cqi / 1200);
}

/* ---------- Верх ---------- */
.hc__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
}

.hc__kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(11.5px, calc(12.5 * var(--p)), 14.5px);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.hc__kicker::before {
  content: "";
  width: 40px;
  height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 10px);
}

.hc__title {
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(30px, calc(46 * var(--p)), 62px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--gold-light);
}

/* ---------- Сегменты ---------- */
.hc__rows {
  margin: calc(44 * var(--p)) 0 0;
  padding: 0;
  list-style: none;
}

.hc-row {
  --stitch: repeating-linear-gradient(90deg, rgba(200, 167, 124, .45) 0 6px, transparent 6px 11px);
  display: grid;
  grid-template-columns: minmax(0, 560fr) minmax(0, 640fr);
  align-items: center;
  column-gap: calc(40 * var(--p));
  padding-block: calc(16 * var(--p));
  background: var(--stitch) 0 0 / 100% 1.5px no-repeat;
}
.hc-row:last-child { background: var(--stitch) 0 0 / 100% 1.5px no-repeat, var(--stitch) 0 100% / 100% 1.5px no-repeat; }

.hc-row__head { margin: 0; font: inherit; }

.hc-row__btn {
  display: flex;
  align-items: flex-start;
  gap: calc(16 * var(--p));
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .42);    /* приглушено, но ≥3:1 для крупного текста */
  text-align: left;
  cursor: pointer;
  transition: color .5s var(--ease);
}
.hc-row__btn:hover { color: rgba(255, 255, 255, .7); }
.hc-row.is-active .hc-row__btn { color: #fff; cursor: default; }
.hc-row__btn:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 6px; border-radius: 6px; }

.hc-row__num {
  padding-top: .5em;
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(16px, calc(22 * var(--p)), 28px);
  font-style: italic;
  line-height: 1;
  color: var(--gold-soft);
}

.hc-row__word {
  font-family: var(--serif);
  font-size-adjust: var(--head-fit);
  font-size: clamp(44px, calc(98 * var(--p)), 140px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.01em;
}

/* окно со шторами */
.hc-row__stage {
  position: relative;
  height: calc(176 * var(--p));
  min-height: 150px;
  overflow: hidden;
  border-radius: min(calc((16 * var(--p)) * 0.45), 20px);
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 0 0 0 1px rgba(217, 195, 160, .22);
}

.hc-row__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 0 19%;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.hc-row.is-active .hc-row__body { opacity: 1; transition: opacity .7s var(--ease) .35s; }

.hc-row__where {
  font-size: clamp(11px, calc(12 * var(--p)), 14px);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hc-row__list {
  margin-top: 10px;
  font-size: clamp(15px, calc(17.5 * var(--p)), 21px);
  line-height: 1.5;
  color: rgba(255, 255, 255, .88);
  text-wrap: pretty;
}

/* две половины жаккарда: затенение к краю и к складке, золотой кант по кромке */
.hc-row__drape::before,
.hc-row__drape::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background:
    linear-gradient(90deg, rgba(20, 12, 4, .45), rgba(20, 12, 4, 0) 30%, rgba(20, 12, 4, 0) 75%, rgba(20, 12, 4, .35)),
    #7a5a33 url("../assets/img/fabric.jpg") 0 50% / auto 130% repeat-x;
  transition: transform 1.05s cubic-bezier(.65, 0, .25, 1);
}
.hc-row__drape::before { left: 0;  border-right: 2px solid var(--gold-soft); }
.hc-row__drape::after  { right: 0; border-left: 2px solid var(--gold-soft); background-position: 0 50%, 100% 50%; }

/* открыто: шторы уходят на подхваты, по краям остаётся ткань */
.hc-row.is-active .hc-row__drape::before { transform: translateX(-84%); }
.hc-row.is-active .hc-row__drape::after  { transform: translateX(84%); }

/* золотые подхваты на собранной ткани — появляются, когда шторы открыты */
.hc-row__stage::before,
.hc-row__stage::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 58%;
  width: 10.5%;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 60%, #8a683f);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .35);
  opacity: 0;
  transition: opacity .3s;
}
.hc-row__stage::before { left: -1%; transform: rotate(-4deg); }
.hc-row__stage::after  { right: -1%; transform: rotate(4deg); }
.hc-row.is-active .hc-row__stage::before,
.hc-row.is-active .hc-row__stage::after { opacity: 1; transition: opacity .4s .8s; }

/* ---------- Низ: предложение и условия ---------- */
.hc__bottom {
  display: grid;
  grid-template-columns: minmax(0, 440fr) minmax(0, 680fr);
  column-gap: calc(80 * var(--p));
  align-items: start;
  margin-top: calc(64 * var(--p));
}

.hc__lead {
  font-size: clamp(15px, calc(17 * var(--p)), 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .78);
}

.hc__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px calc(28 * var(--p));
  margin-top: calc(30 * var(--p));
}

.hc__btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  height: clamp(50px, calc(56 * var(--p)), 68px);
  padding-inline: clamp(22px, calc(28 * var(--p)), 34px);
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--green-900);
  font-size: clamp(14.5px, calc(15 * var(--p)), 17.5px);
  font-weight: 500;
  transition: background-color .35s;
}
.hc__btn .icon { font-size: 15px; }
.hc__btn:hover { background: var(--gold-light); }
.hc__btn:hover .icon { transform: translate(2px, -2px); }
.hc__btn:focus-visible { outline-color: var(--gold-light); outline-offset: 3px; }

.hc__pdf {
  padding-block: 6px;
  font-size: clamp(14px, calc(14.5 * var(--p)), 17px);
  color: #fff;
  border-bottom: 1px solid rgba(200, 167, 124, .6);
  transition: border-color .3s;
}
.hc__pdf:hover { border-color: #fff; }

.hc__terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(30 * var(--p)) calc(48 * var(--p));
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: hc;
}

.hc-term {
  padding-left: calc(18 * var(--p));
  counter-increment: hc;
  /* вертикальная стёжка, как у шагов «Шторы под ключ» */
  background: repeating-linear-gradient(180deg, rgba(200, 167, 124, .5) 0 6px, transparent 6px 11px) 0 0 / 1.5px 100% no-repeat;
}
.hc-term::before {
  content: "0" counter(hc);
  display: block;
  margin-bottom: 10px;
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(20px, calc(24 * var(--p)), 30px);
  font-style: italic;
  line-height: 1;
  color: var(--gold-soft);
}

.hc-term__name {
  font-size: clamp(16.5px, calc(18 * var(--p)), 22px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: #fff;
}

.hc-term__text {
  margin-top: 6px;
  font-size: clamp(14px, calc(14.5 * var(--p)), 17px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .66);
}

/* ---------- Планшет ---------- */
@media (max-width: 1023px) {
  .hc { padding: 64px 0 72px; }
  .hc__rows { margin-top: 32px; }
  .hc-row { grid-template-columns: 1fr; row-gap: 14px; padding-block: 18px; }
  .hc-row__word { font-size: 64px; }
  .hc-row__num { font-size: 18px; }
  /* у закрытых сегментов видна только полоска ткани */
  .hc-row__stage { height: 52px; min-height: 0; border-radius: 6.5px; transition: height .6s var(--ease); }
  .hc-row.is-active .hc-row__stage { height: 170px; }
  .hc__bottom { grid-template-columns: 1fr; row-gap: 40px; margin-top: 44px; }
  .hc__lead { max-width: 560px; font-size: 16px; }
  .hc__actions { margin-top: 24px; gap: 14px 24px; }
  .hc__terms { gap: 28px 32px; }
  .hc-term { padding-left: 16px; }
}

/* ---------- Телефон ---------- */
@media (max-width: 599px) {
  .hc { padding: 52px 0 60px; }
  .hc__title { font-size: 30px; }
  .hc-row { row-gap: 12px; padding-block: 14px; }
  .hc-row__word { font-size: 44px; }
  .hc-row__num { font-size: 16px; padding-top: .35em; }
  .hc-row__stage { height: 46px; border-radius: 6px; }
  .hc-row.is-active .hc-row__stage { height: 196px; }
  .hc-row__body { padding: 0 18%; }
  .hc-row__list { font-size: 15px; }
  .hc__terms { grid-template-columns: 1fr; }
  .hc__btn { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .hc-row__drape::before,
  .hc-row__drape::after,
  .hc-row__body,
  .hc-row__stage { transition: none; }
}

/* ==========================================================================
   Страница «Для бизнеса» (horeca.html) — собирает tools/pages.js
   Первый экран (текст на видеофоне, логотипы клиентов, факты), документы
   (лоскут с тканями и «договор» на зелёной ткани), шаги ведения объекта,
   кейсы (карточки как на странице проектов), вопросы на <details>.
   Сегменты «С кем работаем» — карточки .seg с линейными SVG-иллюстрациями.
   ========================================================================== */
.hr-hero { padding-top: calc(var(--gutter) * .25); }
.hr-hero__inner {
  container-type: inline-size;
  --p: calc(100cqi / 1200);
}

/* сцена: видео во всю ширину, текст — слева поверх него */
.hr-hero__stage {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: stretch;
  min-height: clamp(580px, calc(680 * var(--p)), 900px);
  padding: calc(44 * var(--p)) calc(56 * var(--p)) calc(52 * var(--p));
  overflow: hidden;
  border-radius: min(calc((36 * var(--p)) * 0.45), 20px);
  background: #0b1513;
  box-shadow: 0 2px 4px rgba(0, 30, 26, .08), 0 40px 70px -40px rgba(0, 30, 26, .55);
}
.hr-hero__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 40%;
}
/* затемнение под текстом: тёмно-зелёное слева и снизу, справа кадр остаётся живым */
.hr-hero__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 26, 23, .86) 0%, rgba(3, 26, 23, .62) 38%, rgba(3, 26, 23, .12) 72%, rgba(3, 26, 23, 0)),
    linear-gradient(to top, rgba(3, 26, 23, .55), transparent 45%),
    linear-gradient(to bottom, rgba(3, 26, 23, .35), transparent 22%);
  pointer-events: none;
}

.hr-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(100%, calc(660 * var(--p)));
  color: #fff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, .25);
}
.hr-hero__copy .hr-hero__actions { margin-top: calc(36 * var(--p)); text-shadow: none; }

.hr-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: auto 0 calc(20 * var(--p));
  padding-top: calc(48 * var(--p));
  font-size: clamp(11.5px, calc(12.5 * var(--p)), 14.5px);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.hr-kicker::before {
  content: "";
  width: 40px;
  height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 10px);
}

.hr-hero__title { display: flex; flex-direction: column; font-weight: 400; }
.hr-hero__title-sans {
  font-family: var(--serif);
  font-size-adjust: var(--head-fit);
  font-size: clamp(36px, calc(56 * var(--p)), 76px);
  line-height: 1.04;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.hr-hero__title-serif {
  margin-top: .08em;
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(30px, calc(52 * var(--p)), 70px);
  font-style: italic;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--gold-light);
}
.hr-hero__lead {
  max-width: 34em;
  margin-top: calc(26 * var(--p));
  font-size: clamp(15px, calc(17 * var(--p)), 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .86);
}
.hr-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px calc(28 * var(--p));
}

/* ---------- Бегущая строка с логотипами клиентов ---------- */
.hr-logos { margin-top: calc(var(--gutter) * .7); }
.hr-logos__head { display: flex; align-items: center; gap: 14px; }
.hr-logos__title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(11.5px, .9vw, 14px);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.hr-logos__title::before {
  content: "";
  width: 40px;
  height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 10px);
}
/* лента во всю ширину экрана, края растворяются */
.hr-logos__viewport {
  --gap: clamp(40px, 5vw, 96px);
  --logo-h: clamp(40px, 3.6vw, 60px);
  margin-top: clamp(18px, 1.8vw, 28px);
  padding-block: clamp(14px, 1.4vw, 22px);
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(176, 138, 90, .45) 0 6px, transparent 6px 11px) 0 0 / 100% 1.5px no-repeat,
    repeating-linear-gradient(90deg, rgba(176, 138, 90, .45) 0 6px, transparent 6px 11px) 0 100% / 100% 1.5px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hr-logos__track {
  display: flex;
  width: max-content;
  animation: hr-marquee 48s linear infinite;
}
.hr-logos__viewport:hover .hr-logos__track,
.hr-logos__viewport:focus-within .hr-logos__track { animation-play-state: paused; }
.hr-logos__list {
  display: flex;
  align-items: center;
  gap: var(--gap);
  margin: 0;
  padding: 0 var(--gap) 0 0;      /* хвост = зазор, чтобы стык копий не было видно */
  list-style: none;
}
.hr-logo {
  display: grid;
  place-items: center;
  flex: none;
  height: var(--logo-h);
}
/* настоящие логотипы: приглушённые, при наведении — в цвете */
.hr-logo img {
  width: auto;
  height: var(--logo-h);
  max-width: clamp(140px, 13vw, 200px);
  object-fit: contain;
  opacity: .62;
  transition: opacity .4s;
}
.hr-logo img:hover { opacity: 1; }
/* заглушка — пунктирная плашка с подписью */
.hr-logo__ph {
  display: grid;
  place-items: center;
  height: 100%;
  padding-inline: 22px;
  border: 1.5px dashed rgba(176, 138, 90, .5);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  white-space: nowrap;
  color: var(--muted);
}
@keyframes hr-marquee { to { transform: translateX(-50%); } }

.hr-logos + .container .hr-facts { margin-top: max(32px, calc(40 * var(--p))); }

/* кнопки и ссылки страницы */
.hr-btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: clamp(50px, calc(56 * var(--p)), 68px);
  padding: 10px clamp(22px, calc(28 * var(--p)), 34px);
  line-height: 1.3;
  border-radius: 12px;
  font-size: clamp(14.5px, calc(15 * var(--p)), 17.5px);
  font-weight: 500;
  transition: background-color .35s;
}
.hr-btn .icon { font-size: 15px; transition: transform .35s var(--ease); }
.hr-btn:hover .icon { transform: translate(2px, -2px); }
.hr-btn--gold { background: var(--gold-soft); color: var(--green-900); }
.hr-btn--gold:hover { background: var(--gold-light); }
.hr-btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.hr-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 6px;
  font-size: clamp(14px, calc(15 * var(--p)), 18px);
  font-weight: 500;
  color: var(--green-900);
  border-bottom: 1px solid var(--gold-soft);
  transition: border-color .3s;
}
.hr-link .icon { font-size: 11px; transition: transform .35s var(--ease); }
.hr-link:hover { border-color: var(--green-900); }
.hr-link:hover .icon { transform: translate(2px, -2px); }
.hr-link--light { color: #fff; border-color: rgba(200, 167, 124, .6); }
.hr-link--light:hover { border-color: #fff; }

/* четыре факта под первым экраном — колонки со стёжкой слева */
.hr-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: calc(24 * var(--p)) calc(32 * var(--p));
  margin: calc(44 * var(--p)) 0 0;
  padding: 0;
  list-style: none;
}
.hr-fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: calc(18 * var(--p));
  background: repeating-linear-gradient(180deg, rgba(176, 138, 90, .55) 0 6px, transparent 6px 11px) 0 0 / 1.5px 100% no-repeat;
}
.hr-fact__num {
  margin-bottom: 4px;
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(20px, calc(24 * var(--p)), 30px);
  font-style: italic;
  line-height: 1;
  color: var(--gold);
}
.hr-fact__name {
  font-size: clamp(16px, calc(18 * var(--p)), 22px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--green-900);
}
.hr-fact__text {
  font-size: clamp(14px, calc(14.5 * var(--p)), 17px);
  line-height: 1.55;
  color: var(--text);
}

/* ---------- С кем работаем: четыре карточки с линейными иллюстрациями ---------- */
.hr-seg { padding-top: calc(var(--gutter) * 1.15); }
.hr-seg__inner { container-type: inline-size; --p: calc(100cqi / 1200); }

/* надзаголовок над заголовком секции — капс с пунктирной линией, как на первом экране */
.hr-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: calc(18 * var(--p));
  font-size: clamp(11.5px, calc(12.5 * var(--p)), 14.5px);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.hr-eyebrow::before {
  content: "";
  width: 40px;
  height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 10px);
}

.hr-seg__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 calc(20 * var(--p));
  margin: calc(48 * var(--p)) 0 0;
  padding: 0;
  list-style: none;
}
/* карточка занимает 4 строки общей сетки (subgrid): рисунок, название, где, список —
   так названия в две строки («Торговые площади») не сдвигают списки в соседних карточках */
.seg {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  align-content: start;
  padding: calc(14 * var(--p)) calc(14 * var(--p)) calc(30 * var(--p));
  border-radius: min(calc((24 * var(--p)) * 0.45), 14px);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 30, 26, .06), 0 24px 44px -30px rgba(0, 30, 26, .35);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

/* арка-окно из льна со стёжкой, внутри — рисунок */
.seg__art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 18% 10% 8%;
  border-radius: 999px 999px 8px 8px;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(255, 255, 255, .7), transparent 70%),
    #eee7dc;
}
.seg__art::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1.5px dashed rgba(176, 138, 90, .5);
  border-radius: 999px 999px 4px 4px;
  pointer-events: none;
}
.seg__num {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(18px, calc(22 * var(--p)), 28px);
  font-style: italic;
  line-height: 1;
  color: var(--gold);
}
.seg__svg {
  width: 100%;
  height: auto;
  overflow: visible;
  fill: none;
  stroke: var(--green-900);
  stroke-width: 1.1;            /* в единицах рисунка 160×140: на экране ≈1.3–1.6px */
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* без vector-effect: non-scaling-stroke — с ним Chrome не масштабирует штрих-пунктир по pathLength,
   и линии остаются недорисованными */
.seg__svg .ac { stroke: var(--gold); }

/* прорисовка линий при появлении: сначала зелёный рисунок, следом золотые акценты */
.js .seg__svg path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s cubic-bezier(.45, 0, .2, 1);
}
.js .seg__svg .ac { transition-delay: .7s; transition-duration: 1.2s; }
.js .seg.is-visible .seg__svg path { stroke-dashoffset: 0; }
.js .seg.is-drawn .seg__svg path { stroke-dasharray: none; transition: none; }
.js .seg:nth-child(2) .seg__svg path { transition-delay: .12s; }
.js .seg:nth-child(3) .seg__svg path { transition-delay: .24s; }
.js .seg:nth-child(4) .seg__svg path { transition-delay: .36s; }
.js .seg:nth-child(2) .seg__svg .ac { transition-delay: .82s; }
.js .seg:nth-child(3) .seg__svg .ac { transition-delay: .94s; }
.js .seg:nth-child(4) .seg__svg .ac { transition-delay: 1.06s; }

.seg__word {
  margin-top: calc(24 * var(--p));
  padding-inline: calc(14 * var(--p));
  font-family: var(--serif);
  font-size-adjust: var(--head-fit);
  font-size: clamp(26px, calc(34 * var(--p)), 46px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--green-900);
}
.seg__where {
  margin-top: 10px;
  padding-inline: calc(14 * var(--p));
  font-size: clamp(11px, calc(11.5 * var(--p)), 13.5px);
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--gold-text);
}
.seg__list {
  display: grid;
  align-content: start;
  gap: 8px;
  margin: calc(18 * var(--p)) calc(14 * var(--p)) 0;
  padding: calc(16 * var(--p)) 0 0;
  list-style: none;
  background: repeating-linear-gradient(90deg, rgba(176, 138, 90, .5) 0 6px, transparent 6px 11px) 0 0 / 100% 1.5px no-repeat;
}
.seg__list li {
  position: relative;
  padding-left: 16px;
  font-size: clamp(14px, calc(15 * var(--p)), 17.5px);
  line-height: 1.5;
  color: var(--text);
}
.seg__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
}

@media (hover: hover) and (pointer: fine) {
  .seg:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0, 30, 26, .06), 0 34px 54px -30px rgba(0, 30, 26, .45); }
}

/* ---------- Общие: отступы секций и шапка «заголовок + пояснение» ---------- */
.hr-docs,
.hr-steps,
.hr-faq { padding-top: calc(var(--gutter) * 1.15); }
.hr-docs__inner,
.hr-steps__inner,
.hr-faq__inner { container-type: inline-size; --p: calc(100cqi / 1200); }

.hr-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, calc(420 * var(--p)));
  align-items: end;
  column-gap: calc(48 * var(--p));
}
.hr-head__lead {
  margin-bottom: .4em;
  font-size: clamp(14.5px, calc(16 * var(--p)), 19px);
  line-height: 1.6;
  color: var(--text);
}
.hr-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }

/* ---------- Документы ---------- */
.hr-docs__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(20 * var(--p));
  margin-top: calc(48 * var(--p));
}

/* ткани — светлый лоскут со стёжкой, как форма заявки */
.hr-cert {
  position: relative;
  padding: calc(52 * var(--p)) calc(52 * var(--p)) calc(56 * var(--p));
  border-radius: min(calc((36 * var(--p)) * 0.45), 20px);
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(255, 255, 255, .7), transparent 60%),
    radial-gradient(70% 120% at 100% 100%, rgba(176, 138, 90, .12), transparent 70%),
    #eee7dc;
  box-shadow: 0 1px 3px rgba(45, 35, 25, .06), 0 30px 60px -44px rgba(45, 35, 25, .5);
}
.hr-cert::before {
  content: "";
  position: absolute;
  inset: clamp(8px, calc(12 * var(--p)), 16px);
  border: 1.5px dashed rgba(176, 138, 90, .55);
  border-radius: min(calc((24 * var(--p)) * 0.45), 14px);
  pointer-events: none;
}
.hr-cert__kicker,
.hr-contract__kicker {
  font-size: clamp(11.5px, calc(12 * var(--p)), 14px);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.hr-cert__title,
.hr-contract__title {
  margin-top: 10px;
  font-family: var(--serif);
  font-size-adjust: var(--head-fit);
  font-size: clamp(26px, calc(36 * var(--p)), 48px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--green-900);
}
.hr-cert__lead {
  max-width: 30em;
  margin-top: 14px;
  font-size: clamp(14.5px, calc(15.5 * var(--p)), 18px);
  line-height: 1.6;
  color: var(--text);
}
.hr-cert__list {
  display: grid;
  gap: calc(14 * var(--p));
  margin: calc(28 * var(--p)) 0 0;
  padding: 0;
  list-style: none;
}
.hr-cert__list li {
  position: relative;
  padding-left: 34px;
  font-size: clamp(14.5px, calc(15.5 * var(--p)), 18px);
  line-height: 1.55;
  color: var(--text);
}
.hr-cert__list b { font-weight: 600; color: var(--ink); }
/* золотая «галочка» в круге */
.hr-cert__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .15em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-900);
}
.hr-cert__list li::after {
  content: "";
  position: absolute;
  left: 7.5px;
  top: calc(.15em + 6px);
  width: 6px;
  height: 10px;
  border: solid var(--gold-light);
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}

/* договор — лист бумаги на зелёной ткани, с печатью */
.hr-contract {
  display: grid;
  place-items: center;
  padding: calc(48 * var(--p)) calc(52 * var(--p));
  border-radius: min(calc((36 * var(--p)) * 0.45), 20px);
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(255, 255, 255, .08), transparent 60%),
    radial-gradient(80% 80% at 100% 100%, rgba(0, 0, 0, .22), transparent 70%),
    #0d3f39 url("../assets/img/panel-fabric.webp") center / cover no-repeat;
  box-shadow: 0 2px 4px rgba(0, 30, 26, .08), 0 40px 70px -40px rgba(0, 30, 26, .55);
}
.hr-contract__sheet {
  position: relative;
  width: 100%;
  max-width: 500px;
  padding: calc(40 * var(--p)) calc(40 * var(--p)) calc(56 * var(--p));
  border-radius: 6px;
  background: linear-gradient(180deg, #fffdf9, #f8f4ec);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18), 0 30px 50px -24px rgba(0, 0, 0, .55);
  transform: rotate(-1.4deg);
}
.hr-contract__title { font-size: clamp(24px, calc(30 * var(--p)), 40px); }
.hr-contract__list {
  margin: calc(20 * var(--p)) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: cl;
}
.hr-contract__list li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #e8e1d4;
  counter-increment: cl;
  font-size: clamp(14px, calc(15 * var(--p)), 17.5px);
  line-height: 1.5;
  color: var(--ink);
}
.hr-contract__list li::before {
  content: counter(cl) ".";
  flex: none;
  width: 1.4em;
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: 1.15em;
  font-style: italic;
  color: var(--gold);
}
.hr-contract__seal {
  position: absolute;
  right: calc(26 * var(--p));
  bottom: calc(-26 * var(--p));
  display: grid;
  place-items: center;
  width: clamp(76px, calc(96 * var(--p)), 120px);
  aspect-ratio: 1;
  border: 2px solid rgba(138, 104, 63, .75);
  border-radius: 50%;
  outline: 1px solid rgba(138, 104, 63, .55);
  outline-offset: -8px;
  background: rgba(255, 253, 249, .6);
  font-family: var(--serif);
  font-size: clamp(13px, calc(15 * var(--p)), 18px);
  letter-spacing: .14em;
  color: var(--gold-text);
  transform: rotate(-14deg);
}

/* ---------- Шаги ---------- */
.hr-steps__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(20 * var(--p));
  margin: calc(48 * var(--p)) 0 0;
  padding: 0;
  list-style: none;
}
.hr-step {
  padding: calc(32 * var(--p)) calc(32 * var(--p)) calc(36 * var(--p));
  border-radius: min(calc((24 * var(--p)) * 0.45), 14px);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 30, 26, .06), 0 24px 44px -30px rgba(0, 30, 26, .35);
}
.hr-step__num {
  display: block;
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(30px, calc(40 * var(--p)), 52px);
  font-style: italic;
  line-height: 1;
  color: var(--gold);
}
.hr-step__name {
  margin-top: calc(22 * var(--p));
  padding-top: calc(18 * var(--p));
  background: repeating-linear-gradient(90deg, rgba(176, 138, 90, .5) 0 6px, transparent 6px 11px) 0 0 / 100% 1.5px no-repeat;
  font-size: clamp(18px, calc(21 * var(--p)), 26px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--green-900);
}
.hr-step__text {
  margin-top: 10px;
  font-size: clamp(14px, calc(15 * var(--p)), 17.5px);
  line-height: 1.6;
  color: var(--text);
}

/* сервис после сдачи — горизонтальная зелёная плашка с фото прачечной */
.hr-care {
  display: grid;
  grid-template-columns: minmax(0, 320fr) minmax(0, 880fr);
  margin-top: calc(20 * var(--p));
  overflow: hidden;
  border-radius: min(calc((24 * var(--p)) * 0.45), 14px);
  color: #fff;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(255, 255, 255, .08), transparent 60%),
    #0d3f39 url("../assets/img/panel-fabric.webp") center / cover no-repeat;
  box-shadow: 0 2px 4px rgba(0, 30, 26, .08), 0 30px 60px -40px rgba(0, 30, 26, .55);
}
/* фото не влияет на высоту плашки — её задаёт текст */
.hr-care__media { position: relative; min-height: 220px; }
.hr-care__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hr-care__body {
  align-self: center;
  padding: calc(40 * var(--p)) calc(56 * var(--p));
}
.hr-care__kicker {
  font-size: clamp(11.5px, calc(12 * var(--p)), 14px);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.hr-care__title {
  margin-top: 10px;
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(28px, calc(40 * var(--p)), 54px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.08;
  color: var(--gold-light);
}
.hr-care__text {
  max-width: 40em;
  margin-top: 14px;
  font-size: clamp(14.5px, calc(16 * var(--p)), 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
}

/* ---------- Кейсы ---------- */
.hr-cases { margin-top: 0; padding-top: calc(var(--gutter) * 1.15); }
.hr-cases .cs-grid { margin-top: calc(44 * var(--p)); }

/* ---------- Референсы: текстиль лучших отелей мира ---------- */
.hr-ref { padding-top: calc(var(--gutter) * 1.15); }
.hr-ref__inner { container-type: inline-size; --p: calc(100cqi / 1200); }

.hr-ref__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--gap)) / 2.6);   /* 2.6 карточки — край третьей подсказывает, что лента листается */
  --gap: calc(24 * var(--p));
  gap: var(--gap);
  margin-top: calc(44 * var(--p));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.hr-ref__track::-webkit-scrollbar { display: none; }
.hr-ref__track:focus-visible { outline-offset: 6px; }
.hr-ref__card { scroll-snap-align: start; }

.hr-ref__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: var(--line);
}
.hr-ref__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .hr-ref__card:hover .hr-ref__media img { transform: scale(1.03); }
}

/* плашка как в альбоме: золотая полоса слева внизу, город капсом и «5★ Отель» */
.hr-ref__plate {
  position: absolute;
  left: 0;
  bottom: 8%;
  max-width: 88%;
  padding: .55em 2.4em .6em 1.1em;
  font-family: var(--serif);
  font-size: clamp(14px, calc(17 * var(--p)), 21px);
  line-height: 1.2;
  color: #fff;
  background: linear-gradient(90deg, rgba(92, 70, 20, .92) 0%, rgba(150, 118, 45, .88) 55%, rgba(176, 138, 60, .55) 85%, rgba(176, 138, 60, 0) 100%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.hr-ref__place { display: block; text-transform: uppercase; letter-spacing: .02em; }
.hr-ref__name  { display: block; }

.hr-ref__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px calc(32 * var(--p));
  margin-top: calc(40 * var(--p));
}
.hr-ref__note {
  flex: 1 1 18em;
  max-width: 34em;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.hr-ref__nav { display: flex; gap: 10px; margin-left: auto; }
[data-carousel].is-static .hr-ref__nav { visibility: hidden; }
.hr-ref__btn {
  display: grid; place-items: center;
  width: clamp(44px, calc(52 * var(--p)), 60px);
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  background: transparent;
  color: var(--green-900);
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), opacity .3s;
}
.hr-ref__btn svg { width: 15px; height: 15px; }
.hr-ref__btn:hover:not(:disabled) { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.hr-ref__btn:disabled { opacity: .35; cursor: default; }

@media (max-width: 1023px) {
  .hr-ref { padding-top: 64px; }
  .hr-ref__track { --gap: 16px; grid-auto-columns: calc((100% - var(--gap)) / 1.6); margin-top: 32px; }
  .hr-ref__foot { margin-top: 28px; }
}
@media (max-width: 599px) {
  .hr-ref { padding-top: 52px; }
  /* лента уходит под правый край экрана */
  .hr-ref__track { grid-auto-columns: 84%; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .hr-ref__nav { display: none; }
  .hr-ref__foot .hr-btn { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .hr-ref__track { scroll-behavior: auto; }
}

/* ---------- Портфолио: реальные объекты HoReCa ---------- */
.hr-pf { padding-top: calc(var(--gutter) * 1.15); }
.hr-pf__inner { container-type: inline-size; --p: calc(100cqi / 1200); }

.hr-pf__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(48 * var(--p)) calc(28 * var(--p));
  margin-top: calc(44 * var(--p));
}
/* без JS видны все карточки; с JS лишние прячутся до нажатия «Показать все» */
.js .hr-pf:not(.is-open) .hr-pf__card--more { display: none; }

/* фото из презентации — фасады с мягкой растушёвкой по краям, поэтому фон карточки — тот же тёплый «лист бумаги» */
.hr-pf__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: #e4d9cf;
}
.hr-pf__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .hr-pf__card:hover .hr-pf__media img { transform: scale(1.03); }
}

.hr-pf__meta {
  display: block;
  margin-top: calc(18 * var(--p));
  font-size: clamp(11.5px, calc(12 * var(--p)), 14px);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.hr-pf__title {
  margin-top: 8px;
  font-size: clamp(19px, calc(23 * var(--p)), 29px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -.02em;
  color: var(--green-900);
}
.hr-pf__text {
  margin-top: 8px;
  font-size: clamp(14.5px, calc(15 * var(--p)), 18px);
  line-height: 1.55;
  color: var(--text);
}

.hr-pf__more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: calc(48 * var(--p));
  min-height: clamp(52px, calc(60 * var(--p)), 72px);
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  background: transparent;
  font-size: clamp(14.5px, calc(15 * var(--p)), 18px);
  font-weight: 500;
  color: var(--green-900);
  cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s;
}
.hr-pf__more svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.hr-pf__more:hover { background: #fff; border-color: var(--gold); }
.hr-pf.is-open .hr-pf__more svg { transform: rotate(180deg); }

@media (max-width: 1023px) {
  .hr-pf { padding-top: 64px; }
  .hr-pf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; margin-top: 32px; }
  .hr-pf__more { margin-top: 36px; }
}
@media (max-width: 599px) {
  .hr-pf { padding-top: 52px; }
  .hr-pf__grid { grid-template-columns: 1fr; gap: 32px; }
  .hr-pf__meta { margin-top: 14px; }
}

/* ---------- Вопросы ---------- */
.hr-faq__inner {
  display: grid;
  grid-template-columns: minmax(0, 440fr) minmax(0, 700fr);
  column-gap: calc(64 * var(--p));
  align-items: start;
}
.hr-faq__head { display: block; position: sticky; top: 110px; }
.hr-faq__head .hr-head__lead { max-width: 24em; margin-top: calc(24 * var(--p)); }

.hr-q {
  --stitch: repeating-linear-gradient(90deg, rgba(176, 138, 90, .55) 0 6px, transparent 6px 11px);
  background: var(--stitch) 0 100% / 100% 1.5px no-repeat;
}
.hr-q:first-child { background: var(--stitch) 0 0 / 100% 1.5px no-repeat, var(--stitch) 0 100% / 100% 1.5px no-repeat; }
.hr-q__sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: calc(24 * var(--p)) 0;
  min-height: 64px;
  font-size: clamp(17px, calc(20 * var(--p)), 25px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--green-900);
  cursor: pointer;
  list-style: none;
  transition: color .3s;
}
.hr-q__sum::-webkit-details-marker { display: none; }
.hr-q__sum:hover { color: var(--copper); }
.hr-q__sum:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
/* плюс в круге, у открытого — минус на зелёном */
.hr-q__sum::after {
  content: "";
  flex: none;
  width: clamp(36px, calc(42 * var(--p)), 50px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat,
    #ebe8e3;
  color: var(--ink);
  transition: background-color .3s, color .3s, transform .4s var(--ease);
}
.hr-q[open] .hr-q__sum::after {
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    var(--green-900);
  color: var(--gold-light);
  transform: rotate(180deg);
}
.hr-q__text {
  max-width: 38em;
  padding: 0 calc(64 * var(--p)) calc(26 * var(--p)) 0;
  font-size: clamp(14.5px, calc(16 * var(--p)), 19px);
  line-height: 1.65;
  color: var(--text);
}

/* форма звонка после вопросов — отступ сверху */
.hr-faq + .cb { margin-top: calc(var(--gutter) * 1.15); }

/* ---------- Планшет ---------- */
@media (max-width: 1023px) {
  /* текст внизу, затемнение — снизу вверх */
  .hr-hero__stage { min-height: min(720px, 120vw); padding: 24px 28px 32px; border-radius: 12.5px; }
  .hr-hero__stage::after {
    background:
      linear-gradient(to top, rgba(3, 26, 23, .92) 0%, rgba(3, 26, 23, .75) 45%, rgba(3, 26, 23, .15) 80%, rgba(3, 26, 23, .3)),
      linear-gradient(to bottom, rgba(3, 26, 23, .35), transparent 20%);
  }
  .hr-hero__copy { width: 100%; }
  .hr-kicker { padding-top: 40px; }
  .hr-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin-top: 32px; }
  .hr-fact { padding-left: 16px; }

  .hr-seg { padding-top: 64px; }
  .hr-seg__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; margin-top: 32px; }
  .seg { padding: 10px 10px 26px; border-radius: 10px; margin-bottom: 14px; }
  .seg__art { aspect-ratio: 4 / 3; padding: 12% 18% 6%; }
  .seg__word { margin-top: 20px; padding-inline: 14px; font-size: 32px; }
  .seg__where { padding-inline: 14px; }
  .seg__list { margin: 16px 14px 0; padding-top: 14px; }

  .hr-docs, .hr-steps, .hr-faq, .hr-cases { padding-top: 64px; }
  .hr-head { grid-template-columns: 1fr; row-gap: 16px; }
  .hr-head__lead { max-width: 560px; margin-bottom: 0; }
  .hr-docs__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 32px; }
  .hr-cert { padding: 36px 32px 40px; border-radius: 12.5px; }
  .hr-contract { padding: 40px 28px 56px; border-radius: 12.5px; }
  .hr-contract__sheet { padding: 32px 30px 52px; }
  .hr-contract__seal { right: 22px; bottom: -22px; }

  .hr-steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
  .hr-step { padding: 26px 24px 28px; border-radius: 10px; }
  .hr-step__num { font-size: 34px; }
  .hr-step__name { margin-top: 18px; padding-top: 16px; }
  .hr-care { grid-template-columns: 1fr; margin-top: 14px; border-radius: 10px; }
  .hr-care__media { aspect-ratio: 16 / 9; min-height: 0; }
  .hr-care__body { padding: 28px 28px 32px; }

  .hr-cases .cs-grid { margin-top: 32px; }

  .hr-faq__inner { grid-template-columns: 1fr; row-gap: 28px; }
  .hr-faq__head { position: static; }
  .hr-faq__head .hr-head__lead { margin-top: 16px; }
  .hr-q__sum { padding: 20px 0; }
  .hr-q__text { padding: 0 0 22px; }
  .hr-faq + .cb { margin-top: 64px; }
}

/* ---------- Телефон ---------- */
@media (max-width: 599px) {
  .hr-kicker { padding-top: 32px; }
  .hr-hero__actions { gap: 18px; }
  .hr-btn { width: 100%; justify-content: space-between; }
  .hr-hero__stage { min-height: min(680px, 165vw); padding: 18px 20px 26px; border-radius: 11px; }
  .hr-facts { grid-template-columns: 1fr; gap: 22px; }

  .hr-seg { padding-top: 52px; }
  .hr-seg__grid { grid-template-columns: 1fr; }
  .seg { display: flex; flex-direction: column; }
  .seg__art { aspect-ratio: 16 / 11; padding: 12% 20% 5%; }
  .seg__word { font-size: 30px; }
  .hr-docs, .hr-steps, .hr-faq, .hr-cases { padding-top: 52px; }
  .hr-cert { padding: 30px 22px 32px; border-radius: 11px; }
  .hr-contract { padding: 28px 16px 44px; border-radius: 11px; }
  .hr-contract__sheet { padding: 26px 22px 46px; transform: rotate(-1deg); }
  .hr-steps__list { grid-template-columns: 1fr; }
  .hr-care__body { padding: 24px 22px 28px; }
  .hr-faq + .cb { margin-top: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .hr-btn .icon, .hr-link .icon, .hr-q__sum::after { transition: none; }
  .js .seg__svg path { stroke-dashoffset: 0; transition: none; }
  .seg { transition: none; }
  /* без бегущей строки: логотипы просто стоят в ряд с переносом, копия скрыта */
  .hr-logos__viewport { -webkit-mask-image: none; mask-image: none; }
  .hr-logos__track { width: auto; animation: none; justify-content: center; }
  .hr-logos__list { flex-wrap: wrap; justify-content: center; row-gap: 20px; padding: 0 var(--gutter); }
  .hr-logos__list[aria-hidden] { display: none; }
}

/* ==========================================================================
   Что мы шьём — минималистичная плитка из фото.
   Сетка 4 × 2: широкая плитка, две высокие и две обычные. Подпись и короткое
   описание — белым по мягкому затемнению снизу; при наведении фото чуть
   приближается.
   ========================================================================== */
.cat {
  padding: calc(var(--gutter) * .3) 0 calc(var(--gutter) * 1.05);
}

.cat__inner {
  container-type: inline-size;
  --p: calc(100cqi / 1200);
}

.cat__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, clamp(220px, calc(290 * var(--p)), 400px));
  gap: calc(14 * var(--p));
  margin: calc(48 * var(--p)) 0 0;
  padding: 0;
  list-style: none;
}

/* порядок в сетке: широкая и обычные слева, высокие — справа */
.cat-tile--wide { grid-column: 1 / 3; grid-row: 1; }
.cat-tile--tall { grid-row: 1 / 3; }

.cat-tile {
  position: relative;
  overflow: hidden;
  border-radius: min(calc((20 * var(--p)) * 0.45), 20px);
  background: #3f4a44;                   /* пока фото грузится, белая подпись всё равно читается */
  isolation: isolate;
}

.cat-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

/* затемнение снизу — только под текстом */
.cat-tile::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  /* под текстом плотнее: на светлых фото (белое бельё, тюль) мелкая подпись иначе теряется */
  background: linear-gradient(180deg, rgba(0, 24, 21, 0), rgba(0, 24, 21, .45) 45%, rgba(0, 24, 21, .78));
  pointer-events: none;
}

.cat-tile__text {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: calc(22 * var(--p)) calc(24 * var(--p));
  color: #fff;
}

.cat-tile__name {
  font-size: clamp(18px, calc(21 * var(--p)), 26px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.cat-tile__desc {
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  max-width: 30ch;
  margin-top: 4px;
  font-size: clamp(13.5px, calc(14 * var(--p)), 16.5px);
  line-height: 1.45;
  color: rgba(255, 255, 255, .86);
}

@media (hover: hover) and (pointer: fine) {
  .cat-tile:hover img { transform: scale(1.04); }
}

/* ---------- Планшет: 2 колонки, широкая — во всю ширину ---------- */
@media (max-width: 1023px) {
  .cat { padding: 8px 0 64px; }
  .cat__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: 260px;
    gap: 12px;
    margin-top: 32px;
  }
  .cat-tile--wide { grid-column: 1 / -1; grid-row: auto; }
  .cat-tile--tall { grid-row: span 2; }
  .cat-tile { border-radius: 8px; }
  .cat-tile__text { padding: 18px 20px; }
}

/* ---------- Телефон ---------- */
@media (max-width: 599px) {
  .cat { padding-bottom: 52px; }
  .cat__grid { grid-auto-rows: 190px; gap: 10px; }
  .cat-tile--wide { grid-row: span 1; }
  .cat-tile--tall { grid-row: span 2; }
  .cat-tile { border-radius: 7px; }
  .cat-tile__text { padding: 14px 14px 13px; }
  .cat-tile::after { inset: 30% 0 0; }    /* на узких плитках текст занимает больше высоты */
  .cat-tile__name { font-size: 17px; }
  .cat-tile__desc { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .cat-tile img { transition: none; }
}

/* ==========================================================================
   Страницы проектов (cases.html, cases/*.html) — собирает tools/cases.js
   ========================================================================== */

/* ---------- Хлебные крошки ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
}
.crumbs a { color: var(--ink); border-bottom: 1px solid transparent; transition: border-color .3s; }
.crumbs a:hover { border-color: var(--gold); }
.crumbs span[aria-hidden] { color: var(--gold-soft); }
.crumbs--light { color: rgba(255, 255, 255, .72); }
.crumbs--light a { color: #fff; }

/* ==========================================================================
   Все проекты: зелёная панель-шапка, фильтры, плитка во всю ширину
   ========================================================================== */
.cs-hero { padding-top: calc(var(--gutter) * .25); }
.cs-hero .container { container-type: inline-size; --p: calc(100cqi / 1200); }

.cs-hero__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "crumbs crumbs" "title count";
  align-items: end;
  column-gap: calc(48 * var(--p));
  padding: calc(40 * var(--p)) calc(56 * var(--p)) calc(52 * var(--p));
  border-radius: min(calc((36 * var(--p)) * 0.45), 20px);
  color: #fff;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(255, 255, 255, .08), transparent 60%),
    radial-gradient(80% 80% at 100% 100%, rgba(0, 0, 0, .22), transparent 70%),
    #0d3f39 url("../assets/img/panel-fabric.webp") center / cover no-repeat;
  box-shadow: 0 2px 4px rgba(0, 30, 26, .08), 0 40px 70px -40px rgba(0, 30, 26, .55);
}
.cs-hero__panel .crumbs { grid-area: crumbs; margin-bottom: calc(64 * var(--p)); }

.cs-hero__title {
  grid-area: title;
  display: flex;
  flex-direction: column;
  font-weight: 400;
}
.cs-hero__title-sans {
  font-family: var(--serif);
  font-size-adjust: var(--head-fit);
  font-size: clamp(40px, calc(72 * var(--p)), 96px);
  line-height: 1.02;
  letter-spacing: -.01em;
}
.cs-hero__title-serif {
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(30px, calc(52 * var(--p)), 70px);
  font-style: italic;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--gold-light);
}

.cs-hero__count {
  grid-area: count;
  max-width: 15em;
  font-size: clamp(14px, calc(15 * var(--p)), 18px);
  line-height: 1.45;
  text-align: right;
  color: rgba(255, 255, 255, .8);
}
.cs-hero__num {
  display: block;
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(64px, calc(110 * var(--p)), 150px);
  font-style: italic;
  line-height: .85;
  color: var(--gold-light);
}

.cs-filters { margin-top: calc(28 * var(--p)); }

.cs-empty {
  padding: 48px var(--gutter);
  text-align: center;
  color: var(--text);
}

/* ---------- Соседние проекты ---------- */
.case-nav {
  --stitch: repeating-linear-gradient(90deg, var(--gold-soft) 0 6px, transparent 6px 11px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
}
.case-nav__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(22px, 2.4vw, 36px) 0;
  background: var(--stitch) 0 0 / 100% 1.5px no-repeat, var(--stitch) 0 100% / 100% 1.5px no-repeat;
}
.case-nav__link--next { align-items: flex-end; text-align: right; }
.case-nav__dir {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.case-nav__title {
  font-size: clamp(20px, 2vw, 32px);
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--green-900);
  transition: color .3s;
}
.case-nav__link:hover .case-nav__title { color: var(--copper); }


/* ---------- Планшет ---------- */
@media (max-width: 1023px) {
  .cs-hero__panel {
    grid-template-columns: 1fr;
    grid-template-areas: "crumbs" "title" "count";
    row-gap: 24px;
    padding: 28px 28px 32px;
    border-radius: 12.5px;
  }
  .cs-hero__panel .crumbs { margin-bottom: 24px; }
  .cs-hero__count { text-align: left; }
  .cs-hero__num { font-size: 72px; }
  .cs-filters { margin-top: 20px; }

}

/* ---------- Телефон ---------- */
@media (max-width: 599px) {
  .cs-hero__panel { padding: 22px 20px 26px; border-radius: 11px; }

  .case-nav { grid-template-columns: 1fr; }
  .case-nav__link--next { align-items: flex-start; text-align: left; }
  .case-nav__link + .case-nav__link { background: var(--stitch) 0 100% / 100% 1.5px no-repeat; }
}

@media (prefers-reduced-motion: reduce) {
}

/* ссылка «Все проекты» под каруселью на главной */
.pf__all {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 6px;
  font-size: clamp(14px, calc(15 * var(--p)), 18px);
  font-weight: 500;
  color: var(--green-900);
  border-bottom: 1px solid var(--gold-soft);
  transition: border-color .3s;
}
.pf__all .icon { font-size: 11px; }
.pf__all:hover { border-color: var(--green-900); }
.pf__all:hover .icon { transform: translate(2px, -2px); }
@media (max-width: 1023px) {
  .pf__all { grid-column: 1 / -1; justify-self: start; }
}

/* на страницах проектов форма заявки идёт сразу за плиткой — отступ сверху */
.cs-list + .cb { margin-top: max(40px, calc(var(--gutter) * .9)); }

/* ==========================================================================
   Страница проекта — статья: заголовок по центру, обложка на зелёной ткани,
   факты строкой, текст узкой колонкой для чтения, отзыв — выносной цитатой.
   ========================================================================== */
.post { padding: calc(var(--gutter) * .35) 0 calc(var(--gutter) * .55); }

.post__inner {
  container-type: inline-size;
  --p: calc(100cqi / 1200);
  --read: min(100%, 700px);          /* колонка текста */
  --wide: min(100%, 980px);          /* шапка, факты, галерея */
}

/* ---------- Шапка ---------- */
.post__head {
  width: var(--wide);
  margin-inline: auto;
  text-align: center;
}
.crumbs--center { justify-content: center; }

.post__kind {
  margin-top: calc(44 * var(--p));
  font-size: clamp(11.5px, calc(12.5 * var(--p)), 14.5px);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.post__title {
  display: flex;
  flex-direction: column;
  margin-top: calc(16 * var(--p));
  font-weight: 400;
  color: var(--green-900);
}
.post__title-sans {
  font-family: var(--serif);
  font-size-adjust: var(--head-fit);
  font-size: clamp(36px, calc(68 * var(--p)), 92px);
  line-height: 1.04;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.post__title-serif {
  margin-top: .05em;
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(32px, calc(60 * var(--p)), 82px);
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -.01em;
}

.post__lead {
  max-width: 34em;
  margin: calc(24 * var(--p)) auto 0;
  font-size: clamp(16.5px, calc(19 * var(--p)), 23px);
  line-height: 1.6;
  color: var(--text);
}


.post__facts {
  --stitch: repeating-linear-gradient(90deg, var(--gold-soft) 0 6px, transparent 6px 11px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: var(--wide);
  margin: calc(48 * var(--p)) auto 0;
  background: var(--stitch) 0 0 / 100% 1.5px no-repeat, var(--stitch) 0 100% / 100% 1.5px no-repeat;
}
.post__facts div {
  padding: calc(20 * var(--p)) calc(20 * var(--p));
  text-align: center;
}
.post__facts div + div {
  background: repeating-linear-gradient(180deg, rgba(200, 167, 124, .7) 0 5px, transparent 5px 10px) 0 50% / 1px 60% no-repeat;
}
.post__facts dt {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.post__facts dd {
  margin: 6px 0 0;
  font-size: clamp(15px, calc(15.5 * var(--p)), 18px);
  line-height: 1.45;
  color: var(--ink);
}

/* ---------- Текст ---------- */
.post__body {
  width: var(--read);
  margin: calc(56 * var(--p)) auto 0;
}

.post__h {
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(28px, calc(36 * var(--p)), 46px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
  color: var(--green-900);
}

.post__done {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: done;
}
.post__done li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: baseline;
  padding: 14px 0;
  font-size: clamp(16px, calc(17 * var(--p)), 20px);
  line-height: 1.5;
  color: var(--ink);
  counter-increment: done;
  background: repeating-linear-gradient(90deg, rgba(200, 167, 124, .7) 0 6px, transparent 6px 11px) 0 100% / 100% 1px no-repeat;
}
.post__done li::before {
  content: "0" counter(done);
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: 1.3em;
  font-style: italic;
  color: var(--gold-text);
}

/* выносная цитата: шире колонки текста, по центру */
.post-quote {
  margin: calc(56 * var(--p)) calc(-90 * var(--p)) 0;
  padding: calc(40 * var(--p)) 0;
  text-align: center;
}
.post-quote__text { margin: 0; }
.post-quote__text p {
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(26px, calc(38 * var(--p)), 50px);
  font-style: italic;
  line-height: 1.25;
  color: var(--green-900);
  text-wrap: balance;
}
.post-quote__text p::before,
.post-quote__text p::after { color: var(--gold); }
.post-quote__text p::before { content: "«"; }
.post-quote__text p::after { content: "»"; }

.post-quote__who {
  display: inline-grid;
  grid-template-columns: auto auto;
  grid-template-areas: "av name" "av det";
  align-items: center;
  column-gap: 12px;
  margin-top: 22px;
  text-align: left;
}
.post-quote__avatar {
  grid-area: av;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--gold-soft);
}
.post-quote__avatar--mono {
  display: grid;
  place-items: center;
  background: #efe7d8;
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: 22px;
  font-style: italic;
  color: var(--green-900);
}
.post-quote__name { grid-area: name; align-self: end; font-size: 15px; font-weight: 500; color: var(--ink); }
.post-quote__det { grid-area: det; align-self: start; font-size: 13px; color: var(--text); }

.post__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
  width: var(--read);
  margin: calc(52 * var(--p)) auto 0;
}
.post__btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  height: clamp(50px, calc(56 * var(--p)), 68px);
  padding-inline: clamp(22px, calc(28 * var(--p)), 34px);
  border-radius: 12px;
  background: var(--green-900);
  color: #fff;
  font-size: clamp(14.5px, calc(15 * var(--p)), 17.5px);
  font-weight: 500;
  box-shadow: 0 14px 28px -18px rgba(0, 30, 26, .6);
  transition: background-color .35s;
}
.post__btn .icon { font-size: 15px; }
.post__btn:hover { background: var(--copper); }
.post__btn:hover .icon { transform: translate(2px, -2px); }
.post__all {
  padding-block: 6px;
  font-size: clamp(14px, calc(14.5 * var(--p)), 17px);
  color: var(--ink);
  border-bottom: 1px solid var(--gold-soft);
  transition: border-color .3s;
}
.post__all:hover { border-color: var(--ink); }

/* соседние проекты под статьёй — отступ */
.post + .case-nav { margin-top: clamp(24px, 2.4vw, 40px); }

@media (max-width: 1023px) {
  .post { padding: 16px 0 40px; }
  .post__kind { margin-top: 32px; }
  .post__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 36px; }
  .post__facts div:nth-child(3) { background: none; }
  .post__facts div:nth-child(n+3) { border-top: 1px dashed rgba(200, 167, 124, .6); }
  .post__body { margin-top: 40px; }
  .post-quote { margin-inline: 0; padding-block: 28px; }
  .post__actions { margin-top: 40px; }
}

@media (max-width: 599px) {
  .post__facts div { padding: 16px 10px; }
  .post__done li { grid-template-columns: 40px minmax(0, 1fr); }
  .post__btn { width: 100%; justify-content: space-between; }
}


/* ---------- Статья: поток блоков — подзаголовки, абзацы, фото, пары, галереи ---------- */
.post__h { margin-top: calc(56 * var(--p)); }
.post__h:first-child { margin-top: 0; }

.post__p {
  margin-top: 16px;
  font-size: clamp(16.5px, calc(18 * var(--p)), 21px);
  line-height: 1.75;
  color: #2f3b38;
  text-wrap: pretty;
}
.post__h + .post__p { margin-top: 14px; }

/* буквица в первом абзаце */
.post__p--first::first-letter {
  float: left;
  margin: .08em .12em 0 0;
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: 3.6em;
  font-style: italic;
  line-height: .8;
  color: #a3804f;
}

.post__done { margin-top: 18px; }

/* фото: в колонку текста, шире колонки (wide) и во всю ширину страницы (full) */
.post-fig { margin: calc(44 * var(--p)) 0 0; }
.post-fig--wide,
.post-fig--full,
.post-pair,
.post-gallery {
  margin-left: 50%;
  translate: -50% 0;
}
.post-fig--wide,
.post-pair,
.post-gallery { width: min(980px, 100cqi); }
.post-fig--full { width: 100cqi; }

.post-fig__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: min(calc((22 * var(--p)) * 0.45), 20px);
  background: #efe9df;
}
.post-fig--wide .post-fig__media { aspect-ratio: 16 / 9; }
.post-fig--full .post-fig__media { aspect-ratio: 21 / 9; border-radius: min(calc((30 * var(--p)) * 0.45), 20px); }
.post-fig--cell .post-fig__media { aspect-ratio: 4 / 5; }
.post-fig__media img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* видео в статье: короткие ролики без звука играют, пока видны (main.js → [data-post-video]); интервью — со звуком и кнопками */
.post-fig__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-fig--interview { width: min(360px, 100%); margin-inline: auto; }
.post-fig--interview .post-fig__media { aspect-ratio: 9 / 16; background: #1d1a17; }
.post-fig--interview .post-fig__media video { object-fit: contain; }

/* подпись «проект дизайнера» под лидом */
.post__by {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: calc(22 * var(--p));
  font-size: 15px;
  color: var(--text);
}
.post__by strong { font-weight: 600; color: var(--green-900); }
.post__by-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--gold-soft);
}

.post-fig__cap {
  position: relative;
  margin-top: 12px;
  padding-left: 22px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
}
.post-fig__cap::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 12px;
  height: 1px;
  background: var(--gold);
}

.post-pair,
.post-gallery {
  display: grid;
  gap: calc(16 * var(--p));
  margin-top: calc(44 * var(--p));
}
.post-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-pair .post-fig,
.post-gallery .post-fig { margin: 0; }

/* «место для фото»: пунктирная рамка в тон стёжки; подпись под ним говорит, что снять */
.post-ph {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  height: 100%;
  border: 1.5px dashed rgba(176, 138, 90, .55);
  border-radius: inherit;
  background:
    repeating-linear-gradient(135deg, rgba(200, 167, 124, .1) 0 12px, transparent 12px 24px),
    #f3eee6;
  color: var(--gold-text);
}
.post-ph svg { width: 34px; height: 34px; }
.post-ph__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* крупная деталь основного снимка */
.post-ph--detail {
  display: block;
  border: 0;
  background-repeat: no-repeat;
  background-size: 240% auto;
}

@media (max-width: 1023px) {
  .post__h { margin-top: 44px; }
  .post-fig,
  .post-pair,
  .post-gallery { margin-top: 32px; }
  .post-fig--full .post-fig__media { aspect-ratio: 16 / 9; }
}

@media (max-width: 599px) {
  .post-fig--wide .post-fig__media,
  .post-fig--full .post-fig__media { aspect-ratio: 4 / 3; border-radius: 8px; }
  .post-fig__media { border-radius: 7px; }
  .post-pair,
  .post-gallery { gap: 10px; }
  .post-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-gallery .post-fig:first-child { grid-column: 1 / -1; }
  .post-gallery .post-fig:first-child .post-fig__media { aspect-ratio: 4 / 3; }
  .post-ph svg { width: 28px; height: 28px; }
  .post-ph__label { font-size: 11px; letter-spacing: .14em; }
}

/* ---------- Обложка проекта: плитка разноформатных фото с узкими зазорами ---------- */
.mz {
  display: grid;
  gap: 10px;
  margin-top: calc(48 * var(--p));
  grid-template-rows: repeat(2, clamp(200px, 23vw, 360px));
}
/* вертикальное главное фото: высокая плитка слева, справа — широкая, две малые и высокая */
.mz--portrait {
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, .9fr);
  grid-template-areas: "m w w t" "m s1 s2 t";
}
/* горизонтальное главное фото: большая плитка слева, справа — две малые и широкая */
.mz--landscape {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .75fr) minmax(0, .75fr);
  grid-template-areas: "m m a b" "m m w w";
}

.mz__cell {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #e9e2d6;
}
.mz__cell--m  { grid-area: m; }
.mz__cell--w  { grid-area: w; }
.mz__cell--t  { grid-area: t; }
.mz__cell--s1 { grid-area: s1; }
.mz__cell--s2 { grid-area: s2; }
.mz__cell--a  { grid-area: a; }
.mz__cell--b  { grid-area: b; }

.mz__cell img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.mz__crop {
  display: block;
  height: 100%;
  background-repeat: no-repeat;
}

@media (max-width: 1023px) {
  .mz { margin-top: 32px; gap: 8px; grid-template-rows: repeat(2, 200px); }
}

/* телефон: главное фото и две клетки */
@media (max-width: 599px) {
  .mz { gap: 6px; grid-template-rows: repeat(2, 150px); }
  .mz--portrait { grid-template-columns: 1fr 1fr; grid-template-areas: "m w" "m t"; }
  .mz--landscape { grid-template-columns: 1fr 1fr; grid-template-areas: "m m" "a b"; grid-template-rows: 200px 120px; }
  .mz--portrait .mz__cell--s1,
  .mz--portrait .mz__cell--s2,
  .mz--landscape .mz__cell--w { display: none; }
  .mz__cell { border-radius: 8px; }
}

/* ---------- Карточки проектов: горизонтальное превью, подпись, заголовок, текст ---------- */
.cs-list { margin-top: calc(var(--gutter) * .55); }
.cs-list .container { container-type: inline-size; --p: calc(100cqi / 1200); }

.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(52 * var(--p)) calc(26 * var(--p));
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-card[hidden] { display: none; }

.cs-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}
.cs-card__link:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 7px; }

.cs-card__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: min(calc((16 * var(--p)) * 0.45), 20px);
  background: #e9e2d6;
}
.cs-card__media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

/* золотой круг со стрелкой — появляется при наведении в углу превью */
.cs-card__fab {
  position: absolute;
  right: calc(16 * var(--p));
  bottom: calc(16 * var(--p));
  display: grid;
  place-items: center;
  width: clamp(44px, calc(52 * var(--p)), 64px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--green-900);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.cs-card__fab .icon { font-size: 15px; }

.cs-card__meta {
  margin-top: calc(18 * var(--p));
  font-size: clamp(11.5px, calc(12 * var(--p)), 14px);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.cs-card__title {
  margin-top: 8px;
  font-size: clamp(19px, calc(23 * var(--p)), 29px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -.02em;
  color: var(--green-900);
  text-wrap: balance;
  transition: color .3s;
}

.cs-card__text {
  margin-top: 8px;
  font-size: clamp(14.5px, calc(15 * var(--p)), 18px);
  line-height: 1.55;
  color: var(--text);
}

@media (hover: hover) and (pointer: fine) {
  .cs-card__link:hover .cs-card__media img { transform: scale(1.04); }
  .cs-card__link:hover .cs-card__fab { opacity: 1; transform: none; }
  .cs-card__link:hover .cs-card__title { color: var(--copper); }
}
.cs-card__link:focus-visible .cs-card__fab { opacity: 1; transform: none; }

/* карточка-приглашение: вместо фото — зелёная ткань с надписью */
.cs-card--cta .cs-card__media {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(255, 255, 255, .08), transparent 60%),
    #0d3f39 url("../assets/img/panel-fabric.webp") center / cover no-repeat;
}
.cs-card__cta-text {
  max-width: 11em;
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(26px, calc(36 * var(--p)), 46px);
  font-style: italic;
  line-height: 1.1;
  text-align: center;
  color: var(--gold-light);
}
.cs-card--cta .cs-card__fab { opacity: 1; transform: none; }

/* «Другие проекты» на странице кейса */
.cs-list--more { margin-top: clamp(40px, 4vw, 72px); }
.cs-more__title {
  margin-bottom: calc(28 * var(--p));
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(30px, calc(42 * var(--p)), 56px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
  color: var(--green-900);
}

@media (max-width: 1023px) {
  .cs-list { margin-top: 28px; }
  .cs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
  .cs-card__media { border-radius: 6.5px; }
  .cs-card__meta { margin-top: 14px; }
  .cs-more__title { margin-bottom: 22px; }
}

@media (max-width: 599px) {
  .cs-grid { grid-template-columns: 1fr; gap: 36px; }
  .cs-card__fab { opacity: 1; transform: none; right: 12px; bottom: 12px; width: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-card__media img,
  .cs-card__fab { transition: none; }
}

/* ==========================================================================
   Производство — восемь этапов карточками: фото на фоне, снизу затемнение под текст.
   ========================================================================== */
.pb { padding: calc(var(--gutter) * .9) 0 calc(var(--gutter) * 1.05); }
.pb__inner { container-type: inline-size; --p: calc(100cqi / 1200); }

.pb__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  align-items: end;
  column-gap: 48px;
}
.pb__lead {
  font-size: clamp(15px, calc(16 * var(--p)), 19px);
  line-height: 1.6;
  color: var(--text);
}

.pc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, calc(16 * var(--p)), 20px);
  margin: calc(48 * var(--p)) 0 0;
  padding: 0;
  list-style: none;
}

.pc {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: min(calc((22 * var(--p)) * .45), 14px);
  background: #2a2420;
  color: #fff;
}
.pc__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: scale 1.2s var(--ease);
}
/* затемнение снизу: текст читается на любом фото */
.pc::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 12, 10, 0) 40%, rgba(14, 12, 10, .45) 66%, rgba(14, 12, 10, .82) 100%);
}
.pc:hover .pc__img { scale: 1.05; }

.pc__body { padding: clamp(18px, calc(24 * var(--p)), 28px); }
.pc__num {
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(16px, calc(18 * var(--p)), 21px);
  font-style: italic;
  color: var(--gold-light);
}
.pc__title {
  margin-top: 6px;
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(22px, calc(27 * var(--p)), 32px);
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
}
.pc__text {
  margin-top: 8px;
  font-size: clamp(13.5px, calc(14.5 * var(--p)), 16px);
  line-height: 1.5;
  color: rgba(255, 255, 255, .82);
}

@media (max-width: 1023px) {
  .pb { padding: 56px 0 64px; }
  .pb__head { grid-template-columns: 1fr; row-gap: 16px; }
  .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; }
}
/* телефон: лента карточек с прокруткой вбок, следующая карточка выглядывает */
@media (max-width: 599px) {
  .pb { padding: 44px 0 52px; }
  .pc-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 10px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .pc-grid::-webkit-scrollbar { display: none; }
  .pc { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .pc__img { transition: none; }
  .pc:hover .pc__img { scale: none; }
}

/* ==========================================================================
   FAQ — тёмная панель без фото.
   Справа заголовок и короткая форма «Остались вопросы?» (обработчик — data-callback,
   как у заявки на звонок), слева аккордеон: открыт один вопрос, неактивные
   строки приглушены, плюс превращается в минус, ответ раскрывается через
   grid-template-rows. На узких экранах: заголовок → вопросы → форма.
   ========================================================================== */
.faq {
  --content-w: calc(min(100%, var(--maxw)) - 2 * var(--gutter));
  padding: calc(var(--gutter) * .3) 0 calc(var(--gutter) * .9);
}

.faq__stage {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "list head"
    "list form";
  column-gap: clamp(32px, 5vw, 96px);
  width: calc(var(--content-w) * 1.02759);
  margin: 0 auto;
  padding: clamp(32px, 4vw, 64px) clamp(24px, 4.4vw, 80px);
  overflow: hidden;
  border-radius: min(calc(((min(100vw, var(--maxw)) - 2 * var(--gutter)) * .03862) * 0.45), 20px);
  background: #0b1d1a;
  box-shadow: 0 2px 4px rgba(0, 30, 26, .1), 0 40px 70px -40px rgba(0, 30, 26, .55);
  color: #fff;
}

.faq__head { grid-area: head; }

.faq__eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--gold-light);
}

.faq__title {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
  font-weight: 400;
}
.faq__title-sans {
  font-family: var(--serif);
  font-size-adjust: var(--head-fit);
  font-size: clamp(32px, 3.3vw, 54px);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: #fff;
}
.faq__title-serif {
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(32px, 3.3vw, 54px);
  font-style: italic;
  line-height: 1.05;
  color: var(--gold-light);
}

/* ---------- Форма «Остались вопросы?» ---------- */
.faq-ask {
  position: relative;
  z-index: 4;                       /* над бликом панели */
  grid-area: form;
  align-self: end;
  margin-top: clamp(28px, 3vw, 44px);
  padding: clamp(20px, 2vw, 28px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
}
.faq-ask__title {
  font-family: var(--serif);
  font-size-adjust: var(--head-fit);
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.15;
  color: #fff;
}
.faq-ask__text {
  margin-top: 8px;
  font-size: clamp(14px, 1vw, 15.5px);
  line-height: 1.5;
  color: rgba(255, 255, 255, .72);
}
.faq-ask__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.faq-ask__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
  transition: border-color .25s, box-shadow .25s;
}
.faq-ask__input::placeholder { color: #6b7370; }   /* 4.8:1 на белом */
.faq-ask__input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 167, 124, .35); }
.faq-ask__area { grid-column: 1 / -1; min-height: 72px; resize: vertical; }
.faq-ask.is-invalid #faq-phone { border-color: #e0806f; }

.faq-ask__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--green-900);
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .35s;
}
.faq-ask__btn .icon { font-size: 14px; transition: transform .35s var(--ease); }
.faq-ask__btn:hover { background: var(--gold-light); }
.faq-ask__btn:hover .icon { transform: translate(2px, -2px); }
.faq-ask__btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.faq-ask.is-sending .faq-ask__btn { opacity: .7; cursor: progress; }

.faq-ask__note {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .6);
}
.faq-ask__note a { color: #fff; border-bottom: 1px solid rgba(200, 167, 124, .6); transition: border-color .3s; }
.faq-ask__note a:hover { border-color: #fff; }
.faq-ask__status { margin-top: 10px; color: var(--gold-light); }
.faq-ask.is-invalid .faq-ask__status,
.faq-ask.is-error .faq-ask__status { color: #f0a090; }

/* ---------- Вопросы ---------- */
.faq__list { position: relative; z-index: 4; grid-area: list; align-self: start; }
.faq-item__link { color: #fff; border-bottom: 1px solid var(--gold-soft); transition: border-color .3s; }
.faq-item__link:hover { border-color: #fff; }

.faq-item { border-bottom: 1px solid rgba(255, 255, 255, .18); }
.faq-item:first-child { border-top: 1px solid rgba(255, 255, 255, .18); }
.faq-item__h { margin: 0; font: inherit; }

.faq-item__row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 22px;
  column-gap: 24px;
  align-items: center;
  width: 100%;
  padding: 18px 0;
  border: 0;
  background: none;
  color: #fff;
  text-align: left;
  cursor: pointer;
  opacity: .64;                    /* приглушено, но номер и вопрос читаются (≥4.5:1) */
  transition: opacity .35s cubic-bezier(.22, 1, .36, 1);
}
.faq-item.is-open .faq-item__row { opacity: 1; }
.faq-item:not(.is-open) .faq-item__row:hover { opacity: .86; }
.faq-item__row:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 4px; border-radius: 4px; }

.faq-item__num {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--gold-light);
}
.faq-item__q {
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.015em;
}

/* плюс → минус: вертикальная черта поворачивается и ложится на горизонтальную */
.faq-item__icon { position: relative; justify-self: end; width: 14px; height: 14px; }
.faq-item__icon i {
  position: absolute;
  background: #fff;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.faq-item__icon i:first-child { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.faq-item__icon i:last-child { left: 0; top: 50%; width: 100%; height: 1px; transform: translateY(-50%); }
.faq-item.is-open .faq-item__icon i:first-child { transform: translateX(-50%) rotate(90deg); }
.faq-item.is-open .faq-item__icon i:last-child { transform: translateY(-50%) rotate(180deg); }

/* ответ: высота раскрывается через grid-template-rows 0fr → 1fr */
.faq-item__body {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 46px 0 64px;          /* под номером и иконкой — как у строки вопроса */
  transition: grid-template-rows .5s cubic-bezier(.22, 1, .36, 1);
}
.faq-item.is-open .faq-item__body { grid-template-rows: 1fr; }
.faq-item__content { min-height: 0; overflow: hidden; }
.faq-item:not(.is-open) .faq-item__content { visibility: hidden; transition: visibility 0s .5s; }
.faq-item__content p {
  padding-bottom: 22px;
  font-size: clamp(14.5px, 1.05vw, 16.5px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .72);
}

/* без JS открыты все ответы */
html:not(.js) .faq-item__body { grid-template-rows: 1fr; }
html:not(.js) .faq-item__content { visibility: visible; }

/* ---------- Узко: заголовок → вопросы → форма ---------- */
@media (max-width: 900px) {
  .faq__stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "head" "list" "form";
    width: var(--content-w);
    padding: 28px 22px 24px;
    border-radius: 11px;
  }
  .faq__list { margin-top: 20px; }
  .faq-ask { margin-top: 24px; }
  .faq-item__row { grid-template-columns: 30px minmax(0, 1fr) 18px; column-gap: 14px; padding: 18px 0; }
  .faq-item__q { font-size: 16.5px; }
  .faq-item__body { padding: 0 32px 0 44px; }
  .faq-item__content p { padding-bottom: 20px; }
}
@media (max-width: 480px) {
  .faq-ask__fields { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item__body,
  .faq-item__row,
  .faq-item__icon i { transition-duration: .15s; }
}

/* ==========================================================================
   Страница дизайнера (team/*.html) — собирает tools/team.js
   Знакомство с портретом, цитата, портфолио по вкладкам, заявка дизайнеру.
   ========================================================================== */

/* ---------- Кнопки ---------- */
.dz-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: clamp(52px, 3.9vw, 64px);
  padding-inline: clamp(22px, 2vw, 32px);
  border: 1px solid var(--green-900);
  border-radius: 12px;
  background: var(--green-900);
  color: #fff;
  font-size: clamp(14.5px, 1.05vw, 17px);
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 14px 28px -18px rgba(0, 30, 26, .6);
  transition: background-color .35s, border-color .35s, color .35s;
}
.dz-btn .icon { font-size: 14px; }
.dz-btn:hover { background: var(--copper); border-color: var(--copper); }
.dz-btn:hover .icon { transform: translate(2px, -2px); }
.dz-btn--ghost { background: transparent; color: var(--green-900); box-shadow: none; border-color: rgba(0, 60, 56, .3); }
.dz-btn--ghost:hover { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.dz-btn__play { width: 14px; height: 14px; }

/* ---------- Цитата ---------- */
.dz-quote { padding: calc(var(--gutter) * .45) 0; }
.dz-quote__fig {
  --stitch: repeating-linear-gradient(90deg, var(--gold-soft) 0 8px, transparent 8px 14px);
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(36px, 4vw, 64px) 0;
  text-align: center;
  background: var(--stitch) 50% 0 / 140px 1.5px no-repeat, var(--stitch) 50% 100% / 140px 1.5px no-repeat;
}
.dz-quote__text { margin: 0; }
.dz-quote__text p {
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(26px, 3vw, 46px);
  font-style: italic;
  line-height: 1.25;
  color: var(--green-900);
  text-wrap: balance;
}
.dz-quote__text p::before { content: "«"; color: var(--gold); }
.dz-quote__text p::after { content: "»"; color: var(--gold); }
.dz-quote__who {
  margin-top: 20px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-text);
}

/* ---------- Портфолио ---------- */
.dz-pf { padding: calc(var(--gutter) * .6) 0 calc(var(--gutter) * .8); }
.dz-pf__inner { container-type: inline-size; --p: calc(100cqi / 1200); }
.dz-pf__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
}
.dz-pf__total { font-size: 15px; color: var(--text); text-align: right; }
.dz-pf__num {
  display: block;
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(56px, calc(84 * var(--p)), 112px);
  font-style: italic;
  line-height: .85;
  color: var(--gold-text);
}
.dz-pf__tabs { margin-top: calc(32 * var(--p)); }
.dz-pf__n {
  margin-left: 8px;
  font-size: .85em;
  font-variant-numeric: tabular-nums;
  opacity: .6;
}

/* плитка: первое фото крупное, остальные — по одному; подпись по затемнению снизу */
.dz-pf__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: clamp(200px, calc(270 * var(--p)), 380px);
  gap: 10px;
  margin-top: calc(28 * var(--p));
}
.dz-pf__grid[hidden] { display: none; }
.dz-tile:first-child { grid-row: span 2; }
.dz-pf__grid > :nth-child(4):last-child { grid-column: span 2; }   /* при четырёх фото последнее закрывает ряд */

.dz-tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #3f4a44;
}
.dz-tile__btn {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.dz-tile__btn:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: -3px; }
.dz-tile img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.dz-tile::after {
  content: "";
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(180deg, rgba(0, 20, 18, 0), rgba(0, 20, 18, .62));
  pointer-events: none;
}
.dz-tile__cap {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 16px;
  font-size: 14.5px;
  line-height: 1.4;
  color: #fff;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .dz-tile:hover img { transform: scale(1.04); }
}

/* ---------- Заявка ---------- */
.dz-form {
  --content-w: calc(min(100%, var(--maxw)) - 2 * var(--gutter));
  padding: 0 0 calc(var(--gutter) * .9);
}
.dz-form__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: calc(var(--content-w) * 1.02759);
  margin: 0 auto;
  overflow: hidden;
  border-radius: min(calc(((min(100vw, var(--maxw)) - 2 * var(--gutter)) * .03862) * 0.45), 20px);
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(255, 255, 255, .7), transparent 60%),
    #eee7dc;
  box-shadow: 0 1px 3px rgba(45, 35, 25, .06), 0 30px 60px -44px rgba(45, 35, 25, .5);
}
.dz-form__media { margin: 0; min-height: 320px; }
.dz-form__media img { width: 100%; height: 100%; max-width: none; object-fit: cover; }

.dz-form__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(32px, 4vw, 64px) clamp(24px, 4vw, 64px);
}
.dz-form__title {
  font-size: clamp(26px, 2.4vw, 38px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.035em;
  color: var(--green-900);
}
.dz-form__lead { margin-bottom: 10px; font-size: 15.5px; line-height: 1.6; color: var(--text); }

.dz-field { display: flex; flex-direction: column; gap: 6px; }
.dz-field__label { font-size: 13px; font-weight: 500; color: var(--ink); }
.dz-field__input {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(13, 56, 51, .16);
  border-radius: 6.5px;
  background: #fff;
  font: inherit;
  font-size: 16px;                 /* ≥16px — iOS не увеличивает страницу */
  color: var(--ink);
  outline: none;
  transition: border-color .3s, box-shadow .3s;
}
.dz-field__input--area { height: auto; min-height: 96px; padding: 14px 18px; resize: vertical; }
.dz-field__input::placeholder { color: #6b7370; }
.dz-field__input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200, 167, 124, .25); }
.dz-form__form.is-invalid input[name="phone"] { border-color: #a5463a; }

.dz-form__btn { align-self: flex-start; margin-top: 8px; }
.dz-form__form.is-sending .dz-form__btn { opacity: .7; cursor: progress; }
.dz-form__note { font-size: 12.5px; line-height: 1.5; color: var(--text); }
.dz-form__note a { color: var(--ink); border-bottom: 1px solid rgba(13, 56, 51, .3); }
.dz-form__status { padding: 0; font-size: 14px; }

/* ---------- Просмотр фото крупно ---------- */
.lb {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(6, 20, 18, .94);
  color: #fff;
}
.lb::backdrop { background: rgba(6, 20, 18, .6); }
.lb[open] { display: grid; place-items: center; }
.lb__fig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(92vw, 1400px);
  margin: 0;
}
.lb__img {
  max-width: 100%;
  max-height: calc(100dvh - 140px);
  object-fit: contain;
  border-radius: 6px;
}
.lb__cap { font-size: 15px; text-align: center; color: rgba(255, 255, 255, .85); }
.lb__btn,
.lb__close {
  position: fixed;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
  transition: background-color .3s;
}
.lb__btn:hover,
.lb__close:hover { background: rgba(255, 255, 255, .18); }
.lb__btn svg,
.lb__close svg { width: 18px; height: 18px; }
.lb__btn--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb__btn--next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb__close { top: 20px; right: 24px; }

/* ---------- Планшет ---------- */
@media (max-width: 1023px) {
  .dz-pf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
  .dz-form__panel { grid-template-columns: 1fr; width: var(--content-w); border-radius: 12.5px; }
  .dz-form__media { min-height: 0; aspect-ratio: 16 / 9; }
}

/* ---------- Телефон ---------- */
@media (max-width: 599px) {
  .dz-pf__total { text-align: left; }
  .dz-pf__grid { grid-auto-rows: 160px; gap: 8px; }
  .dz-tile:first-child { grid-column: span 2; grid-row: span 2; }
  .dz-tile__cap { left: 12px; right: 12px; bottom: 10px; font-size: 13px; }
  .dz-form__panel { border-radius: 11px; }
  .dz-form__btn { width: 100%; justify-content: space-between; }
  .lb__btn--prev,
  .lb__btn--next { top: auto; bottom: 20px; transform: none; }
  .lb__btn--prev { left: calc(50% - 64px); }
  .lb__btn--next { right: calc(50% - 64px); }
  .lb__img { max-height: calc(100dvh - 200px); }
}

@media (prefers-reduced-motion: reduce) {
  .dz-tile img { transition: none; }
}
.dz-form__form.is-invalid .cb__status,
.dz-form__form.is-error .cb__status { color: #a5463a; }

/* ---------- Страница дизайнера: первый экран ----------
   Льняная панель; портрет в белой раме выходит за её верхний край (как фото
   в первом экране главной), поверх портрета — стеклянная карточка записи. */
.dzh { padding: calc(var(--gutter) * .25) 0 calc(var(--gutter) * .55); overflow-x: clip; }
.dzh__inner { container-type: inline-size; --p: calc(100cqi / 1200); }

.dzh__panel {
  --pro: clamp(64px, calc(92 * var(--p)), 120px);   /* на сколько фигура выходит вверх */
  --r: calc(36 * var(--p));
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  min-height: clamp(500px, calc(560 * var(--p)), 680px);
  margin-top: var(--pro);           /* место под выступающую фигуру */
  border-radius: min(calc((var(--r)) * 0.45), 20px);
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(255, 255, 255, .75), transparent 60%),
    radial-gradient(70% 110% at 100% 100%, rgba(176, 138, 90, .14), transparent 70%),
    #eee7dc;
  box-shadow: 0 1px 3px rgba(45, 35, 25, .06), 0 30px 60px -44px rgba(45, 35, 25, .5);
}
.dzh__crumbs { margin-bottom: 0; }

.dzh__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(52 * var(--p)) calc(32 * var(--p)) calc(48 * var(--p)) calc(72 * var(--p));
}
.dzh__kicker {
  font-size: clamp(11.5px, calc(12.5 * var(--p)), 14.5px);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.dzh__title {
  display: flex;
  flex-direction: column;
  margin-top: calc(18 * var(--p));
  font-weight: 400;
}
.dzh__title-sans {
  font-family: var(--serif);
  font-size-adjust: var(--head-fit);
  font-size: clamp(38px, calc(60 * var(--p)), 80px);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--green-900);
}
.dzh__title-serif {
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(36px, calc(58 * var(--p)), 78px);
  font-style: italic;
  line-height: 1.04;
  letter-spacing: -.01em;
  color: var(--gold-text);
}
.dzh__lead {
  max-width: 30em;
  margin-top: calc(20 * var(--p));
  font-size: clamp(15.5px, calc(17 * var(--p)), 20px);
  line-height: 1.6;
  color: var(--text);
}

.dzh__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: calc(32 * var(--p));
}
.dzh__video {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
  padding-block: 6px;
  font-size: clamp(14.5px, calc(15 * var(--p)), 17px);
  font-weight: 500;
  color: var(--ink);
}
.dzh__play {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(0, 60, 56, .3);
  border-radius: 50%;
  color: var(--green-900);
  transition: background-color .3s, color .3s, border-color .3s;
}
.dzh__play svg { width: 13px; height: 13px; }
.dzh__video:hover .dzh__play { background: var(--green-900); border-color: var(--green-900); color: #fff; }

.dzh__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px calc(52 * var(--p));
  margin: calc(36 * var(--p)) 0 0;
}
.dzh__stats div { display: flex; flex-direction: column; }
.dzh__stats dd {
  order: -1;
  margin: 0;
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(36px, calc(46 * var(--p)), 60px);
  font-style: italic;
  line-height: 1;
  color: var(--green-900);
}
.dzh__stats dt { margin-top: 6px; font-size: clamp(13.5px, calc(14.5 * var(--p)), 17px); color: var(--text); }

/* вырезанная фигура: стоит на нижнем крае панели (ноги срезаны им), голова — выше панели.
   Обрезка только снизу и по скруглению угла; вверх и в стороны фигура свободна. */
.dzh__media {
  position: relative;
  -webkit-clip-path: inset(-400px -400px 0 -400px round 0 0 var(--r) 0);
          clip-path: inset(-400px -400px 0 -400px round 0 0 var(--r) 0);
}
.dzh__figure {
  position: absolute;
  top: calc(-1 * var(--pro));
  right: 9%;
  height: calc((100% + var(--pro)) / .64);   /* в кадре — от макушки примерно до середины бедра */
  margin: 0;
  pointer-events: none;
}
.dzh__figure img {
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
  filter: drop-shadow(0 28px 36px rgba(0, 30, 26, .22));
}

/* стеклянная карточка записи поверх нижней части фигуры */
.dzh__card {
  position: absolute;
  z-index: 2;
  left: calc(-96 * var(--p));
  bottom: calc(72 * var(--p));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "k fab" "t fab" "x fab";
  column-gap: 20px;
  width: min(360px, calc(100% + 24 * var(--p) - 24px));
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(5, 34, 30, .52) 55%);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
          backdrop-filter: blur(18px) saturate(1.35);
  color: #fff;
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .55);
}
.dzh__card-kicker { grid-area: k; font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.dzh__card-title { grid-area: t; margin-top: 4px; font-size: 19px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.dzh__card-text { grid-area: x; margin-top: 8px; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .85); }
.dzh__card-fab {
  grid-area: fab;
  align-self: center;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 6px;
  background: #fff;
  color: var(--green-900);
  transition: background-color .3s, color .3s;
}
.dzh__card-fab .icon { font-size: 15px; }
.dzh__card:hover .dzh__card-fab { background: var(--gold-soft); }
.dzh__card:hover .dzh__card-fab .icon { transform: translate(2px, -2px); }
.dzh__card:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* бегущая строка изделий */
.dzh__marquee {
  display: flex;
  margin-top: clamp(28px, 4vw, 64px);
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.dzh__track {
  flex: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: dzh-run 38s linear infinite;
}
.dzh__track li {
  display: flex;
  align-items: center;
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(24px, 2.4vw, 36px);
  font-style: italic;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--green-900);
}
.dzh__track li::after {
  content: "";
  width: 7px;
  height: 7px;
  margin: 0 clamp(24px, 3vw, 48px);
  background: var(--gold-soft);
  transform: rotate(45deg);
}
.dzh__marquee:hover .dzh__track { animation-play-state: paused; }
@keyframes dzh-run { to { transform: translateX(-100%); } }

@media (max-width: 1023px) {
  .dzh { padding: 16px 0 36px; }
  .dzh__panel { --pro: 36px; --r: 28px; }
  .dzh__media { -webkit-clip-path: inset(-400px -400px 0 -400px round 0 0 28px 28px); clip-path: inset(-400px -400px 0 -400px round 0 0 28px 28px); }
  .dzh__figure { right: auto; left: 50%; transform: translateX(-50%); }
  .dzh__panel { grid-template-columns: 1fr; min-height: 0; margin-top: 18px; border-radius: 12.5px; }
  .dzh__copy { padding: 32px 28px 8px; }
  .dzh__media { height: 540px; margin-top: 28px; }
  .dzh__card { left: 16px; right: 16px; bottom: 18px; width: auto; }
}

@media (max-width: 599px) {
  .dzh__copy { padding: 26px 20px 4px; }
  .dzh__media { height: 480px; }
  .dzh__actions .dz-btn { width: 100%; justify-content: space-between; }
  .dzh__video { margin-left: 0; }
  .dzh__stats { gap: 16px 28px; }
  .dzh__card { left: 10px; right: 10px; bottom: 12px; padding: 16px 18px; column-gap: 14px; }
  .dzh__card-fab { width: 46px; height: 46px; }
}

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

/* страница HoReCa: форма заявки сразу после тёмного блока */
.hc + .cb { margin-top: calc(var(--gutter) * .9); }

/* ==========================================================================
   География проектов — зелёная тканевая панель с точечной картой мира.
   При появлении (.is-visible) дуги по очереди прорисовываются от центра,
   затем зажигаются точки городов; дальше — мягкая пульсация колец и редкий
   золотой огонёк, бегущий по дугам. Без движения — всё сразу на месте.
   ========================================================================== */
.geo {
  --content-w: calc(min(100%, var(--maxw)) - 2 * var(--gutter));
  padding: calc(var(--gutter) * .35) 0 calc(var(--gutter) * .9);
}

.geo__panel {
  container-type: inline-size;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 680fr) minmax(0, 580fr);
  width: calc(var(--content-w) * 1.02759);
  min-height: clamp(560px, 46vw, 740px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: min(calc(((min(100vw, var(--maxw)) - 2 * var(--gutter)) * .03862) * 0.45), 20px);
  color: #fff;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(255, 255, 255, .08), transparent 60%),
    radial-gradient(80% 80% at 100% 100%, rgba(0, 0, 0, .22), transparent 70%),
    #0d3f39 url("../assets/img/panel-fabric.webp") center / cover no-repeat;
  box-shadow: 0 2px 4px rgba(0, 30, 26, .08), 0 40px 70px -40px rgba(0, 30, 26, .55);
}

/* ---------- Текст ---------- */
.geo__copy {
  --p: calc(100cqi / 1260);
  position: relative;
  z-index: 1;
  padding: calc(60 * var(--p)) 0 calc(64 * var(--p)) calc(64 * var(--p));
}

.geo__kicker {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: clamp(11.5px, calc(13 * var(--p)), 15px);
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.geo__kicker::before { content: ""; width: 48px; height: 1px; background: var(--gold-soft); }

.geo__title {
  margin-top: calc(40 * var(--p));
  font-size: clamp(30px, calc(42 * var(--p)), 58px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -.03em;
  color: #fff;
}
/* две строки, как на макете: первая может зайти в зону карты */
.geo__line { display: block; white-space: nowrap; }
.geo__title em {
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: 1.35em;
  font-style: italic;
  line-height: .9;
  letter-spacing: -.01em;
  color: var(--gold-light);
}

.geo__lead {
  max-width: 36em;
  margin-top: calc(28 * var(--p));
  font-size: clamp(14.5px, calc(16 * var(--p)), 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .86);
}

.geo__cols {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  margin-top: calc(48 * var(--p));
}
.geo__col { padding-right: calc(36 * var(--p)); }
.geo__col + .geo__col {
  padding-left: calc(32 * var(--p));
  border-left: 1px solid rgba(200, 167, 124, .75);
}
.geo__region {
  font-size: clamp(11.5px, calc(13 * var(--p)), 15px);
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.geo__col ul { margin: 14px 0 0; padding: 0; list-style: none; }
.geo__col li {
  font-size: clamp(14.5px, calc(16 * var(--p)), 19px);
  line-height: 1.8;
  white-space: nowrap;
  color: rgba(255, 255, 255, .92);
}

/* ---------- Карта ---------- */
.geo__map { position: relative; }
.geo-map {
  position: absolute;
  top: 9%;
  right: -1%;
  width: 128%;               /* карта заходит под конец заголовка, как на макете */
  height: auto;
  overflow: visible;
}

.geo-map__dots {
  fill: none;
  stroke: #e2cb9f;
  stroke-width: 2.6;
  stroke-linecap: round;
  opacity: .92;
}

.geo-map__arc {
  fill: none;
  stroke: var(--gold-soft);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-dasharray: 1;
}
.geo-map__glint {
  fill: none;
  stroke: #fff4dc;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: .06 .94;
  stroke-dashoffset: .06;
  opacity: 0;
  filter: drop-shadow(0 0 3px rgba(255, 230, 180, .9));
}

/* пины: медная капля остриём в точку, белый кружок с фирменной «А» (символ #i-azhur-a) */
/* --pin — масштаб пина от острия: на узких экранах карта мельче, пины крупнее */
.geo-map { --pin: 1.5; }
.geo-map__drop { transform: scale(var(--pin)); }
.geo-map__shadow { fill: rgba(0, 12, 10, .45); }
.geo-map__body {
  fill: url(#geo-pin-fill);
  stroke: rgba(255, 238, 210, .55);
  stroke-width: .6;
  filter: drop-shadow(0 2px 2.5px rgba(0, 14, 12, .45));
}
.geo-map__disc { fill: #fbf6ec; }
.geo-map__a { color: var(--green-900); }
.geo-map__pulse {
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 1;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.geo-map__pin,
.geo-map__hub { transition: opacity .5s var(--ease); }

/* ---------- Анимация: до появления дуги не нарисованы, точки погашены ---------- */
html.js .geo:not(.is-visible) .geo-map__arc { stroke-dashoffset: 1; }
html.js .geo:not(.is-visible) .geo-map__pin,
html.js .geo:not(.is-visible) .geo-map__hub { opacity: 0; }

html.js .geo .geo-map__arc { transition: stroke-dashoffset 1.6s cubic-bezier(.65, 0, .25, 1) calc(.4s + var(--i) * .18s); }
html.js .geo .geo-map__pin { transition: opacity .5s var(--ease) calc(1.6s + var(--i) * .18s); }
html.js .geo .geo-map__hub { transition: opacity .6s var(--ease) .1s; }
/* пин «падает» в точку вместе с появлением */
html.js .geo .geo-map__drop { transition: transform .7s cubic-bezier(.3, 1.4, .5, 1) calc(1.6s + var(--i, 0) * .18s); }
html.js .geo .geo-map__hub .geo-map__drop { transition-delay: .1s; }
html.js .geo:not(.is-visible) .geo-map__drop { transform: translateY(-8px) scale(var(--pin)); }

/* после прорисовки: кольца дышат, по дугам изредка бежит огонёк */
.geo.is-visible .geo-map__pulse { animation: geo-pulse 3.2s ease-out infinite; animation-delay: calc(3s + var(--i, 0) * .4s); }
.geo.is-visible .geo-map__hub .geo-map__pulse { animation-delay: 2.6s; }
.geo.is-visible .geo-map__glint { animation: geo-glint 7s cubic-bezier(.45, 0, .25, 1) infinite; animation-delay: calc(3.4s + var(--i) * .7s); }

@keyframes geo-pulse {
  0% { opacity: .7; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(2.4); }
}
@keyframes geo-glint {
  0% { stroke-dashoffset: .06; opacity: 0; }
  4% { opacity: 1; }
  26% { opacity: 1; }
  30%, 100% { stroke-dashoffset: -.94; opacity: 0; }   /* штрих доходит до конца дуги и гаснет */
}

/* кнопка в правом нижнем углу */
.geo__btn {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 3.6vw, 56px);
  bottom: clamp(24px, 3.4vw, 52px);
  display: inline-flex;
  align-items: center;
  gap: 18px;
  height: clamp(52px, 4.2vw, 64px);
  padding-inline: clamp(24px, 2.2vw, 34px);
  border-radius: 12px;
  background: #fff;
  color: var(--green-900);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 600;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .5);
  transition: background-color .35s;
}
.geo__btn .icon { font-size: 14px; }
.geo__btn:hover { background: var(--gold-light); }
.geo__btn:hover .icon { transform: translate(2px, -2px); }

/* ---------- Планшет и телефон: карта под текстом ---------- */
@media (max-width: 1023px) {
  .geo { padding: 16px 0 48px; }
  .geo__panel { grid-template-columns: 1fr; width: var(--content-w); min-height: 0; border-radius: 12.5px; }
  .geo__copy { --p: calc(100cqi / 760); padding: 36px 28px 8px; }
  .geo__map { aspect-ratio: 640 / 380; margin: 12px 8px 0; }
  .geo-map { top: 0; right: 0; width: 100%; --pin: 1.5; }
  .geo__btn { position: static; justify-self: start; margin: 12px 28px 32px; }
}

@media (max-width: 599px) {
  .geo-map { --pin: 2.1; }
  .geo__copy { padding: 28px 20px 4px; }
  .geo__line { white-space: normal; }
  .geo__title { font-size: 28px; }
  .geo__cols { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .geo__col { padding-right: 16px; }
  .geo__col + .geo__col { padding-left: 16px; }
  .geo__col:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .geo__col:nth-child(3) ul { columns: 2; column-gap: 32px; }
  .geo__region { letter-spacing: .22em; }
  .geo__btn { margin: 8px 20px 24px; width: calc(100% - 40px); justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .geo .geo-map__arc,
  html.js .geo .geo-map__pin,
  html.js .geo .geo-map__hub,
  html.js .geo .geo-map__drop { transition: none; }
  html.js .geo:not(.is-visible) .geo-map__arc { stroke-dashoffset: 0; }
  html.js .geo:not(.is-visible) .geo-map__pin,
  html.js .geo:not(.is-visible) .geo-map__hub { opacity: 1; }
  html.js .geo:not(.is-visible) .geo-map__drop { transform: scale(var(--pin)); }
  .geo.is-visible .geo-map__pulse,
  .geo.is-visible .geo-map__glint { animation: none; }
}

/* ==========================================================================
   Тонкий градиентный кант и внутреннее свечение на тёмных плашках
   (аналог border border-transparent bg-origin-border + shadow-[inset_0_1px_1px_rgba(255,255,255,0.25)]).
   Кант — маска на ::after: золото в углах, почти прозрачная середина;
   свечение — ::before, чтобы не трогать собственные тени плашек.
   ========================================================================== */
.contact,
.faq__stage { position: relative; }

.hero__panel::before,
.geo__panel::before,
.contact::before,
.faq__stage::before,
.dzh__card::before,
.hero__panel::after,
.geo__panel::after,
.contact::after,
.faq__stage::after,
.dzh__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
}
.hero__panel::before,
.geo__panel::before,
.contact::before,
.faq__stage::before,
.dzh__card::before {
  /* «полированное стекло»: блик по диагонали от верхнего угла, свечение по верхней кромке, тень по нижней */
  background:
    linear-gradient(125deg, rgba(255, 255, 255, .11) 0%, rgba(255, 255, 255, .035) 24%, rgba(255, 255, 255, 0) 48%),
    radial-gradient(90% 40% at 30% 0%, rgba(255, 255, 255, .07), transparent 70%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .25),
    inset 0 -1px 2px rgba(0, 0, 0, .28);
}

.hero__panel::after,
.geo__panel::after,
.contact::after,
.faq__stage::after,
.dzh__card::after {
  padding: 1px;
  background: linear-gradient(140deg,
    rgba(236, 216, 178, .8) 0%,
    rgba(255, 255, 255, .14) 26%,
    rgba(255, 255, 255, .04) 55%,
    rgba(200, 167, 124, .55) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* у стеклянной карточки свой однотонный кант больше не нужен */
.dzh__card { border-color: transparent; }
/* у карточки «Принимаю новые проекты» — без обводки: ни канта, ни светлой кромки */
.dzh__card::after { content: none; }
.dzh__card::before { box-shadow: none; }
/* фото первого экрана выходит за верх панели — оно должно лежать поверх канта */
.hero__media { z-index: 4; }

/* ---------- Карта сайта (sitemap.html, tools/cases.js) — схема-дерево для презентации ----------
   Корень сверху, от него «нитью» четыре ветки; в ветке — страницы карточками с превью
   и разделы строками с решёткой. На узком экране ветки идут одна под другой. */
.tr-body { background: var(--paper); }
.tr {
  --thread: #c8a77c;
  width: min(1480px, 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(32px, 4vw, 64px) 0 clamp(48px, 5vw, 88px);
}

.tr-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "kicker kicker" "title stats" "legend stats";
  align-items: end;
  column-gap: 48px;
}
.tr-kicker {
  grid-area: kicker;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.tr-title {
  grid-area: title;
  margin-top: 14px;
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(36px, 4.2vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--green-900);
}
.tr-title em { display: block; font-style: italic; }
.tr-stats { grid-area: stats; display: flex; gap: clamp(20px, 3vw, 48px); margin: 0; }
.tr-stats div { display: flex; flex-direction: column-reverse; }
.tr-stats dt { font-size: 13px; color: var(--text); }
.tr-stats dd {
  margin: 0;
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(36px, 3.4vw, 54px);
  font-style: italic;
  line-height: 1;
  color: var(--green-900);
}
.tr-legend { grid-area: legend; display: flex; gap: 22px; margin-top: 18px; font-size: 13px; color: var(--text); }
.tr-legend span { display: inline-flex; align-items: center; gap: 8px; }
.tr-legend__page::before { content: ""; width: 22px; height: 14px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(13, 56, 51, .14); }
.tr-legend__anchor::before { content: "#"; color: var(--gold); font-weight: 600; }

/* ---------- дерево ---------- */
.tr-tree { margin-top: clamp(36px, 4vw, 60px); }
.tr-root { display: flex; justify-content: center; }
.tr-root .tr-page { width: min(360px, 100%); padding: 10px; border-color: var(--green-900); box-shadow: 0 18px 36px -24px rgba(0, 40, 36, .45); }
.tr-root .tr-page__thumb { width: 96px; }
.tr-root .tr-page b { font-size: 20px; }

/* ветки: вертикальная нить от корня, горизонтальная перекладина, отводы к каждой ветке */
.tr-branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
  margin: 0;
  padding: 56px 0 0;
  list-style: none;
}
.tr-branches::before {                      /* от корня вниз */
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  height: 28px;
  border-left: 2px solid var(--thread);
}
.tr-branch { position: relative; min-width: 0; }
.tr-branch::before {                        /* перекладина: от середины ветки к соседям */
  content: "";
  position: absolute;
  top: -28px;
  left: calc(-1 * clamp(8px, 1vw, 16px));
  right: calc(-1 * clamp(8px, 1vw, 16px));
  border-top: 2px solid var(--thread);
}
.tr-branch:first-child::before { left: 50%; }
.tr-branch:last-child::before { right: 50%; }
.tr-branch::after {                         /* отвод вниз к узлу ветки */
  content: "";
  position: absolute;
  top: -28px;
  left: 50%;
  height: 28px;
  border-left: 2px solid var(--thread);
}

.tr-node {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name count" "hint count";
  align-items: center;
  column-gap: 12px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--green-900);
  color: #fff;
  box-shadow: 0 14px 28px -20px rgba(0, 40, 36, .6);
}
.tr-node__name {
  grid-area: name;
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: clamp(20px, 1.6vw, 25px);
  font-style: italic;
  line-height: 1.15;
  color: #fff;
}
a.tr-node__name { text-decoration: underline; text-decoration-color: rgba(236, 216, 178, .5); text-underline-offset: 4px; }
a.tr-node__name:hover { text-decoration-color: var(--gold-light); }
.tr-node__hint { grid-area: hint; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, .7); }
.tr-count {
  grid-area: count;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 17px;
  background: rgba(236, 216, 178, .16);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-light);
}
.tr-branch--home .tr-node { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgba(13, 56, 51, .12); }
.tr-branch--home .tr-node__name { color: var(--green-900); }
.tr-branch--home .tr-node__hint { color: var(--text); }
.tr-branch--home .tr-count { background: #f1ead9; color: var(--gold-text); }

/* листья: нить слева, к каждому листу — короткий отвод */
.tr-leaves {
  position: relative;
  margin: 0 0 0 22px;
  padding: 14px 0 0;
  list-style: none;
}
.tr-leaves > li { position: relative; padding: 5px 0 5px 22px; }
.tr-leaves > li::before {                   /* вертикальная нить */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-left: 2px solid var(--thread);
}
.tr-leaves > li:last-child::before { bottom: auto; height: 50%; }
.tr-leaves > li::after {                    /* отвод к листу */
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  border-top: 2px solid var(--thread);
}
.tr-leaves > li:first-child { padding-top: 0; }
.tr-leaves > li:first-child::after { top: calc(50% - 2.5px); }
.tr-sub {
  padding-top: 16px !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.tr-sub::after { display: none; }

/* страница — карточка с превью */
.tr-page {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px;
  border: 1px solid rgba(13, 56, 51, .12);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.tr-page:hover { border-color: var(--gold); transform: translateY(-1px); box-shadow: 0 10px 22px -16px rgba(0, 40, 36, .5); }
.tr-page__thumb {
  flex: none;
  width: 64px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: #efe9df;
}
.tr-page__thumb img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.tr-page__txt { display: flex; flex-direction: column; min-width: 0; }
.tr-page b { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--green-900); }
.tr-page__txt span { margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--text); }

/* раздел страницы — строка с решёткой */
.tr-anchor {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 3px 0;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.tr-anchor span { font-weight: 600; color: var(--gold); }
.tr-anchor:hover { border-color: var(--gold); }

/* ---------- узкие экраны: ветки одна под другой ---------- */
@media (max-width: 1099px) {
  .tr-head { grid-template-columns: 1fr; grid-template-areas: "kicker" "title" "stats" "legend"; }
  .tr-stats { margin-top: 24px; }
  .tr-branches { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; padding-top: 32px; }
  .tr-branches::before,
  .tr-branch::before,
  .tr-branch::after { display: none; }
}
@media (max-width: 599px) {
  .tr-branches { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Команда — сфера из фото дизайнеров и мастеров цеха (js/main.js → [data-crew]).
   Слева текст и роли, справа шар: фото вращаются, между ними золотые нити по
   поверхности шара, каркас и пунктирное кольцо-«строчка» рисует canvas.
   Без JS фото просто идут сеткой кружков.
   ========================================================================== */
.crew { padding: calc(var(--gutter) * .9) 0; overflow-x: clip; }

.crew__inner {
  container-type: inline-size;
  --p: calc(100cqi / 1200);
  display: grid;
  grid-template-columns: minmax(0, 520fr) minmax(0, 680fr);
  column-gap: calc(48 * var(--p));
  align-items: center;
}

.crew__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: calc(22 * var(--p));
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--gold-text);
}
.crew__eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--gold-soft); }

.crew__lead {
  max-width: 34em;
  margin-top: calc(28 * var(--p));
  font-size: clamp(14.5px, calc(15.5 * var(--p)), 18px);
  line-height: 1.65;
  color: var(--text);
}

.crew__roles-title {
  margin: calc(36 * var(--p)) 0 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.crew__roles {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.crew__roles li {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 8.5em) minmax(0, 1fr);
  align-items: baseline;
  column-gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.crew__num {
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: 1.25em;
  font-style: italic;
  color: var(--gold-text);
}
.crew__role { font-weight: 600; color: var(--green-900); }
.crew__role-text { font-size: .94em; line-height: 1.5; color: var(--text); }

.crew__btn {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  height: clamp(50px, calc(56 * var(--p)), 64px);
  margin-top: calc(36 * var(--p));
  padding-inline: clamp(24px, calc(28 * var(--p)), 34px);
  border-radius: 12px;
  background: var(--green-900);
  color: #fff;
  font-size: clamp(14.5px, calc(15 * var(--p)), 17px);
  font-weight: 500;
  transition: background-color .35s;
}
.crew__btn .icon { font-size: 14px; }
.crew__btn:hover { background: var(--green-800); }
.crew__btn:hover .icon { transform: translate(2px, -2px); }

/* ---------- Сцена ---------- */
.crew__stage {
  position: relative;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 1;
  justify-self: center;
  isolation: isolate;                /* z-index фото (до 200) не выходит за шар — шапка всегда сверху */
  touch-action: pan-y;               /* вертикальный свайп листает страницу, горизонтальный крутит шар */
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.crew__stage.is-dragging { cursor: grabbing; }
/* тёплое свечение «под» шаром */
.crew__stage::before {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(200, 167, 124, .2), rgba(200, 167, 124, .07) 58%, transparent 72%);
}

.crew__threads { position: absolute; inset: 0; width: 100%; height: 100%; }

.crew__nodes { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }

.crew-node {
  --s: 120px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--s);
  height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  padding: 0;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #e7ddcd;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--gold-soft), 0 16px 30px -16px rgba(0, 40, 36, .5);
  cursor: pointer;
  will-change: transform, opacity;
  transition: box-shadow .3s var(--ease);
}
.crew-node--master { box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(200, 167, 124, .55), 0 14px 26px -16px rgba(0, 40, 36, .45); }
.crew-node img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.crew-node:hover,
.crew-node:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold), 0 20px 34px -16px rgba(0, 40, 36, .55); }
.crew-node:focus-visible { outline: 2px solid var(--green-900); outline-offset: 6px; }

.crew__hint {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  font-size: 12.5px;
  letter-spacing: .06em;
  white-space: nowrap;
  color: var(--text);                /* --muted на льне даёт ~3.9:1 — мало для 12.5px */
  pointer-events: none;
}
.crew__hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: crew-dot 2.4s ease-in-out infinite;
}
@keyframes crew-dot { 50% { transform: translateX(10px); } }

/* без JS: просто сетка кружков */
html:not(.js) .crew__stage { aspect-ratio: auto; cursor: auto; }
html:not(.js) .crew__threads,
html:not(.js) .crew__hint { display: none; }
html:not(.js) .crew__nodes { position: static; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
html:not(.js) .crew-node { position: relative; left: auto; top: auto; margin: 0; --s: 96px; }

/* ---------- Карточка человека ---------- */
.crew-card {
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 12.5px;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0, 30, 26, .55);
}
.crew-card[open] { display: grid; grid-template-columns: 220px minmax(0, 1fr); animation: crew-in .35s var(--ease); }
.crew-card::backdrop { background: rgba(6, 20, 18, .55); backdrop-filter: blur(4px); }
@keyframes crew-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }

.crew-card__photo { width: 100%; height: 100%; min-height: 240px; object-fit: cover; background: #e7ddcd; }
.crew-card__body { display: flex; flex-direction: column; padding: 34px 34px 30px; }
.crew-card__role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.crew-card__name {
  margin-top: 12px;
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-size: 34px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.05;
  color: var(--green-900);
}
.crew-card__text { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--text); }
.crew-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: auto; padding-top: 24px; }
.crew-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 48px;
  padding-inline: 22px;
  border-radius: 12px;
  background: var(--green-900);
  color: #fff;
  font-size: 14.5px;
  transition: background-color .3s;
}
.crew-card__cta .icon { font-size: 12px; }
.crew-card__cta:hover { background: var(--green-800); }
.crew-card__more { font-size: 14.5px; color: var(--green-900); border-bottom: 1px solid var(--gold-soft); }
.crew-card__more:hover { border-color: var(--green-900); }
.crew-card__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--green-900);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.crew-card__close:hover { background: #fff; }

/* ---------- Планшет и телефон: шар под текстом ---------- */
@media (max-width: 1023px) {
  .crew { padding: 56px 0 64px; }
  .crew__inner { grid-template-columns: 1fr; }
  .crew__eyebrow { margin-bottom: 18px; }
  .crew__lead { margin-top: 20px; font-size: 15.5px; }
  .crew__roles-title { margin-top: 26px; }
  .crew__btn { margin-top: 26px; }
  .crew__stage { max-width: 600px; margin-top: 36px; }
}
@media (max-width: 599px) {
  .crew__roles li { grid-template-columns: 2em minmax(0, 1fr); row-gap: 2px; }
  .crew__role-text { grid-column: 2; }
  .crew__btn { width: 100%; justify-content: space-between; }
  .crew__stage { width: calc(100% + 24px); max-width: none; margin-inline: -12px; }
  .crew-card[open] { grid-template-columns: 1fr; }
  .crew-card__photo { height: 220px; min-height: 0; }
  .crew-card__body { padding: 24px 22px 22px; }
  .crew-card__name { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .crew__hint-dot { animation: none; }
  .crew-card[open] { animation: none; }
}

/* ---------- Страница 404 ---------- */
.nf__inner { container-type: inline-size; --p: calc(100cqi / 1200); padding-block: clamp(64px, 10vw, 160px); text-align: left; }
.nf__code {
  font-family: var(--serif); font-size-adjust: var(--serif-fit);
  font-style: italic;
  font-size: clamp(96px, calc(220 * var(--p)), 260px);
  line-height: .9;
  color: var(--gold-soft);
}
.nf__text { max-width: 34em; margin-top: 20px; font-size: clamp(15px, calc(17 * var(--p)), 19px); line-height: 1.6; color: var(--text); }
.nf__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 32px; }
