/* ==========================================================================
   Nalipka — стилі сайту
   Зміст: шрифти · змінні · база · кнопки · шапка · перший екран · розділи ·
          картки · кроки · форма · питання · фінальний заклик · підвал ·
          нижня панель · прості сторінки · зменшення анімацій
   Після зміни файлу збільшіть ?v= у посиланні на нього в усіх HTML.
   ========================================================================== */

/* ---------- Шрифти (локальні, latin + cyrillic) ---------- */
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin-cyrillic.woff2") format("woff2");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Запасні шрифти з підігнаними метриками: поки вантажиться woff2, текст
   займає майже те саме місце, тож сторінка не «стрибає» (CLS). */
@font-face {
  font-family: "Nunito Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 800 900;
  size-adjust: 103.59%;
  ascent-override: 97.59%;
  descent-override: 34.08%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Nunito Fallback Android";
  src: local("Roboto");
  font-weight: 800 900;
  size-adjust: 106.67%;
  ascent-override: 94.78%;
  descent-override: 33.09%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 101.1%;
  ascent-override: 105.44%;
  descent-override: 29.67%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Manrope Fallback Android";
  src: local("Roboto");
  size-adjust: 99.48%;
  ascent-override: 107.16%;
  descent-override: 30.16%;
  line-gap-override: 0%;
}

/* ---------- Змінні ---------- */
:root {
  --red: #E31E24;        /* кнопки й акценти; білий текст на ньому — 4.7:1 */
  --red-dark: #C4161C;   /* дрібний червоний текст і hover — 5.6:1 на кремовому */
  --ink: #1E1A18;
  --ink-soft: #5C534D;   /* другорядний текст — 7:1 на кремовому */
  --cream: #FBF6EE;
  --white: #FFFFFF;
  --kraft: #D8B48A;
  --kraft-light: #F3E6D3;
  --mustard: #FFC542;
  --sage: #A9C2A0;
  --line: #E5D9C6;
  --field-border: #8A8078;
  --focus: #1E1A18;

  --font-head: "Nunito", "Nunito Fallback", "Nunito Fallback Android", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Manrope", "Manrope Fallback", "Manrope Fallback Android", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --pad: 16px;
  --container: 1160px;
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 64px;
  --shadow: 0 1px 2px rgba(30, 26, 24, .06), 0 10px 28px rgba(30, 26, 24, .08);
}

@media (min-width: 640px) {
  :root { --pad: 24px; }
}

@media (min-width: 1024px) {
  :root { --pad: 32px; --header-h: 76px; }
}

