/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

::selection {
  background-color: var(--color-accent);
  color: #0a0a0a;
}

/* ===== Scroll animations ===== */
/* "слова знизу": .fx-word-wrap (маскує overflow) > .fx-word-inner (сам
   рух); слова й transition-delay генерує js/main.js, buildWords(). */
.fx-word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.fx-word-inner {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-anim="wipe"].is-visible .fx-word-inner {
  transform: translateY(0);
}

/* stagger: прямі діти контейнера з'являються по черзі знизу */
[data-anim="stagger"] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
[data-anim="stagger"].is-visible > * {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fx-word-inner,
  [data-anim="stagger"] > * {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ===== Прелоадер ===== */
/* Критична частина (fixed/фон/z-index) продубльована інлайново в <head>
   кожної сторінки, щоб оверлей був стилізований до завантаження цього
   файлу. Класами .is-out/.is-filled/.is-zoom керує js/main.js (initPreloader). */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0E0E0E;
  user-select: none;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.preloader.is-out {
  opacity: 0;
  pointer-events: none;
}

.preloader__inner {
  position: relative;
  width: 80%;
  max-width: 965px;
}

@media (min-width: 768px) {
  .preloader__inner { width: 70%; }
}
@media (min-width: 1024px) {
  .preloader__inner { max-width: 740px; }
}
@media (min-width: 1440px) {
  .preloader__inner { max-width: 965px; }
}

.preloader__logo {
  position: relative;
  width: 100%;
  /* Пропорції — з viewBox tempo-wordmark.svg (217×31). */
  aspect-ratio: 217 / 31;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
  display: flex;
  align-items: center;
  -webkit-mask-image: url('../assets/img/tempo-wordmark.svg');
  mask-image: url('../assets/img/tempo-wordmark.svg');
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  transition: background-color 0.2s ease, opacity 1s linear, transform 1s linear;
}

.preloader__logo.is-filled {
  background-color: #fff;
}

.preloader__logo.is-zoom {
  opacity: 0;
}

.preloader__canvas {
  display: block;
  width: 100%;
}

.preloader__counter {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 4px;
  font-size: 13px;
  color: #fff;
  transition: opacity 0.25s ease;
}

.preloader__counter.is-out {
  opacity: 0;
}

.preloader__counter span {
  display: inline-block;
  text-align: right;
}

@media (prefers-reduced-motion: reduce) {
  .preloader__canvas {
    display: none;
  }
  .preloader__logo {
    background: #fff;
  }
}

body {
  min-height: 100vh;
  font-family: 'Onest', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  line-height: 1.1;
}

/* Балансує довжину рядків у заголовках, прибирає "самотнє" слово. */
h1, h2, h3,
.hero__title,
.about-hero__title {
  text-wrap: balance;
}

.subheading,
.hero__subtitle,
.about-hero__subtitle {
  text-wrap: pretty;
}

code, pre, .mono {
  font-family: 'Fira Code', monospace;
}

.subheading {
  font-family: var(--subheading-font-family);
  font-weight: var(--subheading-font-weight);
  font-size: var(--subheading-font-size);
  line-height: var(--subheading-line-height);
  letter-spacing: var(--subheading-letter-spacing);
  color: var(--subheading-color);
}

.text-body {
  font-family: var(--body-font-family);
  font-weight: var(--body-font-weight);
  font-size: var(--body-font-size);
  line-height: var(--body-line-height);
  letter-spacing: var(--body-letter-spacing);
  color: var(--body-color);
}

/* ===== Variables ===== */
:root {
  --color-bg: #ffffff;
  --color-text: #0a0a0a;
  --color-dark: #101210;
  --color-accent: #daff6b;
  --color-white: #ffffff;
  --color-cream: #fbfef4;

  --container-max: 1856px;
  --container-padding: clamp(20px, 3.3vw, 64px);
  --header-height: clamp(96px, 10vw, 130px);

  --subheading-font-family: 'Onest', sans-serif;
  --subheading-font-weight: 400;
  --subheading-font-size: 20px;
  --subheading-line-height: 1;
  --subheading-letter-spacing: -0.04em;
  --subheading-color: #9a9a9a;

  /* Значення навмисно збігаються з --subheading-* вище — єдиний стиль
     для всього дрібного сірого тексту сайту. */
  --body-font-family: 'Onest', sans-serif;
  --body-font-weight: 400;
  --body-font-size: 22px;
  --body-line-height: 1;
  --body-letter-spacing: -0.04em;
  --body-color: #9a9a9a;
}

/* ===== Layout helpers ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  padding-inline: var(--container-padding);
  margin-inline: auto;
}

/* ===== Buttons =====
   Мобільна версія (ширша, менш скруглена) — окремо в
   @media (max-width: 640px), не тут: на спільному класі вона перетікає на десктоп. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 12px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  line-height: 1;
  font-size: clamp(15px, 1.05vw, 20px);
  padding: clamp(16px, 1.8vw, 34px) clamp(22px, 2.3vw, 44px);
  transition: transform .15s ease, opacity .15s ease, background-color .2s ease;
  white-space: nowrap;
}

.btn:hover {
  background-color: #c7f24d;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--color-accent);
  color: #0e100c;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: transparent;
  box-shadow: none;
  transition: background-color .3s ease, box-shadow .3s ease;
}

.header.is-light {
  background: var(--color-white);
  box-shadow: 0 1px 0 rgba(10, 10, 10, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 40px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 1.5vw, 26px);
  letter-spacing: 0.02em;
  color: var(--color-white);
  flex-shrink: 0;
  transition: color .25s ease;
}

.logo img {
  display: block;
  height: clamp(22px, 1.9vw, 32px);
  width: auto;
}

.logo__icon {
  display: block;
  flex-shrink: 0;
  width: clamp(24px, 2vw, 34px);
  aspect-ratio: 49 / 41;
  background-color: var(--color-accent);
  -webkit-mask-image: url('../assets/img/tempo-logo.png');
  mask-image: url('../assets/img/tempo-logo.png');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: background-color .25s ease;
}

.header.is-light .logo {
  color: var(--color-text);
}

.header.is-light .logo__icon {
  background-color: var(--color-text);
}

/* ===== Nav ===== */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.1vw, 20px);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 0.73vw, 14px);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(40px, 3.7vw, 56px);
  padding-inline: clamp(18px, 1.7vw, 32px);
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: 'Unbounded', sans-serif;
  font-weight: 400;
  font-size: clamp(13px, 0.95vw, 16px);
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.nav__link:hover {
  color: var(--color-white);
}

