/* GoodZik — светлый минимализм. Цвета и размеры — из Developer_Guide_UA.txt. */

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/onest-cyrillic-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/onest-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/onest-latin-wght-normal.woff2") format("woff2-variations");
  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;
}

:root {
  --white: #FFFFFF;
  --warm: #F7F6F3;
  --text: #22262B;
  --muted: #5B6168;
  --blue: #082F61;
  --blue-hover: #0B3F80;
  --red: #E71736;
  --ochre: #B5541C; /* надзаголовок первого экрана (по макету 21.10.2026) */
  --line: #E4E2DC;
  --error: #B4122B;
  --success: #1F6B3A;

  --container: 1200px;
  --gutter: 32px;
  --section: 96px;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --focus: 0 0 0 3px var(--white), 0 0 0 5px var(--blue);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
strong { font-weight: 650; }

h1, h2, h3 { color: var(--blue); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(34px, 1.3rem + 3.6vw, 60px); line-height: 1.06; letter-spacing: -0.025em; }
h2 { font-size: clamp(28px, 1.4rem + 1.3vw, 42px); }
h3, .h3-like { font-size: 21px; line-height: 1.3; letter-spacing: -0.005em; }
.h3-like { color: var(--blue); font-weight: 700; margin: 0 0 .6em; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; box-shadow: var(--focus); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--blue); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(860px + 2 * var(--gutter)); }
.narrow-center { max-width: calc(860px + 2 * var(--gutter)); text-align: center; }
.center { text-align: center; }
.muted { color: var(--muted); }

.section { padding: var(--section) 0; }
.section--warm { background: var(--warm); }
.section--tight { padding: 48px 0; }
.section--tight-top { padding-top: 56px; }
.section__head { margin-bottom: 40px; max-width: 820px; }
.section__head.center { margin-left: auto; margin-right: auto; }
.section__lead { font-size: 19px; color: var(--muted); }
.section > .container > p.center, .section > .container > p.muted { margin-top: 32px; }

.accent-line { display: block; width: 40px; height: 3px; background: var(--red); border-radius: 2px; margin-bottom: 20px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  font: inherit; font-size: 17px; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-hover); color: var(--white); }
.btn--outline { background: var(--white); color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--warm); color: var(--blue); }
.btn--light { background: var(--white); color: var(--blue); }
.btn--light:hover { background: var(--warm); color: var(--blue); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn--lg { min-height: 56px; font-size: 18px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn-row--center { justify-content: center; }

.icon { width: 24px; height: 24px; flex: none; }
.icon--btn { width: 20px; height: 20px; }
.icon--btn-l { width: 20px; height: 20px; margin-right: 2px; }
.icon--md { width: 28px; height: 28px; }
.icon--lg { width: 36px; height: 36px; color: var(--blue); }
.icon--xl { width: 52px; height: 52px; color: var(--blue); stroke-width: 1.3; }
.icon--accent { color: var(--blue); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; }
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.header__inner { display: flex; align-items: center; gap: 32px; min-height: 76px; }

/* Логотип: исходный файл с белыми полями, поля скрыты контейнером (пропорции не меняются). */
.logo { display: inline-flex; flex: none; border-radius: 4px; }
.logo__crop { position: relative; display: block; width: 150px; aspect-ratio: 1606 / 297; overflow: hidden; }
.logo__crop img { position: absolute; width: 127.52%; max-width: none; height: auto; left: -13.51%; top: -68.01%; }
.logo--footer .logo__crop { width: 170px; }

.nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav__cta { white-space: nowrap; }

.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand__tag { font-size: 14px; color: var(--muted); white-space: nowrap; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; font-size: 16px; color: var(--blue); text-decoration: none; white-space: nowrap; }
.nav__phone:hover { color: var(--blue-hover); text-decoration: underline; }
.nav__phone-icon { width: 18px; height: 18px; }

.only-narrow { display: none !important; }
.nav__list { display: flex; gap: 6px; list-style: none; }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; white-space: nowrap; color: var(--text); font-size: 16px; font-weight: 500; text-decoration: none; position: relative; }
.nav__link:hover { color: var(--blue); }
.nav__link[aria-current="page"] { color: var(--blue); font-weight: 600; }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--red); border-radius: 2px; }

