/* ============================================================
   «Стиль шторы» — студия текстильного дизайна
   Дизайн-система: тёплая минималистичная премиальность
   ============================================================ */

:root {
  --ink: #191410;
  --ink-2: #4c433a;
  --ink-3: #7d7266;
  --paper: #faf7f1;
  --cream: #f4efe6;
  --sand: #e9e1d3;
  --bronze: #a97e4e;
  --bronze-2: #c9a76f;
  --dark: #14100c;
  --dark-2: #221c15;
  --line: rgba(25, 20, 16, 0.14);
  --line-light: rgba(250, 247, 241, 0.22);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable; /* скроллбар не исчезает при блокировке — нет скачка ширины */
  overscroll-behavior: none; /* без инерционной «дотяжки» скролла */
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--bronze); color: #fff; }

/* ---------- Типографика ---------- */

.h-display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(42px, 6.4vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.h-1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.h-2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.15;
}

.h-serif-i { font-family: var(--serif); font-style: italic; font-weight: 500; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
}

.label::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.lead-text {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.6;
  color: var(--ink-2);
}

.text-soft { color: var(--ink-3); }

/* ---------- Каркас ---------- */

.wrap {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.section { padding: clamp(80px, 10vw, 150px) 0; position: relative; }

.section--dark { background: var(--dark); color: var(--cream); }
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }

.section-head {
  display: grid;
  grid-template-columns: 1fr minmax(0, 520px);
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 84px);
}

.section-head .h-1 { margin-top: 18px; }

.section-head__side { padding-bottom: 8px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 34px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.5s var(--ease), background 0.35s, color 0.35s, border-color 0.35s, box-shadow 0.35s;
  will-change: transform;
}

.btn svg { transition: transform 0.5s var(--ease); }

.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -18px rgba(25, 20, 16, 0.55); }
.btn:hover svg { transform: translateX(5px); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn--light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--light:hover { box-shadow: 0 18px 44px -16px rgba(0, 0, 0, 0.5); }

.btn--bronze { background: var(--bronze); border-color: var(--bronze); color: #fff; }
.btn--bronze:hover { background: #966e42; }

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

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.45s, box-shadow 0.45s, backdrop-filter 0.45s;
}

.header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand { display: inline-flex; align-items: center; }

.brand__logo { height: 34px; width: auto; display: block; }

/* На светлом фоне — тёмный логотип, светлый скрыт */
.brand__logo--light { display: none; }

/* Шапка поверх тёмного hero (главная, верх страницы) — светлый логотип */
.has-dark-hero .header:not(.is-solid) .brand__logo--dark { display: none; }
.has-dark-hero .header:not(.is-solid) .brand__logo--light { display: block; }

/* Футер всегда тёмный — светлый логотип */
.footer .brand__logo--dark { display: none; }
.footer .brand__logo--light { display: block; }

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

.nav a {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 0;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.nav a:hover, .nav a.is-active { opacity: 1; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.header__cta { display: inline-flex; }

/* Шапка поверх тёмного hero — светлая тема */
body.has-dark-hero .header:not(.is-solid) { color: var(--paper); }
body.has-dark-hero .header:not(.is-solid) .btn--header {
  background: transparent;
  border-color: rgba(250, 247, 241, 0.55);
  color: var(--paper);
}

.header.is-solid {
  background: rgba(250, 247, 241, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  position: relative;
  z-index: 120;
}

.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.6px;
  background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease), opacity 0.3s;
}

.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23px; }
.burger span:nth-child(3) { top: 29px; }

body.menu-open .burger span:nth-child(1) { top: 23px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--dark);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 32px 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

body.menu-open .mobile-menu { opacity: 1; visibility: visible; }

.mobile-menu a.mnav {
  font-family: var(--serif);
  font-size: clamp(34px, 8vw, 52px);
  padding: 10px 0;
  border-bottom: 1px solid var(--line-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu a.mnav small { font-family: var(--sans); font-size: 12px; letter-spacing: 0.2em; opacity: 0.5; }

.mobile-menu__foot { margin-top: 36px; display: grid; gap: 10px; font-size: 15px; }
.mobile-menu__foot a { font-weight: 700; font-size: 20px; }

/* ---------- HERO: эффект открывающихся штор ---------- */
/* Один «толчок» скроллом/свайпом — и сцена проигрывается сама:
   текст разъезжается, видео открывает шторы, комната светлеет. */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--dark);
}

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

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

.hero__media img,
.hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Медленный зум — только для статичных кадров.
   Видео не трогаем: CSS-трансформация играющего видео даёт дрожание кадра. */
.hero__media img {
  transform: scale(1.06);
  transition: transform 7s var(--ease);
}

.hero.is-playing .hero__media img,
.hero.is-finished .hero__media img { transform: scale(1); }

.hero__still--light { opacity: 0; transition: opacity 1.6s var(--ease); }

.hero__video {
  opacity: 0;
  transition: opacity 1s var(--ease);
  will-change: opacity;
}
.hero.is-playing .hero__video,
.hero.is-finished .hero__video { opacity: 1; }

.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(10, 7, 4, 0.55), transparent 60%),
    linear-gradient(rgba(10, 7, 4, 0.42), rgba(10, 7, 4, 0.28) 40%, rgba(10, 7, 4, 0.5));
  transition: opacity 2s var(--ease);
}