.nav__link.is-active {
  background: #0a0a0a;
  color: var(--color-white);
  font-weight: 700;
}

.header.is-light .nav__link {
  background: #f3f3f3;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #0a0a0a;
}

.header.is-light .nav__link:hover {
  background: var(--color-white);
  border-color: #0a0a0a;
  color: #0a0a0a;
}

.header.is-light .nav__link.is-active {
  background: #0a0a0a;
  color: var(--color-white);
}

.lang-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: clamp(40px, 3.7vw, 56px);
  padding-inline: 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-white);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.lang-switch__flag {
  display: flex;
  border-radius: 3px;
  overflow: hidden;
}

.lang-switch__flag img {
  display: block;
  width: 20px;
  height: 14px;
  object-fit: cover;
}

.lang-switch__chevron {
  color: rgba(255, 255, 255, 0.7);
  transition: color .2s ease, transform .2s ease;
}

.lang-switch.is-open .lang-switch__chevron {
  transform: rotate(180deg);
}

.header.is-light .lang-switch__btn {
  background: #f3f3f3;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #0a0a0a;
}

.header.is-light .lang-switch__chevron {
  color: #0a0a0a;
}

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 100%;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 30;
}

.lang-switch.is-open .lang-switch__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switch__option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #0a0a0a;
  white-space: nowrap;
  transition: background-color .15s ease;
}

.lang-switch__option:hover {
  background: #f3f3f3;
}

.lang-switch__option-flag {
  display: block;
  width: 20px;
  height: 14px;
  border-radius: 3px;
  overflow: hidden;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
}

.mobile-nav {
  display: none;
}

.phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: clamp(40px, 3.7vw, 56px);
  padding-inline: clamp(18px, 1.7vw, 28px);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-white);
  font-weight: 600;
  font-size: clamp(13px, 1vw, 17px);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color .25s ease, color .25s ease;
}

.header.is-light .phone {
  background: #0a0a0a;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--color-white);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-dark);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.05) 35%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.05) 25%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0.55) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
}

.hero__content {
  width: 100%;
  max-width: clamp(250px, 45.5vw, 850px);
}

.hero__title {
  color: var(--color-white);
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3vw, 56px);
  letter-spacing: -0.02em;
  line-height: 0.98;
  margin-bottom: clamp(10px, 1.1vw, 18px);
}

.hero__subtitle {
  /* Exception: sits over a dark video background, so it keeps its own
     lighter color instead of the shared --subheading-color. */
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: clamp(11px, 1.7vw, 24px);
}

.hero__progress {
  position: absolute;
  left: var(--container-padding);
  right: var(--container-padding);
  bottom: clamp(16px, 2vw, 32px);
  z-index: 2;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.hero__progress-fill {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  border-radius: 3px;
}

.btn--dark {
  background: #0a0a0a;
  color: var(--color-white);
}

.btn--dark:hover {
  background-color: #262626;
}

/* ===== Countries ===== */
.countries {
  background: var(--color-white);
  color: var(--color-text);
  padding-block: clamp(48px, 6vw, 116px) clamp(40px, 5vw, 96px);
}

.countries__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 80px);
  margin-bottom: clamp(40px, 4.5vw, 87px);
}

.countries__title {
  font-size: clamp(30px, 3vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.countries__desc {
  max-width: 400px;
  padding-top: clamp(4px, 0.6vw, 12px);
  flex-shrink: 0;
}

.countries__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #cdcccc;
}

.country-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 480 / 462;
  border-bottom: 1px solid #ababab;
  overflow: hidden;
}

.country-card:not(:nth-child(4n)) {
  border-right: 1px solid #ababab;
}

.country-card__flag {
  width: clamp(120px, 11.7vw, 224px);
  height: auto;
  transition: opacity .2s ease;
}

/* :hover лише для пристроїв зі "справжньою" мишею — на тачскрінах :hover
   "залипає" після кліку (немає mouseout) і ховає прапор назавжди. */
@media (hover: hover) and (pointer: fine) {
  .country-card:hover .country-card__flag {
    opacity: 0;
  }
}

.country-card__overlay {
  position: absolute;
  inset: clamp(10px, 1.05vw, 20px);
  /* НЕ додавай тут padding: на мобілці цей клас — grid-контейнер
     анімації розкриття (0fr→1fr), і padding заважає йому згортатись
     до 0 (лишає видиму смугу). Відступи — на .country-card__info. */
  border-radius: 4px;
  background: #000000;
  overflow: hidden;
  opacity: 1;
  clip-path: inset(50% 50% 50% 50% round 4px);
  transform: rotate(-6deg);
  transition:
    clip-path 450ms cubic-bezier(0.65, 0, 0.35, 1),
    transform 450ms cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .country-card:hover .country-card__overlay {
    clip-path: inset(0% 0% 0% 0% round 4px);
    transform: rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .country-card__overlay {
    transition-duration: 1ms;
    transform: none;
  }
}

/* На мобілці ця обгортка — контейнер для анімації розкриття картки
   (@media max-width:640px), тому НЕ додавай тут padding — так само
   заважає grid-треку 0fr→1fr згортатись до 0. */
.country-card__overlay-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.country-card__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Низ 0 — свій відступ на .country-card__name. НЕ flex:1: на мобілці
     flex-basis:0 ламає підрахунок висоти grid-track і картка перестає розкриватись. */
  padding: clamp(14px, 1.6vw, 24px) clamp(14px, 1.6vw, 24px) 0;
  opacity: 0;
  transition: opacity 200ms ease 180ms;
}

