/* =========================================================
   ТОВ «Двадцять п'ять годин» — лендинг кур'єрської служби
   Mobile-first: базові стилі для телефона, далі — планшет і десктоп.
   ========================================================= */

:root {
  --accent: #FFB703;
  --ink: #121826;
  --navy: #1E2B4A;
  --cream: #F7F4EE;
  --cream-2: #F9F6F1;
  --sand: #EFEBE3;
  --line: #E4DED3;
  --muted: #4A5468;
  --text-2: #3A4458;
  --label: #8A5A00;
  --on-dark: #DCE2EF;
  --on-dark-2: #C9D2E6;
  --viber: #6F4FB8;
  --telegram: #1F7AB8;

  --radius: 18px;
  --radius-lg: 24px;
  --gutter: 16px;
  --header-h: 68px;
  --actionbar-h: 72px;

  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Unbounded', 'Manrope', system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  /* room for the fixed bottom bar on phones */
  padding-bottom: calc(var(--actionbar-h) + env(safe-area-inset-bottom, 0px));
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--navy); }
a:hover { color: #0F172A; }

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

section[id], header[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- Icons ---------- */
.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico--accent { stroke: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) {
  .btn, .burger span { transition: none; }
  .btn:active { transform: none; }
}
.btn--lg { min-height: 56px; font-size: 17px; padding: 14px 26px; }
.btn--block { width: 100%; }

.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: #FFC533; color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #222B3D; color: #fff; }
.btn--ghost { color: #fff; border-color: #7E8BAA; font-weight: 700; }
.btn--ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.06); }
.btn--viber { background: var(--viber); color: #fff; border-radius: 16px; }
.btn--viber:hover { background: #7C5CC6; color: #fff; }
.btn--telegram { background: var(--telegram); color: #fff; border-radius: 16px; }
.btn--telegram:hover { background: #2589CB; color: #fff; }

/* ---------- Text helpers ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--label);
}
.eyebrow--light { color: var(--on-dark-2); font-weight: 700; }
.eyebrow--accent { color: var(--accent); }
.eyebrow__bar { width: 28px; height: 3px; background: var(--accent); flex: none; }

.h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(25px, 6.4vw, 42px);
  line-height: 1.18;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.accent { color: var(--accent); }
.nowrap { white-space: nowrap; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 246, 241, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__row {
  position: relative;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header__logo { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; min-height: 48px; }
.header__logo img { width: 255px; max-width: 100%; height: auto; }
.header__phone { display: none; }

/* burger (phones and tablets) */
.nav-toggle {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.burger {
  width: 48px;
  height: 48px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 14px;
  background: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.burger span {
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle:focus-visible + .burger { outline: 3px solid var(--accent); outline-offset: 3px; }
.nav-toggle:checked + .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle:checked + .burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked + .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--cream-2);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(18, 24, 38, .35);
  padding: 8px var(--gutter) 24px;
}
.nav-toggle:checked ~ .nav { display: flex; }
/* while the menu is open: no page scroll, no duplicate bottom bar */
body:has(.nav-toggle:checked) { overflow: hidden; }
body:has(.nav-toggle:checked) .actionbar { display: none; }
/* dimmed page under the open menu; tapping it closes the menu */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(18, 24, 38, .5);
  cursor: pointer;
}
body:has(.nav-toggle:checked) .nav-backdrop { display: block; }
.nav > a,
.nav__item > a {
  display: block;
  padding: 15px 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
/* «Про нас» with its sub-menu: on phones the sub-items are listed, indented, right under it */
.nav__item > a { display: flex; align-items: center; justify-content: space-between; gap: 6px; border-bottom: 0; }
.nav__item { border-bottom: 1px solid var(--line); }
.nav__arrow {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s ease;
}
.nav__sub { display: flex; flex-direction: column; padding: 0 0 12px 4px; }
.nav__sub a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-left: 2px solid var(--accent);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
}
.nav__contacts { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; }
.nav__msgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nav__hours { font-size: 14px; color: var(--muted); text-align: center; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; }
.hero__row {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 36px;
  padding-bottom: 48px;
}
.hero__text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(28px, 8.6vw, 62px);
  line-height: 1.1;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.hero__lead { font-size: 17px; line-height: 1.6; color: var(--on-dark); max-width: 560px; }

.hero__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.hero__call { grid-column: 1 / -1; }

.checks { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--on-dark); }
.checks li { display: flex; align-items: center; gap: 10px; }
.checks .ico { width: 18px; height: 18px; stroke-width: 2.6; }

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 560px;
  padding: 12px 14px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--on-dark);
  background: rgba(255, 255, 255, .07);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
}
.notice .ico { width: 18px; height: 18px; margin-top: 2px; }

.hero__media { min-width: 0; }
.framed {
  position: relative;
  margin: 12px 12px 0 0;
}
.framed::before {
  content: "";
  position: absolute;
  inset: -12px -12px 12px 12px;
  background: var(--accent);
  border-radius: calc(var(--radius-lg) + 4px);
}
.framed img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius-lg);
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section--white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--sand { background: var(--sand); }
.section--tight-bottom { padding-bottom: 0; }

.section__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.section__head > div { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.section__note { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 440px; }

/* About */
.about__row { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.about__head { display: flex; flex-direction: column; gap: 12px; }
.about__body { display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.7; color: var(--text-2); }

.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.benefit {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.benefit__ico {
  width: 28px; height: 28px;
  fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.benefit h3 { font-size: 16px; font-weight: 800; line-height: 1.3; }
.benefit p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* Services */
.services { display: grid; grid-template-columns: 1fr; gap: 10px; }
.service {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.service h3 { font-size: 17px; font-weight: 800; line-height: 1.3; margin-bottom: 4px; }
.service p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.service__ico {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 13px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.service__ico svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Steps */
.steps { display: grid; grid-template-columns: 1fr; gap: 0; counter-reset: none; }
.step {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 2px solid var(--ink);
}
.step--last { border-top-color: var(--accent); }
.step__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.1;
  color: var(--navy);
  min-width: 48px;
}
.step h3 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.step p { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.step a { font-weight: 800; white-space: nowrap; }

/* Rules */
.rules { display: grid; grid-template-columns: 1fr; gap: 10px; }
.rule {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rule h3 { font-size: 18px; font-weight: 800; }
.rule p { font-size: 15.5px; line-height: 1.65; color: var(--muted); }

/* Documents */
.docs { display: flex; flex-direction: column; gap: 12px; }
.doc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.doc h3 { font-size: 19px; font-weight: 800; line-height: 1.35; }
.doc p { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.doc__btn { align-self: stretch; margin-top: 4px; }
.docs__photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--line);
}
.docs__photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 55% 35%;
}

/* Contacts */
.contacts {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contacts__text { display: flex; flex-direction: column; gap: 14px; }
.contacts__logo { height: 38px; width: auto; align-self: flex-start; margin-bottom: 8px; }
.contacts__lead { font-size: 16px; line-height: 1.6; color: var(--on-dark-2); }
.contacts__lead a { color: #fff; font-weight: 700; }
.contacts__lead a:hover { color: #fff; }
.contacts__actions { display: flex; flex-direction: column; gap: 12px; }
.phone-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 18px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}
.phone-card:hover { color: #fff; background: #26365C; }
.phone-card__label { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); }
.phone-card__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(20px, 6.6vw, 36px); color: var(--accent); white-space: nowrap; }
.contacts__msgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* Footer */
.footer { background: var(--cream-2); border-top: 1px solid var(--line); }
.footer__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 32px;
  padding-bottom: 24px;
  text-align: center;
}
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer__invite { margin: 0; font-size: 14px; font-weight: 600; color: #5A6273; }
.footer__logo { height: 36px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 20px; font-size: 15px; font-weight: 600; }
.footer__nav a { text-decoration: none; padding: 10px 0; }
.footer__phone { font-weight: 800; }
.footer__copy {
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: #5A6273;
}

/* ---------- Mobile bottom action bar ---------- */
.actionbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 56px 56px;
  align-items: center;
  gap: 10px;
  padding: 8px max(10px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
  background: rgba(18, 24, 38, .97);
  box-shadow: 0 -10px 30px -12px rgba(18, 24, 38, .5);
}
.actionbar a {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  -webkit-tap-highlight-color: transparent;
}
.actionbar a.actionbar__call { border-radius: 999px; }
.actionbar__call { gap: 10px; background: var(--accent); color: var(--ink); font-size: 17px; }
.actionbar__call:hover { color: var(--ink); }
/* Viber / Telegram: round icon buttons (names stay for screen readers via aria-label) */
.actionbar a.actionbar__msg {
  width: 56px;
  height: 56px;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .55);
}
.actionbar__msg:hover { color: #fff; }
.actionbar__msg span {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.actionbar__msg .ico { width: 24px; height: 24px; }
.actionbar__msg--viber { background: var(--viber); }
.actionbar__msg--telegram { background: var(--telegram); }

/* Narrow phones: benefits as compact rows (icon left) instead of a cramped 2-column grid */
@media (max-width: 479.98px) {
  .benefits { grid-template-columns: 1fr; }
  .benefit {
    display: grid;
    grid-template-columns: 28px 1fr;
    column-gap: 14px;
    row-gap: 2px;
    padding: 16px;
  }
  .benefit__ico { grid-row: 1 / span 2; margin-top: 1px; }
}

/* =========================================================
   ≥ 600px — large phones / small tablets
   ========================================================= */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .hero__actions { display: flex; flex-wrap: wrap; }
  .hero__call { flex: 1 1 100%; max-width: 360px; }
  .checks { flex-direction: row; flex-wrap: wrap; gap: 10px 26px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .doc__btn { align-self: flex-start; }
  .contacts { padding: 44px 36px; }
  .hero__media { width: 100%; max-width: 520px; }
  .framed img { aspect-ratio: 4 / 5; }
  .footer__copy { font-size: 14px; }
}

/* =========================================================
   ≥ 900px — tablets landscape / desktop: no bottom bar
   ========================================================= */
@media (min-width: 900px) {
  :root { --header-h: 84px; }
  body { font-size: 17px; padding-bottom: 0; }
  .actionbar { display: none; }

  .header__logo img { width: 354px; }
  /* tablets landscape: phone pill next to the burger (the bottom bar is hidden here) */
  .header__phone { display: inline-flex; margin-left: auto; order: 2; }
  .burger { order: 3; }

  .hero__title { font-size: clamp(36px, 4.6vw, 62px); }
  .hero__row {
    flex-direction: row;
    align-items: center;
    gap: 48px;
    padding-top: 72px;
    padding-bottom: 84px;
  }
  .hero__text { flex: 1 1 520px; gap: 24px; }
  .hero__media { flex: 1 1 380px; max-width: 480px; }
  .hero__lead { font-size: 19px; }
  .hero__call { flex: 0 0 auto; }
  .framed { margin: 22px 22px 0 0; }
  .framed::before { inset: -22px -22px 22px 22px; border-radius: 28px; }
  .framed img { aspect-ratio: 4 / 5; }

  .section { padding: 96px 0; }
  .section--tight-bottom { padding-bottom: 0; }
  .section__head {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 44px;
  }
  .section__note { font-size: 17px; }

  .about__row { flex-direction: row; gap: 48px; margin-bottom: 40px; }
  .about__head { flex: 1 1 420px; gap: 20px; }
  .about__body { flex: 1 1 520px; font-size: 18px; gap: 18px; }

  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .benefit { padding: 28px; gap: 14px; border-radius: 20px; }
  .benefit__ico { width: 30px; height: 30px; }
  .benefit h3 { font-size: 19px; }
  .benefit p { font-size: 16px; line-height: 1.6; }

  .services { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
  .service { flex-direction: column; gap: 12px; padding: 28px; border-radius: 20px; }
  .service__ico { width: 48px; height: 48px; border-radius: 14px; }
  .service__ico svg { width: 24px; height: 24px; }
  .service h3 { font-size: 19px; margin-bottom: 6px; }
  .service p { font-size: 16px; line-height: 1.6; }

  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .step { flex-direction: column; gap: 12px; padding: 22px 0 0; border-top-width: 3px; }
  .step__num { font-size: 40px; }
  .step h3 { font-size: 19px; margin-bottom: 8px; }
  .step p { font-size: 16px; }

  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .rule { padding: 30px; gap: 12px; border-radius: 20px; }
  .rule h3 { font-size: 19px; }
  .rule p { font-size: 16px; }

  .docs { flex-direction: row; align-items: stretch; gap: 16px; }
  .doc { flex: 0 1 440px; padding: 30px; gap: 16px; }
  .doc h3 { font-size: 21px; }
  .doc p { font-size: 16px; }
  .doc__btn { margin-top: auto; }
  .docs__photo { flex: 1 1 auto; min-height: 300px; }
  .docs__photo img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }

  .contacts {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: clamp(40px, 5vw, 64px);
    border-radius: 28px;
  }
  .contacts__text { flex: 1 1 440px; gap: 18px; }
  .contacts__logo { height: 48px; margin-bottom: 10px; }
  .contacts__lead { font-size: 17px; }
  .contacts__actions { flex: 1 1 400px; gap: 14px; }
  .phone-card { padding: 22px 26px; }

  .footer__row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px 40px;
    padding-top: 36px;
    text-align: left;
  }
  .footer__brand { align-items: flex-start; }
  .footer__logo { height: 46px; }
  .footer__nav { gap: 6px 24px; }
  .footer__copy { text-align: center; padding-top: 20px; }
}

/* =========================================================
   Hover animation on the blocks (mouse only; off with "reduce motion")
   ========================================================= */
.benefit, .service, .rule, .doc, .phone-card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}
.benefit__ico, .service__ico, .step__num { transition: transform .25s ease, color .25s ease, stroke .25s ease, background-color .25s ease; }
.step { transition: border-color .25s ease; }
.docs__photo img { transition: transform .6s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .benefit:hover, .rule:hover, .doc:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 18px 36px -18px rgba(18, 24, 38, .35);
  }
  .benefit:hover .benefit__ico { stroke: var(--label); transform: scale(1.12); }
  .service:hover {
    transform: translateY(-6px);
    background: #fff;
    box-shadow: 0 18px 36px -18px rgba(18, 24, 38, .35), inset 0 0 0 1px var(--accent);
  }
  .service:hover .service__ico { transform: rotate(-6deg) scale(1.08); }
  .step:hover { border-top-color: var(--accent); }
  .step:hover .step__num { color: var(--label); transform: translateX(6px); }
  .phone-card:hover { transform: translateY(-3px); }
  .docs__photo:hover img { transform: scale(1.04); }
}
.rule { border: 1px solid transparent; }

/* 4 benefit cards in a row only where the longest word («Конфіденційно») fits */
@media (min-width: 1100px) {
  .benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* =========================================================
   Phones in landscape (short screens): compact header, title and bottom bar
   ========================================================= */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 1179.98px) {
  :root { --header-h: 58px; --actionbar-h: 60px; }
  .header__row { min-height: var(--header-h); }
  .header__logo img { width: 220px; }
  .burger { width: 44px; height: 44px; }
  .header__phone { display: none; }
  .hero__row { padding-top: 24px; padding-bottom: 36px; }
  .hero__title { font-size: clamp(28px, 5.2vw, 40px); }
  .hero__media { max-width: 420px; }
  body { padding-bottom: calc(var(--actionbar-h) + env(safe-area-inset-bottom, 0px)); }
  .actionbar { display: grid; grid-template-columns: 1fr 46px 46px; padding-top: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
  .actionbar a { min-height: 46px; }
  .actionbar a.actionbar__msg { width: 46px; height: 46px; }
  .actionbar__msg .ico { width: 21px; height: 21px; }
}

/* =========================================================
   ≥ 1180px — full desktop header (menu in a row, phone pill)
   ========================================================= */
@media (min-width: 1180px) {
  .burger, .nav-toggle { display: none; }
  .header__logo img { width: 382px; }
  .nav,
  .nav-toggle:checked ~ .nav {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 26px;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav > a,
  .nav__item > a {
    padding: 10px 0;
    font-size: 15px;
    font-weight: 600;
    border: 0;
  }
  .nav > a:hover, .nav__item > a:hover { color: var(--label); }
  .nav__contacts { display: none; }
  .header__phone { display: inline-flex; font-size: 17px; margin-left: 0; }

  /* menu centred between the logo and the phone: air on the left; always one line */
  .header__row { gap: 32px; }
  .nav,
  .nav-toggle:checked ~ .nav { flex-wrap: nowrap; margin-inline: auto; }
  .nav > a, .nav__item > a { white-space: nowrap; }

  /* «Про нас» drop-down */
  .nav__item { position: relative; border: 0; }
  .nav__item > a { justify-content: flex-start; }
  .nav__arrow { width: 15px; height: 15px; }
  .nav__item:hover .nav__arrow,
  .nav__item:focus-within .nav__arrow { transform: rotate(180deg); }
  .nav__sub {
    position: absolute;
    top: calc(100% + 6px);
    left: -14px;
    z-index: 60;
    min-width: 190px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 40px -16px rgba(18, 24, 38, .3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  /* invisible bridge so the pointer can travel from the link to the drop-down */
  .nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
  .nav__item:hover .nav__sub,
  .nav__item:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
  .nav__sub a {
    min-height: 40px;
    padding: 8px 12px;
    border: 0;
    border-radius: 10px;
    font-size: 15px;
    color: var(--ink);
    white-space: nowrap;
  }
  .nav__sub a:hover { background: var(--cream); color: var(--label); }
}
@media (min-width: 1180px) and (prefers-reduced-motion: reduce) {
  .nav__sub, .nav__arrow { transition: none; }
}