/* ---------- База ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

@media (min-width: 900px) {
  html { scroll-padding-top: calc(var(--header-h) + 16px); }
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
  body { font-size: 1.0625rem; }
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.01em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.35rem + 3.1vw, 3.5rem); }
h2 { font-size: clamp(1.625rem, 1.25rem + 1.9vw, 2.5rem); }
h3 { font-size: 1.1875rem; font-weight: 800; line-height: 1.25; letter-spacing: 0; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: inherit;
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
}

a:hover { text-decoration-thickness: .14em; }

a[href^="tel:"] { white-space: nowrap; }

img,
svg { display: block; max-width: 100%; }

img { height: auto; }

button,
input,
textarea { font: inherit; color: inherit; }

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

[hidden] { display: none !important; }

.container {
  width: min(100% - 2 * var(--pad), var(--container));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
}

.skip-link:focus { top: 12px; outline-color: var(--mustard); }

.icon {
  flex: none;
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 52px;
  padding: .65em 1.4em;
  border: 2px solid transparent;
  border-radius: 999px;
  background: none;
  font: 800 1.0625rem/1.15 var(--font-head);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
}

.btn--primary:hover { background: var(--red-dark); }

.btn--ghost {
  background: var(--white);
  border-color: var(--ink);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--white);
}

.btn--light {
  background: var(--cream);
  color: var(--ink);
}

.btn--light:hover { background: var(--white); }

.btn--sm {
  min-height: 44px;
  padding: .45em .95em;
  font-size: .9375rem;
}

.btn[aria-disabled="true"] {
  opacity: .75;
  cursor: progress;
}

/* ---------- Шапка ---------- */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .site-header {
    position: sticky;
    top: 0;
    background: rgba(251, 246, 238, .94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  flex: none;
  padding: 6px 0;
}

.logo img { width: 120px; }

@media (min-width: 640px) {
  .logo img { width: 142px; }
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header__cta { display: none; }

@media (min-width: 640px) {
  .site-header__cta { display: inline-flex; }
}

@media (max-width: 359.98px) {
  .site-header__tg-label { display: none; }
}

.nav-toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px var(--pad) 16px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 24px rgba(30, 26, 24, .08);
}

.site-nav.is-open { display: block; }

.site-nav__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list a {
  display: block;
  padding: 12px 4px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav__list a:hover { color: var(--red-dark); }

/* Без JavaScript меню просто показується під шапкою */
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .site-header__inner { flex-wrap: wrap; }

html:not(.js) .site-nav {
  display: block;
  position: static;
  order: 3;
  flex-basis: 100%;
  padding: 0 0 8px;
  border: 0;
  box-shadow: none;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .site-nav,
  .site-nav.is-open,
  html:not(.js) .site-nav {
    display: block;
    position: static;
    order: 0;
    flex-basis: auto;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .site-nav__list {
    display: flex;
    gap: 2px;
  }

  .site-nav__list a {
    padding: 10px 12px;
    font-size: .9375rem;
  }
}

/* ---------- Перший екран ---------- */
.hero {
  padding-block: clamp(28px, 6vw, 72px) clamp(40px, 7vw, 88px);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 48px;
  }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border: 1.5px dashed var(--kraft);
  border-radius: 999px;
  background: var(--white);
  font: 800 .875rem/1.25 var(--font-head);
  letter-spacing: .01em;
}

.hero__lead {
  max-width: 34em;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem);
}

/* Офер: рядок прихований в HTML, доки його не заповнено */
.hero__offer {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--mustard);
  font-weight: 700;
}

.hero__cta {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

@media (min-width: 480px) {
  .hero__cta {
    display: flex;
    flex-wrap: wrap;
  }
}

.hero__points {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero__points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
}

.hero__points svg {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: .1em;
}

.hero__art {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .hero__art { max-width: 560px; }
}

.hero__art svg {
  width: 100%;
  height: auto;
}

.hero__art text {
  font-family: var(--font-head);
  font-weight: 900;
}

/* ---------- Розділи ---------- */
.section { padding-block: clamp(48px, 8vw, 96px); }

.section--tint { background: var(--kraft-light); }

.section__head {
  max-width: 720px;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.section__lead {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

.section__lead a {
  color: var(--red-dark);
  font-weight: 600;
}

/* ---------- Картки «Для кого» ---------- */
.niches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .niches { gap: 16px; }
}

@media (min-width: 900px) {
  .niches {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}

.niche {
  height: 100%;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

@media (min-width: 640px) {
  .niche { padding: 24px; }
}

.niche__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 5px 0 20px 5px;
  border-radius: 50%;
  background: var(--cream);
}

/* пунктир — як лінія порізки на аркуші наліпок */
.niche__icon::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px dashed var(--kraft);
  border-radius: 50%;
}

.niche__icon svg {
  width: 36px;
  height: 36px;
}

.niche h3 {
  font-size: 1.0625rem;
  overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .niche h3 { font-size: 1.1875rem; }
}

.niche p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: .9375rem;
  line-height: 1.5;
}

/* ---------- Картки «Що друкуємо» і «Ціни» (розділи приховані в HTML до заповнення) ---------- */
.specs {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .specs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}

.spec {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.spec p {
  margin-top: 8px;
  color: var(--ink-soft);
}

.spec__price {
  margin-top: 10px;
  color: var(--ink);
  font: 900 1.5rem/1.2 var(--font-head);
}

/* ---------- Галерея (розділ прихований в HTML до появи фото) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--kraft-light);
}

/* ---------- Кроки ---------- */
.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}

.step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

@media (min-width: 900px) {
  .step {
    display: block;
    padding: 24px;
  }
}

.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font: 900 1.375rem/1 var(--font-head);
}