@media (hover: hover) and (pointer: fine) {
  .country-card:hover .country-card__info {
    opacity: 1;
  }
}

/* Верхній рядок картки: на десктопі — звичайний блок (підпис і плашка
   кожні на своєму рядку), рядкова розкладка (в один рядок, плашка
   праворуч) — лише на мобілці, див. .country-card__top у
   @media (max-width: 640px) нижче. */
.country-card__top {
  display: block;
  width: 100%;
}

.country-card__label {
  /* display:block — .country-card__label це <span> (inline за замовчуванням),
     без цього display:block на .country-card__top не переносить плашку
     терміну на новий рядок, вони й далі стоять в один ряд. */
  display: block;
  font-family: 'Unbounded', sans-serif;
  font-weight: 400;
  font-size: clamp(11px, 0.8vw, 14px);
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: clamp(8px, 0.9vw, 14px);
}

.country-card__days {
  display: inline-flex;
  align-items: center;
  background: var(--color-white);
  color: #0a0a0a;
  font-family: 'Unbounded', sans-serif;
  font-weight: 400;
  font-size: clamp(12px, 0.9vw, 15px);
  border-radius: 4px;
  padding: clamp(6px, 0.6vw, 10px) clamp(10px, 1vw, 16px);
  white-space: nowrap;
  margin-bottom: clamp(20px, 2.7vw, 52px);
}

.country-card__cities {
  display: flex;
  flex-wrap: wrap;
  column-gap: clamp(3px, 0.4vw, 6px);
  row-gap: clamp(2px, 0.3vw, 4px);
  font-family: 'Unbounded', sans-serif;
  font-weight: 400;
  font-size: clamp(10px, 0.72vw, 13px);
  color: var(--color-white);
  line-height: 1.5;
}

.country-card__cities li {
  display: inline-flex;
  align-items: center;
}

.country-card__cities li:not(:last-child)::after {
  content: '|';
  margin-left: clamp(3px, 0.4vw, 6px);
  color: rgba(255, 255, 255, 0.25);
  font-weight: 300;
}

.country-card__name {
  margin-top: auto;
  margin-bottom: 0;
  width: 100%;
  font-family: 'Unbounded', sans-serif;
  font-weight: 500;
  font-size: clamp(34px, 7vw, 130px);
  /* Бокові відступи дублюють .country-card__info. */
  line-height: 1;
  letter-spacing: -0.02em;
  padding: 0 clamp(14px, 1.6vw, 24px) clamp(14px, 1.6vw, 24px);
  color: var(--color-white);
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

.countries__footer {
  display: flex;
  justify-content: center;
  padding-top: clamp(32px, 3.4vw, 66px);
}

/* ===== Carry / Accordion ===== */
.carry {
  background: var(--color-white);
  color: var(--color-text);
  padding-block: clamp(40px, 5vw, 96px) clamp(48px, 6vw, 116px);
}

.carry__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 80px);
  margin-bottom: clamp(32px, 3.6vw, 70px);
}

.carry__title {
  font-size: clamp(30px, 3vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.carry__desc {
  max-width: 400px;
  padding-top: clamp(4px, 0.6vw, 12px);
  flex-shrink: 0;
}

.accordion {
  border-top: 1px solid #ababab;
}

.accordion-item {
  border-bottom: 1px solid #ababab;
}

.accordion-item__header {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 48px);
  width: 100%;
  padding: clamp(20px, 2.7vw, 52px) var(--container-padding);
  text-align: left;
  cursor: pointer;
}

.accordion-item__title {
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--color-text);
  flex-shrink: 0;
}

.accordion-item__preview {
  flex: 1;
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  font-size: clamp(12px, 1vw, 19px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #9a9a9a;
  text-align: right;
  padding-right: clamp(16px, 2vw, 40px);
}

.accordion-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 3.5vw, 68px);
  height: clamp(44px, 3.5vw, 68px);
  border: 1.5px solid var(--color-text);
  border-radius: 50%;
  color: var(--color-text);
  flex-shrink: 0;
  transition: transform .3s cubic-bezier(0.65, 0, 0.35, 1), background-color .2s ease, color .2s ease;
}

.accordion-item__header:hover .accordion-item__icon {
  background: var(--color-text);
  color: var(--color-white);
}

.accordion-item.is-open .accordion-item__icon {
  transform: rotate(90deg);
}

.accordion-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(0.65, 0, 0.35, 1);
}

.accordion-item.is-open .accordion-item__panel {
  grid-template-rows: 1fr;
}

.accordion-item__panel-inner {
  overflow: hidden;
}

.accordion-item__content {
  max-width: 1600px;
  padding: 0 var(--container-padding) clamp(24px, 2.7vw, 52px);
}

.accordion-item__content p {
  font-family: var(--body-font-family);
  font-weight: var(--body-font-weight);
  font-size: var(--body-font-size);
  line-height: var(--body-line-height);
  letter-spacing: var(--body-letter-spacing);
  color: var(--body-color);
}

.accordion-item__content p:not(:last-child) {
  margin-bottom: 0.9em;
}

/* ===== Why ===== */
.why {
  background: var(--color-cream);
  color: var(--color-text);
  padding-block: clamp(56px, 7vw, 140px);
}

.why__header {
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: clamp(48px, 6vw, 120px);
}

