/* ==========================================================================
   shopinskyi.com — головна
   Токени з «05 — дизайн-система» (Figma: колекції Color, Spacing, Motion).
   Межі: 1200 (десктоп), 1024 (меню), 768 (планшет). Телефон — макет 420, перевірка 360.
   Колір: сайт чорно-білий, м'ятний — лише кнопка hero «Get in touch» і кнопка мобільного меню.
   Зміст:
     1. Токени        2. Основа         3. Типографіка     4. Кнопки
     5. Шапка й меню  6. Hero + лоадер  7. Марквіз         8. Секції
     9. Goals        10. Portfolio     11. Шоти + поп-ап  12. About
    13. Contact + форма               14. Футер          15. Адаптив
    16. Зменшення руху
   ========================================================================== */

/* ---------- 1. Токени ---------- */
:root {
  /* Колір */
  --color-bg-page: #F4F6F6;
  --color-bg-surface: #FFFFFF;
  --color-bg-inverse: #0A0A0A;
  --color-bg-inverse-pressed: #1E1E1E;
  --color-bg-accent: #66E2A3;
  --color-bg-accent-pressed: #4CCB8B;
  --color-bg-hover: rgba(0, 0, 0, .04);
  --color-bg-surface-hover: rgba(0, 0, 0, .12);
  --color-bg-overlay-inverse: rgba(255, 255, 255, .12);
  --color-bg-overlay-inverse-strong: rgba(255, 255, 255, .2);

  --color-text-primary: #1E1E1E;
  --color-text-secondary: rgba(0, 0, 0, .72);
  --color-text-tertiary: rgba(0, 0, 0, .65);
  --color-text-on-accent: #0A0A0A;
  --color-text-error: #D92D20;
  --color-text-inverse: #FFFFFF;
  --color-text-inverse-secondary: rgba(255, 255, 255, .72);
  --color-text-inverse-tertiary: rgba(255, 255, 255, .6);

  --color-border-default: #E7E7E7;
  --color-border-strong: rgba(0, 0, 0, .2);
  --color-border-subtle: rgba(0, 0, 0, .12);
  --color-border-contrast: #0A0A0A;
  --color-border-focus: #0A0A0A;
  --color-border-error: #D92D20;
  --color-border-inverse: rgba(255, 255, 255, .2);
  --color-border-inverse-strong: rgba(255, 255, 255, .35);
  --color-border-inverse-subtle: rgba(255, 255, 255, .12);

  --color-icon-goal: #96A7B8;      /* іконки карток Goals (вектори у Figma) */

  /* Радіуси */
  --radius-xl: 28px;
  --radius-2xl: 32px;
  --radius-3xl: 36px;
  --radius-4xl: 42px;
  --radius-full: 999px;

  /* Сітка (десктоп ≥ 1200) */
  --page-max: 1520px;          /* вміст не ширший, по центру */
  /* Бічні поля: 80 на 1280 → 120 на 1440 і ширше (4 листопада, фрейм 1440) */
  --pad-x: clamp(80px, calc(80px + (100vw - 1280px) / 4), 120px);
  --sec-y: 100px;              /* layout/section-y */
  --label-col: 320px;          /* layout/label-column */
  --block-gap: 80px;           /* між підблоками секції */
  --head-gap: 80px;            /* заголовок секції → вміст */
  --sub-gap: 48px;             /* H4 підблоку → вміст (64 → 48, 4 листопада) */

  /* Рух */
  --motion-fast: 150ms;
  --motion-base: 300ms;
  --motion-slow: 500ms;
  --ease-standard: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-move: cubic-bezier(.65, 0, .35, 1);

  --font: "Mona Sans", "Mona Sans Fallback", "Helvetica Neue", Arial, sans-serif;
  --hdr-h: 72px;
}

/* ---------- 2. Основа ---------- */
@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/mona-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
/* Fallback із підібраними метриками, щоб текст не стрибав при підміні шрифту (CLS) */
@font-face {
  font-family: "Mona Sans Fallback";
  src: local("Arial");
  size-adjust: 101%;
  ascent-override: 92%;
  descent-override: 24%;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
}
html.motion { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--color-bg-page);
  color: var(--color-text-primary);
  font: 400 19px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
svg use { pointer-events: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--color-border-focus); outline-offset: 3px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 200;
  padding: 12px 20px; border-radius: var(--radius-full);
  background: var(--color-bg-inverse); color: #fff; font-weight: 600; font-size: 15px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--page-max) + var(--pad-x) * 2);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ---------- 3. Типографіка (текстові стилі з Figma) ---------- */
.h2 { font-size: 52px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.h3 { font-size: 38px; font-weight: 600; line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; }
/* H4 — заголовки підблоків (Interfaces up close, More work…, What I design, How I work). Figma «Heading/H4», 4 листопада */
.h4 { font-size: 32px; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; text-wrap: balance; }
.h5 { font-size: 24px; font-weight: 600; line-height: 1.3; }
.lead { font-size: 19px; line-height: 1.5; }
.eyebrow { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--color-text-secondary); }
.br-md { display: none; }
@media (min-width: 768px) { .br-md { display: inline; } }

/* ---------- 4. Кнопки (компонент Button 81:729) ----------
   Hover = Focus: кільце 2 px на 3 px зовні, фон не міняється; підпис їде вгору,
   копія заходить знизу, стрілка +4 px — 300 мс. Pressed: scale .98, 150 мс. */
