/* ==========================================================================
   Кабінет УЗД у Рясному — основні стилі
   Лейаут: тільки Flexbox (без CSS Grid). Mobile-first.
   ========================================================================== */

/* ---------- Шрифти (self-hosted, Montserrat variable) ---------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Дизайн-токени ---------- */
:root {
  /* Кольори: синій — як екран Siemens Acuson, помаранчевий — як вивіска кабінету */
  --c-ink: #0e1a26;
  --c-text: #33414f;
  --c-muted: #5a6b7b;
  --c-bg: #ffffff;
  --c-tint: #f3f7fa;
  --c-line: #e1e8ee;
  --c-blue: #1591d6;         /* декоративний акцент, іконки */
  --c-blue-strong: #0b72b5;  /* текстові посилання (контраст 5.1:1) */
  --c-blue-soft: #e6f3fb;
  --c-orange: #e2601f;       /* декоративний акцент */
  --c-cta: #c84b12;          /* кнопки CTA (контраст з білим 4.7:1) */
  --c-cta-hover: #ad3f0d;
  --c-navy: #07131f;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;
  --gutter: 20px;
  --header-h: 68px;
  --section-y: 88px;
  --radius: 20px;
  --radius-sm: 12px;

  --shadow-sm: 0 1px 2px rgba(14, 26, 38, .06), 0 2px 8px rgba(14, 26, 38, .04);
  --shadow-md: 0 10px 30px -12px rgba(14, 26, 38, .18);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur: .25s;

  --hero-gap: 56px;

  --z-header: 100;
  --z-backdrop: 110;
  --z-nav: 120;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 112px; }
}
@media (min-width: 1024px) {
  :root { --header-h: 80px; --section-y: 136px; }
}

/* ---------- Reset / база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--c-blue-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-ink); }
strong { color: var(--c-ink); font-weight: 700; }
address { font-style: normal; }
button { font: inherit; color: inherit; cursor: pointer; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--c-ink);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--primary {
  background: var(--c-cta);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(200, 75, 18, .55);
}
.btn--primary:hover {
  background: var(--c-cta-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(200, 75, 18, .6);
}
.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn--ghost:hover { border-color: var(--c-ink); color: var(--c-ink); }
.btn--ghost .icon { transition: transform var(--dur) var(--ease-out); }
.btn--ghost:hover .icon { transform: translateX(3px); }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: .9375rem; }
.btn--lg { min-height: 56px; padding: 16px 30px; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: #fff;
  color: var(--c-ink);
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.icon-btn:hover { border-color: var(--c-ink); color: var(--c-ink); }
.icon-btn .icon { width: 22px; height: 22px; }

/* ---------- Логотип ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--c-ink);
  text-decoration: none;
  flex: 0 0 auto;
}
.logo:hover { color: var(--c-ink); }
.logo__mark { width: 42px; height: auto; }
.logo__waves { stroke: var(--c-blue); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__title { font-size: 1.625rem; font-weight: 800; letter-spacing: .01em; }
.logo__sub { margin-top: 4px; font-size: .6875rem; font-weight: 500; letter-spacing: .08em; }
@media (max-width: 399px) {
  .header .logo { gap: 8px; min-width: 0; flex-shrink: 1; }
  .header .logo__mark { width: 34px; }
  .header .logo__title { font-size: 1.375rem; }
  .header .logo__sub { font-size: .625rem; letter-spacing: .03em; }
  .header__actions { gap: 6px; }
}
.logo--light { color: #fff; }
.logo--light:hover { color: #fff; }

/* ---------- Header (закріплений) ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
/* Розмиття фону на псевдоелементі: backdrop-filter на самому .header
   зламав би position:fixed мобільної панелі меню */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
}
.header.is-scrolled {
  border-bottom-color: var(--c-line);
  box-shadow: 0 6px 24px -18px rgba(14, 26, 38, .35);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.header__phone,
.header__cta { display: none; }
.header__phone {
  align-items: center;
  gap: 8px;
  color: var(--c-ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.header__phone .icon { color: var(--c-blue); }
.header__phone:hover { color: var(--c-blue-strong); }

/* ---------- Навігація: мобільна панель ---------- */
.nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-nav);
  display: flex;
  flex-direction: column;
  width: min(360px, 100%);
  padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: #fff;
  box-shadow: -20px 0 60px -20px rgba(14, 26, 38, .35);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .35s var(--ease-out), visibility 0s linear .35s;
  overflow-y: auto;
}
.nav.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .35s var(--ease-out), visibility 0s;
}
.nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(var(--header-h) - 16px);
  margin-bottom: 16px;
}
.nav__label {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.nav__list { display: flex; flex-direction: column; }
.nav__link {
  display: flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}
.nav__link:hover { color: var(--c-blue-strong); }
.nav__footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
  padding-top: 32px;
}
.nav__meta { color: var(--c-muted); font-size: .9375rem; text-align: center; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-backdrop);
  background: rgba(7, 19, 31, .5);
  opacity: 0;
  transition: opacity .3s var(--ease-out);
}
.nav-backdrop.is-visible { opacity: 1; }