.hero.is-finished .hero__vignette { opacity: 0.25; }

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--paper);
  padding: 0 24px;
}

.hero__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 30px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  transition: opacity 0.8s var(--ease);
}

.hero__label::before, .hero__label::after {
  content: "";
  width: 44px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 7.4vw, 118px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-shadow: 0 4px 60px rgba(0, 0, 0, 0.45);
}

.hero__title .hline {
  display: block;
  will-change: transform, opacity;
  transition: transform 1.5s var(--ease), opacity 1.1s var(--ease);
}

.hero__title .hline em { font-style: italic; color: var(--bronze-2); }

/* Текст разъезжается в стороны, когда шторы начинают открываться */
.hero.is-playing .hline--l,
.hero.is-finished .hline--l { transform: translateX(-58vw); opacity: 0; }
.hero.is-playing .hline--r,
.hero.is-finished .hline--r { transform: translateX(58vw); opacity: 0; }

.hero.is-playing .hero__label,
.hero.is-finished .hero__label { opacity: 0; }

.hero__hint {
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.8;
  transition: opacity 0.6s var(--ease);
}

.hero.is-playing .hero__hint,
.hero.is-finished .hero__hint { opacity: 0; }

.hero__hint i {
  width: 1px;
  height: 52px;
  background: linear-gradient(var(--paper), transparent);
  display: block;
  animation: hintPulse 2.2s var(--ease) infinite;
  transform-origin: top;
}

@keyframes hintPulse {
  0% { transform: scaleY(0.2); opacity: 0; }
  45% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(14px); opacity: 0; }
}

/* Финальная сцена hero: после того как шторы открылись */
.hero__after {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 0 24px 11vh;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(46px);
  transition: opacity 1.1s var(--ease) 0.35s, transform 1.1s var(--ease) 0.35s, visibility 1.1s;
}

.hero.is-finished .hero__after { opacity: 1; visibility: visible; transform: translateY(0); }

.hero__after-text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.22;
  max-width: 900px;
  text-shadow: 0 2px 30px rgba(255, 255, 255, 0.55);
  margin-bottom: 30px;
}

/* ---------- Манифест / эмоции ---------- */

.manifesto { text-align: center; }

.manifesto .label { justify-content: center; }
.manifesto .label::before { display: none; }

.manifesto__big {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 62px);
  line-height: 1.18;
  max-width: 1080px;
  margin: 26px auto 0;
}

.manifesto__big em { font-style: italic; color: var(--bronze); }

.emotions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
  margin-top: clamp(56px, 7vw, 96px);
  text-align: left;
}

.emotion-card {
  position: relative;
  padding: clamp(30px, 3vw, 44px);
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), background 0.6s;
}

.emotion-card:hover {
  transform: translateY(-8px);
  background: #fff;
  box-shadow: 0 30px 60px -30px rgba(25, 20, 16, 0.28);
}

.emotion-card__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--bronze);
  letter-spacing: 0.08em;
}

.emotion-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 2vw, 30px);
  margin: 14px 0 12px;
  line-height: 1.15;
}

.emotion-card p { font-size: 15.5px; color: var(--ink-2); }

.emotion-card svg {
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: 120px;
  height: 120px;
  opacity: 0.07;
}