.btn {
  --ring: var(--color-border-focus);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  flex: none;
  border-radius: var(--radius-full);
  font-weight: 600; line-height: 1; white-space: nowrap;
  outline: 2px solid transparent; outline-offset: 3px;
  transition: outline-color var(--motion-fast) var(--ease-standard),
              transform var(--motion-fast) var(--ease-standard),
              background-color var(--motion-fast) var(--ease-standard);
}
.btn:hover, .btn:focus-visible { outline-color: var(--ring); }
.btn:active { transform: scale(.98); }
.btn__lbl { display: inline-grid; overflow: hidden; line-height: 1.2; }
.btn__lbl > span { grid-area: 1 / 1; transition: transform var(--motion-base) var(--ease-standard); }
.btn__lbl > span + span { transform: translateY(105%); }
.btn:hover .btn__lbl > span:first-child, .btn:focus-visible .btn__lbl > span:first-child { transform: translateY(-105%); }
.btn:hover .btn__lbl > span + span, .btn:focus-visible .btn__lbl > span + span { transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.btn__arr { transition: transform var(--motion-base) var(--ease-standard); }
.btn:hover .btn__arr, .btn:focus-visible .btn__arr { transform: translateX(4px); }

.btn--l { height: 64px; padding: 0 32px; font-size: 17px; }
.btn--l svg { width: 24px; height: 24px; }
.btn--m { height: 48px; padding: 0 26px; font-size: 15px; }

.btn--accent { background: var(--color-bg-accent); color: var(--color-text-on-accent); --ring: #fff; }
.btn--accent:active { background: var(--color-bg-accent-pressed); }
.btn--primary { background: var(--color-bg-inverse); color: var(--color-text-inverse); }
.btn--primary:active { background: var(--color-bg-inverse-pressed); }
.btn--outline { border: 1px solid var(--color-border-contrast); color: var(--color-text-primary); }
.btn--outline:active { background: var(--color-bg-surface-hover); }
.btn--outline-inv { border: 1px solid var(--color-border-inverse-strong); color: var(--color-text-inverse); --ring: #fff; }
.btn--outline-inv:active { background: var(--color-bg-overlay-inverse); }

/* ---------- 5. Шапка й меню ---------- */
.hdr {
  position: absolute; left: 0; right: 0; top: 0; z-index: 50;
  padding: 36px 46px 0;
  color: var(--color-text-inverse);
}
.hdr__in {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--hdr-h); padding-block: 12px;
  max-width: 1828px; margin-inline: auto;
}
.hdr__start { display: flex; align-items: center; gap: 12px; }
.hdr__end { justify-self: end; display: flex; align-items: center; gap: 20px; }

.logo { display: block; width: 119px; height: 38px; color: currentColor; border-radius: 6px; }
.logo svg { width: 100%; height: 100%; overflow: visible; }

.burger {
  display: none; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--color-bg-overlay-inverse-strong);
  border: 1px solid var(--color-border-inverse);
  position: relative;
}
.burger::before { content: ""; position: absolute; inset: -3px; }  /* тап-зона 48×48 */
.burger svg { grid-area: 1 / 1; width: 24px; height: 24px; fill: currentColor; }
.burger__close { opacity: 0; transform: rotate(-45deg) scale(.6); }
.burger svg { transition: opacity var(--motion-base) var(--ease-standard), transform var(--motion-base) var(--ease-out); }
.menu-open .burger__open { opacity: 0; transform: rotate(45deg) scale(.6); }
.menu-open .burger__close { opacity: 1; transform: none; }
.burger:focus-visible { outline-color: currentColor; }

.nav__list { display: flex; align-items: center; gap: 56px; }
.nav__num, .menu__foot { display: none; }
.nav__link {
  position: relative; display: block;
  font-size: 15px; font-weight: 500; line-height: 30px;
  color: var(--color-text-inverse-secondary);
  border-radius: 4px;
  transition: color var(--motion-fast) var(--ease-standard);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; top: 26px; height: 2px;
  background: currentColor; opacity: .6;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--motion-base) var(--ease-standard);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--color-text-inverse); }
.nav__link:hover::after { transform: none; }
.nav__link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.lang {
  display: block; width: 32px; height: 32px; border-radius: 50%; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--color-border-inverse-strong);
  outline: 2px solid transparent; outline-offset: 2px;
  transition: outline-color var(--motion-fast) var(--ease-standard);
}
.lang svg { width: 100%; height: 100%; }
.lang:hover, .lang:focus-visible { outline-color: currentColor; }

.hdr__cta { border: 1px solid var(--color-border-inverse-strong); color: var(--color-text-inverse); --ring: #fff; }
.hdr__cta:active { background: var(--color-bg-overlay-inverse); }

/* Шапка Hero=Off: світла смуга; при скролі вниз схована, при скролі вгору виїжджає цілою */
.hdr.is-bar {
  position: fixed; padding: 0 32px;
  background: var(--color-bg-page);
  color: var(--color-text-primary);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 250ms var(--ease-standard), visibility 0s linear 250ms;
}
.hdr.is-bar.is-shown {
  transform: none; visibility: visible;
  transition: transform 350ms cubic-bezier(.2, .8, .2, 1), visibility 0s;
}
.hdr.is-instant, .hdr.is-instant * { transition: none !important; }
.hdr.is-bar .nav__list { gap: 48px; }
@media (max-width: 1023px) { .hdr.is-bar .nav__list { gap: 0; } }
.hdr.is-bar .nav__link { color: var(--color-text-secondary); }
.hdr.is-bar .nav__link:hover, .hdr.is-bar .nav__link:focus-visible { color: var(--color-text-primary); }
.hdr.is-bar .lang { box-shadow: none; }
.hdr.is-bar .hdr__cta { background: var(--color-bg-inverse); border-color: var(--color-bg-inverse); --ring: var(--color-border-focus); }
.hdr.is-bar .hdr__cta:active { background: var(--color-bg-inverse-pressed); }
.hdr.is-bar .burger { background: var(--color-bg-surface); border-color: var(--color-border-default); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  /* Hero на весь екран мінус тонка смуга сторінки знизу (20 / 16 / 12, як у proxet.com), щоб було видно, що є скрол */
  min-height: max(560px, calc(100svh - 20px));
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--color-text-inverse);
  background: var(--color-bg-inverse);
}

.hero__media {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background: #041820 url("../video/hero-poster.jpg") center / cover no-repeat;
}
.hero__video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.hero__media.has-video .hero__video { opacity: 1; }
/* Затемнення 75% — як шар над відео у Figma (Hero / bg), білий текст тримає контраст */
.hero__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: rgba(0, 0, 0, .75); }

