/* =========================================================================
   ТОВ «Наша Птиця» — nashaptytsia.com
   Єдиний стиль для української та англійської версій.
   ========================================================================= */

/* ---------- 1. Шрифт (self-hosted, без сторонніх CDN) ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 2. Токени ---------- */
:root {
  color-scheme: light;

  --brand: #db0814;
  --brand-dark: #a80710;
  --brand-soft: #fdecec;
  --green: #3f8f2c;
  --green-soft: #eef7ea;

  --ink: #16120f;
  --ink-2: #352e29;
  --muted: #6d635c;
  --line: #e6dfd9;
  --line-strong: #d4cbc3;
  --paper: #ffffff;
  --paper-2: #faf7f4;
  --paper-3: #f3ede8;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;

  --shadow-s: 0 1px 2px rgba(22, 18, 15, .05), 0 2px 6px rgba(22, 18, 15, .04);
  --shadow: 0 2px 6px rgba(22, 18, 15, .05), 0 12px 28px rgba(22, 18, 15, .07);
  --shadow-l: 0 8px 24px rgba(22, 18, 15, .08), 0 32px 64px rgba(22, 18, 15, .10);

  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 76px;

  --t-fast: .18s cubic-bezier(.4, 0, .2, 1);
  --t: .32s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 3. Базове ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: clamp(16px, .55vw + 14.4px, 17.5px);
  line-height: 1.62;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.022em;
  text-wrap: balance;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 14px 20px;
  border-radius: 0 0 var(--radius-s) 0;
  font-weight: 700;
}
.skip:focus { left: 0; }

.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* ---------- 4. Розкладка ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Липка шапка не має накривати ціль якоря — ні секцію, ні форму всередині неї. */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.section {
  padding-block: clamp(56px, 8vw, 108px);
}
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--ink); color: #f6f2ef; }
.section--edge { border-top: 1px solid var(--line); }