@media (min-width: 900px) {
  .step__num { margin-bottom: 18px; }
}

.step p {
  margin-top: 6px;
  color: var(--ink-soft);
}

/* ---------- Форма заявки ---------- */
.lead {
  display: grid;
  gap: 24px;
  align-items: start;
}

@media (min-width: 960px) {
  .lead {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 32px;
  }
}

.form {
  position: relative;
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .form { padding: 32px; }
}

.form__row {
  display: grid;
  gap: 18px;
}

@media (min-width: 640px) {
  .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.field {
  min-width: 0;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.form__row .field,
.form > .field:first-child { margin-top: 0; }

.field > label,
.field > legend {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  font-size: .9375rem;
  font-weight: 700;
}

.field__optional {
  color: var(--ink-soft);
  font-weight: 400;
}

.req { color: var(--red-dark); }

.field input[type="text"],
.field input[type="tel"],
.field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 1rem; /* не менше 16px, щоб iOS не масштабував сторінку */
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea {
  min-height: 104px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6F665F;
  opacity: 1;
}

.field input[type="text"]:focus-visible,
.field input[type="tel"]:focus-visible,
.field textarea:focus-visible {
  outline-offset: 1px;
  border-color: var(--ink);
  border-radius: var(--radius-sm);
}

.field [aria-invalid="true"] {
  border-color: var(--red-dark);
  box-shadow: 0 0 0 1px var(--red-dark);
}

.field__hint,
.field__error {
  margin: 6px 0 0;
  font-size: .875rem;
  line-height: 1.4;
}

.field__hint { color: var(--ink-soft); }

.field__error {
  color: var(--red-dark);
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  display: inline-flex;
}

.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid var(--field-border);
  border-radius: 999px;
  background: var(--white);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.chip:hover span { border-color: var(--ink); }

.chip input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.chip input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.field > .check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0;
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.45;
  cursor: pointer;
}

.check input {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--red);
  cursor: pointer;
}

.check > span { padding-top: 1px; }

.check a { color: var(--red-dark); }

/* Поле-пастка для ботів: людям не видно й не доступне з клавіатури */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__submit {
  width: 100%;
  margin-top: 22px;
}

@media (min-width: 640px) {
  .form__submit {
    width: auto;
    min-width: 260px;
  }
}

/* Без JavaScript форма не надсилається — ховаємо кнопку, лишається підказка з контактами */
html:not(.js) .form__submit { display: none; }

.form-status {
  margin-top: 18px;
  padding: 16px;
  border: 2px solid var(--red-dark);
  border-radius: var(--radius-sm);
  background: #FFF4F2;
}

.form-status p { font-weight: 600; }

.form-status__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 12px;
}

.form-status__actions a:not(.btn) {
  padding: 10px 0;
  font-weight: 700;
}

.contact-card {
  padding: 24px;
  border: 1.5px dashed var(--kraft);
  border-radius: var(--radius);
  background: var(--kraft-light);
}

@media (min-width: 640px) {
  .contact-card { padding: 32px; }
}