.hero__body {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 140px clamp(80px, calc(80px + (100vw - 1280px) / 8), 100px) 80px;
}
.hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: 64px; min-width: 0; }
.hero__text { display: flex; flex-direction: column; gap: 18px; }
.hero__h1 {
  font-size: 60px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em;
  color: var(--color-text-inverse);
}
.hero__static { display: block; color: rgba(255, 255, 255, .6); }
.hero__rot { display: grid; }
.hero__phrase { grid-area: 1 / 1; display: block; }
.hero__phrase:not(.is-active) { visibility: hidden; }
.hero__phrase .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.hero__phrase .w > span { display: inline-block; }
.hero__sub { max-width: 560px; font-size: 19px; line-height: 1.5; color: var(--color-text-inverse-secondary); }

.hero__stats {
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end;
  align-self: stretch; gap: 24px;
  text-align: right;
}
.stat { display: flex; flex-direction: column; align-items: inherit; gap: 8px; }
.stat__val { font-size: 38px; font-weight: 600; line-height: 1.05; letter-spacing: -.01em; white-space: nowrap; }
.stat__cap { font-size: 16px; font-weight: 500; line-height: 1.5; color: var(--color-text-inverse-tertiary); }

/* Одометр цифр (будується в JS) */
.odo { display: inline-block; overflow: hidden; height: 1.15em; line-height: 1.15em; vertical-align: bottom; }
.odo__s { display: flex; flex-direction: column; }
.odo__s > span { display: block; height: 1.15em; line-height: 1.15em; text-align: center; }
.odo__c { display: inline-block; line-height: 1.15em; vertical-align: bottom; }

/* Лоадер (затверджено 28 жовтня; рамку 10 px і радіус прибрано 1 листопада) */
.site-loader {
  position: absolute; inset: 0; z-index: 20;
  display: grid; place-items: center;
  pointer-events: none; color: #fff;
}
.site-loader .sl-logo { width: clamp(220px, 32vw, 460px); height: auto; overflow: visible; transform-origin: 0 0; }
.site-loader .sl-logo.is-below { transform: translateY(60vh); opacity: 0; }
.site-loader .sl-ghost { color: #1F2324; transition: opacity .25s ease; }
.site-loader .sl-dot { fill: currentColor; stroke: none; transform-box: fill-box; transform-origin: center; }
html:not(.is-loading) .site-loader { display: none; }

html.is-loading { overflow: hidden; }
html.is-loading [data-site-logo] { visibility: hidden; }
html.is-loading [data-hero-bg] { opacity: 0; transform: scale(1.08); }
html.is-loading [data-reveal] { opacity: 0; transform: translateY(28px); }
html.is-loading [data-reveal="4"] { transform: translateY(-14px); }
html.is-loading [data-reveal="5"] { transform: translateY(16px); }
/* Поки йде лоадер, hero займає весь екран, тож фон суцільно чорний.
   Коли збирається hero, він стискається на 20 / 16 / 12 px і знизу з'являється біла смуга. */
html.is-loading .hero { min-height: 100svh; }
html.js .hero { transition: min-height .8s cubic-bezier(.65, 0, .35, 1) .15s; }
html.js [data-hero-bg] { transition: opacity 1s ease, transform 1.6s var(--ease-out); }
html.js [data-reveal] { transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); }

/* ---------- 7. Марквіз (крутиться завжди, без паузи на hover) ---------- */
.marquee {
  position: relative; overflow: hidden;
  display: grid; gap: 8px;
  padding: var(--sec-y) 0 60px;
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; width: 220px; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--color-bg-page) 0%, rgba(244, 246, 246, .5) 35%, rgba(244, 246, 246, 0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--color-bg-page) 0%, rgba(244, 246, 246, .85) 35%, rgba(244, 246, 246, 0)); }
.marquee__row { display: flex; width: max-content; }
.marquee__track { display: flex; gap: 8px; padding-right: 8px; flex: none; }
html.motion .marquee__row { animation: marquee 70s linear infinite; }
html.motion .marquee__row[style*="--i:1"] { animation-duration: 84s; animation-direction: reverse; }
html.motion .marquee__row[style*="--i:2"] { animation-duration: 96s; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  height: 64px; padding: 0 24px; border-radius: var(--radius-xl);
  background: var(--color-bg-surface); border: 1px solid var(--color-border-default);
  font-size: 17px; line-height: 1.5; white-space: nowrap;
}
.tag svg { width: 24px; height: 24px; fill: currentColor; }

/* ---------- 8. Секції ---------- */
.sec { padding-block: var(--sec-y); }
.sec__head { display: grid; grid-template-columns: var(--label-col) minmax(0, 1fr); align-items: start; }
.sec__titles { display: flex; flex-direction: column; gap: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center;
  padding: 9px 18px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-full);
  font-size: 14px; font-weight: 500; line-height: 20px; white-space: nowrap;
}

