@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@400;600&display=swap');

/* ═══ Токени — дизайн-система industry, акцент перефарбовано в помаранчевий ═══ */
:root {
  --color-bg: #f2f2f3;
  --color-surface: #e9e9ea;
  --color-text: #1d1f20;
  --color-divider: color-mix(in srgb, #1d1f20 16%, transparent);

  --color-accent: #c6702e;
  --color-accent-100: #f8e4d4;
  --color-accent-200: #f1c9a9;
  --color-accent-300: #e7ac7e;
  --color-accent-400: #d98d53;
  --color-accent-500: #c6702e;
  --color-accent-600: #ad5f22;
  --color-accent-700: #8c4c1b;
  --color-accent-800: #6b3a14;
  --color-accent-900: #4a270d;

  --color-neutral-100: #f5f5f8;
  --color-neutral-800: #424244;
  --color-neutral-900: #2b2b2d;

  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;

  --radius-md: 4px;
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2b2b2d 22%, transparent);

  --pad-x: clamp(20px, 5vw, 72px);
  --muted-90: color-mix(in srgb, var(--color-text) 90%, transparent);
  --muted-80: color-mix(in srgb, var(--color-text) 80%, transparent);
  --muted-70: color-mix(in srgb, var(--color-text) 70%, transparent);
  --muted-60: color-mix(in srgb, var(--color-text) 60%, transparent);
  --muted-55: color-mix(in srgb, var(--color-text) 55%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
  -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: var(--color-accent-700); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--color-accent-800); text-decoration: underline; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
.tnum { font-feature-settings: 'tnum' 1; }

/* ═══ Креслярська рамка ═══ */
.blueprint { position: relative; border: 1px solid var(--color-divider); border-radius: 0; }
.blueprint.duotone { overflow: visible; }
.blueprint > .corner {
  position: absolute; width: 11px; height: 11px;
  color: var(--muted-55);
}
.blueprint > .corner::before,
.blueprint > .corner::after { content: ""; position: absolute; background: currentColor; }
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after  { top: 5px; left: 0; width: 100%; height: 1px; }
.blueprint > .corner.tl { top: -6px; left: -6px; }
.blueprint > .corner.tr { top: -6px; right: -6px; }
.blueprint > .corner.bl { bottom: -6px; left: -6px; }
.blueprint > .corner.br { bottom: -6px; right: -6px; }

.duotone { position: relative; overflow: hidden; }
.duotone::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--color-accent); mix-blend-mode: color;
}

/* ═══ Кнопки ═══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: 600;
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid var(--color-divider); border-radius: 0;
  padding: 7px 12px;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary {
  background: var(--color-accent); border-color: var(--color-accent); color: var(--color-bg);
}
.btn-primary:hover { background: var(--color-accent-600); border-color: var(--color-accent-600); color: var(--color-bg); }
.btn-primary:active { background: var(--color-accent-700); border-color: var(--color-accent-700); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-block { width: 100%; }
.btn-lg {
  min-height: 44px; padding: 0 22px; font-size: 15px;
  letter-spacing: .04em; text-transform: uppercase;
}

/* ═══ Поля ═══ */
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit; font-size: 14px;
  color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: 0;
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }

/* ═══ Теги і таблиця ═══ */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: .02em; padding: 3px 10px; border-radius: 0;
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-60); padding: 7px; border-bottom: 1px solid var(--color-divider);
}
.table td {
  padding: 7px; border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }

/* ═══ Слот під фото ═══ */
.imgslot { position: relative; width: 100%; overflow: hidden; }
.imgslot img { width: 100%; height: 100%; object-fit: cover; }
.imgslot--empty {
  display: grid; place-items: center;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 9px,
    color-mix(in srgb, var(--color-text) 5%, transparent) 9px,
    color-mix(in srgb, var(--color-text) 5%, transparent) 10px);
}
.imgslot__hint {
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted-55); text-align: center; padding: 0 16px;
}