/* Переключатель языка UA / RU */
.lang { display: flex; gap: 2px; list-style: none; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang__item { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 34px; padding: 0 10px; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: .02em; text-decoration: none; color: var(--muted); }
a.lang__item:hover { color: var(--blue); background: var(--warm); }
.lang__item--current { background: var(--blue); color: var(--white); }

.burger { display: none; margin-left: auto; width: 48px; height: 48px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--blue); cursor: pointer; }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

/* ---------- первый экран ---------- */
.hero { background: var(--warm); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 48px; min-height: 560px; padding-top: 56px; padding-bottom: 56px; }
.hero__text .lead { margin-top: 20px; max-width: 540px; }
.lead { font-size: 20px; line-height: 1.55; color: var(--text); }
.hero__media { position: relative; }
.hero__img { width: 100%; border-radius: var(--radius); }
.hero__media--portrait { justify-self: end; max-width: 420px; width: 100%; }
.media-note { margin-top: 10px; font-size: 14px; color: var(--muted); }
.hero__media .media-note { text-align: right; }

/* Фото 01 снято с пустым левым полем: на desktop оно занимает правую часть экрана до края,
   текст стоит на пустом фоне и не перекрывает лицо. */
@media (min-width: 861px) {
  .hero--bleed { position: relative; }
  .hero--bleed .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: clamp(560px, 46vw, 680px); }
  .hero--bleed .hero__text { position: relative; z-index: 2; }
  .hero--bleed .hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 55%; }
  .hero--bleed .hero__media::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 12%; background: linear-gradient(90deg, var(--warm), rgba(247,246,243,0)); z-index: 1; }
  .hero--bleed .hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 30%; border-radius: 0; }
}

/* ---------- первый экран главной ---------- */
.eyebrow { margin: 0 0 18px; font-size: 14px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ochre); }
.hero--home .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; min-height: 0; padding-top: 64px; padding-bottom: 72px; }
.hero--home h1 { max-width: 640px; }
.hero--home .lead { margin-top: 18px; max-width: 600px; }
.hero-facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; max-width: 640px; }
.hero-facts li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.hero-facts strong { display: block; font-size: 26px; line-height: 1.15; color: var(--blue); letter-spacing: -0.01em; }
.hero-facts span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.hero--home .hero__actions { margin-top: 28px; }
.hero__note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border-radius: 16px; background: var(--line); }
.hero__photo figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ---------- факты ---------- */
.facts-wrap { padding: 56px 0 8px; }
.facts { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { padding: 28px 24px; text-align: center; font-size: 17px; color: var(--muted); display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.facts li + li { border-left: 1px solid var(--line); }
.facts strong { display: block; font-size: 30px; line-height: 1.15; color: var(--blue); font-weight: 700; letter-spacing: -0.02em; }
.facts li span { display: block; }
.facts__note { margin-top: 18px; text-align: center; color: var(--muted); font-size: 16px; }

/* ---------- карточки ---------- */
.cards { display: grid; gap: 24px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.section--warm .card { border-color: transparent; }
.card--pad { padding: 32px; }
.card--pad > .icon { margin-bottom: 20px; }
.card--pad p { color: var(--muted); }
.card--media .card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--warm); position: relative; }
.card--media .card__media img { width: 100%; height: 100%; object-fit: cover; }
.card--media .media-note { position: absolute; right: 8px; bottom: 8px; margin: 0; padding: 2px 8px; background: rgba(255,255,255,.9); border-radius: 4px; font-size: 13px; }
.card__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--muted); flex: 1; }
.card__body .link-arrow { margin-top: 12px; align-self: flex-start; }

