/* ==========================================================================
   SCALA — штори на замовлення, Київ
   Дизайн-система. Токени + компоненти.
   Джерело: design_handoff_scala_site (high-fidelity)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Токени
   -------------------------------------------------------------------------- */
:root {
  /* Кольори */
  --c-bg:            #FFFFFF;
  --c-ink:           #0B0B0C;   /* основний текст, чорні кнопки, темні поверхні */
  --c-accent:        #8C6A3A;   /* бронза */
  --c-body:          #67676D;   /* основний текст-параграф */
  --c-meta:          #6C6C72;   /* eyebrow, службові підписи (4.5:1 на білому) */
  --c-hero-sub:      #4A4A50;   /* другорядний текст на hero */
  --c-line:          #E6E6E8;   /* лінії / бордери */
  --c-line-input:    #D7D7DA;   /* бордери інпутів */
  --c-ph-photo:      #F1F0EE;   /* плейсхолдер фото */
  --c-ph-card:       #F6F5F3;   /* картки тканин */
  --c-ph-inner:      #EDEDEB;   /* внутрішні плейсхолдери тканин */
  --c-ph-video:      #E7E6E3;

  --shadow-header:   0 1px 0 rgba(11,11,12,.12), 0 6px 24px rgba(11,11,12,.05);

  /* Геометрія */
  --container:       1440px;
  --pad-x:           32px;
  --pad-x-mob:       18px;
  --radius-pill:     999px;

  /* Рух */
  --ease-out:        cubic-bezier(.22,1,.36,1);
  --ease-photo:      cubic-bezier(.2,.8,.2,1);
  --ease-fade:       cubic-bezier(.4,0,.2,1);
}

/* --------------------------------------------------------------------------
   2. Ресет і база
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-ink); text-decoration: none; }
a:hover { color: var(--c-accent); }

img { display: block; width: 100%; height: 100%; object-fit: cover; }

input, select, button, textarea { font-family: inherit; }

summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

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

/* Доступність: видимий фокус для клавіатури */
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

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

/* --------------------------------------------------------------------------
   3. Розкладка
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* Секції лендінгу — інтервали з дизайну */
.section        { max-width: var(--container); margin: 0 auto; padding: 110px var(--pad-x) 0; }
.section--flush { max-width: none; margin: 110px 0 0; padding: 0; }
.section--m88   { max-width: var(--container); margin: 88px auto 0; padding: 0 var(--pad-x); }
.section--m96   { max-width: var(--container); margin: 96px auto 0; padding: 0 var(--pad-x); }
.section--narrow{ max-width: 1000px; }
.section--sub   { max-width: var(--container); margin: 0 auto; padding: 56px var(--pad-x) 0; }
.section--m44   { max-width: var(--container); margin: 44px auto 0; padding: 0 var(--pad-x); }

/* --------------------------------------------------------------------------
   4. Типографіка
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex; align-items: baseline; gap: 16px;
  font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--c-meta);
}
.eyebrow__num { color: var(--c-accent); }
.eyebrow--plain { display: block; }

.h1-page {
  font-size: clamp(34px, 5.4vw, 76px);
  line-height: 1; letter-spacing: -.045em; font-weight: 600;
  margin: 20px 0 0;
}
.h2-section {
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.04; letter-spacing: -.04em; font-weight: 600;
  margin: 24px 0 34px;
}
.lead {
  font-size: 16.5px; line-height: 1.6; color: var(--c-body);
  max-width: 560px; margin: 18px 0 0;
}
.balance { text-wrap: balance; }
.pretty  { text-wrap: pretty; }

/* --------------------------------------------------------------------------
   5. Кнопки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  border-radius: var(--radius-pill);
  padding: 19px 32px;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  white-space: nowrap; cursor: pointer; border: none;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.btn--dark  { background: var(--c-ink); color: #fff; }
.btn--dark:hover  { background: var(--c-accent); color: #fff; }

.btn--light { background: #fff; color: var(--c-ink); padding: 19px 30px; }
.btn--light:hover { background: var(--c-accent); color: #fff; }

.btn--outline {
  border: 1px solid #C9C6C0; color: var(--c-ink); background: transparent; font-weight: 600;
}
.btn--outline:hover { border-color: var(--c-ink); color: var(--c-ink); }

.btn--ghost {
  color: #fff; border: 1px solid rgba(255,255,255,.5); background: transparent;
  padding: 19px 30px; font-weight: 600;
}
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.12); color: #fff; }

.btn--sm { padding: 17px 30px; }

.link-accent {
  display: inline-block; margin-top: 28px;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  border-bottom: 1px solid var(--c-accent); padding-bottom: 4px; color: var(--c-accent);
}

/* --------------------------------------------------------------------------
   6. Хедер
   -------------------------------------------------------------------------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  color: var(--c-ink);
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-header);
  transition: background-color .3s ease, box-shadow .3s ease;
}
/* Хедер підсторінок — sticky, без фіксованого відступу під контент */
.hdr--sticky {
  position: sticky;
  background: rgba(255,255,255,.9);
  box-shadow: 0 1px 0 rgba(11,11,12,.1);
}
.hdr.is-solid {
  background-color: rgba(255,255,255,.94);
  box-shadow: 0 1px 0 var(--c-line), 0 8px 30px rgba(11,11,12,.06);
}

.hdr__inner {
  max-width: var(--container); margin: 0 auto;
  padding: 22px var(--pad-x);
  display: flex; align-items: center; gap: 28px;
}
.hdr--sticky .hdr__inner { padding: 18px var(--pad-x); gap: 24px; }

.logo { color: inherit; font-size: 16px; font-weight: 700; letter-spacing: .34em; }

.hdr__nav {
  display: flex; gap: 26px; margin-left: auto;
  font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
}
.hdr--sticky .hdr__nav { gap: 24px; }
.hdr__nav a { color: inherit; }
.hdr__nav a.is-current { color: var(--c-accent); }

.hdr__phone { color: inherit; margin-left: auto; font-size: 13px; letter-spacing: .06em; }

