/* TKACHENKO FURNITURE — стилі сайту
   Концепція: сайт як комплект креслень. Пісочний «папір» з м'якими світловими
   градієнтами, фірмовий глибокий синій як туш креслення, об'ємні кнопки й картки,
   тонкі лінії, розмірні позначки, штампи. Шрифти — як на Metal Industry. */

:root {
  /* Колір */
  --paper: #f4eee4;          /* основний фон — пісочний папір */
  --paper-hi: #fbf8f2;       /* світла точка градієнтів */
  --paper-2: #ebe2d4;        /* другий фон секцій */
  --paper-3: #ded2bf;        /* плашки, підкладки фото */
  --rule: #cbbda6;           /* тонкі лінії-розділювачі */
  --ink: #1a2030;            /* основний текст */
  --ink-2: #34405f;          /* нижня точка градієнта заголовків */
  --ink-soft: #625e57;       /* другорядний текст */
  --navy: #14295a;           /* фірмовий синій (як логотип) */
  --navy-hi: #3558a8;        /* світлий синій для градієнтів */
  --navy-2: #213b78;         /* синій при наведенні */
  --navy-deep: #0c1a3c;      /* темні секції */
  --navy-night: #070f24;     /* найтемніша точка градієнтів */
  --on-navy: #efe8dc;        /* текст на синьому */
  --on-navy-soft: #a9b3c9;   /* другорядний текст на синьому */
  --sky: #a9bdf0;            /* акцент на синьому */
  --bp-line: rgba(239, 232, 220, 0.78);  /* лінії креслення на синьому */
  --bp-faint: rgba(239, 232, 220, 0.1);  /* сітка на синьому */
  --grid: rgba(20, 41, 90, 0.06);        /* сітка на папері */
  --wood: #9c6b40;           /* теплий акцент дерева */
  --danger: #a3341f;

  /* Тіні */
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 10px 24px -14px rgba(60, 45, 20, 0.35);
  --shadow-md: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 24px 48px -26px rgba(60, 45, 20, 0.45);
  --shadow-photo: 0 34px 60px -30px rgba(30, 24, 14, 0.55), 0 8px 18px -10px rgba(30, 24, 14, 0.25);
  --shadow-deep: 0 50px 90px -40px rgba(4, 10, 28, 0.85), 0 12px 30px -12px rgba(4, 10, 28, 0.5);

  /* Шрифти (як на Metal Industry) */
  --font-display: "Exo 2", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Сітка */
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 78px;
  --section: clamp(72px, 10vw, 140px);
  --radius: 6px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
::selection { background: var(--navy); color: var(--on-navy); -webkit-text-fill-color: var(--on-navy); }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: var(--on-navy);
  padding: 10px 16px; border-radius: 4px;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Типографічні помічники ---------- */
.mono, .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.label { color: var(--ink-soft); display: inline-flex; align-items: center; gap: 12px; }
.label::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--navy), var(--navy-hi)); }
.label--plain::before { display: none; }