.why__title {
  font-size: clamp(30px, 3vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.why__desc {
  margin-top: clamp(12px, 1.5vw, 24px);
  max-width: 600px;
   margin-inline: auto;
  
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 56px);
  padding-block: clamp(28px, 4.6vw, 88px);
}

.why-item__line {
  display: block;
  align-self: center;
  flex-shrink: 0;
  width: clamp(48px, 12.4vw, 238px);
  height: 1px;
  background: #c8cac1;
  margin-left: calc(-1 * var(--container-padding));
}

.why-item__number {
  flex-shrink: 0;
  min-width: clamp(90px, 9.5vw, 182px);
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: clamp(56px, 9.5vw, 182px);
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: var(--color-accent);
}

.why-item__body {
  padding-top: clamp(4px, 0.7vw, 14px);
}

.why-item__title {
  font-family: 'Onest', sans-serif;
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: clamp(10px, 1.3vw, 22px);
}

.why-item__desc {
  max-width: 780px;
}

/* ===== Steps ===== */
.steps {
  position: relative;
  background: #000000;
  color: var(--color-white);
  padding-block: clamp(56px, 7vw, 140px);
}

.steps__inner {
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 80px);
}

.steps__aside {
  position: sticky;
  top: calc(var(--header-height) + clamp(16px, 2vw, 40px));
  flex-shrink: 0;
  width: clamp(220px, 24vw, 460px);
}

.steps__title {
  font-size: clamp(30px, 3vw, 56px);
  letter-spacing: -0.02em;
  line-height: 0.98;
}

.steps__title-accent {
  color: var(--color-accent);
}

.steps__watermark {
  display: block;
  width: clamp(140px, 15.6vw, 300px);
  height: auto;
  opacity: 0.25;
  margin-top: clamp(24px, 3.5vw, 68px);
}

.steps__timeline {
  position: relative;
  flex: 1;
  min-width: 0;
}

.steps__track {
  position: absolute;
  left: clamp(22px, 2.3vw, 43px);
  top: clamp(20px, 2vw, 40px);
  bottom: clamp(20px, 2vw, 40px);
  width: 3px;
  background: #2c2c2c;
  transform: translateX(-50%);
}

.steps__track-fill {
  width: 100%;
  height: 0%;
  background: var(--color-accent);
}

.steps__list {
  list-style: none;
}

.steps__item {
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 76px);
}

.steps__item:not(:last-child) {
  margin-bottom: clamp(48px, 11.5vw, 220px);
}

.steps__circle {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: clamp(44px, 4.4vw, 85px);
  height: clamp(44px, 4.4vw, 85px);
  border-radius: 50%;
  background: var(--color-accent);
  color: #0a0a0a;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 1.5vw, 28px);
}

.steps__card {
  flex: 1;
  background: #0f0f0f;
  border-radius: 24px;
  padding: clamp(20px, 2.6vw, 50px);
}

.steps__card-title {
  font-family: 'Onest', sans-serif;
  font-weight: 500;
  font-size: clamp(20px, 2vw, 34px);
  margin-bottom: clamp(12px, 1.6vw, 28px);
}

.steps__card-desc {
  max-width: 46em;
}

/* ===== Achievements ===== */
.achievements {
  background: #1e1e1e;
  padding-block: clamp(48px, 6.6vw, 128px);
}

.achievements__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 56px);
  text-align: center;
}

.achievement__number {
  display: block;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5.6vw, 108px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: clamp(10px, 1.4vw, 26px);
}

.achievement__label {
  color: #9a9a9a;
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  font-size: clamp(13px, 1vw, 19px);
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 22ch;
  margin-inline: auto;
}

/* ===== Reviews ===== */
.reviews {
  background: var(--color-white);
  padding-block: clamp(48px, 6.6vw, 128px) clamp(40px, 5vw, 96px);
}

.reviews__marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.reviews__marquee:not(:last-of-type) {
  margin-bottom: clamp(16px, 2vw, 32px);
}

.reviews__track {
  display: flex;
  width: max-content;
  gap: clamp(16px, 1.8vw, 32px);
  animation: marquee-left 46s linear infinite;
}

.reviews__marquee--row2 .reviews__track {
  animation-name: marquee-right;
}

.reviews__marquee:hover .reviews__track {
  animation-play-state: paused;
}

.reviews__set {
  display: flex;
  flex-shrink: 0;
  gap: clamp(16px, 1.8vw, 32px);
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reviews__track {
    animation: none;
  }
}

.review-card--mobile-extra {
  display: none;
}

.review-card {
  flex-shrink: 0;
  width: clamp(300px, 27vw, 520px);
  border: 1px solid #e2e2e2;
  border-radius: 20px;
  padding: clamp(24px, 2.4vw, 44px);
  background: var(--color-white);
}

.review-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(16px, 1.7vw, 30px);
}

.review-card__stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.star-icon {
  display: block;
  width: clamp(14px, 1.1vw, 20px);
  height: clamp(14px, 1.1vw, 20px);
}

.review-card__score {
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: clamp(16px, 1.4vw, 26px);
  color: var(--color-text);
}

.review-card__score-max {
  font-weight: 400;
  color: #b5b5b5;
}

.review-card__text {
  /* Exception: sits on a white card, so it keeps a darker color than
     the shared --body-color (which is tuned for dark/cream backgrounds). */
  color: #4a4a4a;
  margin-bottom: clamp(20px, 2.2vw, 40px);
}

.review-card__footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card__avatar {
  display: block;
  width: clamp(28px, 2.2vw, 38px);
  height: clamp(28px, 2.2vw, 38px);
  border-radius: 50%;
  flex-shrink: 0;
}

.review-card__name {
  flex: 1;
  font-family: 'Onest', sans-serif;
  font-weight: 500;
  font-size: clamp(13px, 1vw, 17px);
  color: var(--color-text);
}

.review-card__platform {
  display: block;
  width: clamp(18px, 1.4vw, 22px);
  height: clamp(18px, 1.4vw, 22px);
  flex-shrink: 0;
}

.reviews__footer {
  display: flex;
  justify-content: center;
  padding-top: clamp(16px, 1.7vw, 33px);
}

.reviews__scrollbar {
  display: none;
}

/* ===== Contact ===== */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--color-white);
  padding-block: clamp(24px, 3vw, 56px) clamp(300px,21.7vw, 550px)
}