.cards--divided { gap: 0; }
.cards--divided .feature + .feature { border-left: 1px solid var(--line); }
.feature { padding: 8px 32px; text-align: center; }
.feature > .icon { margin: 0 auto 16px; }
.feature p { color: var(--muted); }
.feature--left { text-align: left; padding: 0; }
.feature--left > .icon { margin: 0 0 18px; }

/* ---------- категории ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0; }
.chips li { padding: 10px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: 17px; font-weight: 500; }

/* ---------- галерея ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery--4 { grid-template-columns: repeat(4, 1fr); }
.g-item figcaption { margin-top: 12px; font-size: 16px; color: var(--muted); }
.g-item figcaption strong { color: var(--text); }
.g-link { display: block; border-radius: var(--radius); overflow: hidden; background: var(--warm); aspect-ratio: 2 / 3; }
.g-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.g-link:hover img { transform: scale(1.025); }
#portfolio .gallery + .center { margin-top: 36px; }

.more-photos { margin-top: 36px; }
.more-photos summary { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 1.5px solid var(--blue); border-radius: var(--radius-sm); color: var(--blue); font-weight: 600; cursor: pointer; list-style: none; background: var(--white); }
.more-photos summary::-webkit-details-marker { display: none; }
.more-photos summary::after { content: "+"; margin-left: 10px; font-size: 22px; line-height: 1; }
.more-photos[open] summary::after { content: "−"; }
.more-photos { text-align: center; }
.gallery--more { margin-top: 28px; text-align: left; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ---------- блоки текст + фото ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split--top { align-items: start; }
.split__media img { width: 100%; border-radius: var(--radius); }
.split__media--portrait { max-width: 460px; justify-self: center; width: 100%; }
.with-icon { display: flex; gap: 14px; align-items: flex-start; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 24px; }
.with-icon .icon { color: var(--blue); margin-top: 2px; }

/* ---------- процесс ---------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; border: 1.5px solid var(--blue); color: var(--blue); font-weight: 700; font-size: 16px; background: var(--white);
}
.steps li::after { content: ""; position: absolute; top: 23px; left: 58px; right: -12px; height: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { font-size: 16px; color: var(--muted); }

/* ---------- условия ---------- */
.terms { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.terms--3 { grid-template-columns: repeat(3, 1fr); }
.terms li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.section--warm .terms li { border-color: transparent; }
.terms .icon { margin-bottom: 16px; }
.terms p { font-size: 17px; color: var(--muted); }
.terms strong { color: var(--blue); }

.note { display: flex; gap: 16px; margin-top: 24px; padding: 24px 28px; background: var(--warm); border-radius: var(--radius); }
.note .icon { color: var(--blue); }
.note p { margin-bottom: .4em; }

.icon-row { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-bottom: 32px; }
.icon-row li { display: flex; flex-direction: column; gap: 14px; font-weight: 600; color: var(--blue); font-size: 17px; line-height: 1.3; }

.mini-list { list-style: none; border-top: 1px solid var(--line); }
.mini-list li { display: flex; align-items: center; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 19px; color: var(--blue); }

.numbered { list-style: none; counter-reset: num; }
.numbered li { counter-increment: num; position: relative; padding: 14px 0 14px 60px; border-bottom: 1px solid var(--line); min-height: 64px; display: flex; align-items: center; }
.numbered li::before { content: counter(num); position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--blue); color: var(--blue); display: grid; place-items: center; font-weight: 700; font-size: 16px; }