.hdr__cta {
  color: inherit; margin-left: auto;
  border: 1px solid currentColor; border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .3s ease, color .3s ease;
}
/* Варіант «bar» (робочий за замовчуванням): CTA — чорна заливка */
.hdr__cta--filled {
  background: var(--c-ink); color: #fff; border: none;
  padding: 11px 20px; font-weight: 700;
}
.hdr__cta--filled:hover { background: var(--c-accent); color: #fff; }

.burger {
  display: none; margin-left: auto;
  width: 46px; height: 46px; padding: 0;
  border: 1px solid rgba(11,11,12,.18); background: rgba(255,255,255,.9);
  border-radius: var(--radius-pill); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger span { display: block; width: 18px; height: 1.5px; background: var(--c-ink); }

/* Мобільне меню */
.mmenu {
  position: fixed; inset: 0; z-index: 130;
  display: none; flex-direction: column;
  background: var(--c-bg); padding: 22px 20px 28px;
}
.mmenu.is-open { display: flex; }
.mmenu__top { display: flex; align-items: center; justify-content: space-between; }
.mmenu__close {
  width: 46px; height: 46px;
  border: 1px solid rgba(11,11,12,.18); background: #fff;
  border-radius: var(--radius-pill); font-size: 20px; line-height: 1; cursor: pointer;
}
.mmenu__nav { display: flex; flex-direction: column; gap: 2px; margin-top: 28px; }
.mmenu__nav a {
  font-size: 26px; font-weight: 600; letter-spacing: -.03em;
  padding: 14px 0; border-bottom: 1px solid var(--c-line);
}
.mmenu__foot { margin-top: auto; display: grid; gap: 10px; }
.mmenu__phone {
  text-align: center; border: 1px solid var(--c-line-input); border-radius: var(--radius-pill);
  padding: 17px; font-size: 15px; font-weight: 600;
}
.mmenu__cta {
  text-align: center; background: var(--c-ink); color: #fff; border-radius: var(--radius-pill);
  padding: 18px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; height: 180vh; }
.hero__stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--c-ink);
}

.hero__room { position: absolute; inset: 0; transform: scale(1.1); }

/* Повільний дрейф кадру.
   Анімуємо саме <img>, а не .hero__room: її transform щокадру
   переписує скрипт під час розсування штор — вони б конфліктували.
   38 секунд на цикл: рух помітний периферійним зором, але не
   притягує увагу й не заважає читати текст. */
@keyframes heroDrift {
  0%   { transform: scale(1.05) translate3d(0, 0, 0); }
  50%  { transform: scale(1.13) translate3d(-1.6%, -1.1%, 0); }
  100% { transform: scale(1.05) translate3d(0, 0, 0); }
}
.hero__room img {
  animation: heroDrift 38s ease-in-out infinite;
  will-change: transform;
}
.hero__room-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,.42), rgba(11,11,12,.1) 38%, rgba(11,11,12,.62));
}

/* Reveal-блок під шторою.
   Власний скрим обов'язковий: вуаль кімнати дає в цій точці лише ~38%
   затемнення, і білий текст губиться на світлій шторі. Заразом градієнт
   формує «підлогу» кадру — без нього контент висить у порожнечі. */
.hero__reveal {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(120px, 22vh, 200px) var(--pad-x) 60px;
  opacity: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 11, 12, 0) 0%,
    rgba(11, 11, 12, .34) 38%,
    rgba(11, 11, 12, .72) 100%
  );
}
/* Рядок видів штор над меседжем: заповнює кадр і дає головній
   посилання на види, яких їй раніше бракувало. */
.hero__reveal-top {
  max-width: var(--container); margin: 0 auto 26px;
  padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .2);
  display: flex; align-items: baseline; gap: 14px 28px; flex-wrap: wrap;
  color: #fff;
}
.hero__reveal-label {
  font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255, 255, 255, .6); flex: none;
}
.hero__reveal-links { display: flex; gap: 10px 26px; flex-wrap: wrap; }
.hero__reveal-links a {
  color: #fff; font-size: 14.5px; letter-spacing: -.01em;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color .25s ease, color .25s ease;
}
.hero__reveal-links a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .75); }

.hero__reveal-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 36px; flex-wrap: wrap; color: #fff;
}
.hero__reveal-text {
  font-size: clamp(26px, 3.3vw, 50px); line-height: 1.1; letter-spacing: -.035em;
  font-weight: 500; max-width: 700px; text-wrap: balance;
}
/* .55 на світлому кадрі не читалось навіть зі скримом */
.hero__reveal-text .muted { opacity: .7; }
.hero__reveal-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Дві половини штори — одне фото ділиться навпіл */
.curtain {
  position: absolute; top: 0; bottom: 0; width: 52%;
  background-size: 200% 100%; background-repeat: no-repeat;
  will-change: transform;
}
.curtain--l {
  left: 0; transform-origin: left center; background-position: left center;
  box-shadow: 34px 0 80px rgba(11,11,12,.34);
}
.curtain--r {
  right: 0; transform-origin: right center; background-position: right center;
  box-shadow: -34px 0 80px rgba(11,11,12,.34);
}
.curtain__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,.16), transparent 26%, transparent 76%, rgba(11,11,12,.14));
}

/* Текстовий шар */
.hero__text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 104px var(--pad-x) 56px; color: var(--c-ink);
  background: radial-gradient(ellipse 70% 55% at 50% 46%, rgba(255,255,255,.82), rgba(255,255,255,.34) 60%, rgba(255,255,255,0));
}
/* Слоган — візуально головний елемент, але семантично НЕ заголовок:
   H1 віддано рядку з ключовим запитом і гео нижче. */
.hero__slogan {
  font-size: min(clamp(28px, 6.4vw, 110px), 10.2vh);
  line-height: .98; letter-spacing: -.045em; font-weight: 600; text-transform: uppercase;
  margin: 0;
}
.hero__h1 {
  /* vh-обмеження тримає рядок у межах екрана на низьких вьюпортах,
     max() не дає йому впасти нижче читабельного кегля. */
  font-size: max(13.5px, min(clamp(15px, 1.75vw, 23px), 2.7vh));
  line-height: 1.25; letter-spacing: -.015em; font-weight: 600;
  color: var(--c-ink);
  margin: min(16px, 1.6vh) 0 0;
  max-width: 620px;
}
.hero__sub {
  font-size: clamp(14px, 1.35vw, 19px); line-height: 1.5; color: var(--c-hero-sub);
  max-width: 600px; margin: min(22px, 2vh) auto 0; text-wrap: pretty;
}
.hero__cta {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-top: min(28px, 2.6vh);
}
.hero__hint {
  position: absolute; bottom: 24px; left: 0; right: 0; text-align: center;
  font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--c-meta);
}