/* ---------- 9. Goals ---------- */
.goals { margin-top: var(--head-gap); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.goal {
  display: flex; flex-direction: column; gap: 64px;
  padding: 36px; border-radius: var(--radius-2xl);
  background: var(--color-bg-surface); border: 1px solid var(--color-border-default);
  min-height: 346px;
}
.goal__ico { width: 52px; height: 52px; fill: var(--color-icon-goal); }
.goal__txt { display: flex; flex-direction: column; gap: 16px; }
.goal__title { max-width: 260px; text-wrap: balance; }
.goal__desc { font-size: 17px; line-height: 1.5; color: var(--color-text-secondary); }

/* ---------- 10. Portfolio ---------- */
.work { display: flex; flex-direction: column; gap: var(--block-gap); }
.work__cases, .work__shots {
  display: grid; align-items: end;
  grid-template-columns: var(--label-col) minmax(0, 1fr) auto;
  grid-template-areas: "label title action" "list list list";
  row-gap: var(--head-gap);
}
.work__shots { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title action" "list list"; row-gap: var(--sub-gap); }
.work__label { grid-area: label; align-self: start; }
.work__title { grid-area: title; }
.work__action { grid-area: action; }
.work__list { grid-area: list; }

.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.case {
  display: flex; flex-direction: column; gap: 28px;
  padding: 10px;
  background: var(--color-bg-surface); border: 1px solid var(--color-border-default);
  border-radius: var(--radius-4xl);
  outline: 2px solid transparent; outline-offset: 3px;
  transition: border-color var(--motion-base) var(--ease-standard), outline-color var(--motion-fast) var(--ease-standard);
}
.case__media { position: relative; flex: none; height: 587px; overflow: hidden; border-radius: var(--radius-2xl); background: var(--color-bg-page); }
.case__media picture { position: absolute; inset: 0; }
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.case__txt { display: flex; flex-direction: column; gap: 8px; padding: 0 26px 26px; }
.case__title { display: inline-flex; align-items: center; gap: 8px; }
.case__arr { width: 22px; height: 22px; fill: currentColor; opacity: 0; transform: translate(-6px, 6px); transition: opacity var(--motion-base) var(--ease-standard), transform var(--motion-base) var(--ease-standard); }
.case__desc { font-size: 17px; line-height: 1.5; color: var(--color-text-secondary); }
.case:hover { border-color: var(--color-border-contrast); }
.case:hover .case__arr, .case:focus-visible .case__arr { opacity: 1; transform: none; }
.case:hover .case__media img { transform: scale(1.03); }
.case:focus-visible { outline-color: var(--color-border-focus); }

.work-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px;
  margin-top: calc(var(--sub-gap) - var(--block-gap));
  padding-top: 40px; border-top: 1px solid rgba(10, 10, 10, .1);
}

/* ---------- 11. Шоти + поп-ап (див. «07 — шоти Dribbble») ---------- */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.shot-card {
  position: relative; display: block; padding: 10px;
  background: var(--color-bg-surface); border: 1px solid var(--color-border-default);
  border-radius: var(--radius-2xl);
  outline: 2px solid transparent; outline-offset: 3px;
  transition: border-color var(--motion-fast) var(--ease-standard), outline-color var(--motion-fast) var(--ease-standard);
}
.shot-card picture { border-radius: var(--radius-xl); overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
/* Оригінальна пропорція шота 4:3, без розтягування й обрізання */
.shot-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--color-bg-page); }
.shot-card__badge {
  position: absolute; top: 20px; right: 20px;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-bg-surface); color: var(--color-bg-inverse);
  opacity: 0; transform: scale(.8);
  transition: opacity var(--motion-fast) var(--ease-standard), transform var(--motion-base) var(--ease-standard);
}
.shot-card__badge svg { width: 20px; height: 20px; fill: currentColor; }
.shot-card:hover { border-color: var(--color-border-contrast); }
.shot-card:hover .shot-card__badge, .shot-card:focus-visible .shot-card__badge { opacity: 1; transform: none; }
.shot-card:focus-visible { outline-color: var(--color-border-focus); }
@media (hover: none) { .shot-card__badge { opacity: 1; transform: none; } }

html:has(.shot-dialog[open]) { overflow: hidden; }
.shot-dialog {
  --pad: 24px;
  width: min(1240px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px);
  margin: auto; padding: 0; border: 0; border-radius: var(--radius-2xl);
  background: var(--color-bg-surface); color: var(--color-text-primary); overflow: hidden;
}
.shot-dialog::backdrop { background: rgba(10, 10, 10, .72); }
.shot-dialog[open] { animation: shot-in var(--motion-base) var(--ease-out); }
.shot-dialog[open]::backdrop { animation: shot-fade var(--motion-base) linear; }
.shot-dialog.is-closing { animation: shot-out 200ms var(--ease-standard) forwards; }
.shot-dialog.is-closing::backdrop { animation: shot-fade 200ms linear reverse forwards; }
@keyframes shot-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes shot-out { to { opacity: 0; transform: translateY(12px) scale(.99); } }
@keyframes shot-fade { from { opacity: 0; } }
.shot-dialog__inner { position: relative; }
.shot {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--pad);
  padding: var(--pad); max-height: calc(100dvh - 48px);
}
.shot.is-entering { animation: shot-fade var(--motion-fast) linear; }
.shot__media { min-width: 0; align-self: center; }
.shot__media img {
  width: 100%; max-height: calc(100dvh - 96px); aspect-ratio: 4 / 3; object-fit: contain;
  border-radius: 24px; background: var(--color-bg-page);
}
.shot__body { display: flex; flex-direction: column; gap: 16px; padding-top: 56px; min-width: 0; overflow-y: auto; }
/* Кільце hover/focus кнопок (2 px на 3 px зовні) не обрізається скрол-контейнером:
   6 px внутрішнього запасу з боків і знизу, компенсовано від'ємним margin — розмітка не зсувається */
.shot__body { padding: 56px 6px 6px; margin: 0 -6px -6px; }
.shot__count { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--color-text-tertiary); }
.shot__title { font-size: 24px; font-weight: 600; line-height: 1.3; outline: none; }
.shot__text { font-size: 17px; line-height: 1.5; color: var(--color-text-secondary); }
.shot__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.shot__tags li { padding: 6px 14px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-full); font-size: 14px; font-weight: 500; line-height: 20px; }
.shot__actions { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.shot__actions .btn { width: 100%; }
.shot-ctrl {
  position: absolute; z-index: 2; top: var(--pad);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-bg-surface); border: 1px solid var(--color-border-default);
  transition: border-color var(--motion-fast) var(--ease-standard);
}
.shot-ctrl svg { width: 20px; height: 20px; fill: currentColor; }
.shot-ctrl:hover { border-color: var(--color-border-contrast); }
.shot-ctrl--close { right: var(--pad); }
.shot-ctrl--next { right: calc(var(--pad) + 52px); }
.shot-ctrl--prev { right: calc(var(--pad) + 104px); }