@media (min-width: 560px) {
  .header__cta { display: inline-flex; }
  .header__call { display: none; }
}

/* Десктопне меню */
@media (min-width: 1024px) {
  .burger, .nav__head, .nav__footer, .nav-backdrop { display: none !important; }
  .nav {
    position: static;
    flex-direction: row;
    width: auto;
    padding: 0;
    background: none;
    box-shadow: none;
    transform: none;
    visibility: visible;
    overflow: visible;
    transition: none;
  }
  .nav__list { flex-direction: row; gap: 4px; }
  .nav__link {
    position: relative;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    font-size: .9375rem;
    font-weight: 600;
  }
  .nav__link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    background: var(--c-orange);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur) var(--ease-out);
  }
  .nav__link:hover::after,
  .nav__link.is-active::after { transform: scaleX(1); }
  .nav__link.is-active { color: var(--c-ink); }
  .header__actions { gap: 20px; }
}
@media (min-width: 1180px) {
  .header__phone { display: inline-flex; }
}

/* ---------- Загальні секції ---------- */
.section { padding-block: var(--section-y); }
.section--tint { background: var(--c-tint); }
.section__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin-bottom: 48px;
}
@media (min-width: 1024px) { .section__head { margin-bottom: 64px; } }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-blue-strong);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--c-orange);
  border-radius: 2px;
}
.section__title {
  color: var(--c-ink);
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.section__lead {
  font-size: 1.0625rem;
  color: var(--c-muted);
  max-width: 62ch;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  /* Відступ під фіксоване меню + повітря до H1 на мобільних */
  padding-top: calc(var(--header-h) + 28px);
  padding-bottom: var(--section-y);
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(21, 145, 214, .10), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--c-tint) 100%);
}
.hero__waves {
  position: absolute;
  top: -120px;
  right: -180px;
  width: 640px;
  height: 640px;
  fill: none;
  stroke: var(--c-blue);
  stroke-width: 1;
  opacity: .25;
  pointer-events: none;
}
.hero__waves circle {
  transform-origin: 300px 300px;
  animation: wave 6s var(--ease-out) infinite;
}
.hero__waves circle:nth-child(2) { animation-delay: 2s; }
.hero__waves circle:nth-child(3) { animation-delay: 4s; }
@keyframes wave {
  0% { transform: scale(.6); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scale(1.15); opacity: 0; }
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: #fff;
  color: var(--c-ink);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  max-width: 100%;
}
.eyebrow .icon { width: 18px; height: 18px; color: var(--c-orange); }
.eyebrow--link {
  text-decoration: none;
  transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.eyebrow--link:hover {
  color: var(--c-ink);
  border-color: var(--c-orange);
  box-shadow: 0 6px 16px -10px rgba(226, 96, 31, .6);
}
.hero__title {
  color: var(--c-ink);
  font-size: clamp(2.375rem, 1.4rem + 4.6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.hero__title .accent { display: block; color: var(--c-blue-strong); }
.hero__lead {
  max-width: 560px;
  font-size: 1rem; /* однаково на всіх екранах */
  color: var(--c-text);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}
.hero__hours {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-muted);
  font-size: .9375rem;
}
.hero__hours .icon { width: 18px; height: 18px; color: var(--c-blue); }
.hero__meta { display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 479px) {
  .hero__actions .btn { width: 100%; }
}

.hero__media {
  position: relative;
  align-self: center;
  width: 100%;
  max-width: 560px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--c-tint);
  box-shadow: var(--shadow-md);
}
.hero__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 0% 50%; /* у кадрі обидві вивіски: «УЗД» зліва і «Ультразвукова діагностика» справа */
}
.hero__badge {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  /* Градієнт зліва направо: білий → прозорий (без blur, щоб не було видно меж плашки) */
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .9) 45%, rgba(255, 255, 255, 0) 100%);
  font-size: .875rem;
  line-height: 1.35;
  color: var(--c-muted);
}
.hero__badge strong { display: block; font-size: .9375rem; }
.icon--hi { width: 40px; height: 40px; color: var(--c-blue); flex: 0 0 auto; }