/* Вхідна анімація hero */
.hero__slogan { animation: heroIn 1.4s var(--ease-out) .15s both; }
.hero__h1  { animation: heroIn 1.4s var(--ease-out) .3s both; }
.hero__sub { animation: heroIn 1.4s var(--ease-out) .45s both; }
.hero__cta { animation: heroIn 1.4s var(--ease-out) .6s both; }
.hero__hint { animation: hintFloat 2.4s ease-in-out 1.2s infinite; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes hintFloat {
  0%, 100% { transform: translateY(0); opacity: .7; }
  50%      { transform: translateY(6px); opacity: 1; }
}


/* --------------------------------------------------------------------------
   8. Сітка 4 колонки з розділювачами (переваги, процес, послуги, контакти)
   -------------------------------------------------------------------------- */
.four-col {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  margin-top: 40px; border-top: 1px solid var(--c-line);
}
.four-col--tight { margin-top: 28px; }
.cell { padding: 28px 26px 34px; border-right: 1px solid var(--c-line); }
.cell:first-child { padding-left: 0; }
.cell:last-child  { padding-right: 0; border-right: none; }

.cell--steps { padding: 26px 24px 32px; }
.cell--steps:first-child { padding-left: 0; }
.cell--steps:last-child  { padding-right: 0; }

.cell__num   { font-size: 12px; color: var(--c-accent); font-weight: 700; letter-spacing: .14em; }
.cell__title { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.cell--steps .cell__title { font-size: 20px; margin-top: 10px; }
.cell__text  { font-size: 14.5px; line-height: 1.55; color: var(--c-body); margin-top: 8px; }

/* --------------------------------------------------------------------------
   9. 02 Сценарії світла
   -------------------------------------------------------------------------- */
/* Секція має вміщатися в один екран разом із заголовком.
   Було: 110 + 14 + 24 + 126 + 32 + 595 = 901px при екрані 820 —
   низ кадру з підписом і перемикачами лишався за межами видимого. */
#scenarios { padding-top: clamp(56px, 8vh, 110px); }

.scen__h2 {
  font-size: clamp(26px, 3.4vw, 48px); line-height: 1.04; letter-spacing: -.04em;
  font-weight: 600; margin: 20px 0 24px; max-width: 900px; text-wrap: balance;
}
.scen__stage {
  position: relative; height: min(62vh, 620px); background: var(--c-ink); overflow: hidden;
}
.scen__layer {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .7s var(--ease-fade);
}
.scen__layer.is-active { opacity: 1; }
.scen__dim {
  position: absolute; inset: 0; background: #05050A; opacity: 0;
  transition: opacity .7s var(--ease-fade); pointer-events: none;
}
.scen__dim.is-on { opacity: .12; }
.scen__veil {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,11,12,.12), transparent 38%, rgba(11,11,12,.62));
}
.scen__bar {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 32px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.scen__state { color: #fff; max-width: 430px; }
.scen__state-label {
  font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: #fff;
}
.scen__state-text {
  font-size: 21px; line-height: 1.32; letter-spacing: -.02em; margin-top: 8px;
}
.scen__controls {
  display: flex; gap: 8px; flex-wrap: wrap;
  background: rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: var(--radius-pill); padding: 6px;
}
.scen__btn {
  border: none; cursor: pointer; border-radius: var(--radius-pill);
  padding: 13px 20px;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  background: transparent; color: #fff;
  transition: background-color .3s ease, color .3s ease;
}
.scen__btn.is-active { background: #fff; color: var(--c-ink); }

/* --------------------------------------------------------------------------
   10. CTA-смуга
   -------------------------------------------------------------------------- */
.ctabar {
  border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
  padding: 34px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.ctabar__title {
  font-size: clamp(22px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.03em;
  font-weight: 600; max-width: 640px; text-wrap: balance;
}
.ctabar__text {
  font-size: 15px; color: var(--c-body); line-height: 1.55; margin-top: 8px; max-width: 520px;
}

/* --------------------------------------------------------------------------
   11. 03 Види штор
   -------------------------------------------------------------------------- */
.types-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.type-card { display: block; }
.type-card__frame { aspect-ratio: 3/4; overflow: hidden; background: var(--c-ph-photo); }
.type-card__zoom { width: 100%; height: 100%; transition: transform .9s var(--ease-photo); }
.type-card:hover .type-card__zoom { transform: scale(1.05); }
/* Назва і тег в один рядок не вміщаються: при картці 273px це
   145 + 122 + 12 = 279px, тому переносились обидва. Тег винесено
   під опис — назва завжди в один рядок, тег читається як заклик. */
.type-card__row { margin-top: 14px; }
.type-card__name {
  font-size: 20px; font-weight: 600; letter-spacing: -.02em;
  display: block; text-wrap: nowrap;
}
.type-card__tag {
  display: inline-block; margin-top: 12px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-accent); white-space: nowrap;
  border-bottom: 1px solid transparent; padding-bottom: 3px;
  transition: border-color .25s ease;
}
.type-card:hover .type-card__tag { border-bottom-color: var(--c-accent); }
.type-card__text { font-size: 14px; line-height: 1.55; color: var(--c-body); margin-top: 6px; }

/* --------------------------------------------------------------------------
   12. 04 Проєкти — горизонтальна лінійка
   -------------------------------------------------------------------------- */
.proj__head {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x);
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.proj__hint { font-size: 13px; color: var(--c-meta); }
.proj__strip {
  display: flex; gap: 16px; overflow-x: auto;
  padding: 30px var(--pad-x);
  /* Снап тут прибрано свідомо. Картки завширшки 620–900px дають кроки
     снапу по 600+px: будь-який жест силоміць протягувало через пів
     екрана, а зі snap-align:start остання картка ставала недосяжною
     (скрол зупинявся на 1552 з 2068). Вільний скрол — єдиний варіант,
     що поводиться передбачувано на цих розмірах. */
  scroll-padding-inline: var(--pad-x);
  /* дійшовши до краю, не прокидати скрол на сторінку / жест «назад» */
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--c-line-input) transparent;
}
.proj__strip::-webkit-scrollbar { height: 8px; }
.proj__strip::-webkit-scrollbar-track { background: transparent; }
.proj__strip::-webkit-scrollbar-thumb {
  background: var(--c-line-input); border-radius: 999px;
}
.proj__strip::-webkit-scrollbar-thumb:hover { background: var(--c-meta); }

/* Курсор-підказка, що блок тягнеться мишею */
.proj__strip.is-draggable { cursor: grab; }
.proj__strip.is-dragging  { cursor: grabbing; scroll-behavior: auto; }
.proj__strip.is-dragging a,
.proj__strip.is-dragging img { pointer-events: none; }
.proj__item { flex: none; width: min(52vw, 620px); }
.proj__item--wide { width: min(74vw, 900px); }
.proj__shot { height: min(68vh, 600px); background: var(--c-ph-photo); overflow: hidden; }
.proj__cap {
  margin-top: 16px; padding-bottom: 4px;
  font-size: 14px; font-weight: 600; letter-spacing: .02em;
}

/* Банер усередині секції проєктів. Секція повноширинна (--flush),
   тож контейнер і поля повертаємо тут. Відступ мінімальний: банер
   має читатись як завершення блоку, а не як окрема смуга. */
.proj__cta {
  max-width: var(--container); margin: 0 auto;
  padding: 0 var(--pad-x);
}
.proj__cta .ctabar { margin-top: 6px; }

/* --------------------------------------------------------------------------
   13. 06 Тканини
   -------------------------------------------------------------------------- */
.fab__lead {
  font-size: 15.5px; color: var(--c-body); max-width: 520px; line-height: 1.6; margin: 0 0 36px;
}
.fab__h2 { margin-bottom: 8px; max-width: 820px; }
.fab-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fab-card { background: var(--c-ph-card); }
.fab-card > summary { display: block; }
.fab-card__frame { aspect-ratio: 4/3; overflow: hidden; background: var(--c-ph-inner); }
.fab-card__zoom { width: 100%; height: 100%; transition: transform .9s var(--ease-photo); }
.fab-card:hover .fab-card__zoom { transform: scale(1.05); }
.fab-card__row {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 18px;
}
.fab-card__name { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.fab-card__text {
  padding: 0 18px 14px; font-size: 14px; line-height: 1.65; color: var(--c-body);
}
.fab-card__body { padding: 0 18px 20px; }
.fab-card__gallery {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px;
}
.fab-card__thumb { aspect-ratio: 1; background: var(--c-ph-inner); overflow: hidden; }
.fab-card__video {
  margin-top: 10px; position: relative; aspect-ratio: 16/9;
  background: var(--c-ph-video); overflow: hidden;
}
.fab-card__video iframe,
.fab-card__video video {
  width: 100%; height: 100%; border: 0; object-fit: cover; background: var(--c-ink);
  display: block;
}
.fab-card__video-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--c-meta); font-size: 13px; text-align: center; padding: 12px;
}

/* Іконка «+» у details */
.f-plus { color: var(--c-accent); line-height: 1; transition: transform .25s; }
.fab-card .f-plus { font-size: 19px; }
details[open] > summary .f-plus { transform: rotate(45deg); }

/* --------------------------------------------------------------------------
   14. 07 FAQ
   -------------------------------------------------------------------------- */
.faq__h2 { margin: 22px 0 30px; }
.faq-item { border-top: 1px solid var(--c-line); padding: 20px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--c-line); }
.faq-item > summary {
  display: flex; justify-content: space-between; gap: 20px;
  font-size: 19px; font-weight: 500;
}
.faq-item .f-plus { font-size: 22px; }
.faq-item__a {
  font-size: 15.5px; color: var(--c-body); line-height: 1.65;
  margin-top: 12px; max-width: 760px;
}

/* --------------------------------------------------------------------------
   15. Блок довіри
   -------------------------------------------------------------------------- */
.two-col {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px; align-items: start;
}
.incl { margin-top: 22px; border-top: 1px solid var(--c-line); }
.incl__row {
  display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--c-line);
}
.incl__num { color: var(--c-accent); font-size: 15px; }
.incl__text { font-size: 16px; }