/* ---------- 12. About · What I design · Stages ---------- */
.about { display: flex; flex-direction: column; gap: var(--block-gap); }
.about__intro { display: flex; flex-direction: column; gap: 48px; min-width: 0; }
.about__me { display: flex; align-items: center; gap: 32px; }
.avatar {
  flex: none; width: 196px; height: 196px; border-radius: 48px; overflow: hidden;
  background: var(--color-bg-inverse); border: 1px solid rgba(255, 255, 255, .12);
}
.avatar picture { display: block; height: 100%; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.about__text { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.about__title { display: flex; flex-direction: column; gap: 8px; font-weight: 600; }
.about__desc { font-size: 19px; line-height: 1.5; }
.chip--extra { display: none; }
.industries.is-open .chip--extra { display: inline-flex; }
.chip--more {
  cursor: pointer;
  transition: background-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard);
}
.chip--more:hover { background: var(--color-bg-inverse); border-color: var(--color-bg-inverse); color: var(--color-text-inverse); }
.chip--more:focus-visible { outline: 2px solid var(--color-border-focus); outline-offset: 3px; }
.chip--extra:focus { outline: none; }
.chip--extra:focus-visible { outline: 2px solid var(--color-border-focus); outline-offset: 3px; }

.sub { display: flex; flex-direction: column; gap: var(--sub-gap); scroll-margin-top: 24px; }

.rows { display: flex; flex-direction: column; }
.row {
  position: relative;
  display: grid; grid-template-columns: var(--label-col) 340px minmax(0, 1fr); align-items: start;
  padding-block: 32px;
}
.row:first-child { padding-top: 0; }
.rule { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--color-border-subtle); transform-origin: left; }
.row:first-child .rule { display: none; }
.row__num { padding-top: 6px; font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--color-text-tertiary); }
.row__details { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.row__desc { font-size: 17px; line-height: 1.5; color: var(--color-text-tertiary); }

.stages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stage {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 36px; border-radius: var(--radius-2xl);
  background: var(--color-bg-surface); border: 1px solid var(--color-border-default);
  min-height: 398px;
}
.stage__top { display: flex; flex-direction: column; gap: 12px; }
.stage__num { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--color-text-tertiary); }
.stage__list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.stage__list li { display: flex; gap: 12px; font-size: 17px; line-height: 1.5; }
.stage__list svg { width: 20px; height: 20px; flex: none; margin-top: 3px; fill: currentColor; }
.stage__get { display: flex; flex-direction: column; gap: 6px; padding-top: 24px; border-top: 1px solid var(--color-border-subtle); }
.stage__get-label { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--color-text-tertiary); }
.stage__get-text { font-size: 17px; line-height: 1.5; }

/* ---------- 13. Contact + форма ---------- */
.dark { background: var(--color-bg-inverse); color: var(--color-text-inverse); }
.contact {
  width: 100%; max-width: calc(var(--page-max) + max(100px, var(--pad-x)) * 2); margin-inline: auto;
  padding: 100px max(100px, var(--pad-x)) 0;
}
.contact__main { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.contact__left {
  align-self: stretch; width: 442px; flex: none;
  display: flex; flex-direction: column; justify-content: space-between; gap: 64px;
}
.contact__label { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--color-text-inverse-tertiary); }
.contact__mid { display: flex; flex-direction: column; gap: 32px; }
.contact__title { font-size: 140px; font-weight: 600; line-height: .9; letter-spacing: -.01em; }
.contact__lead { font-size: 19px; font-weight: 500; line-height: 1.5; color: var(--color-text-inverse-secondary); }

.clinks { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.clink {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-height: 32px; font-size: 19px; line-height: 1.5; color: var(--color-text-inverse);
  border-radius: 6px; text-align: left;
}
.clink__txt { text-decoration: underline transparent; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-decoration-color var(--motion-fast) var(--ease-standard); }
.clink:hover .clink__txt { text-decoration-color: currentColor; }
.clink:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.clink__ico { width: 22px; height: 22px; flex: none; fill: currentColor; }
.clink__aux { width: 18px; height: 18px; flex: none; fill: currentColor; opacity: .72; }
.clink__copied { display: none; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; }
.clink__copied svg { width: 18px; height: 18px; fill: currentColor; }
.clink.is-copied .clink__aux--copy { display: none; }
.clink.is-copied .clink__copied { display: inline-flex; animation: copied-in var(--motion-base) var(--ease-out); }
@keyframes copied-in { from { opacity: 0; transform: translateY(6px); } }

.form-card {
  width: 600px; flex: 0 1 600px; min-width: 0; /* стискається на 1200–1279 */
  display: flex; flex-direction: column; gap: 32px;
  padding: 48px; border-radius: 48px;
  background: var(--color-bg-surface); color: var(--color-text-primary);
}
.form { display: flex; flex-direction: column; gap: 32px; }
.fields { display: flex; flex-direction: column; gap: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Поле форми (Form / Line field 309:547) */
.field { display: grid; min-width: 0; }
.field__box { position: relative; border-radius: var(--radius-xl); background: var(--color-bg-page); isolation: isolate; transition: background-color var(--motion-base) var(--ease-standard); }
.field__box::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--color-bg-hover); opacity: 0; pointer-events: none; z-index: 1; transition: opacity var(--motion-base) var(--ease-standard); }
.field__box::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid var(--color-border-default); pointer-events: none; z-index: 3; transition: border-color var(--motion-fast) var(--ease-standard); }
.field__control {
  position: relative; z-index: 2; display: block; width: 100%; height: 64px; margin: 0; /* 72 → 64, 4 листопада */
  padding: 28px 24px 10px; border: 0; border-radius: inherit; background: transparent;
  color: var(--color-text-primary); caret-color: var(--color-bg-inverse);
  font: 400 17px/1.5 var(--font); outline: none;
}
textarea.field__control { height: auto; min-height: 152px; padding-top: 36px; resize: none; }
.field__label {
  position: absolute; left: 24px; right: 24px; top: 19px; z-index: 4;
  font-size: 17px; line-height: 1.5; color: var(--color-text-tertiary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transform-origin: left top; pointer-events: none;
  transition: transform var(--motion-base) var(--ease-standard);
}
.field__message { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--motion-base) var(--ease-standard); }
.field__message > span {
  overflow: hidden; min-height: 0; padding: 0 24px;
  font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--color-text-error);
  opacity: 0; transform: translateY(-4px);
  transition: opacity var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-standard), padding var(--motion-base) var(--ease-standard);
}
.field__box:hover::before { opacity: 1; }
.field__box:focus-within { background: var(--color-bg-surface); }
.field__box:focus-within::before { opacity: 0; }
.field__box:focus-within::after { border-color: var(--color-border-focus); }
.field__control:focus + .field__label,
.field__control:not(:placeholder-shown) + .field__label { transform: translateY(-11px) scale(.79); }
textarea.field__control:focus + .field__label,
textarea.field__control:not(:placeholder-shown) + .field__label { transform: translateY(-10px) scale(.79); }
.field.is-error .field__box::after { border-color: var(--color-border-error); }
.field.is-error .field__message { grid-template-rows: 1fr; }
.field.is-error .field__message > span { opacity: 1; transform: none; padding-top: 6px; transition-delay: 80ms, 80ms, 0ms; }
.form.is-busy .field { pointer-events: none; }
.form.is-busy .field__control, .form.is-busy .field__label { opacity: .45; transition: opacity var(--motion-base) var(--ease-standard); }
.field__control:-webkit-autofill { -webkit-text-fill-color: var(--color-text-primary); transition: background-color 5000s ease-in-out; }