.contact__vector {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.contact__vector--green {
  top: clamp(-20px, -2vw, -15px);
  left: 0;
  width: clamp(200px, 23vw, 440px);
  height: auto;
  z-index: 0;
}

.contact__vector--black {
  top: clamp(180px, 20vw, 420px);
  right: 0;
  width: clamp(200px, 23vw, 440px);
  height: auto;
  z-index: 0;
}

.contact-card {
  position: relative;
  z-index: 1;
  overflow: visible;
  max-width: 1200px;
  margin-inline: auto;
  background: var(--color-white);
  border: 1px solid #ececec;
  border-radius: clamp(20px, 2vw, 32px);
  box-shadow: 0 30px 70px rgba(10, 10, 10, 0.05);
  padding: clamp(28px, 3.2vw, 56px);
}

.contact-card__title {
  font-size: clamp(30px, 3vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 4px;
}

.contact-card__subtitle {
  margin-bottom: clamp(24px, 2.6vw, 44px);
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 32px);
  margin-bottom: clamp(12px, 1.2vw, 18px);
}

.contact-form__field label {
  display: block;
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 1vw, 17px);
  color: var(--color-text);
  margin-bottom: 8px;
}

.contact-form__field input,
.contact-form__field select {
  width: 100%;
  height: clamp(50px, 4.2vw, 72px);
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  border-radius: clamp(10px, 1vw, 14px);
  padding-inline: clamp(14px, 1.4vw, 22px);
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 1.05vw, 18px);
  color: var(--color-text);
  transition: border-color .2s ease, background-color .2s ease;
}

.contact-form__field input.is-mono {
  font-family: 'Fira Code', monospace;
}

.contact-form__field input::placeholder {
  color: #9a9a9a;
  font-family: inherit;
}

.contact-form__field input:focus,
.contact-form__field select:focus {
  outline: none;
  border-color: var(--color-text);
  background: var(--color-white);
}

.contact-form__field select {
  appearance: none;
  -webkit-appearance: none;
  color: #9a9a9a;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%230a0a0a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right clamp(16px, 1.6vw, 24px) center;
}

.contact-form__field select:valid {
  color: var(--color-text);
}

/* Інлайн-помилка валідації, керує js/calculator.js. */
.field-error {
  display: block;
  margin-top: 6px;
  font-family: 'Onest', sans-serif;
  font-size: 13px;
  line-height: 1.3;
  color: #e5484d;
}

.contact-form__field.has-error input,
.contact-form__field.has-error select {
  border-color: #e5484d;
}

.contact-form__submit {
  display: flex;
  justify-content: center;
  padding-top: clamp(8px, 1vw, 16px);
}

.contact-form__submit .btn {
  min-width: clamp(220px, 20vw, 340px);
}

/* ===== Footer ===== */
.footer {
  position: relative;
  background: var(--color-white);
  overflow: hidden;
  padding-top: clamp(32px, 4vw, 72px);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: clamp(28px, 3.4vw, 56px);
  border-bottom: 1px solid #ececec;

  line-height: 1;
}

.footer__brand {
  max-width: 210px;
}

.footer__brand .logo {
  margin-bottom: clamp(12px, 1.4vw, 20px);
}

.footer__tagline {
  color: #9a9a9a;
  font-family: 'Onest', sans-serif;
  font-size: clamp(16px, 1.1vw, 17px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: clamp(16px, 1.8vw, 26px);
  max-width: 300px;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(38px, 3vw, 48px);
  height: clamp(38px, 3vw, 48px);
  border-radius: 10px;
  background: #0a0a0a;
  transition: background-color .2s ease;
}

.footer__social-link:hover {
  background: #2a2a2a;
}

.footer__social-link img {
  width: 44%;
  height: 44%;
}

.footer__col-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 500;
  font-size: clamp(16px, 1.25vw, 22px);
  margin-bottom: clamp(14px, 1.6vw, 24px);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vw, 14px);
}

.footer__list a {
  color: #9a9a9a;
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1;
  letter-spacing: -0.04em;
  transition: color .2s ease;
}

.footer__list a:hover {
  color: var(--color-text);
}

.footer__flags {
  display: flex;
  gap: 6px;
  margin-top: clamp(10px, 1.2vw, 16px);
}

.footer__flags a {
  display: flex;
  border-radius: 3px;
  overflow: hidden;
  opacity: 0.6;
  transition: opacity .2s ease;
}

.footer__flags a:hover,
.footer__flags a.is-active {
  opacity: 1;
}

.footer__flags img,
.footer__flags svg {
  display: block;
  width: 20px;
  height: 14px;
  object-fit: cover;
}

.footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2.5vw, 40px);
  padding-block: clamp(20px, 2.4vw, 32px);
}

.footer__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4a4a4a;
  font-family: 'Fira Code', monospace;
  font-weight: 400;
  font-size: clamp(12px, 0.9vw, 15px);
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 10px 16px;
}

.footer__copyright {
  text-align: center;
  color: #9a9a9a;
  font-family: 'Onest', sans-serif;
  font-size: clamp(14px, 1vw, 18px);
  padding-block: clamp(16px, 2vw, 32px) 6px;
}

.footer__watermark {
  display: block;
  width: 100%;
  height: auto;
  margin-top: clamp(16px, 2vw, 40px);
  margin-bottom: -4.5vw;
  opacity: 0.13;
  user-select: none;
  pointer-events: none;
}