@media (min-width: 1024px) {
  /* Перший екран = 100vh: хедер + текст/фото + блок цифр.
     Текст і фото по центру з рівними відступами до хедера та до лінії над цифрами */
  .hero {
    --hero-gap: 40px;
    --stats-h: 102px; /* висота блоку цифр разом із нижнім відступом секції */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: var(--header-h);
    padding-bottom: 28px;
  }
  .hero__inner {
    flex: 1 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
    padding-block: var(--hero-gap);
  }
  .hero__content { flex: 1 1 0; gap: 20px; }
  .hero__title { font-size: clamp(2.5rem, 1.7rem + 2vw, 3.125rem); }
  .hero__media { flex: 0 0 min(560px, 44vw); max-width: min(560px, 44vw); }
  .hero__media img {
    aspect-ratio: auto;
    height: clamp(360px, calc(100vh - var(--header-h) - var(--hero-gap) * 2 - var(--stats-h)), 600px);
    height: clamp(360px, calc(100svh - var(--header-h) - var(--hero-gap) * 2 - var(--stats-h)), 600px);
  }
  .hero__badge { padding: 12px 14px; }
  .hero .stats { margin-top: 0; }
  .hero .stats__item { padding-top: 22px; }
  .hero .stats__value { font-size: 1.625rem; }
  .hero .stats__label { font-size: .8125rem; }
}


/* Мобільний і планшет: фото стоїть після тексту, перед кнопками.
   .hero__content «розчиняється» (display: contents), і його діти впорядковуються разом із фото */
@media (max-width: 1023px) {
  .hero__inner { gap: 20px; }
  .hero__content { display: contents; }
  .hero__content > .eyebrow { order: 1; align-self: flex-start; }
  .hero__title { order: 2; }
  .hero__lead { order: 3; }
  .hero__media { order: 4; margin: 0 0 8px; }
  .hero__actions { order: 5; }
  .hero__meta { order: 6; }
}