.ownership { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; padding: 48px; background: #EDF1F6; border-radius: var(--radius); align-items: center; }
.ownership .accent-line { margin: 4px 0 20px; }
.ownership__side { display: flex; gap: 20px; align-items: flex-start; padding-left: 40px; border-left: 1px solid #CDD6E1; }
.ownership__side p { color: var(--text); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 28px 0; background: var(--white); border-radius: var(--radius); }
.duo > div { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.duo > div + div { border-left: 1px solid var(--line); }
.duo .icon { color: var(--blue); }
.duo p { font-size: 16px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { margin: 0; font-size: inherit; }
.faq__btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 64px; padding: 16px 4px; background: none; border: 0; text-align: left; cursor: pointer;
  font: inherit; font-size: 19px; font-weight: 600; color: var(--blue);
}
.faq__chev { transition: transform .2s; color: var(--blue); }
.faq__btn[aria-expanded="true"] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 4px 22px; color: var(--muted); max-width: 760px; }
.js .faq__a[hidden] { display: none; }

/* ---------- CTA ---------- */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px 56px; border-radius: var(--radius); background: var(--warm); }
.cta--dark { background: var(--blue); }
.cta--dark h2 { color: var(--white); }
.cta--dark p { color: rgba(255,255,255,.85); }
.cta__text { max-width: 680px; }
.cta__text h2 { margin-bottom: .35em; }
.cta .btn { flex: none; }

/* ---------- контакты ---------- */
.hero--contacts .hero__grid { min-height: 440px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; background: var(--white); }
.panel--warm { background: var(--warm); border-color: transparent; }
.contact-info { position: sticky; top: 100px; }
.contact-list { list-style: none; margin: 8px 0 28px; }
.contact-list li { display: flex; gap: 16px; padding: 14px 0; align-items: flex-start; }
.contact-list__icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--warm); color: var(--blue); }
.contact-list__icon .icon { width: 20px; height: 20px; }
a.contact-list__icon { transition: background-color .15s, color .15s; }
a.contact-list__icon:hover { background: var(--blue); color: var(--white); }
.contact-list__label { display: block; font-size: 14px; color: var(--muted); }
.contact-list__value { display: block; font-weight: 600; color: var(--text); font-size: 18px; }
a.contact-list__value { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(8,47,97,.3); text-underline-offset: 4px; }
a.contact-list__value:hover { text-decoration: underline; }
.contact-list__hint { display: block; font-size: 15px; color: var(--muted); margin-top: 2px; }
.contact-actions { display: grid; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-actions .btn { justify-content: flex-start; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-top: 6px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--blue); font: inherit; font-size: 14px; cursor: pointer; }
.copy-btn .icon { width: 16px; height: 16px; }
.copy-btn:hover { border-color: var(--blue); }

.requisites { max-width: 520px; }
.requisites p { color: var(--muted); }