.form__end { display: flex; flex-direction: column; gap: 24px; }
.btn--send { width: 100%; overflow: hidden; }
.btn__face {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform var(--motion-base) var(--ease-standard), opacity var(--motion-base) var(--ease-standard);
}
.btn--send { height: 64px; }
.btn__face--busy, .btn__face--sent { opacity: 0; transform: translateY(60%); }
.btn--send[aria-busy="true"] .btn__face--default, .btn--send.is-sent .btn__face--default { opacity: 0; transform: translateY(-60%); }
.btn--send[aria-busy="true"] .btn__face--busy { opacity: 1; transform: none; }
.btn--send.is-sent .btn__face--sent { opacity: 1; transform: none; }
.btn--send[aria-busy="true"], .btn--send.is-sent { cursor: default; transform: none; }
.spinner { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sent-check path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 500ms cubic-bezier(.2, .8, .2, 1) 150ms; }
.btn--send.is-sent .sent-check path { stroke-dashoffset: 0; }
.form__error { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--color-text-error); text-align: center; }
.form__error a { text-decoration: underline; text-underline-offset: 3px; }
.form__legal { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--color-text-tertiary); text-align: center; }
.form__legal a { margin-left: 4px; color: var(--color-text-primary); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 14. Футер ---------- */
.footer {
  width: 100%; max-width: calc(var(--page-max) + max(100px, var(--pad-x)) * 2); margin-inline: auto;
  padding: 100px max(100px, var(--pad-x)) 48px;
  display: flex; flex-direction: column;
}
.footer::before { content: ""; display: block; height: 1px; background: var(--color-border-inverse-subtle); margin-bottom: 32px; }
.footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px 32px; }
.footer::before { grid-column: 1 / -1; margin-bottom: 16px; }
.footer__start { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.footer__copy { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--color-text-inverse-tertiary); }
.footer__social { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__link {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--color-text-inverse-secondary);
  border-radius: 4px; transition: color var(--motion-fast) var(--ease-standard);
}
.footer__link svg { width: 22px; height: 22px; fill: currentColor; }
.footer__link:hover, .footer__link:focus-visible { color: var(--color-text-inverse); }
.footer__link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

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

/* 1200–1599: шапка ближче до краю, як у фреймах 1440/1280 */
@media (min-width: 1600px) {
  .hdr { padding-inline: 60px; }
}

/* 1024–1199 (фрейм 1024) */
@media (max-width: 1199px) {
  :root { --label-col: 160px; --pad-x: 80px; }
  .goals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .goal { min-height: 320px; }
  .stage { min-height: 444px; }
  .contact { padding-inline: 80px; }
  .footer { padding-inline: 80px; }
  .contact__left { width: 384px; }
  .contact__title { font-size: 120px; }
  .form-card { width: auto; flex: 1 1 0; max-width: 600px; }
  .hdr { padding-inline: 60px; }
  .hdr__in { grid-template-columns: auto 1fr auto; gap: 24px; }
  .nav { justify-self: center; }
  .nav__list { gap: 40px; }
}

/* < 1024: бургер і повноекранне меню (картка «Mobile menu – behaviour») */
@media (max-width: 1023px) {
  :root { --hdr-h: 71px; }
  .hdr { padding: 0 32px; }
  .hdr__in { grid-template-columns: auto 1fr auto; gap: 12px; }
  .burger { display: grid; }
  .hdr__end { grid-column: 3; gap: 20px; }
  .hdr__start { grid-column: 1; }

  .menu {
    position: fixed; inset: 0; z-index: -1;
    display: flex; flex-direction: column;
    padding: calc(var(--hdr-h) + 24px) 32px calc(32px + env(safe-area-inset-bottom, 0px));
    background: var(--color-bg-inverse); color: var(--color-text-inverse);
    overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; transform: translateY(8px);
    transition: opacity 200ms cubic-bezier(.7, 0, .84, 0), transform 200ms cubic-bezier(.7, 0, .84, 0), visibility 0s linear 200ms;
  }
  .menu-open .menu {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out), visibility 0s;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--color-border-inverse-subtle); }
  .nav__link, .hdr.is-bar .nav__link {
    display: flex; align-items: center; gap: 16px; padding: 22px 0;
    color: var(--color-text-inverse-secondary); line-height: 1;
  }
  .nav__link::after { display: none; }
  .nav__num { display: block; width: 40px; flex: none; font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--color-text-inverse-tertiary); }
  .nav__lbl { flex: 1; font-size: 52px; font-weight: 600; line-height: 1.05; letter-spacing: -.01em; }
  .hdr .nav__link[aria-current="true"], .hdr.is-bar .nav__link[aria-current="true"] { color: var(--color-text-inverse); }
  .nav__link[aria-current="true"]::before { content: ""; order: 3; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
  .nav__link:hover, .nav__link:focus-visible, .hdr.is-bar .nav__link:hover { color: var(--color-text-inverse); }
  .nav__link:focus-visible { outline-offset: -2px; }
  .menu-open .nav__list li { animation: menu-item 400ms var(--ease-out) both; animation-delay: calc(60ms + var(--n, 0) * 40ms); }
  .nav__list li:nth-child(2) { --n: 1; } .nav__list li:nth-child(3) { --n: 2; } .nav__list li:nth-child(4) { --n: 3; } .nav__list li:nth-child(5) { --n: 4; }
  @keyframes menu-item { from { opacity: 0; transform: translateY(12px); } }

  .menu__foot {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
    margin-top: auto; padding-top: 48px;
  }
  .clinks--menu { gap: 12px; }
  .menu__cta { flex: none; }

  /* Відкрите меню: шапка поверх, темна; Let's talk із шапки ховається */
  .menu-open { overflow: hidden; }
  .menu-open .hdr { position: fixed; transform: none; visibility: visible; background: transparent; color: var(--color-text-inverse); transition: none; }
  .menu-open .hdr .burger { background: var(--color-bg-overlay-inverse-strong); border-color: var(--color-border-inverse); }
  .menu-open .hdr .lang { box-shadow: inset 0 0 0 1px var(--color-border-inverse-strong); }
  .menu-open .hdr__cta { display: none; }

  /* Hero (фрейм 768) */
  .hero { min-height: max(560px, calc(100svh - 16px)); }
  .hero__body { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 64px; padding: 120px 64px 64px; }
  .hero__h1 { font-size: 52px; }
  .hero__stats { flex-direction: row; align-items: flex-start; align-self: auto; gap: 48px; text-align: left; }
  .stat { align-items: flex-start; }
}