/* ---------- Процесс ---------- */

.process__lead {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(50px, 6vw, 90px);
}

.steps { counter-reset: step; border-top: 1px solid var(--line-light); }

.step {
  display: grid;
  grid-template-columns: 110px 1fr 1.1fr;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(28px, 3.4vw, 46px) 0;
  border-bottom: 1px solid var(--line-light);
  align-items: baseline;
  transition: padding-left 0.5s var(--ease);
}

.step:hover { padding-left: 14px; }

.step__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--bronze-2);
}

.step h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.15;
}

.step p { color: rgba(244, 239, 230, 0.72); font-size: 16px; max-width: 560px; }

.suitcase-note {
  margin-top: clamp(46px, 5vw, 70px);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 30px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  color: rgba(244, 239, 230, 0.85);
  font-size: 16px;
}

.suitcase-note svg { flex: none; }
.suitcase-note b { color: var(--bronze-2); font-weight: 700; }

/* ---------- Почему профессионалы ---------- */

.pro__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.pro__sticky { position: sticky; top: 120px; }

.pro__sticky .h-1 { margin: 18px 0 24px; }

.pro-list { display: grid; gap: 0; border-top: 1px solid var(--line); }

.pro-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.pro-item__icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--bronze);
  background: #fff;
}

.pro-item h4 { font-size: 17.5px; font-weight: 700; margin-bottom: 6px; letter-spacing: 0.01em; }
.pro-item p { font-size: 15px; color: var(--ink-2); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(36px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.stat b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1;
  display: block;
}

.stat b sup { font-size: 0.5em; color: var(--bronze); }

.stat span {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Работы ---------- */

.works-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.work-card {
  position: relative;
  grid-column: span 6;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 16 / 11;
  display: block;
}

.works-grid--masonry .work-card:nth-child(4n + 1) { grid-column: span 7; aspect-ratio: 4 / 3; }
.works-grid--masonry .work-card:nth-child(4n + 2) { grid-column: span 5; aspect-ratio: 4 / 3.36; }
.works-grid--masonry .work-card:nth-child(4n + 3) { grid-column: span 5; aspect-ratio: 4 / 3.36; }
.works-grid--masonry .work-card:nth-child(4n + 4) { grid-column: span 7; aspect-ratio: 4 / 3; }

.work-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.work-card:hover img { transform: scale(1.045); }

.work-card__ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--ink-3);
  background:
    repeating-linear-gradient(-45deg, transparent 0 22px, rgba(25, 20, 16, 0.025) 22px 23px),
    linear-gradient(160deg, #efe8da, #e2d7c3);
  text-align: center;
  padding: 20px;
}

.work-card__ph svg { opacity: 0.5; }

.work-card__ph b {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  color: var(--ink-2);
}

.work-card__ph span {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

.work-card__cap {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(20, 16, 12, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--paper);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.work-card:hover .work-card__cap { opacity: 1; transform: translateY(0); }

.work-card__cap small { font-weight: 500; opacity: 0.7; letter-spacing: 0.1em; text-transform: uppercase; font-size: 10.5px; }

.works-more { text-align: center; margin-top: clamp(44px, 5vw, 70px); }

/* ---------- Отзывы ---------- */

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }

.review {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(30px, 3vw, 42px);
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.review:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(25, 20, 16, 0.3); }

.review__mark {
  font-family: var(--serif);
  font-size: 74px;
  line-height: 0.6;
  color: var(--bronze-2);
  height: 30px;
}

.review p { font-size: 16px; color: var(--ink-2); flex: 1; }

.review__who { display: flex; align-items: center; gap: 14px; }

.review__ava {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--bronze-2), var(--bronze));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}

.review__who b { display: block; font-size: 15px; }
.review__who span { font-size: 12.5px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- FAQ ---------- */

.faq { max-width: 880px; margin-inline: auto; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }

.faq-item__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 4px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(19px, 1.8vw, 25px);
  color: var(--ink);
  transition: color 0.3s, padding-left 0.4s var(--ease);
}

.faq-item__q:hover { color: var(--bronze); padding-left: 12px; }

.faq-item__ico {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: transform 0.5s var(--ease), background 0.35s, color 0.35s;
}

.faq-item.is-open .faq-item__ico { transform: rotate(45deg); background: var(--ink); color: var(--paper); }

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s var(--ease);
}