/* ═══ Загальні елементи сторінки ═══ */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad-x); }
.eyebrow {
  display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--color-accent-700); margin-bottom: 12px;
}
.rule { height: 1px; border: 0; margin: 0 0 32px; background: var(--color-divider); }
.stitle {
  font-family: var(--font-heading); font-weight: 600; line-height: 1.08;
  letter-spacing: .02em; text-transform: uppercase; margin: 0;
}
.meta {
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-70);
}
.lead { line-height: 1.5; color: var(--muted-80); }

/* ═══ Хедер ═══ */
.site-nav {
  display: flex; align-items: center; gap: 14px;
  padding: 10px var(--pad-x);
  position: sticky; top: 0; z-index: 20;
  background: var(--color-bg); border-bottom: 1px solid var(--color-divider);
}
.site-nav__brand {
  font-family: var(--font-heading); font-weight: 600; font-size: 18px;
  letter-spacing: .06em; text-transform: uppercase; margin-right: auto;
}
.site-nav__menu { display: flex; align-items: center; gap: 14px; }
.site-nav__menu a {
  color: inherit; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
}
.site-nav__menu a:hover { color: var(--color-accent-700); }

/* Кнопка дзвінка і бургер живуть тільки на вузьких екранах. */
.site-nav__call, .site-nav__burger { display: none; }
.site-nav__call, .site-nav__burger {
  width: 42px; height: 42px; flex: none; padding: 0;
  align-items: center; justify-content: center;
  color: var(--color-text); background: transparent;
  border: 1px solid var(--color-divider); cursor: pointer;
}
.site-nav__call:hover, .site-nav__burger:hover {
  background: color-mix(in srgb, var(--color-text) 7%, transparent);
  color: var(--color-accent-700);
}
.site-nav__burger i {
  position: relative; display: block; width: 18px; height: 1.5px;
  background: currentColor; transition: background .15s;
}
.site-nav__burger i::before, .site-nav__burger i::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px;
  background: currentColor; transition: transform .2s ease;
}
.site-nav__burger i::before { top: -6px; }
.site-nav__burger i::after { top: 6px; }
.site-nav__burger[aria-expanded="true"] i { background: transparent; }
.site-nav__burger[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.site-nav__burger[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) {
  .site-nav__burger i, .site-nav__burger i::before, .site-nav__burger i::after { transition: none; }
}

/* ═══ Головний екран ═══ */
.hero {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 72px); align-items: center;
  padding: clamp(48px, 7vw, 104px) 0 clamp(40px, 5vw, 72px);
}
.hero__badge {
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 13px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--color-accent-700);
}
.hero__title {
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(44px, 6.4vw, 92px); line-height: 1.04; letter-spacing: .01em;
  text-transform: uppercase; margin: 20px 0 0 -.052em;
}
.hero__title span { display: block; }
.hero__title .accent { color: var(--color-accent-700); }
.hero__lead { font-size: 17px; line-height: 26px; max-width: 54ch; margin: 24px 0 0; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero__facts {
  display: flex; gap: 28px; flex-wrap: wrap; margin-top: 32px;
  padding-top: 20px; border-top: 1px solid var(--color-divider);
}

.promo { padding: 28px; background: var(--color-bg); }
.promo__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--color-divider);
}
.promo__label {
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--color-accent-700);
}
.promo__tag { flex: none; white-space: nowrap; font-weight: 600; letter-spacing: .06em; }
.promo__price { display: flex; align-items: baseline; gap: 14px; margin-top: 24px; }
.promo__price b {
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(64px, 8vw, 104px); line-height: .9; letter-spacing: .01em;
}
.promo__price i {
  font-family: var(--font-heading); font-style: normal; font-weight: 600;
  font-size: 24px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-70);
}
.promo__old { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.promo__old s {
  flex: none; white-space: nowrap; font-size: 20px;
  text-decoration-thickness: 1px; color: var(--muted-55);
}
.promo__old em { font-style: normal; font-size: 14px; letter-spacing: .04em; color: var(--color-accent-700); }
.promo__timer { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--color-divider); }
.promo__timer > span {
  display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted-70);
}
.timer { display: flex; gap: 10px; margin-top: 12px; }
.timer__cell {
  flex: 1; padding: 10px 0; text-align: center; border: 1px solid var(--color-divider);
  font-family: var(--font-heading); font-weight: 600; font-size: 26px; line-height: 1;
}
.timer__cell > span {
  display: block; font-family: var(--font-body); font-size: 11px; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted-60);
}
/* Без блимання: у макеті анімація стояла на всій комірці, тому разом із
   цифрами у прозорість ішли рамка й підпис — виглядало як збій. Секунди
   й так змінюються щосекунди, акцентна рамка виділяє комірку без мигтіння. */