/* Заголовки з м'яким об'ємним градієнтом */
.h-display, .h-section {
  background: linear-gradient(180deg, var(--ink) 30%, var(--ink-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--ink);
}
.h-display {
  font-size: clamp(38px, 4.7vw, 70px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.h-section {
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.h-display em, .h-section em {
  background: linear-gradient(100deg, var(--navy) 10%, var(--navy-hi) 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section--navy .h-section {
  background: linear-gradient(180deg, #ffffff 20%, #c6cee0 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section--navy .h-section em {
  background: linear-gradient(100deg, var(--sky) 0%, #e3e9fb 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.h-card { font-size: clamp(20px, 1.7vw, 24px); font-weight: 700; line-height: 1.15; }
.lead { font-size: clamp(17px, 1.35vw, 19px); color: var(--ink-soft); max-width: 58ch; }
.text-soft { color: var(--ink-soft); }

/* ---------- Кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px;
  border: 1px solid transparent; border-radius: 999px;
  font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--navy {
  color: var(--on-navy);
  background: linear-gradient(180deg, #2c4c97 0%, var(--navy) 55%, #0f2049 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 14px 28px -12px rgba(20, 41, 90, 0.75);
}
.btn--navy:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 20px 34px -12px rgba(20, 41, 90, 0.85); }
.btn--ghost {
  color: var(--ink); border-color: rgba(26, 32, 48, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.35));
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--light {
  color: var(--navy-deep);
  background: linear-gradient(180deg, #ffffff 0%, #efe7da 100%);
  box-shadow: inset 0 -2px 0 rgba(120, 100, 70, 0.18), 0 16px 30px -14px rgba(0, 0, 0, 0.55);
}
.btn--line-light { border-color: rgba(239, 232, 220, 0.45); color: var(--on-navy); background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)); }
.btn--line-light:hover { border-color: var(--on-navy); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; color: var(--navy);
  border-bottom: 2px solid currentColor; padding-bottom: 4px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Фони: креслярська сітка + світлові градієнти ---------- */
.grid-paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(rgba(20, 41, 90, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 41, 90, 0.028) 1px, transparent 1px),
    radial-gradient(ellipse 60% 70% at 85% 15%, rgba(255, 255, 255, 0.85), transparent 70%),
    radial-gradient(ellipse 55% 60% at 5% 105%, rgba(190, 160, 115, 0.22), transparent 70%),
    linear-gradient(180deg, var(--paper-hi) 0%, var(--paper) 60%, #efe6d8 100%);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px, 100% 100%, 100% 100%, 100% 100%;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px, 0 0, 0 0, 0 0;
}
.grid-navy {
  background-color: var(--navy-deep);
  background-image:
    linear-gradient(var(--bp-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-faint) 1px, transparent 1px),
    linear-gradient(rgba(239, 232, 220, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 232, 220, 0.035) 1px, transparent 1px),
    radial-gradient(ellipse 60% 55% at 88% 0%, rgba(78, 116, 210, 0.5), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(3, 8, 22, 0.75), transparent 70%),
    linear-gradient(165deg, #16306a 0%, var(--navy-deep) 45%, var(--navy-night) 100%);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px, 100% 100%, 100% 100%, 100% 100%;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px, 0 0, 0 0, 0 0;
}

/* Кутові мітки аркуша */
.corners { position: relative; }
.corners::before, .corners::after {
  content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none;
  border-color: var(--navy); border-style: solid; opacity: 0.55;
}
.corners::before { top: -10px; left: -10px; border-width: 1px 0 0 1px; }
.corners::after { bottom: -10px; right: -10px; border-width: 0 1px 1px 0; }

/* Розмірні лінії навколо фото */
.dim { position: absolute; display: flex; align-items: center; justify-content: center; color: var(--navy); pointer-events: none; }
.dim span {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  background: var(--paper); padding: 0 8px; position: relative; z-index: 1; border-radius: 4px;
}
.dim--x { left: 0; right: 0; height: 14px; }
.dim--x::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; opacity: 0.7; }
.dim--x::after {
  content: ""; position: absolute; inset: 0;
  border-left: 1px solid currentColor; border-right: 1px solid currentColor; opacity: 0.7;
}
.dim--y { top: 0; bottom: 0; width: 14px; }
.dim--y::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: currentColor; opacity: 0.7; }
.dim--y::after {
  content: ""; position: absolute; inset: 0;
  border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; opacity: 0.7;
}
.dim--y span { writing-mode: vertical-rl; transform: rotate(180deg); padding: 8px 0; }

/* Штамп креслення */
.stamp {
  display: grid; grid-template-columns: auto auto; font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid currentColor; color: var(--navy);
  background: linear-gradient(180deg, #ffffff, var(--paper));
}
.stamp > * { padding: 6px 10px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.stamp > *:nth-child(2n) { border-right: 0; }
.stamp > *:nth-last-child(-n + 2) { border-bottom: 0; }
.stamp b { font-weight: 700; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
/* Розмиття фону — на псевдоелементі, щоб не ламати fixed-меню на мобільному */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(251, 248, 242, 0.92), rgba(244, 238, 228, 0.84));
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.header.is-scrolled { border-bottom-color: rgba(203, 189, 166, 0.7); box-shadow: 0 12px 30px -24px rgba(60, 45, 20, 0.45); }
.nav-open .header::before { background: var(--paper-hi); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo__text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo__name { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: 0.01em; color: var(--navy); }
.logo__sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.26em; text-transform: lowercase; color: var(--ink-soft); margin-top: 5px; padding-left: 0.26em; /* компенсує розрядку, щоб слово стояло точно по центру */ }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav__link { font-size: 15px; font-weight: 600; color: var(--ink); position: relative; padding: 6px 0; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--navy), var(--navy-hi));
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--navy); }
.nav__cta { display: none; }
.header__cta { flex: none; }

/* Перемикач мов UA · EN · RU */
.lang {
  display: flex; align-items: center; flex: none; padding: 3px; border: 1px solid var(--rule); border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, var(--paper)); box-shadow: var(--shadow-sm);
}
.lang__link {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em; line-height: 1;
  padding: 7px 8px; border-radius: 999px; color: var(--ink-soft); transition: color 0.2s, background 0.2s;
}
.lang__link:hover { color: var(--navy); }
.lang__link.is-active { background: linear-gradient(180deg, var(--navy-hi), var(--navy)); color: #ffffff; }
.lang--menu { display: none; }

.burger {
  display: none; width: 46px; height: 46px; border: 1px solid var(--rule); border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, var(--paper)); box-shadow: var(--shadow-sm);
  position: relative; margin-left: auto;
}
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero (головна) ---------- */
.hero { padding-block: clamp(36px, 6vw, 84px) clamp(64px, 8vw, 112px); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__materials {
  display: flex; flex-wrap: wrap; gap: 8px; padding-top: 24px; border-top: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy);
}
.hero__materials li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.4)); border: 1px solid rgba(203, 189, 166, 0.8);
  box-shadow: var(--shadow-sm);
}
.hero__materials li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-hi), var(--navy)); }