/* на широкому екрані картка з контактами лишається поруч, поки гортають форму */
@media (min-width: 960px) {
  .contact-card {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

.contact-card h3 {
  font-size: 1.375rem;
  font-weight: 900;
}

.contact-card p {
  margin-top: 10px;
  color: var(--ink-soft);
}

.contact-card .btn { margin-top: 18px; }

.contact-card__label {
  margin-top: 24px;
  font-weight: 700;
  color: var(--ink);
}

.phones {
  display: grid;
  gap: 2px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.phones a {
  display: inline-block;
  padding: 9px 0;
  font: 800 1.1875rem/1.4 var(--font-head);
  text-decoration: none;
}

.phones a:hover { text-decoration: underline; }

/* ---------- Питання й відповіді ---------- */
.faq { max-width: 800px; }

/* на широкому екрані: заголовок ліворуч, питання праворуч */
@media (min-width: 960px) {
  .split {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 48px;
    align-items: start;
  }

  .split > .section__head {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    margin-bottom: 0;
  }

  .split > .faq { max-width: none; }
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.faq__item + .faq__item { margin-top: 10px; }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary h3 { font-size: 1.0625rem; }

.faq__item summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 2.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2.5px 100% no-repeat;
}

.faq__item[open] summary::after {
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 2.5px no-repeat;
}

.faq__answer {
  padding: 0 18px 18px;
  color: var(--ink-soft);
}

.faq__answer a { color: var(--red-dark); }

/* ---------- Фінальний заклик ---------- */
.cta-final { padding-block: clamp(40px, 7vw, 80px); }

.cta-final__box {
  --focus: var(--mustard);
  padding: clamp(28px, 6vw, 64px) clamp(20px, 5vw, 64px);
  border-radius: 28px;
  background: var(--ink);
  color: var(--cream);
  text-align: center;
}

.cta-final__box p {
  max-width: 36em;
  margin: 14px auto 0;
  color: #E9DFD2;
  text-wrap: balance;
}

.cta-final__actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

@media (min-width: 560px) {
  .cta-final__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ---------- Підвал ---------- */
.site-footer {
  padding-block: 40px 28px;
  border-top: 1px solid rgba(30, 26, 24, .12);
  background: var(--kraft-light);
  font-size: .9375rem;
}

/* місце під закріплену нижню панель на телефоні (тільки на головній) */
@media (max-width: 767.98px) {
  .site-footer--with-bar { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
}

.site-footer__grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
  }
}

.site-footer__about p {
  max-width: 26em;
  margin-top: 12px;
  color: var(--ink-soft);
}

.site-footer h2 {
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.site-footer ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li a {
  display: inline-block;
  padding: 10px 0;
}

.site-footer__legal {
  color: var(--ink-soft);
  line-height: 1.5;
}

.site-footer__bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(30, 26, 24, .12);
  color: var(--ink-soft);
}

/* ---------- Закріплена нижня панель (тільки телефон) ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 249, .97);
  box-shadow: 0 -8px 24px rgba(30, 26, 24, .1);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
}

.sticky-cta.is-visible {
  transform: none;
  visibility: visible;
  transition: transform .25s ease, visibility 0s;
}

.sticky-cta .btn {
  min-height: 48px;
  padding: .5em 1em;
  font-size: .9375rem;
}

.sticky-cta .btn--primary { flex: 1 1 auto; }

@media (min-width: 360px) {
  .sticky-cta .btn { white-space: nowrap; }
}

@media (min-width: 768px) {
  .sticky-cta { display: none; }
}

/* ---------- Прості сторінки: подяка, 404, політика ---------- */
.page { padding-block: clamp(40px, 8vw, 96px); }

.page--center { text-align: center; }

.page--center .page__inner {
  max-width: 640px;
  margin-inline: auto;
}

.page__mark {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
}

.page__mark text {
  font-family: var(--font-head);
  font-weight: 900;
}

.page__note {
  margin-top: 24px;
  color: var(--ink-soft);
}

.page__note a {
  color: var(--ink);
  font-weight: 700;
}

.page__lead {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.page__actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

@media (min-width: 480px) {
  .page__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.prose { max-width: 760px; }

.prose h1 { margin-bottom: 12px; }

.prose h2 {
  margin: 40px 0 12px;
  font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem);
}

.prose ul {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

.prose li + li { margin-top: .35em; }

.prose a { color: var(--red-dark); }

.prose__meta { color: var(--ink-soft); }

.prose table {
  width: 100%;
  margin: 0 0 1em;
  border-collapse: collapse;
  font-size: .9375rem;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--white);
  text-align: left;
  vertical-align: top;
}

.prose th { background: var(--kraft-light); }

.table-wrap { overflow-x: auto; }

/* позначка незаповнених даних у шаблоні Політики */
.todo {
  padding: 0 .3em;
  border-radius: 4px;
  background: var(--mustard);
  color: inherit;
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Менше руху ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