.timer__cell--sec { border-color: var(--color-accent); color: var(--color-accent-800); }

/* ═══ Маскот над заголовком ═══ */
.hero__mascot {
  position: relative; z-index: 3;
  width: clamp(190px, 26vw, 330px);
  margin: clamp(16px, 3vw, 34px) auto calc(-1 * clamp(12px, 2.5vw, 30px));
  /* Проліт справа наліво — саме так намальований персонаж: плащ і лінії
     швидкості тягнуться вправо, тобто позаду. */
  animation: mascot-fly 1.5s cubic-bezier(.17, .78, .35, 1) both;
}
/* Гойдання окремим шаром, щоб два transform не билися за один елемент. */
.hero__mascot-bob { animation: mascot-bob 3.6s ease-in-out 1.5s infinite alternate; }
.hero__mascot .imgslot {
  aspect-ratio: 3 / 2;
  filter: drop-shadow(0 10px 18px color-mix(in srgb, var(--color-text) 18%, transparent));
}
/* Маскот прозорий і не має обрізатися — на відміну від фото у плитах. */
.hero__mascot .imgslot img { object-fit: contain; }
.hero__mascot--empty .imgslot { aspect-ratio: 3 / 2; }

@keyframes mascot-fly {
  from { opacity: 0; transform: translate3d(58vw, 26px, 0) rotate(9deg) scale(.86) }
  55%  { opacity: 1 }
  to   { opacity: 1; transform: none }
}
@keyframes mascot-bob {
  from { transform: translateY(2px) rotate(-1.6deg) }
  to   { transform: translateY(-12px) rotate(1.6deg) }
}

/* Кінцевий стан жорстко: доки анімація не програла, елемент висить у
   стартовій позиції (прозорий і зсунутий). Якщо анімації приспані —
   маскота просто не було б видно. */
.hero__mascot.is-landed { animation: none; opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero__mascot, .hero__mascot-bob { animation: none; opacity: 1; transform: none; }
}
@media (max-width: 700px) {
  .hero__mascot { width: clamp(150px, 46vw, 230px); margin-bottom: -8px; }
}

/* ═══ Плита з фото цегли ═══ */
.hero__plate {
  position: relative;
  margin: 0 0 clamp(24px, 4vw, 56px);
  background: var(--color-bg);
}
.hero__plate .imgslot { aspect-ratio: 21 / 9; }
/* Повільний наїзд — фото «дихає», а не стоїть мертвим прямокутником. */
.hero__plate .imgslot img {
  transform-origin: 50% 55%;
  animation: kenburns 24s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1) } to { transform: scale(1.07) } }

/* Кладка: плитки кольору фону перекривають знімок і гаснуть із затримкою
   від центру, наче стіну щойно склали. Ряди зі зсувом на пів цеглини. */