.hero__figure { position: relative; padding: 30px 0 0 30px; min-width: 0; }
.hero__figure::before {
  content: ""; position: absolute; inset: 10% -8% -12% 10%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(53, 88, 168, 0.28), transparent 65%);
  filter: blur(10px);
}
.hero__figure .dim--x { top: 0; left: 30px; }
.hero__figure .dim--y { left: 0; top: 30px; }
.hero__frame {
  position: relative; aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; background: var(--navy-deep);
  border-radius: var(--radius); box-shadow: var(--shadow-deep);
}
.hero__frame > img { width: 100%; height: 100%; object-fit: cover; }
.hero__bp {
  position: absolute; inset: 0; color: var(--bp-line);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.5s var(--ease-out);
}
.hero__bp svg { width: 100%; height: 100%; }
.hero__frame.is-photo .hero__bp { clip-path: inset(0 0 0 100%); }
.hero__scan {
  position: absolute; top: 0; bottom: 0; width: 2px; left: 0; background: var(--on-navy);
  box-shadow: 0 0 22px 4px rgba(169, 189, 240, 0.7); opacity: 0; pointer-events: none;
}
.hero__frame.is-photo .hero__scan { animation: scan 1.5s var(--ease-out) forwards; }
@keyframes scan { 0% { left: 0; opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

.hero__toggle {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; border: 1px solid rgba(239, 232, 220, 0.5); border-radius: 999px; overflow: hidden;
  background: rgba(12, 26, 60, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero__toggle button {
  border: 0; background: transparent; color: var(--on-navy); padding: 8px 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.hero__toggle button[aria-pressed="true"] { background: linear-gradient(180deg, #ffffff, #e8dfd0); color: var(--navy-deep); }
.hero__stamp { position: absolute; right: -1px; bottom: -1px; z-index: 2; border-radius: 6px 0 var(--radius) 0; overflow: hidden; }

/* ---------- Біжучий рядок ---------- */
.marquee {
  border-block: 1px solid var(--rule); overflow: hidden; padding-block: 20px;
  background: linear-gradient(180deg, #fbf7f0 0%, var(--paper-2) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item {
  font-family: var(--font-display); font-size: clamp(20px, 2.3vw, 30px); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  padding-inline: 28px; white-space: nowrap;
  background: linear-gradient(180deg, var(--ink) 30%, #55617f 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.marquee__sep { width: 10px; height: 10px; border-radius: 2px; transform: rotate(45deg); flex: none; background: linear-gradient(135deg, var(--navy-hi), var(--navy)); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Секції ---------- */
.section { padding-block: var(--section); position: relative; }
.section:not(.section--alt):not(.section--navy) {
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(255, 255, 255, 0.7), transparent 70%),
    radial-gradient(ellipse 45% 40% at 0% 100%, rgba(203, 180, 140, 0.16), transparent 70%),
    var(--paper);
}
.section--alt {
  background:
    radial-gradient(ellipse 60% 50% at 15% 0%, rgba(255, 255, 255, 0.55), transparent 70%),
    linear-gradient(180deg, #efe7da 0%, var(--paper-2) 55%, #e5dac8 100%);
  border-block: 1px solid rgba(203, 189, 166, 0.6);
}
.section--navy { color: var(--on-navy); }
.section--navy .label { color: var(--on-navy-soft); }
.section--navy .label::before { background: linear-gradient(90deg, var(--sky), #ffffff); }
.section--navy .lead { color: var(--on-navy-soft); }

.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head__main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.section-head .lead { justify-self: start; }
.section-head > .link-arrow { justify-self: end; }

/* ---------- Для кого ---------- */
.audience { border-top: 1px solid var(--rule); position: relative; }
.audience__row {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.1fr) 44px;
  align-items: center; gap: 24px; padding: 26px 16px; border-bottom: 1px solid var(--rule);
  position: relative; transition: color 0.3s;
}
.audience__row::before {
  content: ""; position: absolute; inset: 0; border-radius: 14px; z-index: 0;
  background: radial-gradient(ellipse 50% 120% at 90% 0%, rgba(78, 116, 210, 0.55), transparent 70%), linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%);
  box-shadow: var(--shadow-deep);
  opacity: 0; transform: scale(0.98); transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.audience__row > * { position: relative; z-index: 1; }
.audience__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.audience__name { font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 46px); font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; }
.audience__text { color: var(--ink-soft); font-size: 15.5px; max-width: 46ch; }
.audience__arrow {
  width: 44px; height: 44px; padding: 11px; border-radius: 50%; color: var(--navy);
  background: linear-gradient(180deg, #ffffff, var(--paper)); box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .audience__row:hover::before { opacity: 1; transform: none; }
  .audience__row:hover { color: var(--on-navy); }
  .audience__row:hover .audience__tag,
  .audience__row:hover .audience__text { color: var(--on-navy-soft); }
  .audience__row:hover .audience__arrow { transform: rotate(-45deg); }
}

/* ---------- Креслення → Виріб ---------- */
.ba-section { overflow: hidden; }
.ba { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.ba__stage { position: relative; min-width: 0; }
.ba__panel[hidden] { display: none !important; }
.ba__frame {
  position: relative; aspect-ratio: 5 / 4; max-width: 100%; overflow: hidden; background: var(--paper-3);
  touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none;
  --pos: 50%;
  border-radius: var(--radius);
  outline: 1px solid rgba(239, 232, 220, 0.22); outline-offset: 10px;
  box-shadow: var(--shadow-deep);
}
.ba__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__drawing {
  position: absolute; inset: 0; color: var(--bp-line);
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba__drawing svg { width: 100%; height: 100%; }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; z-index: 3;
  border: 0; padding: 0; background: transparent;
}
.ba__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--on-navy); box-shadow: 0 0 16px rgba(169, 189, 240, 0.8); }
.ba__knob {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 60px; height: 60px; border-radius: 50%; color: var(--navy-deep);
  background: radial-gradient(circle at 35% 28%, #ffffff 0%, #f1ebe0 55%, #d9cdb9 100%);
  display: grid; place-items: center;
  box-shadow: inset 0 -2px 3px rgba(120, 100, 70, 0.25), 0 14px 30px -8px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(239, 232, 220, 0.16);
  transition: transform 0.25s var(--ease);
}
.ba__knob svg { width: 26px; height: 26px; }
.ba__frame:hover .ba__knob, .ba__handle:focus-visible .ba__knob { transform: translate(-50%, -50%) scale(1.08); }
.ba__handle:focus-visible { outline: none; }
.ba__handle:focus-visible .ba__knob { outline: 2px solid var(--on-navy); outline-offset: 4px; }
.ba__tag { display: none; }
.ba__hint { margin-top: 28px; display: flex; align-items: center; gap: 12px; color: var(--on-navy-soft); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.ba__hint svg { width: 22px; height: 22px; }

.ba__side { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.ba__tabs { display: flex; flex-direction: column; gap: 8px; }
.ba__tab {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px;
  border: 1px solid rgba(239, 232, 220, 0.12); border-radius: 14px; color: var(--on-navy-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  text-align: left; padding: 16px 18px; transition: color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.ba__tab-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; }
.ba__tab-name { font-family: var(--font-display); font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; line-height: 1.15; }
.ba__tab-dim { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; opacity: 0; transition: opacity 0.3s; }
.ba__tab:hover { color: var(--on-navy); border-color: rgba(239, 232, 220, 0.3); }
.ba__tab[aria-selected="true"] {
  color: var(--navy-deep); border-color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #ebe2d4 100%);
  box-shadow: inset 0 -2px 0 rgba(120, 100, 70, 0.15), 0 18px 34px -16px rgba(0, 0, 0, 0.7);
}
.ba__tab[aria-selected="true"] .ba__tab-dim { opacity: 1; }
.ba__note { color: var(--on-navy-soft); font-size: 15px; }

/* ---------- Анімація креслень ----------
   Довжину кожної лінії (--len) рахує main.js; без JS лінії просто видно. */
.js .draw .ln { stroke-dasharray: var(--len, 0) var(--len, 0); }
.js .draw.is-pending .ln { stroke-dashoffset: var(--len, 0); }
.draw.is-drawn .ln { animation: draw-line 2.4s var(--ease-out) both; }
.draw .fade { transition: opacity 1s var(--ease) 1s; }
.js .draw.is-pending .fade { opacity: 0; }
@keyframes draw-line { from { stroke-dashoffset: var(--len, 0); } to { stroke-dashoffset: 0; } }

/* Стилі ліній у SVG-кресленнях (товщини задаються змінними на самому svg) */
.bp-svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.bp-svg .o { stroke-width: var(--o, 1.6); }        /* видимий контур */
.bp-svg .t { stroke-width: var(--t, 0.8); }        /* тонка лінія */
.bp-svg .h { stroke-width: var(--t, 0.8); stroke-dasharray: calc(var(--t, 0.8) * 7) calc(var(--t, 0.8) * 6); opacity: 0.75; } /* невидимий контур */
.bp-svg .c { stroke-width: var(--t, 0.8); stroke-dasharray: calc(var(--t, 0.8) * 22) calc(var(--t, 0.8) * 5) calc(var(--t, 0.8) * 2) calc(var(--t, 0.8) * 5); opacity: 0.55; } /* осьова */
.bp-svg .d { stroke-width: var(--t, 0.8); opacity: 0.85; } /* розмірна */
.bp-svg .tx { fill: currentColor; stroke: none; font-family: var(--font-mono); font-size: var(--tx, 13px); letter-spacing: 0.05em; }
.bp-svg .tx-s { font-size: var(--tx-s, 11px); }
.bp-svg .tx-l { font-size: var(--tx-l, 15px); }
.bp-svg .tx-title { fill: currentColor; stroke: none; font-family: var(--font-display); font-weight: 600; font-size: var(--tx-title, 30px); }
.bp-svg .fill-soft { fill: currentColor; stroke: none; opacity: 0.1; }

/* ---------- Матеріали ---------- */
.materials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.material {
  display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 2.6vw, 36px); min-width: 0;
  border-radius: var(--radius-lg); border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.35) 100%);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.material:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 34px 60px -30px rgba(60, 45, 20, 0.55); }
.material__fig {
  width: 104px; height: 104px; padding: 12px; color: var(--navy); border-radius: 18px;
  background:
    linear-gradient(rgba(20, 41, 90, 0.06) 1px, transparent 1px) 0 0 / 13px 13px,
    linear-gradient(90deg, rgba(20, 41, 90, 0.06) 1px, transparent 1px) 0 0 / 13px 13px,
    linear-gradient(180deg, #ffffff, #efe7da);
  box-shadow: inset 0 0 0 1px rgba(203, 189, 166, 0.6), 0 10px 20px -14px rgba(60, 45, 20, 0.5);
}
.material__head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.material__head .material__spec { order: -1; }
.material__spec { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); white-space: nowrap; }
.material p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Проєкти (вибрані на головній) ---------- */
.works-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.work-card { position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.work-card__img { position: relative; overflow: hidden; background: var(--paper-3); max-width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-photo); }
.work-card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(12, 26, 60, 0.35)); pointer-events: none; }
.work-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.work-card:hover .work-card__img img { transform: scale(1.05); }
.work-card__meta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.work-card__title { font-family: var(--font-display); font-size: clamp(19px, 1.6vw, 23px); font-weight: 700; line-height: 1.2; }
.work-card__cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); white-space: nowrap; }
.work-card--a { grid-column: 1 / span 7; }
.work-card--a .work-card__img { aspect-ratio: 4 / 3; }
.work-card--b { grid-column: 9 / span 4; margin-top: clamp(40px, 8vw, 120px); }
.work-card--b .work-card__img { aspect-ratio: 3 / 4; }
.work-card--c { grid-column: 1 / span 4; }
.work-card--c .work-card__img { aspect-ratio: 3 / 4; }
.work-card--d { grid-column: 6 / span 7; margin-top: clamp(0px, 4vw, 60px); }
.work-card--d .work-card__img { aspect-ratio: 16 / 10; }

/* ---------- Дизайнерам ---------- */
.designers { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.designers__visual { position: relative; padding: 0 0 30px 30px; min-width: 0; }
.designers__visual .dim--y { left: 0; top: 0; bottom: 30px; }
.designers__visual .dim--x { bottom: 0; left: 30px; }
.designers__img { aspect-ratio: 4 / 5; overflow: hidden; max-width: 100%; background: var(--paper-3); border-radius: var(--radius); box-shadow: var(--shadow-photo); }
.designers__img img { width: 100%; height: 100%; object-fit: cover; }
.designers__copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.checklist { display: flex; flex-direction: column; gap: 10px; }
.checklist li {
  display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; padding: 14px 18px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.35)); box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.checklist svg {
  width: 30px; height: 30px; padding: 6px; border-radius: 50%; color: var(--on-navy);
  background: radial-gradient(circle at 35% 28%, var(--navy-hi), var(--navy) 70%);
}

/* ---------- Аркуш креслення (етапи, технологічна карта) ---------- */
.sheet {
  position: relative; padding: clamp(18px, 2.4vw, 32px); padding-bottom: clamp(64px, 6vw, 76px);
  border: 1px solid rgba(20, 41, 90, 0.38); border-radius: 4px;
  outline: 1px solid rgba(20, 41, 90, 0.16); outline-offset: 8px;
  background:
    linear-gradient(rgba(20, 41, 90, 0.05) 1px, transparent 1px) -1px -1px / 96px 96px,
    linear-gradient(90deg, rgba(20, 41, 90, 0.05) 1px, transparent 1px) -1px -1px / 96px 96px,
    linear-gradient(rgba(20, 41, 90, 0.025) 1px, transparent 1px) -1px -1px / 24px 24px,
    linear-gradient(90deg, rgba(20, 41, 90, 0.025) 1px, transparent 1px) -1px -1px / 24px 24px,
    radial-gradient(ellipse 60% 70% at 20% 0%, rgba(255, 255, 255, 0.95), transparent 70%),
    linear-gradient(170deg, #fdfaf5 0%, #f4ede2 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 40px 80px -44px rgba(60, 45, 20, 0.5);
}
.sheet::before, .sheet::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; border: 0 solid var(--navy);
}
.sheet::before { top: -14px; left: -14px; border-width: 1.5px 0 0 1.5px; }
.sheet::after { bottom: -14px; right: -14px; border-width: 0 1.5px 1.5px 0; }
.sheet__stamp { position: absolute; right: -1px; bottom: -1px; border-radius: 0 0 4px 0; }
.sheet__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-bottom: 16px; margin-bottom: 8px;
  border-bottom: 1px solid rgba(20, 41, 90, 0.2);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy);
}

/* Розмірний ланцюжок над етапами */
.chain { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 4px 0 18px; color: var(--navy); }
.chain::after { /* засічка в кінці ланцюжка */
  content: ""; position: absolute; right: -5px; top: 50%; width: 11px; height: 1px; background: currentColor; transform: rotate(-45deg);
}
.chain__seg { position: relative; height: 22px; display: flex; align-items: center; justify-content: center; }
.chain__seg::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; opacity: 0.55; }
.chain__seg::after { /* засічка на початку кожного відрізка */
  content: ""; position: absolute; left: -5px; top: 50%; width: 11px; height: 1px; background: currentColor; transform: rotate(-45deg);
}
.chain__seg > span {
  position: relative; z-index: 1; padding: 0 10px; border-radius: 4px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  background: #fbf7f1;
}

/* Етапи (головна) */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.step {
  display: flex; flex-direction: column; gap: 12px; min-width: 0; position: relative;
  padding: 4px clamp(12px, 1.4vw, 20px) 0;
}
.step + .step { border-left: 1px dashed rgba(20, 41, 90, 0.22); }
.step__fig {
  aspect-ratio: 16 / 10; max-width: 100%; color: var(--navy); margin-bottom: 6px; border-radius: 12px; padding: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.35));
  box-shadow: inset 0 0 0 1px rgba(20, 41, 90, 0.12), 0 14px 26px -18px rgba(60, 45, 20, 0.5);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.step__fig svg { width: 100%; height: 100%; }
.step:hover .step__fig { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(20, 41, 90, 0.25), 0 22px 34px -20px rgba(60, 45, 20, 0.6); }
.step h3 { font-size: 21px; font-weight: 700; }
.step p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.step__pos { margin-top: auto; padding-top: 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); opacity: 0.7; }
.bp-svg .dot { fill: currentColor; stroke: none; }

/* ---------- Блок заявки ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.cta__copy { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.cta__contacts { display: flex; flex-direction: column; gap: 10px; }
.cta__contacts a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4)); border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cta__contacts a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cta__contacts small { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.cta__contacts span { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--navy); }

/* ---------- Картка форми: окремий «бланк» ---------- */
.form-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-width: 0;
  background: linear-gradient(170deg, #fffdf9 0%, #f6f0e6 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 50px 90px -40px rgba(30, 24, 14, 0.55), 0 14px 30px -18px rgba(30, 24, 14, 0.35);
}
.form-card__head {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: clamp(22px, 3vw, 32px) clamp(22px, 3.5vw, 44px); color: var(--on-navy); overflow: hidden;
  background:
    linear-gradient(rgba(239, 232, 220, 0.08) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(239, 232, 220, 0.08) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(ellipse 70% 120% at 100% 0%, rgba(78, 116, 210, 0.55), transparent 70%),
    linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.form-card__head-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-card__head .mono { color: var(--sky); font-size: 11px; }
.form-card__title { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; color: #ffffff; }
.form-card__icon { width: 64px; height: 64px; flex: none; color: var(--on-navy); opacity: 0.9; }
/* Тіло бланка — креслярський папір: ледь помітна сітка, рамка й бліде креслення */
.form-card__body {
  position: relative; isolation: isolate; padding: clamp(26px, 3.8vw, 48px);
  background:
    linear-gradient(rgba(20, 41, 90, 0.045) 1px, transparent 1px) -1px -1px / 96px 96px,
    linear-gradient(90deg, rgba(20, 41, 90, 0.045) 1px, transparent 1px) -1px -1px / 96px 96px,
    linear-gradient(rgba(20, 41, 90, 0.022) 1px, transparent 1px) -1px -1px / 24px 24px,
    linear-gradient(90deg, rgba(20, 41, 90, 0.022) 1px, transparent 1px) -1px -1px / 24px 24px;
}
.form-card__body::before { /* внутрішня рамка аркуша */
  content: ""; position: absolute; inset: 12px; border: 1px solid rgba(20, 41, 90, 0.14); border-radius: 12px; pointer-events: none; z-index: -1;
}
.form-card__bg {
  position: absolute; right: 18px; bottom: 18px; width: min(68%, 440px); height: auto; color: var(--navy);
  opacity: 0.11; pointer-events: none; z-index: -1;
}

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; position: relative; counter-reset: fld; }
.form__field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form__field--full { grid-column: 1 / -1; }
.form__field label:not(.form__file) { display: flex; align-items: baseline; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
/* Позиційні номери полів, як на кресленні */
.form__field:has(label:not(.form__file)) { counter-increment: fld; }
.form__field label:not(.form__file)::after {
  content: "Поз. " counter(fld, decimal-leading-zero); margin-left: auto;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); opacity: 0.6;
}

/* Штамп унизу бланка */
.form__stamp {
  grid-column: 1 / -1; display: grid; grid-template-columns: 0.7fr 1.4fr 0.9fr;
  border: 1px solid rgba(20, 41, 90, 0.4); background: rgba(255, 255, 255, 0.7);
}
.form__stamp > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; min-width: 0; }
.form__stamp > div + div { border-left: 1px solid rgba(20, 41, 90, 0.25); }
.form__stamp small { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.form__stamp span { font-family: var(--font-mono); font-size: 12.5px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form__field label .req { color: var(--navy-hi); }
.form input:not([type="file"]):not([type="checkbox"]), .form select, .form textarea {
  width: 100%; border: 1px solid #ddd1bd; border-radius: 12px; outline: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(251, 248, 243, 0.72) 100%);
  box-shadow: inset 0 2px 4px rgba(60, 45, 20, 0.06);
  padding: 14px 16px; font-size: 16px; color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' fill='none' stroke='%2314295a' stroke-width='1.6'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E"), linear-gradient(180deg, #ffffff 0%, #fbf8f3 100%);
  background-repeat: no-repeat, no-repeat; background-position: right 16px center, 0 0; background-size: auto, 100% 100%;
  padding-right: 44px;
}
.form textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: #c9b99e; }
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--navy); box-shadow: inset 0 2px 4px rgba(60, 45, 20, 0.04), 0 0 0 4px rgba(53, 88, 168, 0.15);
}
.form ::placeholder { color: rgba(98, 94, 87, 0.55); }
.form__file {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer;
  border: 1.5px dashed #c9b99e; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(235, 226, 212, 0.45));
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.form__file:hover { border-color: var(--navy); background: linear-gradient(180deg, #ffffff, rgba(235, 226, 212, 0.6)); }
.form__file svg {
  width: 42px; height: 42px; padding: 10px; flex: none; border-radius: 12px; color: var(--on-navy);
  background: radial-gradient(circle at 35% 28%, var(--navy-hi), var(--navy) 70%); box-shadow: 0 8px 16px -8px rgba(20, 41, 90, 0.7);
}
.form__file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.form__file-text { font-size: 14.5px; color: var(--ink-soft); min-width: 0; overflow-wrap: anywhere; }
.form__file-text b { color: var(--ink); font-weight: 700; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 6px; }
.form__note { font-size: 13px; color: var(--ink-soft); max-width: 40ch; }
.form__error { grid-column: 1 / -1; color: var(--danger); font-size: 15px; padding: 12px 16px; border: 1px solid currentColor; border-radius: 12px; background: rgba(163, 52, 31, 0.06); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__success { display: none; grid-column: 1 / -1; flex-direction: column; gap: 14px; padding-block: 24px; }
.form__success h3 { font-size: 34px; font-weight: 700; color: var(--navy); }
.form__success p { color: var(--ink-soft); }
.form.is-sent > *:not(.form__success) { display: none; }
.form.is-sent .form__success { display: flex; }

/* ---------- Футер ---------- */
.footer {
  color: var(--on-navy); padding-top: clamp(64px, 8vw, 110px); overflow: hidden;
  background:
    radial-gradient(ellipse 50% 60% at 85% 0%, rgba(78, 116, 210, 0.35), transparent 70%),
    linear-gradient(170deg, #12285c 0%, var(--navy-deep) 40%, var(--navy-night) 100%);
}
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 56px; }
.footer__brand { display: flex; flex-direction: column; gap: 20px; }
.footer__brand p { color: var(--on-navy-soft); font-size: 15px; max-width: 34ch; }
.footer .logo__name { color: #ffffff; }
.footer .logo__sub { color: var(--on-navy-soft); }
.footer__col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); font-weight: 500; margin-bottom: 18px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--on-navy); transition: opacity 0.2s; }
.footer__col a:hover { opacity: 0.7; }
/* Велике слово-логотип у футері: SVG сам підганяє розмір під ширину екрана */
.footer__word { margin-bottom: clamp(14px, 2vw, 26px); user-select: none; line-height: 0; }
.footer__word svg { display: block; width: 100%; height: auto; font-family: var(--font-display); font-weight: 800; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px;
  border-top: 1px solid rgba(239, 232, 220, 0.14);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-navy-soft);
}

/* ---------- Плаваюча кнопка Telegram ---------- */
.fab {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; color: var(--on-navy);
  background: radial-gradient(circle at 35% 28%, #4669be 0%, var(--navy) 60%, var(--navy-deep) 100%);
  display: grid; place-items: center;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 18px 34px -10px rgba(12, 26, 60, 0.65), 0 0 0 6px rgba(20, 41, 90, 0.1);
  transition: transform 0.3s var(--ease);
}
.fab:hover { transform: translateY(-3px); }
.fab svg { width: 26px; height: 26px; }

/* ---------- Шапка внутрішніх сторінок ---------- */
.page-head { padding-block: clamp(48px, 7vw, 100px) clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--rule); position: relative; overflow: hidden; }
.page-head__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; }
.page-head__copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.crumbs { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--navy); }
.page-head__fig {
  color: var(--navy); justify-self: end; width: 100%; max-width: 400px; padding: 18px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: var(--shadow-md);
}
.page-head__fig svg { width: 100%; height: auto; }

/* ---------- Портфоліо ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  border: 1px solid rgba(203, 189, 166, 0.9); border-radius: 999px; padding: 11px 20px; font-size: 14px; font-weight: 600;
  background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.45)); box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.filter-btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.filter-btn.is-active {
  color: var(--on-navy); border-color: transparent;
  background: linear-gradient(180deg, #2c4c97 0%, var(--navy) 55%, #0f2049 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 24px -12px rgba(20, 41, 90, 0.75);
}
.gallery { columns: 3; column-gap: clamp(16px, 2vw, 28px); }
.gallery .work {
  display: flex; flex-direction: column; gap: 14px; cursor: zoom-in; border: 0; background: none; padding: 0;
  text-align: left; width: 100%; break-inside: avoid; margin-bottom: clamp(26px, 3vw, 42px); color: var(--ink);
}
.gallery .work.is-hidden { display: none; }
.gallery .work--tall .work__img { aspect-ratio: 3 / 4; }
.work__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); position: relative; max-width: 100%; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-photo); }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.work:hover .work__img img { transform: scale(1.05); }
.work__cap { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; width: 100%; }
.work__title { font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.2; }
.work__cap > span:last-child { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); white-space: nowrap; }

/* ---------- Проєкти: картки ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.project-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden; color: var(--ink);
  border-radius: var(--radius-lg); border: 1px solid rgba(20, 41, 90, 0.16);
  background: linear-gradient(170deg, #fdfaf5 0%, #f4ede2 100%); box-shadow: var(--shadow-md);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 40px 70px -34px rgba(60, 45, 20, 0.55); }
.project-card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.project-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.project-card:hover .project-card__img img { transform: scale(1.04); }
.project-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: clamp(20px, 2.4vw, 32px); }
.project-card__top {
  display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid rgba(20, 41, 90, 0.16);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy);
}
.project-card__title { font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 44px); font-weight: 700; line-height: 1.05; color: var(--navy); }
.project-card__loc { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--ink-soft); }
.project-card__made { color: var(--ink-soft); font-size: 15px; max-width: 46ch; }
.project-card .link-arrow { margin-top: auto; padding-top: 10px; }
.project-card--next { border-style: dashed; border-color: rgba(20, 41, 90, 0.35); background: rgba(255, 255, 255, 0.35); box-shadow: none; }
.project-card__plan {
  display: block; aspect-ratio: 4 / 3; color: var(--navy); border-bottom: 1px dashed rgba(20, 41, 90, 0.3);
  background:
    linear-gradient(rgba(20, 41, 90, 0.05) 1px, transparent 1px) -1px -1px / 24px 24px,
    linear-gradient(90deg, rgba(20, 41, 90, 0.05) 1px, transparent 1px) -1px -1px / 24px 24px;
}
.project-card__plan svg { width: 100%; height: 100%; }

/* ---------- Сторінка проєкту ---------- */
.passport {
  justify-self: end; width: 100%; max-width: 420px; padding: clamp(18px, 2vw, 26px);
  border: 1px solid rgba(20, 41, 90, 0.38); border-radius: 4px; outline: 1px solid rgba(20, 41, 90, 0.16); outline-offset: 6px;
  background: linear-gradient(170deg, #fdfaf5 0%, #f4ede2 100%); box-shadow: var(--shadow-md);
}
.passport__head {
  display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid rgba(20, 41, 90, 0.25);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy);
}
.passport dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(20, 41, 90, 0.12); }
.passport dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.passport dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.passport dd { margin: 0; font-weight: 600; color: var(--ink); }
.passport dd a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.project-cover { margin: 0; }
.project-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 60%; border-radius: var(--radius-lg); box-shadow: var(--shadow-photo); background: var(--paper-3); }
.project-cover figcaption { margin-top: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.project-made { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; margin-top: clamp(56px, 8vw, 110px); }
.project-made__copy { display: flex; flex-direction: column; gap: 22px; }
.project-made__text { color: var(--ink-soft); font-size: 16.5px; max-width: 52ch; }
.project-made__text + .project-made__text { margin-top: -8px; }
.project-made .spec { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 900px) {
  .projects-grid, .project-made { grid-template-columns: minmax(0, 1fr); }
  .passport { justify-self: start; }
  .project-cover img { aspect-ratio: 4 / 3; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: radial-gradient(ellipse at center, rgba(20, 41, 90, 0.92), rgba(7, 15, 36, 0.97));
  align-items: center; justify-content: center; padding: 60px 70px;
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; gap: 14px; max-width: 100%; max-height: 100%; }
.lightbox img { max-height: calc(100vh - 160px); width: auto; max-width: 100%; object-fit: contain; border-radius: var(--radius); box-shadow: var(--shadow-deep); }
.lightbox figcaption { color: var(--on-navy); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.lightbox button {
  position: absolute; border: 1px solid rgba(239, 232, 220, 0.4); color: var(--on-navy);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
}
.lightbox button:hover { background: var(--on-navy); color: var(--navy-deep); }
.lightbox button svg { width: 20px; height: 20px; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Послуги ---------- */
.products { display: flex; flex-direction: column; gap: 14px; }
.product {
  display: grid; grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1.3fr) 160px; gap: 32px; align-items: center;
  padding: 28px 32px; border-radius: var(--radius-lg); border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.3) 100%);
  box-shadow: var(--shadow-md); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.product:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 34px 60px -30px rgba(60, 45, 20, 0.55); }
.product__num {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--navy);
  background: radial-gradient(circle at 35% 28%, #ffffff 0%, #f3ece1 55%, #e2d6c3 100%);
  box-shadow: inset 0 0 0 1px rgba(20, 41, 90, 0.3), 0 10px 18px -10px rgba(60, 45, 20, 0.5);
}
.product h3 { font-size: clamp(22px, 2.3vw, 32px); font-weight: 700; }
.product p { color: var(--ink-soft); font-size: 15.5px; }
.product__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.product__tags li { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--rule); border-radius: 999px; padding: 4px 10px; color: var(--navy); background: rgba(255, 255, 255, 0.6); }
.product__fig {
  width: 160px; height: 116px; padding: 8px; color: var(--navy); justify-self: end; border-radius: 16px;
  background:
    linear-gradient(rgba(20, 41, 90, 0.06) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(90deg, rgba(20, 41, 90, 0.06) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(180deg, #ffffff, #efe7da);
  box-shadow: inset 0 0 0 1px rgba(203, 189, 166, 0.6);
}

.mat-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.mat-photo { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mat-photo__img { aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-3); max-width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-photo); }
.mat-photo__img img { width: 100%; height: 100%; object-fit: cover; }
.mat-photo h3 { font-size: 22px; font-weight: 700; }
.mat-photo p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Процес (сторінка) ---------- */
.timeline { display: flex; flex-direction: column; }
.tl-item {
  display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 48px); align-items: start;
  padding-block: clamp(28px, 3.5vw, 44px); border-bottom: 1px dashed rgba(20, 41, 90, 0.22);
}
.tl-item:last-child { border-bottom: 0; }
.tl-item__fig {
  aspect-ratio: 16 / 10; color: var(--navy); border-radius: 14px; padding: 8px; max-width: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4));
  box-shadow: inset 0 0 0 1px rgba(20, 41, 90, 0.14), 0 18px 30px -20px rgba(60, 45, 20, 0.55);
}
.tl-item__fig svg { width: 100%; height: 100%; }
.tl-item__main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tl-item__main .label { color: var(--navy); }
.tl-item__main h3 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; }
.tl-item__main p { color: var(--ink-soft); }