.head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 52px); }
.head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.section--dark .eyebrow { color: #ff6b73; }
.section--dark .eyebrow::before { background: #ff6b73; }

h1, .h1 { font-size: clamp(2.15rem, 4.6vw, 3.7rem); }
h2, .h2 { font-size: clamp(1.7rem, 3.1vw, 2.6rem); }
h3, .h3 { font-size: clamp(1.12rem, 1.35vw, 1.32rem); letter-spacing: -.012em; }

.lead {
  font-size: clamp(1.02rem, 1.05vw, 1.16rem);
  color: var(--muted);
  margin-top: 16px;
}
.section--dark .lead { color: #bbb0a8; }

.muted { color: var(--muted); }
.section--dark .muted { color: #a99e96; }

/* ---------- 5. Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: .96rem;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(168, 7, 16, .2), 0 8px 20px rgba(168, 7, 16, .22);
}
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(22, 18, 15, .04); }
.section--dark .btn--ghost { color: #f6f2ef; border-color: rgba(255, 255, 255, .3); }
.section--dark .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; transform: translateY(-1px); }

.btn--sm { padding: 10px 18px; font-size: .89rem; }
.btn--wide { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color var(--t-fast), gap var(--t-fast);
}
.link-arrow:hover { border-color: currentColor; gap: 12px; }
.link-arrow svg { width: 16px; height: 16px; }

/* ---------- 6. Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(22, 18, 15, .05);
}

.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}
.brand img { height: 44px; width: auto; }
.brand__txt {
  display: none;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 15ch;
}

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.1vw, 14px);
  list-style: none;
}
.nav__link {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-s);
  font-size: .93rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--ink-2);
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}
.nav__link:hover { color: var(--brand); background: var(--brand-soft); }
.nav__link.is-active { color: var(--brand); }

.header__side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
}
.lang a {
  padding: 7px 13px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--muted);
  transition: background var(--t-fast), color var(--t-fast);
}
.lang a:hover { background: var(--paper-3); color: var(--ink); }
.lang a[aria-current='true'] { background: var(--ink); color: #fff; }

.burger {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  cursor: pointer;
  padding: 0;
}
.burger span {
  position: relative;
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: background var(--t-fast);
}
.burger span::before, .burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t-fast), top var(--t-fast);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded='true'] span { background: transparent; }
.burger[aria-expanded='true'] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded='true'] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- 7. Герой ---------- */
.hero {
  position: relative;
  padding-block: clamp(38px, 6vw, 76px) clamp(48px, 7vw, 92px);
  background:
    radial-gradient(1100px 520px at 88% -8%, #fdf0ef 0%, rgba(253, 240, 239, 0) 62%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero__sub {
  font-size: clamp(1.02rem, 1.1vw, 1.18rem);
  color: var(--ink-2);
  max-width: 46ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 11px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink-2);
  box-shadow: var(--shadow-s);
}
.chip svg { width: 15px; height: 15px; color: var(--green); flex: none; }

.hero__media { position: relative; }
.hero__figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-l);
  aspect-ratio: 4 / 5;
  background: var(--paper-3);
}
.hero__figure img { width: 100%; height: 100%; object-fit: cover; }

.hero__badge {
  position: absolute;
  left: -18px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 20px 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 78%;
}
.hero__badge svg { width: 30px; height: 30px; color: var(--brand); flex: none; }
.hero__badge b { display: block; font-size: 1.02rem; line-height: 1.2; }
.hero__badge span { font-size: .8rem; color: var(--muted); }

/* ---------- 8. Смуга фактів ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact {
  background: var(--paper);
  padding: clamp(20px, 2.4vw, 30px);
}
.fact svg { width: 26px; height: 26px; color: var(--brand); margin-bottom: 14px; }
.fact b {
  display: block;
  font-size: clamp(1.02rem, 1.2vw, 1.18rem);
  font-weight: 800;
  letter-spacing: -.015em;
  margin-bottom: 6px;
}
.fact span { font-size: .89rem; color: var(--muted); line-height: 1.5; display: block; }

/* ---------- 9. Сітки та картки ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split--wide-text { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px);
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.card--hover:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--line-strong);
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 18px;
}
.card__icon svg { width: 23px; height: 23px; }
.card__icon--green { background: var(--green-soft); color: var(--green); }
.card h3 { margin-bottom: 9px; }
.card p { color: var(--muted); font-size: .95rem; }

.figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: var(--shadow-s);
}
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--tall { aspect-ratio: 4 / 5; }
.figure--wide { aspect-ratio: 16 / 10; }
.figure--square { aspect-ratio: 1 / 1; }

/* Кроки виробництва */
.steps { counter-reset: step; }
.step { position: relative; }
.step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

/* Реквізити */
.specs { list-style: none; }
.specs li {
  display: grid;
  grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: .94rem;
}
.specs li:last-child { border-bottom: 0; }
.specs dt, .specs .k { color: var(--muted); }
.specs dd, .specs .v { margin: 0; font-weight: 700; }

/* ---------- 10. Продукція ---------- */
.tabs {
  display: inline-flex;
  padding: 5px;
  gap: 4px;
  background: var(--paper-3);
  border-radius: 999px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.tabs button {
  padding: 11px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: .93rem;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.tabs button:hover { color: var(--brand); }
/* Обраний стан має читатися не лише кольором тла: додаємо контурну рамку
   та фірмовий колір тексту, щоб різниця була помітна й у ч/б, і при слабкому зорі. */
.tabs button[aria-selected='true'] {
  background: var(--paper);
  color: var(--brand);
  box-shadow: inset 0 0 0 2px var(--brand), var(--shadow-s);
}

.tabpanel[hidden] { display: none; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}
table.spec {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: .94rem;
}
table.spec caption {
  caption-side: top;
  text-align: left;
  padding: 18px clamp(16px, 2vw, 24px) 0;
  color: var(--muted);
  font-size: .88rem;
}
table.spec th, table.spec td {
  padding: 14px clamp(12px, 1.6vw, 20px);
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.spec thead th {
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-2);
  white-space: nowrap;
}
table.spec tbody tr:last-child th, table.spec tbody tr:last-child td { border-bottom: 0; }
table.spec tbody tr { transition: background var(--t-fast); }
table.spec tbody tr:hover { background: var(--paper-2); }
table.spec tbody th { font-weight: 750; }
.tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--paper-3);
  font-size: .78rem;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}
.tag--cold { background: #e8f1fb; color: #1c5697; }
.tag--fresh { background: var(--green-soft); color: var(--green); }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}
.gallery figure { margin: 0; }
.gallery figcaption {
  margin-top: 10px;
  font-size: .87rem;
  font-weight: 700;
  color: var(--ink-2);
}
.gallery figcaption small { display: block; font-weight: 500; color: var(--muted); }

/* ---------- 11. Експорт (темна секція) ---------- */
.section--dark .card {
  background: rgba(255, 255, 255, .045);
  border-color: rgba(255, 255, 255, .1);
}
.section--dark .card p { color: #b3a8a0; }
.section--dark .card__icon { background: rgba(219, 8, 20, .18); color: #ff8a90; }
.section--dark .specs li { border-color: rgba(255, 255, 255, .12); }
.section--dark .specs .k { color: #a99e96; }

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  counter-reset: flow;
}
.flow__item { position: relative; padding-top: 26px; }
.flow__item::before {
  content: '';
  position: absolute;
  top: 9px; left: 0; right: 0;
  height: 2px;
  background: rgba(255, 255, 255, .16);
}
.flow__item::after {
  content: '';
  position: absolute;
  top: 4px; left: 0;
  width: 12px; height: 12px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(219, 8, 20, .2);
}
.flow__item b { display: block; font-size: 1rem; margin-bottom: 6px; }
.flow__item span { font-size: .9rem; color: #a99e96; }

/* ---------- 12. FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  font-weight: 750;
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  list-style: none;
  transition: color var(--t-fast);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq summary::after {
  content: '';
  flex: none;
  width: 22px; height: 22px;
  margin-top: 3px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23000' stroke-width='2.2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23000' stroke-width='2.2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--t);
}
.faq details[open] summary { color: var(--brand); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq__body { padding-bottom: 24px; max-width: 78ch; color: var(--muted); }
.faq__body p + p { margin-top: 12px; }

/* ---------- 13. Контакти і форма ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.contact-list { list-style: none; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { padding-top: 0; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .k {
  display: block;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-list .v { font-size: 1.04rem; font-weight: 700; line-height: 1.45; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: color var(--t-fast), border-color var(--t-fast); }
.contact-list a:hover { color: var(--brand); border-color: var(--brand); }

.map {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-3);
  aspect-ratio: 16 / 9;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(22px, 3vw, 38px);
  box-shadow: var(--shadow);
}
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .84rem; font-weight: 750; color: var(--ink-2); }
.field .req { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--paper-2);
  font: inherit;
  font-size: .96rem;
  color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 108px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(219, 8, 20, .12);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input[aria-invalid='true'], .field textarea[aria-invalid='true'] {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.5;
}
.consent input { width: 19px; height: 19px; margin-top: 2px; flex: none; accent-color: var(--brand); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__note { margin-top: 14px; font-size: .82rem; color: var(--muted); }

/* Область лишається в DOM від завантаження сторінки — інакше зчитувач екрана
   не оголосить текст, доданий у щойно створений aria-live елемент. */
.form__status {
  display: block;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-s);
  font-size: .92rem;
  font-weight: 650;
}
.form__status:empty { display: none; }
.form__status.is-ok { background: var(--green-soft); color: #2c6a1e; }
.form__status.is-err { background: var(--brand-soft); color: var(--brand-dark); }

/* ---------- 14. Підвал ---------- */
.footer {
  background: var(--ink);
  color: #cdc4bd;
  padding-block: clamp(48px, 6vw, 76px) 30px;
  font-size: .93rem;
}
.footer a { color: #cdc4bd; text-decoration: none; transition: color var(--t-fast); }
.footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
}
.footer__logo { height: 52px; width: auto; margin-bottom: 18px; }
.footer h3 {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8d827a;
  margin-bottom: 14px;
}
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer__bottom {
  margin-top: clamp(34px, 4vw, 52px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: space-between;
  align-items: center;
  font-size: .84rem;
  color: #8d827a;
}
.social { display: flex; gap: 10px; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.social a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .34); }
.social svg { width: 19px; height: 19px; }

/* ---------- 15. Мобільна панель дій ---------- */
.actionbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.actionbar .btn { flex: 1; padding: 13px 12px; font-size: .9rem; }

/* ---------- 15b. Допоміжні класи ---------- */
.mt-14 { margin-top: 14px; }
.mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; }
.mt-22 { margin-top: 22px; }
.mt-24 { margin-top: 24px; }
.mt-26 { margin-top: 26px; }
.mt-30 { margin-top: 30px; }
.mt-34 { margin-top: 34px; }
.mt-m  { margin-top: clamp(20px, 2.6vw, 32px); }
.mt-l  { margin-top: clamp(24px, 3vw, 40px); }
.mt-xl { margin-top: clamp(34px, 4vw, 52px); }

.specs--plain { list-style: none; }
.specs .v small { font-weight: 500; }

.note { margin-top: 18px; font-size: .9rem; }
.map-link { margin-top: 12px; font-size: .86rem; }
.footer__about { max-width: 34ch; }

/* ---------- 16. Анімації ---------- */
/* Приховуємо лише тоді, коли скрипт справді працює й зможе показати назад. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 17. Адаптив ---------- */
@media (min-width: 1300px) {
  .brand__txt { display: block; }
}

@media (max-width: 1040px) {
  .facts, .grid--4, .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Горизонтальне меню з семи пунктів перестає вміщатися разом із CTA
   та перемикачем мови раніше, ніж ламається сітка сторінки, тож
   бургер вмикається на власній, ширшій точці. */
@media (max-width: 1180px) {
  :root { --header-h: 68px; }

  /* Без JS меню лишається звичайним списком під шапкою: бургер сховано,
     офф-канвас не вмикається, навігація доступна. */
  .header__inner { flex-wrap: wrap; }
  .nav { width: 100%; order: 3; padding-bottom: 14px; }

  .js .burger { display: inline-flex; }

  .js .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    width: auto;
    background: var(--paper);
    padding: 22px var(--gutter) 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--t);
    visibility: hidden;
  }
  .js .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link {
    padding: 15px 14px;
    font-size: 1.06rem;
    border-radius: var(--radius-s);
    border-bottom: 1px solid var(--line);
  }
  .nav__cta { margin-top: 18px; }
  .nav__cta .btn { width: 100%; }

  .header__side { margin-left: auto; }

  body.is-locked { overflow: hidden; }
}

@media (max-width: 940px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__media { order: -1; max-width: 460px; }
  .hero__figure { aspect-ratio: 5 / 4; }
  .hero__badge { left: auto; right: 14px; bottom: 14px; max-width: 88%; }

  .split, .split--wide-text, .grid--3, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .split .figure { order: -1; }

  .actionbar { display: flex; }
  .footer { padding-bottom: 90px; }
}

@media (max-width: 560px) {
  .facts, .grid--2, .grid--4, .flow, .gallery, .form__grid, .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .specs li { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .hero__cta .btn { width: 100%; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .flow__item::before { display: none; }
}

@media print {
  .header, .actionbar, .form, .map, .nav { display: none !important; }
  body { font-size: 12pt; }
}