/* CSS-анімація першого екрана (не залежить від JS → не гальмує LCP) */
@media (prefers-reduced-motion: no-preference) {
  .hero__anim {
    animation: rise .8s var(--ease-out) both;
    animation-delay: calc(var(--d, 0) * 90ms + 60ms);
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
}

/* Статистика */
.stats {
  display: flex;
  flex-wrap: wrap;
  margin-top: 64px;
  border-top: 1px solid var(--c-line);
}
.stats__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 50%;
  min-width: 0;
  padding: 24px 12px 0 0;
}
.stats__value {
  color: var(--c-ink);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stats__label { color: var(--c-muted); font-size: .9375rem; line-height: 1.4; }
@media (min-width: 768px) {
  .stats__item { flex-basis: 25%; padding-top: 32px; }
}

/* ---------- Послуги ---------- */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 100%;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.card:hover {
  border-color: rgba(21, 145, 214, .45);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card__icon {
  width: 56px;
  height: 56px;
  padding: 8px;
  margin-bottom: 8px;
  border-radius: 16px;
  background: var(--c-blue-soft);
  color: var(--c-blue-strong);
}
.card__title {
  color: var(--c-ink);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}
.card__text { color: var(--c-muted); font-size: .9688rem; line-height: 1.55; }
.card--wide {
  gap: 20px;
  background: var(--c-ink);
  border-color: var(--c-ink);
}
.card--wide .card__title { color: #fff; }
.card--wide .card__text { color: #b9c7d3; }
.card--wide .card__icon { background: rgba(21, 145, 214, .18); color: #7cc8f2; margin-bottom: 0; }
.card--wide .card__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card--wide .btn { align-self: flex-start; }
.card--wide:hover { border-color: var(--c-ink); }

@media (max-width: 639px) {
  .card:not(.card--wide) { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 16px; row-gap: 8px; padding: 22px; }
  .card:not(.card--wide) .card__icon { width: 52px; height: 52px; margin-bottom: 0; }
  .card:not(.card--wide) .card__title { flex: 1 1 0; min-width: 0; font-size: 1.0625rem; }
  .card:not(.card--wide) .card__text { flex: 1 1 100%; }
}
@media (min-width: 640px) {
  .card { flex-basis: calc((100% - 16px) / 2); }
  .card--wide { flex-basis: 100%; }
}
@media (min-width: 1024px) {
  .cards { gap: 24px; }
  .card { flex-basis: calc((100% - 48px) / 3); flex-grow: 0; padding: 32px; }
  .card--wide {
    flex-basis: 100%;
    flex-direction: row;
    align-items: center;
    padding: 32px 40px;
  }
  .card--wide .card__body { flex: 1 1 auto; }
  .card--wide .btn { align-self: center; }
}

.services__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
  color: var(--c-muted);
  font-size: .9375rem;
  text-align: center;
}
.services__note .icon { width: 18px; height: 18px; color: var(--c-orange); }
.services__note span { text-align: left; }

/* ---------- Про кабінет ---------- */
.about__inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.about__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.about__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1.0625rem;
  max-width: 62ch;
}
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  margin-top: 16px;
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1 1 100%;
  min-width: 0;
  line-height: 1.45;
  color: var(--c-muted);
  font-size: .9375rem;
}
.feature strong { display: block; margin-bottom: 2px; font-size: 1rem; }
.feature__icon {
  width: 48px;
  height: 48px;
  padding: 6px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: #fff;
  color: var(--c-blue-strong);
  box-shadow: var(--shadow-sm);
}
.feature__icon--ui { padding: 12px; }
@media (min-width: 560px) {
  .feature { flex-basis: calc(50% - 16px); }
}

.about__media {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.about__photo,
.about__video {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-navy);
  min-width: 0;
}
.about__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }
@media (min-width: 640px) { .about__photo img { aspect-ratio: 4 / 5; } }
.about__video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.about__photo figcaption,
.about__video figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(7, 19, 31, .72);
  color: #fff;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.3;
}
@media (min-width: 640px) {
  .about__media { flex-direction: row; align-items: flex-end; }
  .about__photo { flex: 1 1 0; }
  .about__video { flex: 1.25 1 0; }
}
@media (min-width: 1024px) {
  .about__inner { flex-direction: row; align-items: center; gap: 72px; }
  .about__content { flex: 1 1 0; }
  .about__media { flex: 0 0 46%; flex-direction: column; align-items: stretch; position: relative; }
  .about__photo { flex: 0 0 auto; width: 72%; }
  .about__photo figcaption { top: 12px; bottom: auto; }
  .about__video { flex: 0 0 auto; width: 72%; align-self: flex-end; margin-top: -120px; box-shadow: 0 24px 48px -20px rgba(7, 19, 31, .5); border: 6px solid #fff; }
}

/* ---------- Кроки ---------- */
.steps__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 0;
  min-width: 0;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--c-tint);
}
.step__num {
  color: var(--c-orange);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.step__title { color: var(--c-ink); font-size: 1.375rem; font-weight: 800; line-height: 1.25; }
.step p { color: var(--c-muted); }
@media (min-width: 768px) {
  .steps__list { flex-direction: row; gap: 24px; }
}

/* ---------- Підготовка ---------- */
.prep {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.prep__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 100%;
  min-width: 0;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border-left: 4px solid var(--c-blue);
}
.prep__item--easy { border-left-color: var(--c-orange); }
.prep__title { color: var(--c-ink); font-size: 1.125rem; font-weight: 700; }
.prep__item p { color: var(--c-muted); font-size: .9688rem; }
@media (min-width: 640px) {
  .prep__item { flex-basis: calc((100% - 16px) / 2); }
}
@media (min-width: 1024px) {
  .prep { gap: 24px; }
  .prep__item { flex-basis: calc((100% - 72px) / 4); padding: 32px 28px; }
}

/* ---------- CTA-блок ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: 80px;
  background:
    radial-gradient(40% 80% at 15% 30%, rgba(21, 145, 214, .35), transparent 70%),
    radial-gradient(30% 70% at 85% 80%, rgba(21, 145, 214, .22), transparent 70%),
    var(--c-navy);
  color: #b9c7d3;
}
.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
.cta__text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cta__title {
  color: #fff;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.cta .btn--primary { box-shadow: 0 12px 30px -10px rgba(226, 96, 31, .7); }
@media (max-width: 479px) {
  .cta .btn { width: 100%; }
}
@media (min-width: 1024px) {
  .cta { padding-block: 104px; }
  .cta__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- FAQ ---------- */
.faq__inner {
  display: flex;
  flex-direction: column;
}
.faq__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--c-line);
  min-width: 0;
}
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 20px 0;
  color: var(--c-ink);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--c-blue-strong); }