.reviews { display: grid; gap: 16px; margin-top: 22px; }
.review { background: var(--c-ph-card); padding: 26px; }
.review__text { font-size: 17px; line-height: 1.5; letter-spacing: -.01em; }
.review__who { font-size: 13px; color: var(--c-meta); margin-top: 14px; }

.works { display: flex; gap: 16px; margin-top: 16px; }
.works__item { aspect-ratio: 1; flex: 1; background: var(--c-ph-photo); overflow: hidden; }

.shots {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px;
}
.shots__item {
  aspect-ratio: 3/4; background: var(--c-ph-photo); overflow: hidden;
  border: 1px solid var(--c-line);
}
.trust__label { font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--c-meta); }
.trust__label--gap { margin-top: 34px; }

/* --------------------------------------------------------------------------
   15b. Змістовний текстовий блок (SEO-текст, описи розділів)
   Дві колонки: ліворуч заголовок, праворуч проза — той самий прийом,
   що й у блоці «Про бренд», щоб текст читався як редакційний матеріал.
   -------------------------------------------------------------------------- */
.prose-block { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 56px; align-items: start; }
.prose-block__aside { position: sticky; top: 120px; }
.prose-block__title {
  font-size: clamp(24px, 2.9vw, 38px); line-height: 1.1; letter-spacing: -.035em;
  font-weight: 600; margin: 14px 0 0; text-wrap: balance;
}

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 18px; }
.prose p {
  font-size: 16px; line-height: 1.7; color: var(--c-body); margin: 0;
}
.prose h3 {
  font-size: 20px; line-height: 1.25; letter-spacing: -.02em; font-weight: 600;
  color: var(--c-ink); margin: 34px 0 0;
}
.prose h3:first-child { margin-top: 0; }
.prose strong { color: var(--c-ink); font-weight: 600; }
.prose a { color: var(--c-accent); border-bottom: 1px solid rgba(140, 106, 58, .35); }
.prose a:hover { border-bottom-color: var(--c-accent); }
.prose ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.prose li {
  font-size: 16px; line-height: 1.6; color: var(--c-body);
  padding-left: 20px; position: relative;
}
.prose li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: 8px; height: 1px; background: var(--c-accent);
}
.prose li strong { color: var(--c-ink); }

@media (max-width: 1100px) {
  .prose-block { grid-template-columns: 1fr; gap: 26px; }
  .prose-block__aside { position: static; }
}

/* Акордеон усередині текстового блоку.
   Вміст лежить у розмітці одразу, лише схований — так пошуковик його
   бачить повністю. Підвантаження по кліку зробило б текст невидимим
   для індексації. */