.hero__bricks {
  position: absolute; inset: 0; z-index: 2;
  display: block; overflow: hidden; pointer-events: none;
}
.hero__bricks i {
  position: absolute; display: block;
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  opacity: 1;
}
.hero__plate.is-done .hero__bricks { display: none; }
.hero__plate.is-built .hero__bricks i {
  animation: bricklay .62s cubic-bezier(.22, .61, .36, 1) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes bricklay {
  from { opacity: 1; transform: none }
  to   { opacity: 0; transform: scale(.9) }
}

@media (prefers-reduced-motion: reduce) {
  .hero__plate .imgslot img { animation: none }
  .hero__bricks { display: none }
}

/* ═══ Паспорт партії ═══ */
.sec-spec { padding: clamp(24px, 3vw, 48px) 0; }
.spec__head {
  display: flex; flex-wrap: wrap; align-items: stretch;
  border-bottom: 1px solid var(--color-divider);
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
}
.spec__head span { padding: 12px 24px; }
.spec__head span:first-child { flex: 1; min-width: 16ch; }
.spec__head span + span {
  border-left: 1px solid var(--color-divider); white-space: nowrap; color: var(--muted-70);
}
.spec__table { table-layout: fixed; }
.spec__table td { padding: 7px; }
.spec__table .c-num {
  padding-left: 24px; font-size: 13px; font-weight: 600; color: var(--color-accent-700);
}
.spec__table .c-param { font-size: 15px; }
.spec__table .c-value {
  font-family: var(--font-heading); font-weight: 600; font-size: 22px; white-space: nowrap;
}
.spec__table .c-note { font-size: 15px; color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.spec__table tbody tr:last-child td { border-bottom: 0; }
.spec__note {
  margin: 0; padding: 12px 24px; border-top: 1px solid var(--color-divider);
  font-size: 13px; line-height: 24px; color: var(--muted-70);
}

/* ═══ Продукція ═══ */
.sec-assort { padding: clamp(40px, 5vw, 72px) 0 clamp(24px, 3vw, 48px); }
.assort {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 3vw, 48px); align-items: stretch;
}
.assort__card { display: flex; flex-direction: column; }
.assort__photo { border-bottom: 1px solid var(--color-divider); }
.assort__body { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.assort__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.assort__kicker {
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted-70);
}
.assort__title { font-size: clamp(28px, 3vw, 38px); line-height: 1.06; }
.assort__text {
  font-size: 16px; line-height: 25px; margin: 0; max-width: 52ch; flex: 1;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}
.assort__price {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding-top: 14px; border-top: 1px solid var(--color-divider);
}
.assort__price b {
  font-family: var(--font-heading); font-weight: 600; font-size: 42px;
  line-height: 1; white-space: nowrap;
}
.assort__price s { flex: none; white-space: nowrap; font-size: 16px; color: var(--muted-55); }
.assort__price .btn { margin-left: auto; }
.assort__side { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.assort__note { padding: 24px; }
.assort__note h3 { font-size: 22px; line-height: 24px; }
.assort__note p {
  font-size: 15px; line-height: 24px; margin: 16px 0 0;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

/* ═══ Калькулятор ═══ */
.sec-calc { padding: clamp(40px, 5vw, 72px) 0; }
.calc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); align-items: start; }
.calc__title { font-size: clamp(30px, 3.4vw, 40px); }
.calc__text { font-size: 16px; line-height: 24px; margin: 20px 0 0; max-width: 46ch; }
.calc__presets { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.calc__presets .btn { min-height: 40px; }
.calc__field { display: block; margin-top: 28px; }
.calc__field > span {
  display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted-70); margin-bottom: 10px;
}
.calc__field .input { width: 200px; min-height: 44px; font-size: 18px; }
.calc__out { padding: 28px; }
.calc__outhead {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-bottom: 16px; border-bottom: 1px solid var(--color-divider);
}
.calc__outhead span:first-child {
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted-70);
}
.calc__outhead span + span {
  flex: none; white-space: nowrap; font-size: 13px;
  letter-spacing: .06em; color: var(--color-accent-700);
}
.calc__total { display: flex; align-items: baseline; gap: 12px; margin-top: 24px; }
.calc__total b {
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(48px, 5.4vw, 72px); line-height: .95;
}
.calc__total i {
  font-family: var(--font-heading); font-style: normal; font-weight: 600;
  font-size: 22px; text-transform: uppercase; color: var(--muted-70);
}
.calc__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; margin-top: 24px; background: var(--color-divider);
}
.calc__cell { background: var(--color-bg); padding: 16px; }
/* Тільки прямий нащадок: усередині <b> теж є span із числом,
   і display:block розривав би «60 000,00 ₴» на два рядки. */
.calc__cell > span {
  display: block; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 65%, transparent);
}
.calc__cell b {
  display: block; margin-top: 6px; white-space: nowrap;
  font-family: var(--font-heading); font-weight: 600; font-size: 26px;
}
.calc__cell--old b { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--muted-60); }
.calc__cell--saved { background: var(--color-accent-100); }
.calc__cell--saved > span { color: var(--color-accent-800); }
.calc__cell--saved b { color: var(--color-accent-900); }