/* Планшет 768–1023 */
@media (max-width: 1023px) {
  :root { --pad-x: 32px; --sec-y: 80px; --label-col: 120px; --block-gap: 64px; --head-gap: 64px; --sub-gap: 48px; }
  .h2 { font-size: 46px; }
  .sec__titles { gap: 8px; }
  .marquee { padding-bottom: 80px; }
  .marquee::before, .marquee::after { width: 80px; }
  .goal { min-height: 0; }

  .work__cases {
    grid-template-columns: var(--label-col) minmax(0, 1fr);
    grid-template-areas: "label title" "list list" "action action";
  }
  .work__shots { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "list" "action"; }
  .work__action { justify-self: start; margin-top: calc(48px - var(--head-gap)); }
  .work__shots .work__action { margin-top: calc(48px - var(--sub-gap)); }
  .cases { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots li:nth-child(n + 9) { display: none; }   /* у макеті 768 — 8 шотів */
  .work-cta { margin-top: 0; padding-top: 41px; }
  .work-cta__title { max-width: 360px; }

  .about__intro { gap: 48px; }
  .about__me { flex-wrap: wrap; gap: 24px 32px; }
  .avatar { width: 156px; height: 156px; border-radius: 40px; }
  .about__text { display: contents; }
  .about__title { flex: 1 1 200px; }
  .about__desc { flex: 1 1 100%; }
  .chip { padding: 10px 18px; font-size: 15px; }

  .row { grid-template-columns: var(--label-col) 220px minmax(0, 1fr); }
  .stage { min-height: 0; padding: 32px; }

  .contact { padding: 80px 32px 0; }
  .contact__main { flex-direction: column; align-items: stretch; gap: 64px; }
  .contact__left { width: auto; gap: 48px; }
  .contact__title { font-size: 120px; }
  .form-card { width: auto; max-width: none; padding: 40px; }
  .footer { padding: 80px 32px 48px; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; }
  .footer::before { justify-self: stretch; }
  .footer__start { flex-direction: column; align-items: center; gap: 8px; }
  .footer__social { justify-content: center; }

  .shot-dialog { --pad: 16px; width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .shot { grid-template-columns: 1fr; align-content: start; max-height: 100dvh; padding-top: 76px; overflow-y: auto; overscroll-behavior: contain; }
  .shot__media img { max-height: none; border-radius: 16px; }
  .shot__body { padding: 0 0 8px; margin: 0; overflow: visible; }
  .shot__actions { margin-top: 8px; }
}

/* Телефон < 768 (фрейм 420, перевірка 360) */
@media (max-width: 767px) {
  :root { --pad-x: 20px; --sec-y: 64px; --block-gap: 64px; --head-gap: 40px; --sub-gap: 40px; --hdr-h: 72px; }
  body { font-size: 17px; }
  .h2 { font-size: 38px; line-height: 1.05; }
  .h3 { font-size: 32px; }
  .lead { font-size: 17px; }

  .hdr { padding: 0 20px; }
  .hdr__in { padding: 16px 0 8px; }
  .hdr__end { gap: 12px; }
  .hdr__cta { padding: 0 14px; }
  .menu { padding: calc(var(--hdr-h) + 24px) 20px calc(32px + env(safe-area-inset-bottom, 0px)); }
  .nav__lbl { font-size: 38px; }
  .nav__link, .hdr.is-bar .nav__link { padding: 16px 0; }
  .menu__foot { flex-direction: column; align-items: stretch; padding-top: 32px; }
  .menu__cta { width: 100%; }

  .hero { min-height: max(520px, calc(100svh - 12px)); }
  .hero__body { gap: 32px; padding: 104px 32px 72px; }
  .hero__content { gap: 32px; }
  .hero__h1 { font-size: 48px; }
  .hero__sub { font-size: 16px; font-weight: 500; }
  .hero__stats { align-self: stretch; justify-content: space-between; gap: 12px; }

  .marquee { gap: 12px; padding: 64px 0; }
  .marquee__track { gap: 8px; padding-right: 8px; }
  .tag { height: auto; padding: 8px 16px; font-size: 15px; font-weight: 500; line-height: 1.4; gap: 8px; }
  .tag svg { width: 20px; height: 20px; }

  .sec__head { grid-template-columns: 1fr; row-gap: 24px; }
  .sec__titles { gap: 8px; }
  .goals { grid-template-columns: 1fr; }
  .goal { padding: 36px; gap: 64px; }

  .work__cases { grid-template-columns: 1fr; grid-template-areas: "label" "title" "list" "action"; row-gap: 0; }
  .work__label { margin-bottom: 24px; }
  .work__cases .work__list { margin-top: var(--head-gap); }
  .work__shots { row-gap: var(--sub-gap); }
  .work__cases .work__action { margin-top: 48px; }
  .case__media { height: 400px; }   /* фото кейсу на телефоні — 400, як у фреймах 420 і 360 */
  .shots { grid-template-columns: 1fr; gap: 12px; }
  .shots li:nth-child(n + 7) { display: none; }   /* у макеті 420 — 6 шотів */
  .work-cta { flex-direction: column; align-items: flex-start; gap: 32px; }
  .work-cta__title { max-width: none; }

  .avatar { width: 120px; height: 120px; border-radius: 32px; }
  .about__me { flex-wrap: wrap; gap: 24px; }
  .about__title { flex: 1 1 140px; }
  .about__intro { gap: 32px; }

  .row { grid-template-columns: 1fr; gap: 8px; padding-block: 24px; }
  .row__num { padding-top: 0; }
  .row__details { gap: 16px; }
  .stages { grid-template-columns: 1fr; }
  .stage { padding: 28px; }

  .contact { padding: 64px 20px 0; }
  .contact__main { gap: 48px; }
  .contact__left { gap: 40px; }
  .contact__title { font-size: 96px; }
  .contact__lead { font-size: 17px; }
  .clink { font-size: 17px; }
  .form-card { padding: 24px; border-radius: 32px; gap: 24px; }
  .form-card__title { font-size: 32px; }
  .field__control { height: 64px; padding: 26px 20px 10px; font-size: 16px; }
  .field__label { left: 20px; right: 20px; top: 19px; font-size: 16px; }
  textarea.field__control { min-height: 140px; padding-top: 32px; }
  .field__message > span { padding-inline: 20px; }
  .footer { padding: 64px 20px 40px; }
}

/* 360 і вужче */
@media (max-width: 399px) {
  .hdr__cta { padding: 0 12px; }
  .logo { width: 104px; height: 33px; }
  .hero__body { padding-inline: 20px; }
  .hero__h1 { font-size: 42px; }
  .stat__val { font-size: 32px; }
  .stat__cap { font-size: 14px; }
  .contact__title { font-size: 84px; }
}

/* 320: шапка щільніша, щоб не було горизонтального скролу */
@media (max-width: 359px) {
  .hdr { padding-inline: 14px; }
  .hdr__start, .hdr__end { gap: 8px; }
  .hdr__in { gap: 6px; }
  .logo { width: 90px; height: 29px; }
  .hdr__cta { padding: 0 10px; font-size: 14px; }
  .lang { width: 28px; height: 28px; }
}

/* ==========================================================================
   15b. Внутрішні сторінки — Privacy policy (Figma 475:33592)
   Desktop 343:1073 · tablet 424:4340 · mobile 424:4521.
   Шапка одразу Hero=Off (data-inner), тому вміст відступає на її висоту.
   ========================================================================== */
.legal {
  padding-top: calc(var(--hdr-h) + var(--sec-y));
  padding-bottom: var(--sec-y);
}
.legal__intro, .legal__row {
  display: grid;
  grid-template-columns: var(--label-col) minmax(0, 1fr);
  align-items: start;
}
.legal__label, .legal__num, .legal__date {
  font-size: 15px; font-weight: 500; line-height: 1.4;
  color: var(--color-text-tertiary);
}
.legal__head { display: flex; flex-direction: column; gap: 24px; }
.legal__head > *, .legal__body > * { max-width: 720px; }
.legal__lead { font-size: 19px; line-height: 1.5; color: var(--color-text-secondary); }

.legal__list { margin-top: 64px; }
.legal__row { padding-block: 32px; border-top: 1px solid var(--color-border-default); }
.legal__body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.legal__body p { font-size: 17px; line-height: 1.5; color: var(--color-text-secondary); overflow-wrap: anywhere; }
.legal__link {
  color: var(--color-text-primary);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  border-radius: 2px;
  transition: text-decoration-color var(--motion-fast) var(--ease-standard);
}
.legal__link:hover { text-decoration-thickness: 2px; }

/* Футер без форми над ним: смуга 48 px зверху (а не 100, як після Contact) */
.footer--solo { padding-top: 48px; }
/* Десктоп (Figma 475:33444, фінал 4 листопада): без лінії, 48 px зверху й знизу, Label/M 15 px,
   бічні поля — як у вмісту сторінки (--pad-x) */
@media (min-width: 1024px) {
  .footer--solo {
    max-width: calc(var(--page-max) + var(--pad-x) * 2);
    padding: 48px var(--pad-x);
  }
  .footer--solo::before { display: none; }
}

@media (max-width: 1023px) {
  .legal__head { gap: 24px; }
  .footer--solo { padding-top: 40px; }
}
@media (max-width: 767px) {
  .legal__list { margin-top: 40px; }
  .legal__head { gap: 16px; }
  .legal__row { padding-block: 24px; }
  .legal__body { gap: 12px; }
  .legal__lead { font-size: 19px; }
  .footer--solo { padding-top: 40px; }
}

/* ==========================================================================
   16. Зменшення руху: без марквізу, без нахилів; лише прості стани
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .marquee__row { animation: none !important; }
  .site-loader { display: none; }
  html.is-loading { overflow: auto; }
  html.js .hero { transition: none; }
  html.is-loading [data-site-logo], html.is-loading [data-hero-bg], html.is-loading [data-reveal] { visibility: visible; opacity: 1; transform: none; }
  .menu, .menu-open .menu { transform: none !important; }
  .menu-open .nav__list li { animation: none; }
  .shot-dialog[open], .shot-dialog[open]::backdrop, .shot-dialog.is-closing, .shot-dialog.is-closing::backdrop, .shot.is-entering { animation: none; }
  .case__media img, .btn__lbl > span, .btn__arr { transition: none; }
}
html.rm .marquee__row { animation: none; }