/* ===== Small screens fallback (tablet) ===== */
@media (min-width: 641px) and (max-width: 860px) {
  .header__inner {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .nav__list {
    overflow-x: auto;
  }

  .hero__inner {
    justify-content: flex-start;
  }

  .hero__content {
    max-width: 100%;
  }
}

/* Плаваюча кнопка контакту — лише мобілка (стилі в @media нижче) */
.call-fab {
  display: none;
}

/* ===================================================================
   ===== Mobile (≤640px) — dedicated layout per Figma mobile design =====
   =================================================================== */
@media (max-width: 640px) {
  :root {
    --mobile-topbar-h: 40px;

    /* Мобільні текстові стилі — 3 спільні розміри (заголовок/підзаголовок/
       body), кожен з 4 властивостями (розмір, line-height, letter-spacing,
       колір). Міняєш тут — оновлюється одразу у всіх сторінках, що
       посилаються на ці змінні через font-size: var(--mobile-text-...).
       Великі хіро-заголовки сюди не входять — налаштовуються окремо. */
    --mobile-text-heading: 28px;
    --mobile-text-heading-line-height: 1;
    --mobile-text-heading-letter-spacing: -0.04em;
    --mobile-text-heading-color: var(--color-text);

    --mobile-text-subheading: 18px;
    --mobile-text-subheading-line-height: 1;
    --mobile-text-subheading-letter-spacing: -0.04em;
    --mobile-text-subheading-color: #3f3e3e;

    --mobile-text-body: 16px;
    --mobile-text-body-line-height: 1;
    --mobile-text-body-letter-spacing: -0.04em;
    --mobile-text-body-color: #9a9a9a;

    /* Відступ між заголовком секції і підзаголовком під ним — спільний для всіх секцій. */
    --mobile-heading-gap: 4px;
  }

  /* ----- Buttons ----- */
  .btn {
    border-radius: 8px;
    padding: clamp(18px, 2vw, 36px) clamp(28px, 2.9vw, 54px);
  }

  /* ----- Header ----- */
  .header {
    height: var(--header-height);
    flex-direction: column;
    align-items: stretch;
  }

  .header::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: var(--mobile-topbar-h);
    background: #0a0a0a;
    z-index: -1;
    transition: background-color .3s ease;
  }

  .header__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: var(--mobile-topbar-h) 1fr;
    grid-template-areas:
      "phone lang"
      "logo  toggle";
    align-items: center;
    height: 100%;
    gap: 0;
  }

  .logo { grid-area: logo; }

  .nav {
    grid-area: lang;
    justify-self: end;
  }

  .nav__list { display: none; }

  .phone {
    grid-area: phone;
    justify-self: start;
    height: auto;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    font-family: 'Fira Code', monospace;
    font-weight: 400;
    font-size: 13px;
  }

  .phone svg { display: none; }

  .header.is-light .phone {
    background: transparent;
  }

  .lang-switch__btn {
    height: auto;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    gap: 6px;
  }

  .header.is-light .lang-switch__btn {
    background: transparent;
    color: var(--color-white);
  }

  .header.is-light .lang-switch__chevron {
    color: rgba(255, 255, 255, 0.7);
  }

  .lang-switch__menu {
    top: calc(100% + 10px);
  }

  /* ----- Hamburger toggle ----- */
  .nav-toggle {
    grid-area: toggle;
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
  }

  .nav-toggle span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--color-white);
    border-radius: 1px;
    transition: transform .25s ease, opacity .25s ease;
  }

  .header.is-light .nav-toggle {
    border-color: rgba(10, 10, 10, 0.25);
  }

  .header.is-light .nav-toggle span {
    background: var(--color-text);
  }

  .nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .mobile-nav {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-height);
    z-index: 99;
    background: #0a0a0a;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }

  .mobile-nav.is-open {
    max-height: 320px;
  }

  .mobile-nav__list {
    list-style: none;
    padding: 4px 20px 20px;
  }

  .mobile-nav__list a {
    display: block;
    padding: 14px 2px;
    font-family: 'Unbounded', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-nav__list a.is-active {
    color: var(--color-accent);
  }

  /* ----- Hero -----
     НАЛАШТУВАННЯ ХІРО — редагуй значення тут, нижче нічого чіпати не треба.
     hero-title-order / hero-subtitle-order / hero-button-order — порядок блоків
       (1 = зверху, 2 = другий, 3 = третій).
     hero-title-offset / hero-subtitle-offset / hero-button-offset — додатковий
       відступ зверху в px для кожного блоку окремо (можна й від'ємний, напр. -10px). */
  .hero {
    align-items: flex-start;
    --hero-title-order: 1;
    --hero-title-offset: 170px;
    --hero-subtitle-order: 2;
    --hero-subtitle-offset: 0px;
    --hero-button-order: 3;
    --hero-button-offset: 8px;
  }

  /* Відео в кадрі зсунуте вліво, щоб було видно дорогу під фурою.
     Змінюй лише число (0% = крайній лівий край кадру, 50% = центр). */
  .hero__video {
    object-position: 30% center;
  }

  .hero__inner {
    justify-content: flex-start;
    padding-top: calc(var(--header-height) + 28px);
  }

  .hero__content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .hero__title {
    font-size: 30px;
    line-height: 1;
    order: var(--hero-title-order);
    margin-top: var(--hero-title-offset);
  }

  .hero__subtitle {
    font-size: 16px;
    line-height: 1;
    order: var(--hero-subtitle-order);
    margin-top: var(--hero-subtitle-offset);
    
   
  }

  .hero .btn--primary {
    order: var(--hero-button-order);
    margin-top: var(--hero-button-offset);
  }

  /* ----- Countries ----- */
  .countries__header {
    flex-direction: column;
    gap: var(--mobile-heading-gap);
  }

  .countries__title {
    font-size: var(--mobile-text-heading);
    line-height: var(--mobile-text-heading-line-height);
    letter-spacing: var(--mobile-text-heading-letter-spacing);
    color: var(--mobile-text-heading-color);
  }

  .countries__desc {
    max-width: 100%;
    font-size: var(--mobile-text-subheading);
    line-height: var(--mobile-text-subheading-line-height);
    letter-spacing: var(--mobile-text-subheading-letter-spacing);
    color: var(--mobile-text-subheading-color);
  }

  .countries__grid {
    grid-template-columns: 1fr;
  }

  /* Перші 3 картки, решта — за кнопкою "Дивитись більше". */
  .country-card:nth-child(n+4) {
    display: none;
  }

  .countries__grid.is-expanded .country-card:nth-child(n+4) {
    display: flex;
  }

  .country-card {
    aspect-ratio: auto;
    flex-direction: column;
    /* stretch замість успадкованого center — інакше .country-card__overlay вилазить за межі екрана. */
    align-items: stretch;
    border-right: none !important;
    padding-block: 28px;
    /* Така ж висота, як і розкрита картка з інфою — щоб при відкритті сторінка не "стрибала". */
    min-height: 280px;
  }

  .country-card::after {
    content: 'Натисніть, щоб побачити інформацію';
    display: block;
    overflow: hidden;
    margin-top: 14px;
    max-height: 40px;
    font-family: 'Onest', sans-serif;
    font-size: var(--mobile-text-body);
    line-height: var(--mobile-text-body-line-height);
    letter-spacing: var(--mobile-text-body-letter-spacing);
    color: var(--mobile-text-body-color);
    text-align: center;
    opacity: 1;
    transition: max-height .35s cubic-bezier(0.65, 0, 0.35, 1), opacity .25s ease, margin-top .35s ease;
  }

  .country-card.is-open::after {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
  }

  .country-card__flag {
    width: 132px;
    align-self: center;
    max-height: 200px;
    opacity: 1;
    transition: max-height .35s cubic-bezier(0.65, 0, 0.35, 1), opacity .25s ease;
  }

  .country-card.is-open .country-card__flag {
    max-height: 0;
    opacity: 0;
  }

  /* Розкриття через grid-template-rows: 0fr → 1fr (та сама техніка, що й .accordion-item__panel). */
  .country-card__overlay {
    position: static;
    inset: auto;
    display: grid;
    grid-template-rows: 0fr;
    margin-inline: 12px;
    margin-top: 0;
    /* НІКОЛИ не додавай сюди padding: це grid-контейнер анімації 0fr→1fr,
       padding лишається видимою смугою навіть коли рядок 0fr. */
    border-radius: 6px;
    opacity: 1;
    clip-path: none;
    transform: none;
    pointer-events: auto;
    transition:
      grid-template-rows .4s cubic-bezier(0.65, 0, 0.35, 1),
      margin-top .4s cubic-bezier(0.65, 0, 0.35, 1);
  }

  .country-card.is-open .country-card__overlay {
    grid-template-rows: 1fr;
    margin-top: 20px;
  }

  .country-card__overlay-inner {
    /* height:100% тут дав би циклічну залежність з fr-анімацією висоти. */
    height: auto;
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity .25s ease;
  }

  .country-card.is-open .country-card__overlay-inner {
    opacity: 1;
    transition-delay: .15s;
  }

  .country-card__info {
    /* На десктопі .country-card__info з'являється по :hover — тут має бути видимим завжди. */
    opacity: 1;
    padding: 20px 20px 0;
  }

  /* Рядкова розкладка — лише на мобілці: підпис і плашка терміну в один
     рядок, плашка праворуч. На десктопі .country-card__top — звичайний
     блок (правило вище, поза медіа-запитом). */
  .country-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
  }

  .country-card__label {
    font-size: 13px;
  }

  .country-card__days {
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 4px;
    margin-bottom: 0;
  }

  .country-card__cities {
    max-width: 88%;
    font-size: 13px;
    line-height: 1.6;
    row-gap: 4px;
    margin-bottom: 28px;
  }

  .country-card__name {
    font-size: 44px;
    text-align: center;
    /* margin-top:0 (не auto): картка тут не фіксованої висоти, як на десктопі. */
    padding: 0 20px 20px;
    margin-top: 0;
    letter-spacing: -0.03em;
  }

  /* ----- Carry / Accordion ----- */
  .carry__header {
    flex-direction: column;
    gap: var(--mobile-heading-gap);
  }

  .carry__title {
    font-size: var(--mobile-text-heading);
    line-height: var(--mobile-text-heading-line-height);
    letter-spacing: var(--mobile-text-heading-letter-spacing);
    color: var(--mobile-text-heading-color);
  }

  .carry__desc {
    max-width: 100%;
    font-size: var(--mobile-text-body);
    line-height: var(--mobile-text-body-line-height);
    letter-spacing: var(--mobile-text-body-letter-spacing);
    color: var(--mobile-text-subheading-color);
  }

  .accordion-item__header {
    flex-wrap: wrap;
    padding-block: 20px;
    gap: 4px 16px;
  }

  .accordion-item__title {
    font-size: 21px;
    flex-basis: calc(100% - 60px);
  }

  .accordion-item__preview {
    flex-basis: calc(100% - 60px);
    text-align: left;
    padding-right: 0;
    font-size: var(--mobile-text-body);
    line-height: var(--mobile-text-body-line-height);
    letter-spacing: var(--mobile-text-body-letter-spacing);
    color: var(--mobile-text-body-color);
    order: 1;
  }

  .accordion-item__content p {
    font-size: var(--mobile-text-body);
    line-height: var(--mobile-text-body-line-height);
    letter-spacing: var(--mobile-text-body-letter-spacing);
    color: var(--mobile-text-body-color);
  }

  .accordion-item__icon {
    width: 40px;
    height: 40px;
    margin-left: auto;
  }

  /* ----- Why ----- */
  .why__header {
    text-align: left;
    margin-inline: 0;
    margin-bottom: 32px;
  }

  .why__title {
    font-size: var(--mobile-text-heading);
    line-height: var(--mobile-text-heading-line-height);
    letter-spacing: var(--mobile-text-heading-letter-spacing);
    color: var(--mobile-text-heading-color);
  }

  .why__desc {
    margin-inline: 0;
    max-width: 100%;
    margin-top: var(--mobile-heading-gap);
    font-size: var(--mobile-text-subheading);
    line-height: var(--mobile-text-subheading-line-height);
    letter-spacing: var(--mobile-text-subheading-letter-spacing);
    color: var(--mobile-text-subheading-color);
  }

  .why-item {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    padding-block: 24px;
  }

  .why-item__line {
    display: none;
  }

  .why-item__body {
    display: contents;
  }

  .why-item__title {
    grid-column: 1 / 3;
    grid-row: 1;
    font-size: 19px;
    margin-bottom: 10px;
  }

  .why-item__number {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    min-width: 0;
    font-size: 44px;
  }

  .why-item__desc {
    grid-column: 2;
    grid-row: 2;
    max-width: 100%;
    font-size: var(--mobile-text-body);
    line-height: var(--mobile-text-body-line-height);
    letter-spacing: var(--mobile-text-body-letter-spacing);
    color: var(--mobile-text-body-color);
  }

  /* ----- Steps ----- */
  .steps__inner {
    flex-direction: column;
    gap: 24px;
  }

  .steps__aside {
    position: static;
    width: 100%;
  }

  .steps__title {
    font-size: var(--mobile-text-heading);
    line-height: var(--mobile-text-heading-line-height);
    letter-spacing: var(--mobile-text-heading-letter-spacing);
  }

  .steps__watermark {
    display: none;
  }

  .steps__item:not(:last-child) {
    margin-bottom: 48px;
  }

  .steps__circle {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .steps__card {
    border-radius: 18px;
    padding: 20px;
  }

  .steps__card-title {
    font-size: 18px;
  }

  .steps__card-desc {
    font-size: var(--mobile-text-body);
    line-height: var(--mobile-text-body-line-height);
    letter-spacing: var(--mobile-text-body-letter-spacing);
    color: var(--mobile-text-body-color);
  }

  /* ----- Achievements ----- */
  .achievements__grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
    position: relative;
  }

  .achievements__grid::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
  }

  .achievement__number {
    font-size: 40px;
  }

  .achievement__label {
    font-size: var(--mobile-text-body);
    line-height: var(--mobile-text-body-line-height);
    letter-spacing: var(--mobile-text-body-letter-spacing);
    color: var(--mobile-text-body-color);
  }

  /* ----- Reviews ----- */
  .reviews__marquee--row2 {
    display: none;
  }

  .reviews__marquee--row1 .reviews__set[aria-hidden="true"] {
    display: none;
  }

  .reviews__marquee--row1 {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    padding-inline: 20px;
    /* mask-image з фейдом по краях мав сенс лише для нескінченної
       marquee-анімації на десктопі — тут заважає бачити padding вище. */
    mask-image: none;
    -webkit-mask-image: none;
  }

  .reviews__marquee--row1::-webkit-scrollbar {
    display: none;
  }

  .reviews__marquee--row1 .reviews__track {
    animation: none;
  }

  .review-card--mobile-extra {
    display: block;
  }

  /* Звужено саме до каруселі в хіро — .review-card на reviews.html вертикальний, на всю ширину. */
  .reviews__marquee--row1 .review-card {
    width: 78vw;
    max-width: 300px;
    padding: 20px;
    border-radius: 16px;
    scroll-snap-align: start;
  }

  .review-card__top {
    margin-bottom: 12px;
  }

  .star-icon {
    width: 13px;
    height: 13px;
  }

  .review-card__score {
    font-size: 15px;
  }

  .review-card__text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 16px;
  }

  .review-card__avatar {
    width: 26px;
    height: 26px;
  }

  .review-card__name {
    font-size: 12px;
  }

  .review-card__platform {
    width: 16px;
    height: 16px;
  }

  .reviews__scrollbar {
    display: block;
    height: 4px;
    border-radius: 4px;
    background: #ececec;
    margin-top: 16px;
    overflow: hidden;
  }

  .reviews__scrollbar-fill {
    height: 100%;
    width: 33%;
    background: #c9c9c9;
    border-radius: 4px;
  }

  .reviews__footer {
    padding-top: 24px;
  }

  /* ----- Contact ----- */
  /* Базовий .contact резервує великий padding-block під .contact__vector, який тут прихований. */
  .contact {
    padding-bottom: 40px;
  }

  .contact-card {
    box-shadow: none;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-card__title {
    font-size: var(--mobile-text-heading);
    line-height: var(--mobile-text-heading-line-height);
    letter-spacing: var(--mobile-text-heading-letter-spacing);
    color: var(--mobile-text-heading-color);
    margin-bottom: 0;
  }

  .contact-card__subtitle {
    margin-top: var(--mobile-heading-gap);
    font-size: var(--mobile-text-subheading);
    line-height: var(--mobile-text-subheading-line-height);
    letter-spacing: var(--mobile-text-subheading-letter-spacing);
    color: var(--mobile-text-subheading-color);
  }

  .contact-form__submit .btn {
    width: 100%;
  }

  .contact__vector {
    display: none;
  }

  /* ----- Footer ----- */
  .footer__top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__brand {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer__tagline {
    font-size: 16px;
  }

  .footer__social {
    justify-content: center;
  }

  .footer__col {
    width: 100%;
  }

  .footer__col-title {
    font-size: 20px;
  }

  .footer__list {
    align-items: center;
  }

  .footer__list a {
    font-size: 16px;
  }

  .footer__flags {
    justify-content: center;
  }

  .footer__flags img,
  .footer__flags svg {
    width: 24px;
    height: 17px;
  }

  .footer__copyright {
    font-size: 14px;
  }

  .footer__contacts {
    flex-direction: column;
    align-items: stretch;
  }

  .footer__contact-item {
    justify-content: center;
    font-size: 14px;
  }

  /* ----- Плаваюча кнопка контакту -----
     Статична, у правому нижньому кутку. Колір інвертується залежно від
     секції під нею (js/main.js, initCallFab): дефолт — світла кнопка
     (над темною секцією), .call-fab--on-light — темна (над світлою). */
  .call-fab {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--color-white);
    color: #0a0a0a;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
    transition: transform .18s ease, background-color .25s ease, color .25s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .call-fab svg {
    width: 22px;
    height: 22px;
  }

  .call-fab--on-light {
    background: #0a0a0a;
    color: var(--color-white);
  }

  .call-fab:hover {
    transform: scale(1.09);
    background: var(--color-accent);
    color: #0a0a0a;
  }

  .call-fab:active {
    transform: scale(0.95);
  }
}