/* ═══ Текст + фото ═══ */
.sec-about { padding: clamp(40px, 5vw, 72px) 0; }
.about {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px clamp(24px, 5vw, 88px); align-items: center;
}
.about__title { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.1; }
.about__text { font-size: 15px; line-height: 24px; margin: 20px 0 0; max-width: 46ch; }
.about__stats { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 28px; }

/* ═══ Відгук ═══ */
.sec-quote { padding: clamp(32px, 4vw, 64px) 0; }
.quote blockquote {
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(26px, 2.8vw, 36px); line-height: 1.25;
  max-width: 38ch; margin: 0; text-indent: -.316em;
}
.quote figcaption {
  font-size: 15px; line-height: 24px; margin: 32px 0 0;
  text-indent: -.885em; color: var(--muted-70);
}

/* ═══ Заявка ═══ */
.sec-order { padding: clamp(40px, 5vw, 72px) 0; }
.order { padding: clamp(24px, 3vw, 40px); background: var(--color-bg); }
.order__grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
}
.order__title { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.06; margin: 16px 0 0; }
.order__text { font-size: 16px; line-height: 24px; margin: 20px 0 0; max-width: 44ch; }
/* Телефон із графіком — окремий блок під лінійкою, вирівняний по центру.
   Раніше вони розліталися по краях рядка, щойно не вміщались в один. */
.order__contacts {
  display: flex; gap: 8px 28px; flex-wrap: wrap;
  align-items: baseline; justify-content: center; text-align: center;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--color-divider);
}
.order__contacts > * { flex: none; }
.order__phone {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 26px; letter-spacing: .02em; white-space: nowrap;
}
.order__form { display: flex; flex-direction: column; gap: 12px; }
.order__form .input { min-height: 44px; }
.order__form button {
  min-height: 48px; font-size: 15px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.order__note { font-size: 12px; line-height: 18px; color: color-mix(in srgb, var(--color-text) 65%, transparent); }
.order__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.order__msg { font-size: 14px; line-height: 20px; color: var(--color-accent-700); }
.order__msg--err { color: #a4261d; }

/* ═══ Футер ═══ */
.site-footer {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between;
  padding: 40px 0; border-top: 1px solid var(--color-divider);
  font-size: 13px; line-height: 24px; color: var(--muted-70);
}

/* ═══ Режим правки на сайті ═══ */
.edbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 8px var(--pad-x);
  background: var(--color-neutral-900); color: #fff;
  font-size: 13px; letter-spacing: .04em;
}
.edbar a, .edbar button {
  color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.35);
  padding: 5px 12px; font: inherit; cursor: pointer;
}
.edbar a:hover, .edbar button:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.edbar__status { margin-left: auto; opacity: .7; }
.is-editing .site-nav { top: 41px; }
.is-editing [data-e] {
  outline: 1px dashed color-mix(in srgb, var(--color-accent) 55%, transparent);
  outline-offset: 3px; cursor: text; min-width: 1ch;
}
.is-editing [data-e]:hover { outline-style: solid; background: color-mix(in srgb, var(--color-accent) 8%, transparent); }
.is-editing [data-e]:focus { outline: 2px solid var(--color-accent); background: color-mix(in srgb, var(--color-accent) 6%, transparent); }
.is-editing [data-img] { cursor: pointer; outline: 1px dashed var(--color-accent); outline-offset: 3px; }
.is-editing [data-img]::before {
  content: "Змінити фото"; position: absolute; inset: auto 8px 8px auto; z-index: 3;
  padding: 4px 10px; background: var(--color-neutral-900); color: #fff;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.is-editing .is-locked { outline: 1px dashed var(--muted-55); outline-offset: 3px; cursor: not-allowed; }

/* ═══ Адаптив ═══ */
@media (max-width: 900px) {
  .hero, .assort, .calc, .about, .order__grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: clamp(32px, 8vw, 56px); gap: 32px; }
  .assort__side { grid-template-rows: none; }
  .about > figure { order: -1; }
  .spec__head span:first-child { flex-basis: 100%; }
  .spec__table { table-layout: auto; }
  .spec__table col { width: auto !important; }
}