.prose-acc { border-top: 1px solid var(--c-line); }
.prose-acc:last-of-type { border-bottom: 1px solid var(--c-line); }
.prose-acc > summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 20px 0;
  font-size: 18px; font-weight: 600; letter-spacing: -.015em; color: var(--c-ink);
}
.prose-acc > summary:hover { color: var(--c-accent); }
.prose-acc .f-plus { font-size: 20px; flex: none; }
.prose-acc__body { padding: 0 0 22px; }
.prose-acc__body > * + * { margin-top: 16px; }
.prose-acc__body p,
.prose-acc__body li { font-size: 15.5px; line-height: 1.68; color: var(--c-body); margin: 0; }
.prose-acc__body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.prose-acc__body li { padding-left: 20px; position: relative; }
.prose-acc__body li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: 8px; height: 1px; background: var(--c-accent);
}
.prose-acc__body strong { color: var(--c-ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   16. 08 Instagram
   -------------------------------------------------------------------------- */
.ig__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.ig__h2 { margin: 22px 0 0; }
.ig__h2 a { color: var(--c-accent); }
.ig__text {
  font-size: 15.5px; color: var(--c-body); line-height: 1.6; margin: 14px 0 0; max-width: 460px;
}
.ig-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 1140px; gap: 10px; margin-top: 28px;
}
.ig-grid a { display: block; aspect-ratio: 1; background: var(--c-ph-photo); overflow: hidden; }

/* --------------------------------------------------------------------------
   17. 09 Заявка
   -------------------------------------------------------------------------- */
.request__box {
  display: grid;
  /*
   * Не половина на половину: у колонці 687px форма шириною 470px
   * лишала 217px порожнечі праворуч від кожного поля — блок читався
   * як недоверстаний. Ліва колонка тепер по формі, решта — фото.
   *
   * align-items: stretch перебиває start з .two-col. Без цього фото
   * лишалося заввишки 520px (own min-height) у рядку 838px, і під ним
   * висіла сіра смуга на третину блоку.
   */
  grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
  align-items: stretch;
  gap: 0; border: 1px solid var(--c-line);
}
.request__pane { padding: clamp(24px, 3.2vw, 46px); }
.request__h2 {
  /* Трохи менший за інші H2: колонка тут вужча за секцію, і на 50px
     «Отримати індивідуальний прорахунок» розсипалось на три рядки. */
  font-size: clamp(26px, 2.9vw, 42px); line-height: 1.06; letter-spacing: -.035em;
  font-weight: 600; margin: 14px 0 0; text-wrap: balance;
}
.request__text {
  font-size: 16px; line-height: 1.6; color: var(--c-body); margin: 12px 0 0; max-width: 470px;
}
.request__note {
  font-size: 14.5px; line-height: 1.6; color: var(--c-ink);
  margin: 10px 0 0; max-width: 470px; font-weight: 500;
}
/*
 * Фото не має задавати висоту блоку — її задає форма ліворуч.
 * Поки картинка лежала в потоці, ряд гриду розтягувався під її
 * власні пропорції: вертикальний кадр у колонці 774px дав 1032px
 * заввишки, і під формою лишалося 200px порожнечі. Тому картинка
 * вийнята з потоку, а контейнер тягнеться за сусідньою колонкою.
 */
.request__photo {
  position: relative; min-height: 520px;
  background: var(--c-ph-photo); overflow: hidden;
}
.request__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}

.form { display: grid; gap: 8px; margin-top: 22px; max-width: 470px; }
/* display: grid перебиває [hidden] з таблиці браузера: після «Заявку
   прийнято» форма з кнопкою «Надсилаємо…» лишалась на екрані. */
.form[hidden] { display: none; }
.form input,
.form select,
.form textarea {
  border: none; border-bottom: 1px solid var(--c-line-input);
  padding: 13px 2px; font-size: 16px; outline: none; background: transparent;
  color: var(--c-ink); border-radius: 0;
}
.form textarea { resize: vertical; }
.form input:focus,
.form select:focus,
.form textarea:focus { border-bottom-color: var(--c-ink); }
.form button[type="submit"] {
  margin-top: 10px; background: var(--c-ink); color: #fff; border: none;
  border-radius: var(--radius-pill); padding: 17px;
  font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  cursor: pointer; transition: background-color .3s ease;
}
.form button[type="submit"]:hover { background: var(--c-accent); }
.form button[type="submit"][disabled] { opacity: .55; cursor: default; }
.form__consent { font-size: 12.5px; color: var(--c-meta); line-height: 1.5; }
.form__error { font-size: 13.5px; color: #B3261E; line-height: 1.5; }
.form__error:empty { display: none; }

/*
 * Ноутбук з невисоким вікном. Блок заявки — єдиний на сайті, який має
 * сенс тільки цілком: побачити форму й не побачити кнопку — це втрачена
 * заявка. Тому на низьких екранах він стискається ще на крок.
 * Ширину не чіпаємо: на телефоні колонки й так одна під одною.
 */
@media (min-width: 761px) and (max-height: 860px) {
  .request__pane { padding: clamp(22px, 2.6vw, 34px); }
  .request__h2 { font-size: clamp(24px, 2.4vw, 34px); margin-top: 10px; }
  .request__text { margin-top: 10px; font-size: 15px; }
  .request__note { margin-top: 8px; font-size: 14px; }
  .form { margin-top: 16px; gap: 6px; }
  .form input,
  .form select,
  .form textarea { padding: 11px 2px; font-size: 15.5px; }
  .form textarea { rows: 2; min-height: 0; }
  .form button[type="submit"] { margin-top: 8px; padding: 15px; }
}

/* Honeypot — прихований від людей, видимий ботам */
.form__hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}

.form-sent {
  margin-top: 30px; border-top: 2px solid var(--c-accent);
  padding-top: 24px; max-width: 470px;
}
.form-sent__title { font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.form-sent__text {
  font-size: 15.5px; color: var(--c-body); line-height: 1.6; margin-top: 8px;
}

/* --------------------------------------------------------------------------
   18. Футер
   -------------------------------------------------------------------------- */
.footer { max-width: var(--container); margin: 100px auto 0; padding: 0 var(--pad-x) 40px; }
.footer--sub { margin: 80px auto 0; padding: 0 var(--pad-x) 48px; }
.footer__grid {
  border-top: 1px solid var(--c-line); padding-top: 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px 24px;
}
.footer__brand-text {
  font-size: 14px; color: var(--c-body); line-height: 1.6; margin-top: 12px; max-width: 260px;
}
.footer__label {
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--c-meta);
}
.footer__contacts { font-size: 14px; line-height: 1.8; margin-top: 12px; }
/* Номер не можна рвати посеред цифр, а пошту — навпаки, лише й можна:
   це один довгий «токен», який інакше вилазить із колонки на сусідню. */
.footer__contacts a[href^="tel:"]    { white-space: nowrap; }
.footer__contacts a[href^="mailto:"] { overflow-wrap: anywhere; }
.footer__links {
  display: flex; flex-direction: column; gap: 8px; font-size: 14px; margin-top: 12px;
}
/* Відокремлює посилання на сторінки від якорів поточної сторінки */
.footer__links .is-page-link {
  margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--c-line);
}
/* Не space-between: на 1440px він розкидав два коротких написи по краях,
   лишаючи ~1100px порожнечі — правий читався як відірваний. Тримаємо їх
   однією лінією зліва, розділювачем «·». */