.faq__item summary .icon {
  width: 22px;
  height: 22px;
  color: var(--c-orange);
  transition: transform .3s var(--ease-out);
}
.faq__item[open] summary .icon { transform: rotate(45deg); }
.faq__answer { overflow: hidden; }
.faq__answer p { padding: 0 40px 24px 0; color: var(--c-muted); max-width: 70ch; }
@media (min-width: 1024px) {
  .faq__inner { flex-direction: row; align-items: flex-start; gap: 80px; }
  .faq__head { flex: 0 0 360px; position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
  .faq__list { flex: 1 1 0; }
}

/* ---------- Контакти ---------- */
.contacts__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}
.contacts__list { display: flex; flex-direction: column; gap: 24px; }
.contact {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  line-height: 1.5;
}
.contact .icon {
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 12px;
  background: #fff;
  color: var(--c-blue-strong);
  box-shadow: var(--shadow-sm);
}
.contact strong {
  display: block;
  margin-bottom: 2px;
  color: var(--c-muted);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.contact span { color: var(--c-ink); font-size: 1.0625rem; font-weight: 600; }
.contact a { color: var(--c-ink); text-decoration: none; font-size: 1.25rem; font-weight: 800; }
.contact a:hover { color: var(--c-blue-strong); }
.contacts__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) {
  .contacts__actions .btn { width: 100%; }
}
.contacts__photo {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: var(--radius);
  background: #fff;
}
.contacts__photo img {
  width: 160px;
  flex: 0 0 160px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 0% 50%; /* як на першому екрані: обидві вивіски в кадрі */
  border-radius: 12px;
}
@media (max-width: 479px) {
  .contacts__photo img { width: 120px; flex-basis: 120px; }
}
.contacts__photo figcaption { color: var(--c-muted); font-size: .9375rem; line-height: 1.45; min-width: 0; }
.contacts__map {
  min-width: 0;
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-line);
}
.contacts__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}
@media (min-width: 1024px) {
  .contacts__inner { flex-direction: row; align-items: stretch; gap: 48px; }
  .contacts__info { flex: 0 0 420px; }
  .contacts__map { flex: 1 1 0; min-height: 520px; }
}