@media (max-width: 700px) {
  /* У рядку лишаються бренд, дзвінок і бургер. Посилання й кнопка —
     у випадній панелі, щоб нічого не чавилося. */
  .site-nav { gap: 8px; padding-block: 8px; }
  .site-nav__brand { margin-right: auto; font-size: 16px; }
  .site-nav__call, .site-nav__burger { display: inline-flex; }

  .site-nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px var(--pad-x) 18px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-divider);
    box-shadow: var(--shadow-lg);
  }
  .site-nav__menu.is-open { display: flex; }
  .site-nav__menu a {
    padding: 15px 2px; font-size: 14px;
    border-bottom: 1px solid var(--color-divider);
  }
  .site-nav__cta {
    margin-top: 18px; width: 100%; min-height: 48px;
    font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
  }

  .hero__facts { gap: 10px; flex-direction: column; }
  .promo { padding: 20px; }
  .timer { flex-wrap: wrap; }
  .timer__cell { flex: 1 1 calc(50% - 5px); }

  .spec__head { font-size: 12px; }
  .spec__head span { padding: 10px 16px; }
  .spec__table thead { display: none; }
  .spec__table, .spec__table tbody, .spec__table tr, .spec__table td { display: block; width: auto; }
  .spec__table tr {
    padding: 14px 16px;
    border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  }
  .spec__table td { border: 0; padding: 0; }
  .spec__table .c-num { padding: 0 0 4px; }
  .spec__table .c-value { font-size: 20px; margin: 2px 0; }
  .spec__note { padding: 12px 16px; }

  .assort__body, .assort__note, .calc__out, .order { padding: 20px; }
  .assort__price .btn { margin-left: 0; width: 100%; }
  .calc__field .input { width: 100%; }
  .about__stats { gap: 8px; flex-direction: column; }
  .order__contacts { gap: 8px; flex-direction: column; }
  .site-footer { padding: 28px 0; gap: 8px; }
}

@media (max-width: 420px) {
  .calc__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__actions .btn { width: 100%; }
}


/* ═══ Поява блоків ═══
   Клас js-anim ставить вбудований скрипт у <head> — без JS або з
   prefers-reduced-motion він не з'явиться, і весь контент лишиться видимим.
   Ховати щось стилями «за замовчуванням» тут не можна: зламаний скрипт
   означав би порожню сторінку. */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .7s ease var(--rd, 0ms),
    transform .7s cubic-bezier(.22, .61, .36, 1) var(--rd, 0ms);
}
.js-anim .reveal.is-in { opacity: 1; transform: none; }

/* Лінійка-роздільник не з'їжджає, а прокреслюється зліва направо. */
.js-anim .rule.reveal {
  opacity: 1; transform: scaleX(0); transform-origin: left center;
  transition: transform .8s cubic-bezier(.22, .61, .36, 1) var(--rd, 0ms);
}
.js-anim .rule.reveal.is-in { transform: scaleX(1); }

/* Кутові засічки креслення проявляються трохи пізніше за саму рамку. */
.js-anim .blueprint.reveal > .corner {
  opacity: 0; transform: scale(.35);
  transition: opacity .45s ease, transform .45s cubic-bezier(.34, 1.4, .64, 1);
  transition-delay: calc(var(--rd, 0ms) + .3s);
}
.js-anim .blueprint.reveal.is-in > .corner { opacity: 1; transform: none; }

/* Рядки паспорта заїжджають збоку — як заповнення бланка. */
.js-anim .spec__table tr.reveal { transform: translateX(-14px); }
.js-anim .spec__table tr.reveal.is-in { transform: none; }

/* Жорсткий показ без переходу. Додавати самий лише .is-in недостатньо:
   якщо браузер приспав переходи (фонова чи перекрита вкладка), блок так і
   лишиться прозорим. Страховка в site.js вішає саме цей клас. */