.footer__bottom {
  display: flex; justify-content: flex-start; gap: 10px; flex-wrap: wrap;
  align-items: baseline;
  font-size: 12.5px; color: var(--c-meta); margin-top: 36px;
}
.footer__bottom > * + *::before {
  content: "·"; margin-right: 10px; color: var(--c-line-strong);
}
.footer__bottom a { color: var(--c-meta); }
.footer__spacer { height: 76px; }

/* --------------------------------------------------------------------------
   19. Липка мобільна панель
   -------------------------------------------------------------------------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: none; gap: 8px; padding: 10px 12px;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-line);
}
.mobile-bar__cta {
  flex: 1; text-align: center; background: var(--c-ink); color: #fff;
  padding: 16px; border-radius: var(--radius-pill);
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
}
.mobile-bar__call {
  width: 54px; height: 54px; flex: none;
  border: 1px solid var(--c-line-input); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}

/* --------------------------------------------------------------------------
   19b. Модальне вікно заявки
   Кожна кнопка відкриває форму на місці й передає в заявку своє
   джерело — видно, з якого блоку прийшло звернення.
   -------------------------------------------------------------------------- */
.modal {
  border: none; padding: 0; background: transparent;
  max-width: min(560px, calc(100vw - 32px));
  width: 100%;
  max-height: calc(100dvh - 32px);
  color: var(--c-ink);
  overflow: visible;
}
.modal::backdrop {
  background: rgba(11, 11, 12, .58);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.modal__box {
  position: relative;
  background: var(--c-bg);
  padding: clamp(24px, 4vw, 40px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--c-line); background: #fff;
  border-radius: var(--radius-pill);
  font-size: 20px; line-height: 1; cursor: pointer; color: var(--c-ink);
  transition: border-color .25s ease, color .25s ease;
}
.modal__close:hover { border-color: var(--c-ink); color: var(--c-accent); }

.modal__title {
  font-size: clamp(23px, 3vw, 32px); line-height: 1.1; letter-spacing: -.035em;
  font-weight: 600; margin: 18px 0 0; max-width: 400px; text-wrap: balance;
}
.modal__text {
  font-size: 15px; line-height: 1.6; color: var(--c-body); margin: 12px 0 0;
}
/* Напис про блок, з якого відкрито форму — підказка й клієнту, і нам */
.modal__source:not(:empty) { display: block; }

.modal .form { margin-top: 24px; max-width: none; }
.modal .form-sent { margin-top: 24px; max-width: none; }

/* Анімація появи — вимикається разом з усім рухом у reduced-motion */
@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.modal[open] .modal__box { animation: modalIn .32s var(--ease-out) both; }

@media (max-width: 560px) {
  .modal { max-width: 100%; max-height: 100dvh; }
  .modal__box { max-height: 100dvh; min-height: 100dvh; }
}

/* --------------------------------------------------------------------------
   20. Кастомний курсор
   -------------------------------------------------------------------------- */
.cursor {
  display: none;
  position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none;
  width: 74px; height: 74px; border-radius: 50%;
  background: rgba(11,11,12,.86); color: #fff;
  align-items: center; justify-content: center;
  font-size: 10.5px; letter-spacing: .18em; font-weight: 600;
  transform: translate(-120px, -120px) scale(0);
  transition: transform .18s ease;
}
@media (hover: hover) and (pointer: fine) {
  .cursor { display: flex; }
}

/* --------------------------------------------------------------------------
   21. Каталог
   -------------------------------------------------------------------------- */
.cat__filters {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px;
  border-top: 1px solid var(--c-line); padding-top: 24px;
}
.chip {
  border: 1px solid var(--c-line-input); background: #fff; color: var(--c-ink);
  border-radius: var(--radius-pill); padding: 13px 22px;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.chip.is-active { border-color: var(--c-ink); background: var(--c-ink); color: #fff; }

.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cat-card__frame { aspect-ratio: 3/4; background: var(--c-ph-photo); overflow: hidden; }
.cat-card__zoom { width: 100%; height: 100%; transition: transform .9s var(--ease-photo); }
.cat-card:hover .cat-card__zoom { transform: scale(1.05); }
.cat-card__row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px; margin-top: 14px;
}
.cat-card__name { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.cat-card__tag {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent);
}
.cat-card__text { font-size: 14px; line-height: 1.55; color: var(--c-body); margin-top: 6px; }
.cat-card[hidden] { display: none; }

/* --------------------------------------------------------------------------
   22. Про бренд
   -------------------------------------------------------------------------- */
.about__lead {
  font-size: clamp(17px, 1.6vw, 22px); line-height: 1.5; color: var(--c-body);
  max-width: 640px; margin: 20px 0 0;
}
.about__hero { height: min(70vh, 620px); background: var(--c-ph-photo); overflow: hidden; }
.about__h2 {
  font-size: clamp(26px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -.04em;
  font-weight: 600; margin: 0;
}
.about__body {
  font-size: 16.5px; line-height: 1.65; color: var(--c-body); display: grid; gap: 16px;
}
.about__body p { margin: 0; }
.about__gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.about__gallery > div {
  aspect-ratio: 4/5; background: var(--c-ph-photo); overflow: hidden;
}

/* --------------------------------------------------------------------------
   23. Контакти
   -------------------------------------------------------------------------- */
.contacts-grid { margin-top: 44px; }
.contacts__label {
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--c-meta);
}
.contacts__value {
  display: block; font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-top: 10px;
}
.contacts__value--sm { font-size: 20px; word-break: break-all; }
.contacts__text { font-size: 14px; color: var(--c-body); margin-top: 8px; line-height: 1.55; }
.contacts__msgs {
  display: flex; flex-direction: column; gap: 8px; margin-top: 10px;
  font-size: 17px; font-weight: 600;
}
.contacts__hours { font-size: 16px; line-height: 1.6; margin-top: 10px; color: var(--c-body); }
.contacts__map { margin-top: 24px; aspect-ratio: 16/7; background: var(--c-ph-photo); }
.contacts__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --------------------------------------------------------------------------
   24. Плейсхолдер для порожніх слотів (поки контент не завантажено в адмінці)
   -------------------------------------------------------------------------- */
.slot-empty {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 12px; text-align: center;
  font-size: 12px; line-height: 1.4; letter-spacing: .04em; color: #A4A4A9;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 9px,
    rgba(11,11,12,.03) 9px, rgba(11,11,12,.03) 18px
  );
}

/* --------------------------------------------------------------------------
   25. Reveal при скролі
   -------------------------------------------------------------------------- */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1.1s var(--ease-out) var(--rv-delay, 0ms),
    transform 1.3s var(--ease-out) var(--rv-delay, 0ms);
  will-change: opacity, transform;
}
.rv--img { transform: translateY(40px) scale(1.04); }
.rv.is-in { opacity: 1; transform: none; }
.rv.is-done { will-change: auto; }