.faq-item__a p {
  padding: 2px 60px 28px 4px;
  color: var(--ink-2);
  font-size: 16px;
}

/* ---------- Форма заявки ---------- */

.lead {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background: var(--dark);
}

.lead__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/room-light.jpg") center / cover no-repeat;
  opacity: 0.16;
}

.lead__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--dark) 20%, rgba(20, 16, 12, 0.55));
}

.lead__in {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.lead .label { color: var(--bronze-2); }
.lead .h-1 { margin: 18px 0 22px; }
.lead p.lead__sub { color: rgba(244, 239, 230, 0.75); max-width: 480px; }

.lead__phone-row { margin-top: 30px; display: flex; flex-direction: column; gap: 6px; }
.lead__phone-row span { font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; }
.lead__phone-row a {
  font-family: var(--sans);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}
.lead__phone-row a:hover { color: var(--bronze-2); }

.lead-form {
  background: rgba(250, 247, 241, 0.06);
  border: 1px solid var(--line-light);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(28px, 3.2vw, 46px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lead-form h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 28px);
  margin-bottom: 8px;
}

.lead-form > p { font-size: 14.5px; color: rgba(244, 239, 230, 0.7); margin-bottom: 26px; }

.lead-form .btn { width: 100%; justify-content: center; margin-top: 6px; }

.lead-form__note {
  margin-top: 18px;
  font-size: 12.5px;
  color: rgba(244, 239, 230, 0.5);
  text-align: center;
}

/* Выбор мессенджера в попапе — показан сразу, без шага с формой */
.messenger-step { display: block; animation: fadeUp 0.6s var(--ease); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.messenger-step__hello {
  font-size: 15px;
  color: rgba(244, 239, 230, 0.8);
  margin-bottom: 20px;
}

.messenger-step__hello b { color: var(--bronze-2); }

.msngr {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  margin-bottom: 12px;
  border-radius: 16px;
  border: 1px solid var(--line-light);
  background: rgba(20, 16, 12, 0.4);
  color: var(--paper);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.45s var(--ease), border-color 0.3s, background 0.3s, opacity 0.3s;
  text-align: left;
}

/* Без горизонтального сдвига — он вызывал появление скролла у карточки */
.msngr:hover:not(:disabled) { border-color: var(--bronze-2); background: rgba(20, 16, 12, 0.7); }
.msngr:disabled { opacity: 0.42; cursor: not-allowed; }

.msngr__ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
}

.msngr__ico--tg { background: #2aa3d9; }
.msngr__ico--wa { background: #3cb54a; }
.msngr__ico--max { background: #7a5af8; }

.msngr small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.6;
  letter-spacing: 0.04em;
}

.msngr__arrow { margin-left: auto; opacity: 0.55; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 80px);
  z-index: 300;
  background: var(--ink);
  color: var(--paper);
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: transform 0.55s var(--ease), opacity 0.45s;
  pointer-events: none;
  max-width: calc(100vw - 40px);
  text-align: center;
}

.toast.is-show { transform: translate(-50%, 0); opacity: 1; }

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

.footer { background: var(--dark); color: rgba(244, 239, 230, 0.8); padding: clamp(56px, 7vw, 90px) 0 34px; }

.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  padding-bottom: clamp(40px, 5vw, 60px);
  border-bottom: 1px solid var(--line-light);
}


.footer__tag { margin-top: 18px; max-width: 300px; font-size: 14.5px; color: rgba(244, 239, 230, 0.55); }

.footer h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze-2);
  margin-bottom: 20px;
}

.footer__links { display: grid; gap: 12px; font-size: 15.5px; }
.footer__links a { transition: color 0.3s, padding-left 0.35s var(--ease); }
.footer__links a:hover { color: var(--paper); padding-left: 8px; }

.footer__contacts { display: grid; gap: 12px; font-size: 15.5px; align-content: start; }
.footer__contacts a.fphone {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--paper);
  transition: color 0.3s;
}
.footer__contacts a.fphone:hover { color: var(--bronze-2); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: 12.5px;
  color: rgba(244, 239, 230, 0.4);
  letter-spacing: 0.04em;
}

/* ---------- Страницы: общий page-hero ---------- */

.page-hero { padding: clamp(150px, 18vw, 220px) 0 clamp(50px, 6vw, 80px); }