.js-anim .reveal.is-shown,
.js-anim .rule.reveal.is-shown,
.js-anim .blueprint.reveal.is-shown > .corner {
  opacity: 1; transform: none; transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal,
  .js-anim .rule.reveal,
  .js-anim .blueprint.reveal > .corner {
    opacity: 1; transform: none; transition: none;
  }
}

/* ═══ Помилки у формі ═══ */
.order__field { display: flex; flex-direction: column; gap: 5px; }
.order__field .input { min-height: 44px; }
.input.is-invalid { border-color: #a4261d; }
.input.is-invalid:focus-visible { outline-color: #a4261d; }
.order__err { font-size: 12px; line-height: 16px; color: #a4261d; }

/* ═══ Сторінка «Дякуємо» ═══ */
.sec-thanks {
  display: grid; place-items: center;
  min-height: calc(100vh - 220px);
  padding: clamp(32px, 6vw, 80px) 0;
}
.thanks {
  width: min(620px, 100%);
  padding: clamp(28px, 5vw, 52px);
  background: var(--color-bg); text-align: center;
}
/* Свідомо без animation-fill-mode: both. З ним елемент до старту висить
   у стартовому кадрі (прозорий), а на сторінці підтвердження нічого не
   має залежати від того, чи програлася анімація. */
.thanks__mark {
  display: inline-grid; place-items: center;
  width: 62px; height: 62px; margin-bottom: 22px;
  color: var(--color-accent); border: 1px solid var(--color-accent);
  animation: thanks-pop .5s cubic-bezier(.34, 1.5, .64, 1);
}
@keyframes thanks-pop {
  from { transform: scale(.4) rotate(-12deg); opacity: 0 }
  to   { transform: none; opacity: 1 }
}
@media (prefers-reduced-motion: reduce) { .thanks__mark { animation: none } }
.thanks .eyebrow { margin-bottom: 10px; }
.thanks__title { font-size: clamp(28px, 4vw, 42px); }
.thanks__text { font-size: 16px; line-height: 25px; margin: 18px auto 0; max-width: 46ch; }
.thanks__steps {
  display: grid; gap: 1px; margin: 30px 0 26px;
  background: var(--color-divider); text-align: left;
}
.thanks__step {
  display: flex; gap: 14px; align-items: baseline;
  padding: 14px 16px; background: var(--color-bg); font-size: 15px; line-height: 22px;
}
.thanks__num {
  flex: none; font-family: var(--font-heading); font-weight: 600;
  font-size: 14px; letter-spacing: .06em; color: var(--color-accent-700);
}
.thanks__contacts {
  display: flex; gap: 8px 24px; flex-wrap: wrap;
  align-items: baseline; justify-content: center;
  padding: 20px 0; margin-bottom: 8px;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.sec-thanks + .wrap .site-footer { border-top: 1px solid var(--color-divider); }

/* ═══ Юридична сторінка ═══ */
.sec-legal { max-width: 68ch; margin: 0 auto; padding: clamp(28px, 5vw, 64px) 0; }
.legal__title { font-size: clamp(28px, 3.6vw, 42px); }
.legal__updated { margin: 12px 0 0; }
.sec-legal .rule { margin: 24px 0 0; }
.legal__block { padding-top: clamp(28px, 4vw, 44px); }
.legal__heading { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; }
.legal__text {
  /* Переноси рядків із поля — це окремі пункти договору. pre-line зберігає
     їх, а вузол лишається одним, тож правка на сайті працює як у решти. */
  white-space: pre-line;
  margin: 16px 0 0;
  font-size: 16px; line-height: 27px;
  color: color-mix(in srgb, var(--color-text) 82%, transparent);
}
.legal__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  margin-top: clamp(36px, 5vw, 60px); padding-top: 24px;
  border-top: 1px solid var(--color-divider);
}
.legal__foot .meta { text-transform: none; letter-spacing: 0; line-height: 22px; }

.site-footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer__links a { color: var(--color-accent-700); }

@media (max-width: 700px) {
  .legal__foot { flex-direction: column; align-items: stretch; }
  .legal__foot .btn { width: 100%; }
}