/* ---------- форма ---------- */
.form-panel > p { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 600; }
.field__opt { font-weight: 400; color: var(--muted); }
.req { color: var(--red); }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid #CFCCC4; border-radius: var(--radius-sm); background: var(--white);
  font: inherit; font-size: 17px; color: var(--text); line-height: 1.4;
}
textarea { min-height: 140px; resize: vertical; }
select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23082F61' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
::placeholder { color: #8A8F96; opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: #A9A59B; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.field__error { margin: 0; color: var(--error); font-size: 15px; font-weight: 500; }

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

.dropzone { display: flex; align-items: center; gap: 16px; padding: 22px; border: 1.5px dashed #BDB9AF; border-radius: var(--radius); background: var(--white); cursor: pointer; }
.dropzone:hover, .dropzone.is-over { border-color: var(--blue); }
.dropzone .icon { color: var(--blue); }
.dropzone__title { display: block; font-weight: 600; color: var(--blue); font-size: 17px; }
.dropzone__hint { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }
.file-input { margin-top: 8px; font: inherit; font-size: 15px; }
.js .file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.js .file-input:focus-visible + .file-list, .js .dropzone:has(+ .file-input:focus-visible) { box-shadow: var(--focus); }
.file-list { list-style: none; display: grid; gap: 8px; }
.file-list:empty { display: none; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 15px; }
.file-list__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list__size { color: var(--muted); flex: none; }
.file-list button { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: 6px; cursor: pointer; }
.file-list button:hover { color: var(--error); background: var(--warm); }
.file-list .icon { width: 18px; height: 18px; }

.form-privacy { margin: 22px 0 18px; font-size: 15px; color: var(--muted); }
.form-note { margin-top: 14px; font-size: 15px; color: var(--muted); }

.form-status { margin: 20px 0 4px; padding: 16px 18px; border-radius: var(--radius-sm); font-weight: 500; }
.form-status--success { background: #E6F2EA; color: var(--success); border: 1px solid #B9D8C4; }
.form-status--error { background: #FBEAEC; color: var(--error); border: 1px solid #F0C3CA; }
.form-status--sending { background: var(--white); color: var(--blue); border: 1px solid var(--line); }
.form-status:focus { outline: none; }

/* ---------- подвал ---------- */
.footer { background: var(--warm); border-top: 1px solid var(--line); padding: 56px 0 0; font-size: 16px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 40px; padding-bottom: 40px; }
.footer__brand p { margin: 16px 0 0; color: var(--muted); }
.footer__brand .footer__legal { margin-top: 8px; color: var(--text); }
.footer__nav ul { list-style: none; display: grid; gap: 2px; }
.footer__nav a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text); text-decoration: none; }
.footer__nav a:hover { color: var(--blue); text-decoration: underline; }
.footer__nav a[aria-current="page"] { color: var(--blue); font-weight: 600; }
.footer__contacts { list-style: none; display: grid; gap: 12px; align-content: start; }
.footer__contacts li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contacts .icon { width: 20px; height: 20px; color: var(--blue); margin-top: 3px; flex: none; }
.footer__link { display: inline-flex; gap: 12px; align-items: flex-start; min-height: 32px; color: var(--blue); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(8,47,97,.3); text-underline-offset: 4px; }
.footer__link:hover { color: var(--blue-hover); text-decoration-color: currentColor; }
.footer__bottom { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 24px; color: var(--muted); font-size: 15px; }

.footer__btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0; border: 0; background: none; font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.footer__btn:hover { color: var(--blue); text-decoration: underline; }

/* ---------- согласие на cookie ---------- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: var(--blue); color: var(--white); border-top: 3px solid var(--red); box-shadow: 0 -10px 30px rgba(8,47,97,.35); }
.consent[hidden] { display: none; }
.consent__inner { display: flex; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.consent__text { margin: 0; font-size: 16px; flex: 1; color: var(--white); }
.consent__text a { color: var(--white); text-decoration-color: rgba(255,255,255,.6); }
.consent__text a:hover { color: var(--white); text-decoration-color: currentColor; }
.consent__actions { display: flex; gap: 10px; flex: none; }
.consent .btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.75); }
.consent .btn--outline:hover { background: rgba(255,255,255,.12); color: var(--white); }
.consent .btn--primary { background: var(--white); color: var(--blue); }
.consent .btn--primary:hover { background: var(--warm); color: var(--blue); }
.consent .btn:focus-visible { box-shadow: 0 0 0 3px var(--blue), 0 0 0 5px var(--white); }
@media (max-width: 700px) {
  .consent__inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .consent__actions .btn { flex: 1; }
}

/* ---------- страница «Ціни» ---------- */
.prices-head { padding-top: 40px; }
.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.prices-head .lead { max-width: 720px; }
.prices-title { margin: 56px 0 20px; font-size: clamp(24px, 1.2rem + 1vw, 32px); }

.price-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 18px; }
.price-table thead th { background: var(--blue); color: var(--white); font-weight: 700; text-align: left; padding: 16px 24px; }
.price-table tbody th, .price-table td { padding: 16px 24px; text-align: left; border-top: 1px solid var(--line); }
.price-table tbody th { font-weight: 700; color: var(--text); }
.price-table tbody tr:nth-child(even) { background: #FAF9F6; }
.price-table th:first-child { width: 42%; }
.price-note { margin-top: 12px; font-size: 15px; color: var(--muted); }

.price-cards { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; }
.price-card h3 { margin: 0; font-size: 17px; color: var(--text); }
.price-card__big { margin: 6px 0 10px; font-size: 30px; font-weight: 700; line-height: 1.15; color: var(--blue); letter-spacing: -0.01em; }
.price-card__lines { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

.price-info { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.price-info__box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; }
.price-info__box ul { margin: 0; padding-left: 22px; }
.price-info__box li { margin: 6px 0; }

.prices-cta { margin-top: 48px; }
.prices-cta__btns { margin-top: 0; flex: none; }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.8); }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); color: var(--white); }