/* Паралакс-цілі */
.parallax { transition: transform .2s linear; transform: scale(1.08); }

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

/* Планшет: спеціальні паддінги клітинок 4-колонкової сітки */
@media (min-width: 761px) and (max-width: 1100px) {
  .four-col > .cell { padding: 26px 24px 32px 0; }
  .four-col > .cell:nth-child(even) { padding: 26px 0 32px 24px; border-right: none; }
  .four-col > .cell:nth-child(odd)  { border-right: 1px solid var(--c-line); }
  .four-col > .cell:nth-child(-n+2) { border-bottom: 1px solid var(--c-line); }
}

/* --- Точки перемикання шапки ---------------------------------------------
   Шапці з повним меню, телефоном і кнопкою потрібно ~1270px. Телефон
   ховаємо першим (він дублюється в кнопці та футері), далі вмикаємо
   бургер. Раніше меню зникало на 1100px, а бургер зʼявлявся лише на
   760px — на планшетах навігації не було взагалі. */
@media (max-width: 1280px) {
  .hdr__phone { display: none !important; }
}
@media (max-width: 1140px) {
  .hdr__nav { display: none !important; }
  .burger   { display: flex !important; }
}

@media (max-width: 1100px) {
  /* minmax(0, 1fr), а не 1fr: інакше колонка розтягується під
     найширший вміст. Стрічка скріншотів усередині розсувала грид
     до 718px на екрані 375px і давала горизонтальний скрол сторінки. */
  .two-col   { grid-template-columns: minmax(0, 1fr); }
  .four-col  { grid-template-columns: repeat(2, 1fr); }
  .hero__slogan { font-size: min(12vw, 9.4vh); }
  .ig-grid   { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .types-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-grid  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --pad-x: 18px; }

  /* Кнопка з шапки на телефоні ховається скрізь: її роль бере на себе
     липка панель знизу. Раніше на підсторінках вона лишалась і тиснулась
     упритул до бургера — широка чорна пігулка поруч з іконкою меню. */
  .hdr__cta { display: none !important; }
  .hdr__inner { padding: 14px var(--pad-x); gap: 14px; }
  .hdr--sticky .hdr__inner { padding: 14px var(--pad-x); gap: 14px; }

  .section, .section--m88, .section--m96, .section--sub, .section--m44 {
    margin-top: 64px; padding-top: 0;
  }
  .section--flush { margin-top: 64px; }
  .footer, .footer--sub { margin-top: 64px; }

  /* Hero на мобільному: скрол керує шторами, як і на десктопі, але
     дистанція коротша — 35vh замість 68vh. Одного впевненого свайпу
     вистачає, щоб розсунути полотна повністю. */
  .hero { height: 135vh; margin-top: 0; }

  .hero__cta { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__cta a { width: 100%; text-align: center; padding: 18px 20px; }
  .hero__sub { font-size: 15px; }

  .four-col { grid-template-columns: 1fr; }
  .cell, .cell--steps {
    border-right: none !important; border-bottom: 1px solid var(--c-line);
    padding: 24px 0 !important;
  }

  .scen__stage { height: 74vh; }
  .scen__bar { padding: 18px; flex-direction: column; align-items: stretch; }
  .scen__controls {
    width: 100%; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px;
  }
  /* min-height тримає тап-таргет ≥44px — без візуальної зміни */
  .scen__btn { padding: 14px 6px; font-size: 10.5px; letter-spacing: .04em; min-height: 44px; }

  .types-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .types-grid > :last-child { grid-column: span 2; }
  .types-grid > :last-child .type-card__frame { aspect-ratio: 16/10; }

  .proj__strip { padding: 22px var(--pad-x); gap: 12px; }
  .proj__item, .proj__item--wide { width: 84vw; }
  .proj__shot { height: 62vh; }

  .fab-grid { grid-template-columns: 1fr; }
  .ig-grid  { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }

  .request__box { border: none; }
  .request__pane { padding: 0; }
  .request__photo { min-height: 380px; order: -1; margin-bottom: 22px; }
  .form input, .form select, .form textarea, .form button { font-size: 16px; }
  .form button[type="submit"] { padding: 20px; }

  .faq-item > summary { font-size: 17px; padding: 4px 0; }
  details > summary { min-height: 44px; }

  .mobile-bar { display: flex; }
  .mobile-bar { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
  .mobile-bar__cta { padding: 17px 14px; font-size: 12.5px; }

  /* Підвал на телефоні.
     Автоколонки тут не рятують: пʼять груп в один стовпчик — це екран
     самих лише посилань, а чотири фіксовані колонки на 375px дають
     по 68px, і пошта лізе на сусідню. Тому бренд займає весь рядок,
     а групи посилань стоять парами. */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .footer__brand-text { max-width: none; }
  .footer__label { font-size: 11.5px; letter-spacing: .14em; }
  .footer__contacts,
  .footer__links { font-size: 14.5px; }
  .footer__contacts { line-height: 1.7; }
  .footer__links { gap: 10px; }
  .works { gap: 8px; }

  /* Скріншоти переписок на телефоні: три колонки давали 105px завширшки —
     текст повідомлень у такому розмірі не читається, а весь сенс блоку
     саме в тому, щоб його прочитали. Тому стрічка з гортанням убік. */
  .shots {
    display: flex; gap: 10px;
    overflow-x: auto; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shots .shots__item { flex: none; width: min(62vw, 260px); }

  .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

@media (max-width: 620px) {
  .about__gallery { grid-template-columns: 1fr; }
}

/* На дуже вузьких екранах дві колонки лишають під пошту ~130px,
   і адреса рветься посеред слова. Тоді краще один стовпчик. */
@media (max-width: 359px) {
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .types-grid { grid-template-columns: 1fr; }
  .types-grid > :last-child { grid-column: span 1; }
  .types-grid > :last-child .type-card__frame { aspect-ratio: 3/4; }
  .scen__controls { grid-template-columns: 1fr 1fr; }
  .scen__btn:last-child { grid-column: span 2; }
  .cat-grid { grid-template-columns: 1fr; }
}

@media (max-height: 700px) {
  .hero__hint { display: none !important; }
}
/* На низьких екранах рядок видів не вміщається разом із меседжем
   і кнопками — прибираємо його першим, меседж важливіший. */
@media (max-height: 660px) {
  .hero__reveal-top { display: none !important; }
}

/* --------------------------------------------------------------------------
   27. prefers-reduced-motion — вимикає весь рух
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .rv { opacity: 1 !important; transform: none !important; }
  .parallax { transform: scale(1.08) !important; }
}


/* --------------------------------------------------------------------------
   24. Сторінка виду штор
   -------------------------------------------------------------------------- */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--c-meta);
}
.crumbs a { color: inherit; transition: color .25s ease; }
.crumbs a:hover { color: var(--c-accent); }
.crumbs__sep { opacity: .5; }
.crumbs [aria-current] { color: var(--c-ink); }

.tp__lead {
  max-width: 68ch; margin: 22px 0 0;
  font-size: clamp(16px, 1.45vw, 19px); line-height: 1.65; color: var(--c-body);
}
.tp__hero { aspect-ratio: 16 / 7; overflow: hidden; background: var(--c-ph-photo); }
.tp__hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tp__blocks { display: grid; gap: clamp(44px, 5.6vw, 76px); }

.tp__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.tp__fabrics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tp__fab {
  border: 1px solid var(--c-line-input); border-radius: var(--radius-pill);
  padding: 11px 19px; font-size: 13px; font-weight: 600; color: var(--c-ink);
  transition: border-color .25s ease, color .25s ease;
}
.tp__fab:hover { border-color: var(--c-ink); color: var(--c-accent); }

.tp__more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.tp__more a {
  display: block; border: 1px solid var(--c-line); padding: 22px 20px;
  font-size: 16px; font-weight: 600; letter-spacing: -.02em; color: var(--c-ink);
  transition: border-color .25s ease, color .25s ease;
}
.tp__more a:hover { border-color: var(--c-ink); color: var(--c-accent); }
.tp__more span { display: block; margin-top: 8px; font-size: 13px; font-weight: 400; color: var(--c-body); }

@media (max-width: 1000px) {
  .tp__more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .tp__hero { aspect-ratio: 4 / 3; }
  .tp__more { grid-template-columns: 1fr; }
  /* «Запросити дизайнера зі зразками» не переноситься (nowrap у .btn),
     тож на вузькому екрані кнопки стають у стовпчик — як у hero. */
  .tp__cta { flex-direction: column; align-items: stretch; }
  .tp__cta a { width: 100%; text-align: center; padding: 18px 20px; }
}

/* --------------------------------------------------------------------------
   25. Перегляд скріншота відгуку на весь екран
   -------------------------------------------------------------------------- */
.shots__item {
  border: 1px solid var(--c-line); padding: 0; margin: 0;
  background: var(--c-ph-photo);
  display: block;
  transition: border-color .25s ease, transform .5s var(--ease-photo);
}
/* display: block вище перебиває [hidden] з таблиці браузера, і плитки
   «понад шість» лишалися видимі — сітка розросталась на всі скріни. */
.shots__item[hidden] { display: none; }
/* Курсор і наведення — лише коли плитка справді клікабельна: поки
   скрінів немає, у сітці стоять порожні заглушки. */
button.shots__item { cursor: zoom-in; }
button.shots__item:hover { border-color: var(--c-line-input); transform: translateY(-2px); }
/* Скрін телефона — 9:16, плитка — 3:4, тож видно трохи більше за
   половину висоти. Беремо верхню частину, а не середину: переписка
   завжди починається згори, а внизу в половини скрінів клавіатура. */
.shots__item img { object-position: 50% 25%; transition: transform .9s var(--ease-photo); }
button.shots__item:hover img { transform: scale(1.04); }

/* Остання плитка бере на себе решту скрінів: «+6». Клік по ній
   відкриває перегляд, у якому є всі, зокрема й непоказані. */
.shots__item--more { position: relative; }
.shots__more-badge {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11, 11, 12, .58); color: #fff;
  font-size: 21px; font-weight: 600; letter-spacing: -.02em;
  transition: background-color .25s ease;
}
.shots__item--more:hover .shots__more-badge { background: rgba(11, 11, 12, .44); }

.shotbox {
  border: none; padding: 0; margin: auto;
  width: 100vw; max-width: 100vw;
  height: 100dvh; max-height: 100dvh;
  background: transparent; overflow: hidden;
}
/*
 * Сітка, а не absolute+inset: інакше <img> розтягується на всю дозволену
 * площу, довкола картинки лишається прозора зона, і клік по ній не
 * закриває перегляд — хоча виглядає як «повз».
 *
 * І тільки на [open]: display у самому .shotbox перебив би правило
 * браузера dialog:not([open]) { display: none } — закрите вікно
 * малювало б свої кнопки поверх сторінки.
 */
.shotbox[open] { display: grid; place-items: center; }
.shotbox::backdrop {
  background: rgba(11, 11, 12, .92);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.shotbox__img {
  display: block; width: auto; height: auto;
  max-width: min(92vw, 620px); max-height: 88dvh;
  border-radius: 10px;
  cursor: default;
}
.shotbox__close,
.shotbox__nav {
  position: absolute; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28); background: rgba(11,11,12,.5);
  color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .25s ease, border-color .25s ease;
}
.shotbox__close:hover,
.shotbox__nav:hover { background: rgba(11,11,12,.85); border-color: rgba(255,255,255,.6); }
.shotbox__close { top: 18px; right: 18px; font-size: 28px; }
.shotbox__nav--prev { left: 18px; top: 50%; transform: translateY(-50%); }
.shotbox__nav--next { right: 18px; top: 50%; transform: translateY(-50%); }
.shotbox__count {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2;
  text-align: center; color: rgba(255,255,255,.72);
  font-size: 12.5px; letter-spacing: .14em; font-weight: 600;
}

@media (max-width: 760px) {
  .shotbox__img { max-width: 94vw; max-height: 82dvh; }
  /* Стрілки внизу, а не по боках: посеред екрана вони перекривають
     сам скрін, а гортати на телефоні зручніше свайпом. */
  .shotbox__nav--prev { left: calc(50% - 62px); top: auto; bottom: 46px; transform: none; }
  .shotbox__nav--next { right: calc(50% - 62px); top: auto; bottom: 46px; transform: none; }
  .shotbox__count { bottom: 106px; }
}