/* Специфікація — таблиця як на кресленні */
.spec {
  width: 100%; border-collapse: collapse; align-self: start; font-size: 15px; min-width: 0;
  background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1px rgba(20, 41, 90, 0.35);
}
.spec th, .spec td { border: 1px solid rgba(20, 41, 90, 0.22); padding: 10px 14px; text-align: left; vertical-align: top; }
.spec th {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy);
  background: linear-gradient(180deg, rgba(20, 41, 90, 0.07), rgba(20, 41, 90, 0.03));
}
.spec td:first-child, .spec th:first-child { width: 64px; font-family: var(--font-mono); font-size: 12.5px; color: var(--navy); text-align: center; }
.spec tbody tr { transition: background 0.25s var(--ease); }
.spec tbody tr:hover { background: rgba(53, 88, 168, 0.06); }

.need { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.need__card {
  padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; min-width: 0; border-radius: var(--radius-lg);
  border: 1px solid rgba(239, 232, 220, 0.14);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.need__card svg {
  width: 64px; height: 64px; padding: 12px; border-radius: 16px; color: var(--navy-deep);
  background: radial-gradient(circle at 35% 28%, #ffffff, #e6dccb 75%);
}
.need__card h3 { font-size: 22px; font-weight: 700; color: #ffffff; }
.need__card p { color: var(--on-navy-soft); font-size: 15.5px; }

/* ---------- Контакти ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 10px; }
.contact-item {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 22px; align-items: center; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4)); border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
a.contact-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.contact-item small { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.contact-item__value { font-family: var(--font-display); font-size: clamp(20px, 2vw, 26px); font-weight: 700; line-height: 1.2; color: var(--navy); overflow-wrap: anywhere; }
.contact-item svg { width: 22px; height: 22px; color: var(--navy); transition: transform 0.3s var(--ease); }
a.contact-item:hover svg { transform: translate(3px, -3px); }
.copy-btn { border: 1px solid var(--rule); background: linear-gradient(180deg, #ffffff, var(--paper)); border-radius: 999px; padding: 6px 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.copy-btn:hover { border-color: var(--navy); color: var(--navy); }

/* ---------- Поява при скролі ---------- */
.reveal.is-pending { opacity: 0; transform: translateY(26px); }
.reveal { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease-out); }

/* ---------- Адаптивність ---------- */
@media (max-width: 1100px) {
  .nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; padding: 32px var(--gutter);
    background: radial-gradient(ellipse 80% 50% at 100% 0%, rgba(255, 255, 255, 0.9), transparent 70%), var(--paper);
    opacity: 0; visibility: hidden; transform: translateY(-12px); pointer-events: none; overflow-y: auto;
    transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity 0.35s var(--ease), transform 0.45s var(--ease); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 700; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav__link::after { display: none; }
  .nav__cta { display: flex; margin-top: 28px; }
  .burger { display: block; }
  .header__cta { display: none; }
  .header__inner > .lang { display: none; }
  .lang--menu { display: flex; margin-top: 16px; padding: 4px; }
  .lang--menu .lang__link { flex: 1; text-align: center; padding: 14px 0; font-size: 14px; }
  .nav-open { overflow: hidden; }

  .hero__grid { grid-template-columns: 1fr; }
  .ba { grid-template-columns: minmax(0, 1fr); }
  .ba__side { display: contents; }
  .ba__tabs { order: -1; }
  .ba__note, .ba__side > .btn { order: 1; }
  .ba__side > .btn { justify-self: start; }
  .ba__tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 12px; }
  .ba__tabs::-webkit-scrollbar { display: none; }
  .ba__tab { grid-template-columns: auto; border-radius: 999px; padding: 10px 18px; flex: none; }
  .ba__tab-num, .ba__tab-dim { display: none; }
  .ba__tab-name { font-size: 16px; }
  .materials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chain { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 24px; row-gap: 8px; padding: 22px 0; }
  .step + .step { border-left: 0; border-top: 1px dashed rgba(20, 41, 90, 0.22); }
  .step__fig { grid-row: 1 / 4; margin: 0; }
  .step__pos { padding-top: 0; }
  .tl-item { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
  .spec { grid-column: 2; }

  .cta, .contact-grid, .designers { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .product { grid-template-columns: 52px minmax(0, 1fr) 120px; padding: 24px; }
  .product__desc { grid-column: 2 / -1; }
  .product__fig { grid-row: 1; grid-column: 3; width: 120px; height: 90px; }
  .mat-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .need { grid-template-columns: 1fr; }
  .gallery { columns: 2; }
  .page-head__grid { grid-template-columns: 1fr; }
  .page-head__fig { justify-self: start; max-width: 320px; }
}

@media (max-width: 760px) {
  :root { --header-h: 66px; --radius-lg: 18px; }
  body { font-size: 16px; }
  .btn { white-space: normal; text-align: center; padding-block: 12px; }
  .logo__name { font-size: 21px; }
  .section-head { grid-template-columns: 1fr; }
  .section-head > .link-arrow { justify-self: start; }
  .hero__figure { padding: 22px 0 0 22px; }
  .hero__figure .dim--x { left: 22px; }
  .hero__figure .dim--y { top: 22px; }
  .hero__stamp { display: none; }
  .audience__row { grid-template-columns: minmax(0, 1fr); gap: 8px 16px; padding: 22px 0; }
  .audience__tag { grid-column: 1; grid-row: 1; }
  .audience__name { grid-column: 1; grid-row: 2; }
  .audience__text { grid-column: 1 / -1; grid-row: 3; }
  .audience__arrow { display: none; }
  .materials { grid-template-columns: 1fr; }
  .material__fig { width: 92px; height: 92px; }
  .works-grid { grid-template-columns: 1fr; }
  .work-card--a, .work-card--b, .work-card--c, .work-card--d { grid-column: 1; margin-top: 0; }
  .work-card--b .work-card__img, .work-card--c .work-card__img { aspect-ratio: 4 / 3; }
  .step { grid-template-columns: minmax(0, 120px) minmax(0, 1fr); column-gap: 16px; }
  .form__stamp { grid-template-columns: 1fr 1fr; }
  .form__stamp > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; border-left: 0; border-top: 1px solid rgba(20, 41, 90, 0.25); }
  .form__stamp > div:nth-child(3) { border-left: 1px solid rgba(20, 41, 90, 0.25); }
  .form { grid-template-columns: 1fr; }
  .form__foot .btn { width: 100%; }
  .form-card__icon { width: 48px; height: 48px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { padding-right: 64px; }
  .gallery { columns: 1; }
  .gallery .work--tall .work__img { aspect-ratio: 4 / 3; }
  .product { grid-template-columns: minmax(0, 1fr) 92px; gap: 12px 16px; padding: 20px; }
  .product__num { grid-column: 1; width: 44px; height: 44px; }
  .product > div:nth-child(2) { grid-column: 1; }
  .product__desc { grid-column: 1 / -1; }
  .product__fig { grid-column: 2; grid-row: 1 / 3; width: 92px; height: 72px; padding: 4px; }
  .mat-photos { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 18px; }
  .tl-item__fig { max-width: 260px; }
  .spec { grid-column: 1; }
  .sheet { outline-offset: 5px; }

  .lightbox { padding: 70px 12px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; transform: none; }
  .ba__knob { width: 48px; height: 48px; }
  .fab { width: 52px; height: 52px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .marquee__track { animation: none; }
  .reveal.is-pending { opacity: 1; transform: none; }
}

/* Якорі не ховаються під липкою шапкою */
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