@media (max-width: 1100px) {
  .price-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  /* Синий CTA на телефоне не показываем — его заменяет нижняя панель (ТЗ). */
  .prices-cta { display: none; }
  .price-info { grid-template-columns: 1fr; }
  .price-info__box { padding: 22px 20px; }
}
@media (max-width: 768px) {
  /* Таблица -> карточки: одна карточка = один виріб, синяя шапка и 3 ячейки 20 / 50 / 100 шт. */
  .price-table, .price-table tbody { display: block; border: 0; background: none; border-radius: 0; overflow: visible; }
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 12px; background: var(--white) !important; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .price-table tbody th { grid-column: 1 / -1; width: auto !important; background: var(--blue); color: var(--white); padding: 12px 16px; border-top: 0; font-size: 17px; }
  .price-table td { border-top: 0; padding: 10px 10px 12px; font-size: 16px; font-weight: 700; color: var(--blue); white-space: nowrap; }
  .price-table td + td { border-left: 1px solid var(--line); }
  .price-table td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-bottom: 2px; }
  .price-cards { gap: 10px; }
  .price-card { padding: 16px 14px; }
  .price-card h3 { font-size: 15px; }
  .price-card__big { font-size: 22px; }
  .price-card__lines { font-size: 14px; }
  .prices-title { margin-top: 40px; }
}
@media (max-width: 380px) {
  .price-table td { font-size: 15px; padding: 10px 8px 12px; }
  .mbar__cta { font-size: 16px; padding-left: 14px; padding-right: 14px; gap: 8px; white-space: nowrap; }
}

/* ---------- нижняя панель на мобильных ---------- */
.mbar { display: none; }
@media (max-width: 860px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 140;
    display: flex; gap: 10px; align-items: stretch;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 18px rgba(8,47,97,.08); backdrop-filter: saturate(1.4) blur(8px);
  }
  .mbar__cta { flex: 1; min-height: 52px; }
  .mbar__tg {
    flex: none; width: 56px; min-height: 52px; display: grid; place-items: center;
    border-radius: var(--radius-sm); background: var(--white); color: var(--blue); border: 1.5px solid var(--blue);
  }
  .mbar__tg:hover { background: var(--warm); color: var(--blue); }
  .mbar__tg .icon { width: 24px; height: 24px; }
  .mbar__tg:focus-visible { outline: none; box-shadow: var(--focus); }
  /* Баннер cookie — над панелью, пока выбор не сделан. */
  .consent { bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* ---------- модальное окно ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal:target, .modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15, 22, 33, .55); }
.modal__box { position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 40px); overflow: auto; background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal__box p { color: var(--text); font-size: 17px; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--text); border-radius: 50%; }
.modal__close:hover { background: var(--warm); }