.page-hero .h-display { margin-top: 20px; max-width: 1000px; }

.page-hero__sub { margin-top: 24px; max-width: 620px; }

.breadcrumbs { font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 26px; display: flex; gap: 10px; }
.breadcrumbs a:hover { color: var(--bronze); }

/* ---------- Страница студии ---------- */

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }

.value {
  padding: clamp(28px, 3vw, 42px);
  border-radius: var(--radius);
  border: 1px solid var(--line-light);
  background: rgba(250, 247, 241, 0.05);
  transition: background 0.5s, transform 0.55s var(--ease);
}

.value:hover { background: rgba(250, 247, 241, 0.1); transform: translateY(-6px); }

.value b.vn { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--bronze-2); font-weight: 500; }
.value h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2vw, 28px); margin: 12px 0 10px; }
.value p { font-size: 15px; color: rgba(244, 239, 230, 0.7); }

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 26px); }

.member {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
}

.member__ph {
  aspect-ratio: 3 / 3.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    repeating-linear-gradient(-45deg, transparent 0 22px, rgba(25, 20, 16, 0.025) 22px 23px),
    linear-gradient(160deg, #efe8da, #e2d7c3);
  color: var(--ink-3);
  position: relative;
}

.member__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.member__ph span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }

.member__info { padding: 18px 20px 22px; }
.member__info b { font-family: var(--serif); font-size: 20px; font-weight: 600; display: block; }
.member__info span { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Reveal-анимации ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--rd, 0s);
}

[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__hint { display: none; }
  .hero__media img, .hero__media video { transition: none; }
  .hero__title .hline { transition: none; }
}

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

@media (max-width: 1020px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .emotions, .reviews, .values { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .pro__grid, .lead__in, .process__lead { grid-template-columns: 1fr; }
  .pro__sticky { position: static; }
  .step { grid-template-columns: 60px 1fr; }
  .step p { grid-column: 2; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav, .header__phone, .header__cta { display: none; }
  .burger { display: block; }
  .works-grid .work-card,
  .works-grid--masonry .work-card:nth-child(n) { grid-column: span 12; aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .team { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .faq-item__a p { padding-right: 10px; }
}

/* ---------- Попап с формой заявки ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}

.modal.is-open { opacity: 1; visibility: visible; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 9, 6, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal__card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  overflow-x: hidden; /* страховка от горизонтального скролла внутри карточки */
  padding: 46px 40px 40px; /* раньше отступы давала форма-обёртка */
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--line-light);
  background: linear-gradient(170deg, #211b14, #171210);
  color: var(--paper);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.8);
  transform: translateY(30px) scale(0.97);
  transition: transform 0.5s var(--ease);
}

@media (max-width: 560px) {
  .modal__card { padding: 40px 22px 28px; }
}

.modal.is-open .modal__card { transform: none; }

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  background: rgba(20, 16, 12, 0.5);
  color: var(--paper);
  display: grid;
  place-items: center;
  transition: background 0.3s, transform 0.4s var(--ease);
  z-index: 2;
}

.modal__close:hover { background: rgba(20, 16, 12, 0.9); transform: rotate(90deg); }

.modal .lead-form { border: none; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

.modal__call {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
  text-align: center;
  font-size: 14px;
  color: rgba(244, 239, 230, 0.65);
}

.modal__call a {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--paper);
  transition: color 0.3s;
}

.modal__call a:hover { color: var(--bronze-2); }

body.modal-open { overflow: hidden; }

/* ---------- Строка видов работ (обычный текст, не кнопки) ---------- */

.types-line {
  margin-top: 34px;
  max-width: 720px;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(244, 239, 230, 0.6);
}

/* ---------- Команда: один основатель ---------- */

.team--single { grid-template-columns: minmax(0, 430px); justify-content: center; }

.member--founder .member__ph { aspect-ratio: 3 / 3.4; }

/* ---------- Большая CTA-кнопка и карточка в lead ---------- */

.btn--xl { padding: 22px 46px; font-size: 15px; }

.lead-cta { display: flex; align-items: center; }

.lead-cta .lead-form { width: 100%; text-align: center; }

.lead-cta .lead-form .btn { margin-top: 14px; }

@media (max-width: 1020px) {
  .lead-cta { justify-content: center; }
}