/* ---------- Footer ---------- */
.footer {
  padding-top: 72px;
  background: var(--c-navy);
  color: #a9bac8;
  font-size: .9375rem;
}
.footer a { color: #d6e1ea; text-decoration: none; }
.footer a { transition: color var(--dur) var(--ease-out); }
.footer a:hover { color: #fff; }
.footer .footer__nav a:hover,
.footer .footer__nav a:focus-visible,
.footer .footer__phone:hover,
.footer .footer__phone:focus-visible,
.footer .footer__credit:hover,
.footer .footer__credit:focus-visible { color: var(--c-orange); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__brand { display: flex; flex-direction: column; gap: 16px; flex: 1 1 100%; min-width: 0; }
.footer__about { max-width: 30ch; }
.footer__nav, .footer__contacts { display: flex; flex-direction: column; gap: 10px; flex: 1 1 200px; min-width: 0; }
.footer__nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer__heading {
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.footer__phone { font-size: 1.25rem; font-weight: 800; }
/* Посилання на розробника — виглядає як звичайний текст рядка */
.footer .footer__credit { color: inherit; }
.footer__legal { display: flex; flex-direction: column; gap: 4px; }
.footer__dev { font-size: .6875rem; }
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 24px calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .8125rem;
  color: #8a9dad;
}
@media (min-width: 768px) {
  .footer__brand { flex: 1 1 320px; }
  .footer__bottom { flex-direction: row; justify-content: space-between; gap: 24px; }
}

/* ---------- ПК і планшет (від 768px): акуратніша типографіка ---------- */
@media (min-width: 768px) {
  body { font-size: .9375rem; }

  /* Заголовки */
  .hero__title { font-size: clamp(2.5rem, 1.6rem + 2.6vw, 3.5rem); }
  .section__title,
  .cta__title { font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.25rem); }
  .section__head { gap: 14px; }
  .kicker { font-size: .75rem; }

  /* Текст */
  .eyebrow { font-size: .9375rem; padding: 9px 16px; }
  .section__lead,
  .about__text { font-size: 1rem; }
  .hero__hours { font-size: .875rem; }
  .btn { font-size: .9375rem; }
  .btn--lg { min-height: 54px; padding: 15px 28px; font-size: 1rem; }

  .stats__value { font-size: clamp(1.5rem, 1.1rem + 1vw, 1.875rem); }
  .stats__label { font-size: .875rem; }

  .card__title,
  .prep__title { font-size: 1.0625rem; }
  .card__text,
  .prep__item p { font-size: .9063rem; }
  .card__icon { width: 52px; height: 52px; }

  .feature { font-size: .875rem; }
  .feature strong { font-size: .9375rem; }

  .step__num { font-size: .875rem; }
  .step__title { font-size: 1.25rem; }
  .step p { font-size: .9375rem; }

  .faq__item summary { font-size: 1rem; }
  .faq__answer p { font-size: .9375rem; }

  .contact span { font-size: 1rem; }
  .contact a { font-size: 1.125rem; }

  .footer { font-size: .875rem; }
  .footer__phone { font-size: 1.125rem; }
}

/* ---------- Мобільна версія: компактна типографіка, футер по центру ---------- */
@media (max-width: 767px) {
  body { font-size: .9375rem; line-height: 1.6; }

  /* Кнопка виклику в хедері — помаранчева з білою іконкою */
  .header__call {
    background: var(--c-cta);
    border-color: var(--c-cta);
    color: #fff;
    box-shadow: 0 6px 16px -8px rgba(200, 75, 18, .6);
  }
  .header__call:hover,
  .header__call:active { background: var(--c-cta-hover); border-color: var(--c-cta-hover); color: #fff; }

  /* Заголовки */
  .hero__title { font-size: clamp(1.875rem, 1.2rem + 3.4vw, 2.25rem); }
  .section__title,
  .cta__title { font-size: clamp(1.4375rem, 1.1rem + 1.6vw, 1.75rem); }
  .section__head { gap: 12px; margin-bottom: 36px; }
  .kicker { font-size: .75rem; }

  /* Текст */
  /* Адреса завжди в один рядок: шрифт масштабується від ширини екрана */
  .eyebrow { font-size: clamp(.75rem, 3.6vw, .875rem); padding: 8px 12px; gap: 6px; }
  .eyebrow .icon { width: 16px; height: 16px; }
  .hero__content { gap: 20px; }
  .section__lead,
  .about__text { font-size: .9375rem; }
  .hero__hours { font-size: .875rem; }
  .btn { font-size: .9375rem; }
  .btn--lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }

  .stats { margin-top: 48px; }
  .stats__value { font-size: 1.375rem; }
  .stats__label { font-size: .8125rem; }

  .card__title,
  .card:not(.card--wide) .card__title,
  .prep__title { font-size: 1rem; }
  .card__text,
  .prep__item p { font-size: .875rem; }
  .card__icon,
  .card:not(.card--wide) .card__icon { width: 48px; height: 48px; }

  .feature { font-size: .875rem; }
  .feature strong { font-size: .9375rem; }
  .feature__icon { width: 44px; height: 44px; }

  .step { padding: 26px 22px; }
  .step__num { font-size: .875rem; }
  .step__title { font-size: 1.1875rem; }
  .step p { font-size: .9375rem; }

  .faq__item summary { min-height: 56px; padding: 16px 0; font-size: .9375rem; }
  .faq__answer p { padding-right: 24px; font-size: .9375rem; }

  .contact span { font-size: .9375rem; }
  .contact a { font-size: 1.125rem; }
  .contact .icon { width: 40px; height: 40px; padding: 10px; }
  .contacts__photo figcaption { font-size: .875rem; }

  .nav__link { font-size: 1.125rem; min-height: 52px; }

  /* Футер — усе по центру */
  .footer { padding-top: 56px; text-align: center; font-size: .875rem; }
  .footer__inner { flex-direction: column; align-items: center; gap: 32px; }
  .footer__brand,
  .footer__nav,
  .footer__contacts { flex: 0 0 auto; width: 100%; align-items: center; }
  .footer .logo__text { text-align: left; }
  .footer__about { margin-inline: auto; }
  .footer__nav ul { align-items: center; }
  .footer__phone { font-size: 1.125rem; }
  .footer__bottom { align-items: center; text-align: center; }
}

/* ---------- Кнопка «нагору» ---------- */
.to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 90; /* нижче за хедер і мобільне меню */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-blue-strong);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(11, 114, 181, .65);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out),
              visibility 0s linear var(--dur), background-color var(--dur) var(--ease-out);
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out),
              visibility 0s, background-color var(--dur) var(--ease-out);
}
.to-top:hover { background: #095d94; transform: translateY(-2px); }
.to-top:active { transform: scale(.94); }
.to-top .icon { width: 22px; height: 22px; transform: rotate(-90deg); }
@media (min-width: 1024px) {
  .to-top { right: 32px; bottom: 32px; width: 52px; height: 52px; }
}
body.is-locked .to-top { opacity: 0; visibility: hidden; }

/* ---------- Анімації при скролі (керуються js/main.js через Motion) ---------- */
.js [data-reveal],
.js [data-stagger] > * { opacity: 0; }
.js .is-revealed,
.js [data-stagger].is-revealed > *,
.no-motion [data-reveal],
.no-motion [data-stagger] > * { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal], .js [data-stagger] > * { opacity: 1; }
  .hero__waves { display: none; }
}

/* ---------- Друк ---------- */
@media print {
  .header, .nav-backdrop, .cta, .contacts__map, .hero__waves, .to-top { display: none !important; }
  .hero { padding-top: 24px; }
  .js [data-reveal], .js [data-stagger] > * { opacity: 1 !important; }
}