.lightbox { position: fixed; inset: 0; z-index: 210; background: rgba(12, 16, 22, .94); display: flex; align-items: center; justify-content: center; padding: 64px 72px; }
.lightbox[hidden] { display: none; }
.lightbox__figure { max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox__img { max-height: calc(100vh - 160px); width: auto; max-width: 100%; border-radius: 6px; }
.lightbox__caption { margin-top: 14px; color: #E9E9E9; font-size: 16px; text-align: center; max-width: 720px; }
.lightbox button { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: var(--white); cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox button:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .nav { gap: 16px; }
  .nav__link { padding: 0 8px; font-size: 15px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps li:nth-child(3)::after { display: none; }
  .icon-row { grid-template-columns: repeat(3, 1fr); }
  .terms { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1260px) {
  .burger { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 16px; margin: 0;
    padding: 12px var(--gutter) 24px; background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,.06);
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { min-height: 52px; font-size: 18px; padding: 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nav__link[aria-current="page"]::after { left: 0; right: auto; width: 32px; bottom: 10px; }
  .nav__cta { width: 100%; min-height: 52px; font-size: 17px; }
  .nav .lang { align-self: flex-start; }
  .nav__phone { min-height: 52px; font-size: 18px; }
  .lang__item { min-height: 40px; min-width: 48px; }
  .no-js .nav { position: static; display: flex; flex-direction: row; flex-wrap: wrap; padding: 0; box-shadow: none; border: 0; }
}

@media (max-width: 860px) {
  :root { --gutter: 20px; --section: 56px; }
  html { scroll-padding-top: 80px; }
  .header__inner { min-height: 64px; }
  .brand { flex-direction: column; align-items: flex-start; gap: 2px; }
  .brand__tag { font-size: 13px; }
  .only-wide { display: none !important; }
  .only-narrow { display: inline !important; }
  .hero--home .hero__grid { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; padding-bottom: 36px; }
  .hero--home .hero__actions, .hero__note { display: none; }
  .hero-facts { gap: 8px; margin-top: 20px; }
  .hero-facts li { padding: 12px; }
  .hero-facts strong { font-size: 21px; }
  .hero__photo img { aspect-ratio: 1 / 1; object-position: 50% 15%; }
  .logo__crop { width: 124px; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; min-height: 0; padding-top: 36px; padding-bottom: 40px; }
  .hero__media--portrait { justify-self: start; max-width: 260px; }
  .lead { font-size: 18px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li { padding: 22px 12px; font-size: 15px; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts strong { font-size: 24px; }
  .cards--2, .cards--3 { grid-template-columns: 1fr; }
  .cards--divided .feature + .feature { border-left: 0; border-top: 1px solid var(--line); }
  .feature { padding: 28px 0; }
  .feature--left { padding: 0; }
  .card--pad { padding: 26px; }
  .card__body { padding: 24px; }
  .gallery, .gallery--4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .gallery--more { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split__media--portrait { max-width: 400px; justify-self: start; order: 2; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 28px 64px; min-height: 64px; }
  .steps li::after { display: block !important; top: 50px; bottom: 4px; left: 23px; right: auto; width: 1px; height: auto; }
  .steps li:last-child::after { display: none !important; }
  .icon-row { grid-template-columns: repeat(2, 1fr); }
  .terms, .terms--3 { grid-template-columns: 1fr; }
  .ownership { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
  .ownership__side { padding-left: 0; border-left: 0; padding-top: 24px; border-top: 1px solid #CDD6E1; }
  .duo { grid-template-columns: 1fr; }
  .duo > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .cta { flex-direction: column; align-items: flex-start; padding: 36px 24px; }
  .cta .btn { width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { position: static; order: 2; }
  .panel { padding: 26px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .modal__box { padding: 32px 22px 24px; }
  .lightbox { padding: 64px 12px 24px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
  .lightbox__img { max-height: calc(100vh - 200px); }
  .lightbox__caption { margin-bottom: 64px; }
  .faq__btn { font-size: 17px; }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery--4 { grid-template-columns: repeat(2, 1fr); }
  .btn-row .btn { width: 100%; }
  .chips li { font-size: 15px; padding: 8px 14px; }
}
