/* ==========================================================================
   Zero eSIM — Hero & Search
   ========================================================================== */

@font-face {
  font-family: "SF Pro";
  src: local("SF Pro Display"), local("SF Pro Text"), local(".SF NS Display"), local(".SF NS Text");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --scale-base: 1.3;
  --scale: var(--scale-base);

  --color-yellow: #fff500;
  --color-yellow-hover: #e6dc00;
  --color-signal: #fff500;
  --color-text: #1a1a1a;
  --color-text-muted: #6b6b6b;
  --color-text-light: #999;
  --color-white: #fff;
  --color-border: #e0e0e0;
  --color-error: #d93025;
  --color-border-field: #e4e4e4;
  --color-calendar: #1d3a75;
  --color-nav-hover: rgba(255, 255, 255, 0.82);

  --font-weight-medium: 510;

  --radius-card: calc(21.6px * var(--scale));
  --radius-field: calc(6px * var(--scale));
  --radius-btn: calc(8.4px * var(--scale));

  --shadow-card: 0 0 calc(42px * var(--scale)) rgba(0, 0, 0, 0.05);
  --shadow-search-btn: 0 0 calc(12px * var(--scale)) rgba(255, 245, 0, 0.5);

  --font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container-max: 1440px;
  --header-height: calc(72px * var(--scale));

  --text-nav: calc(16px * var(--scale));
  --text-logo: calc(18px * var(--scale));
  --text-hero: calc(60px * var(--scale));
  --text-hero-min: calc(36px * var(--scale));
  --text-desc: calc(16px * var(--scale));
  --text-label: calc(17px * var(--scale));
  --text-value: calc(24px * var(--scale));
  --text-search: calc(19px * var(--scale));

  --hero-block-w: calc(570px * var(--scale));
  --search-card-w: calc(680px * var(--scale));
  --hero-text-w: calc(470px * var(--scale));
  --hero-desc-w: calc(448px * var(--scale));
  --field-dest-w: calc(300px * var(--scale));
  --field-days-w: calc(258px * var(--scale));
  --field-dest-min: calc(260px * var(--scale));
  --field-days-min: calc(235px * var(--scale));

  --gap-nav: calc(19px * var(--scale));
  --gap-hero-block: calc(40px * var(--scale));
  --gap-hero-inner: calc(10px * var(--scale));
  --gap-title-row: calc(10px * var(--scale));
  --gap-fields: calc(12px * var(--scale));
  --gap-label: calc(6px * var(--scale));
  --gap-value: calc(8px * var(--scale));
  --gap-search-btn: calc(6px * var(--scale));
  --gap-logo: calc(8px * var(--scale));
  --gap-header: calc(16px * var(--scale));
  --gap-nav-apps: calc(2px * var(--scale));

  --logo-icon: calc(32px * var(--scale));
  --app-icons-w: calc(28.85px * var(--scale));
  --app-icons-h: calc(17.94px * var(--scale));

  --signal-w: calc(42px * var(--scale));
  --signal-h: calc(41px * var(--scale));
  --signal-bar-w: calc(9px * var(--scale));
  --signal-bar-1-h: calc(11px * var(--scale));
  --signal-bar-2-h: calc(20px * var(--scale));
  --signal-bar-3-h: calc(29px * var(--scale));
  --signal-bar-4-h: calc(41px * var(--scale));

  --card-pad-top: calc(24px * var(--scale));
  --card-pad-x: calc(36px * var(--scale));
  --card-pad-bottom: calc(36px * var(--scale));
  --card-margin-bottom: calc(28px * var(--scale));

  --field-pad: calc(18px * var(--scale));
  --field-pad-right: calc(24px * var(--scale));
  --field-inner-gap: calc(9.6px * var(--scale));
  --field-border-w: calc(1.2px * var(--scale));

  --btn-header-pad-y: calc(10px * var(--scale));
  --btn-header-pad-x: calc(24px * var(--scale));
  --btn-search-pad-y: calc(14.4px * var(--scale));
  --btn-search-pad-x: calc(48px * var(--scale));

  --chevron-w: calc(5px * var(--scale));
  --chevron-h: calc(7px * var(--scale));
  --flag-size: calc(18px * var(--scale));

  --bp-tablet: 768px;
  --bp-desktop: 1024px;
}

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

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

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--color-text);
  color: var(--color-white);
  border-radius: var(--radius-btn);
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 40px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 64px;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: relative;
  z-index: 2;
  width: 100%;
  height: var(--header-height);
  flex-shrink: 0;
}

.hero__header .header__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
  height: 100%;
}

@media (min-width: 768px) {
  .hero__header .header__inner {
    padding-inline: 40px;
  }
}

@media (min-width: 1024px) {
  .hero__header .header__inner {
    padding-inline: 64px;
  }
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  height: 100%;
  gap: var(--gap-header);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--gap-logo);
  color: var(--color-white);
  flex-shrink: 0;
}

.logo__icon {
  width: var(--logo-icon);
  height: var(--logo-icon);
}

.logo__text {
  font-size: var(--text-logo);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.logo__z {
  font-weight: 700;
}

.nav {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.nav__list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--gap-nav);
  list-style: none;
}

.nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-nav-apps);
  font-size: var(--text-nav);
  font-weight: 510;
  line-height: 1;
  color: var(--color-white);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav__link--apps {
  gap: var(--gap-nav-apps);
}

.nav__app-icons {
  flex-shrink: 0;
  width: var(--app-icons-w);
  height: var(--app-icons-h);
  object-fit: contain;
}

.nav__app-icons--dark {
  filter: invert(1);
}

.btn--header {
  display: none;
  flex-shrink: 0;
  padding: var(--btn-header-pad-y) var(--btn-header-pad-x);
  font-size: var(--text-nav);
  font-weight: 510;
  color: var(--color-text);
  background: var(--color-white);
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn--header:hover {
  background: #f0f0f0;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.menu-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (min-width: 1024px) {
  .nav {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

  .btn--header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Tablet: hide Get eSIM link + header CTA, nav flush right */
@media (min-width: 1024px) and (max-width: 1200px) {
  .nav {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    margin-left: auto;
  }

  .nav__item--esim {
    display: none;
  }

  .btn--header {
    display: none;
  }
}

/* ==========================================================================
   Mobile drawer
   ========================================================================== */

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 201;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--color-white);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
}

.logo--drawer {
  color: var(--color-text);
}

.drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text-muted);
  border-radius: 50%;
  transition: background 0.2s ease;
}

.drawer__close:hover {
  background: #f5f5f5;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}

.drawer__link {
  display: flex;
  align-items: center;
  gap: var(--gap-logo);
  padding: calc(16px * var(--scale)) calc(24px * var(--scale));
  font-size: var(--text-nav);
  font-weight: 510;
  color: var(--color-text);
  transition: background 0.2s ease;
}

.drawer__link:hover {
  background: #f8f8f8;
}

.drawer__link--apps .nav__app-icons--dark {
  filter: none;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--color-nav-hover);
}

/* ==========================================================================
   Hero — 3-block flex layout (nav · content · photo)
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #5bb5f0;
  background-image: url("../assets/images/hero-bg.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  min-height: max(832px, 100svh);
  padding: 0;
  border-radius: 16px;
  overflow: visible;
}

.hero__middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--gap-hero-block);
  width: 100%;
  max-width: var(--search-card-w);
  padding-inline: 24px;
  flex-shrink: 0;
}

.hero__bottom {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  flex-shrink: 0;
  line-height: 0;
}

.hero__photo-img {
  display: block;
  width: 50%;
  height: auto;
  max-width: none;
}

@media (max-width: 1023px) {
  .hero__inner {
    min-height: 100svh;
    border-radius: 0;
  }

  .hero__photo-img {
    width: 50%;
  }
}

@media (max-width: 767px) {
  .hero {
    --signal-w: 34px;
    --signal-h: 28px;
    --signal-bar-w: 7px;
    --signal-bar-1-h: 7px;
    --signal-bar-2-h: 12px;
    --signal-bar-3-h: 18px;
    --signal-bar-4-h: 23px;
    --gap-title-row: 5px;
  }

  .hero__inner {
    width: 100%;
    max-width: none;
    min-height: min(832px, 100svh);
    padding: 0 20px;
    gap: 100px;
    border-radius: 20px;
    justify-content: space-between;
  }

  .hero__header {
    width: 100%;
    height: 46px;
  }

  .hero__header .header__inner {
    width: 100%;
    max-width: none;
    margin-inline: auto;
    padding-inline: 10px;
  }

  .logo {
    gap: 4px;
  }

  .logo__icon {
    width: 21px;
    height: 22px;
  }

  .logo__text {
    font-size: 16px;
    font-weight: 590;
    line-height: 1;
  }

  .menu-toggle {
    width: 18px;
    height: 12px;
    padding: 0;
    gap: 6px;
  }

  .menu-toggle__bar {
    height: 0;
    border-top: 1.5px solid var(--color-white);
    background: none;
    border-radius: 0;
  }

  .hero__middle {
    width: 100%;
    max-width: none;
    padding-inline: 0;
    gap: 40px;
    position: relative;
    z-index: 3;
  }

  .hero__copy {
    gap: 15px;
    max-width: none;
    width: 100%;
  }

  .hero__text-group {
    gap: 0;
    max-width: none;
    width: 100%;
    container-type: inline-size;
  }

  .hero__title-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    width: 100%;
    max-width: 100%;
    min-height: 0;
  }

  .hero .signal-bars {
    gap: 2px;
    flex: 0 0 34px;
    width: 34px;
    height: 28px;
    flex-shrink: 0;
  }

  .hero__title {
    white-space: nowrap;
    font-size: clamp(16px, calc((100cqw - 39px) / 7.8), 34px);
    line-height: 1;
    letter-spacing: -0.02em;
    flex: 0 0 auto;
  }

  .hero__headline {
    display: block;
    width: 100%;
    white-space: nowrap;
    font-size: clamp(16px, calc(100cqw / 9.2), 34px);
    line-height: 1;
    letter-spacing: -0.02em;
    min-height: 0;
    text-align: center;
  }

  .hero__description {
    font-size: 14px;
    font-weight: 510;
    line-height: 1.05;
    max-width: 272px;
  }

  .hero .search-card {
    width: 100%;
    max-width: none;
    margin-bottom: 0;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 0 42px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
  }

  .hero .search-field.is-open {
    z-index: 30;
  }

  .hero .search-dropdown {
    z-index: 200;
  }

  .hero .search-card__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .hero .search-card__fields {
    flex-direction: column;
    gap: 12px;
  }

  .hero .search-field__trigger {
    padding: 14px;
    gap: 9.6px;
    border-width: 1.2px;
    border-radius: 6px;
    min-height: 71.6px;
  }

  .hero .search-field__label-row {
    gap: 5px;
  }

  .hero .search-field__icon {
    width: 10.2px;
  }

  .hero .search-field__icon--calendar {
    width: 13px;
  }

  .hero .search-field__label {
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
  }

  .hero .search-field__value-text {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
  }

  .hero .search-card__action {
    position: static;
    left: auto;
    right: auto;
    width: 100%;
    transform: none;
    display: flex;
    justify-content: center;
    margin-top: 0;
  }

  .hero .btn--search {
    width: 261px;
    max-width: 100%;
    padding: 14.4px 48px;
    font-size: 14px;
    font-weight: 510;
    line-height: 1;
    border-radius: 8.4px;
    gap: 6px;
    box-shadow: 0 0 12px rgba(255, 245, 0, 0.5);
  }

  .hero .btn--search__icon {
    width: 16.95px;
  }

  .hero__bottom {
    width: 100%;
    max-width: none;
    overflow: visible;
    position: relative;
    z-index: 1;
  }

  .hero__photo-img {
    display: block;
    width: 497px;
    max-width: calc(100% + 97px);
    height: auto;
    margin-inline: auto;
    position: relative;
    top: -21px;
  }
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--gap-hero-inner);
  width: 100%;
  max-width: var(--hero-block-w);
  color: var(--color-white);
  text-align: center;
}

.hero__text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-hero-inner);
  width: 100%;
  max-width: var(--hero-text-w);
}

.hero__title-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: var(--gap-title-row);
  width: 100%;
}

.hero__title {
  font-size: clamp(var(--text-hero-min), 8vw, var(--text-hero));
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero__headline {
  display: block;
  width: 100%;
  font-size: clamp(var(--text-hero-min), 8vw, var(--text-hero));
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero__description {
  width: 100%;
  max-width: var(--hero-desc-w);
  font-size: var(--text-desc);
  font-weight: 510;
  line-height: 1.05;
}

.hero__description--desktop {
  display: none;
}

.hero__description--mobile {
  display: block;
}

@media (min-width: 768px) {
  .hero__description--desktop {
    display: block;
  }

  .hero__description--mobile {
    display: none;
  }
}

/* Signal bars animation */
.signal-bars {
  display: inline-flex;
  flex-direction: row;
  align-items: flex-end;
  gap: calc(2px * var(--scale));
  width: var(--signal-w);
  height: var(--signal-h);
  flex-shrink: 0;
}

.signal-bars__bar {
  width: var(--signal-bar-w);
  height: var(--signal-bar-w);
  background: var(--color-white);
  border-radius: calc(1px * var(--scale));
  transform-origin: bottom center;
}

.signal-bars__bar:nth-child(1) {
  animation: signal-grow-1 0.5s ease forwards;
  animation-delay: 0.3s;
}

.signal-bars__bar:nth-child(2) {
  animation: signal-grow-2 0.5s ease forwards;
  animation-delay: 0.5s;
}

.signal-bars__bar:nth-child(3) {
  animation: signal-grow-3 0.5s ease forwards;
  animation-delay: 0.7s;
}

.signal-bars__bar:nth-child(4) {
  animation: signal-grow-4 0.5s ease forwards;
  animation-delay: 0.9s;
}

@keyframes signal-grow-1 {
  to { height: var(--signal-bar-1-h); background: var(--color-signal); }
}

@keyframes signal-grow-2 {
  to { height: var(--signal-bar-2-h); background: var(--color-signal); }
}

@keyframes signal-grow-3 {
  to { height: var(--signal-bar-3-h); background: var(--color-signal); }
}

@keyframes signal-grow-4 {
  to { height: var(--signal-bar-4-h); background: var(--color-signal); }
}

/* Fade in */
.fade-in {
  opacity: 0;
  transform: translateY(calc(16px * var(--scale)));
  animation: fade-in 0.7s ease forwards;
}

.fade-in--delay {
  animation-delay: 0.25s;
}

@keyframes fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Search card
   ========================================================================== */

.search-card {
  width: 100%;
  max-width: var(--search-card-w);
  margin-bottom: var(--card-margin-bottom);
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--card-pad-top) var(--card-pad-x) var(--card-pad-bottom);
  position: relative;
  isolation: isolate;
}

.search-card__fields {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: var(--gap-fields);
}

.search-field {
  position: relative;
  min-width: 0;
}

.search-field--destination,
.search-field--duration {
  flex: 1 1 0;
  max-width: none;
}

.search-field__trigger {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: var(--field-pad) var(--field-pad-right) var(--field-pad) var(--field-pad);
  gap: var(--field-inner-gap);
  border: var(--field-border-w) solid var(--color-border-field);
  border-radius: var(--radius-field);
  background: var(--color-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field__trigger:hover {
  border-color: #d0d0d0;
}

.search-field.is-open .search-field__trigger,
.search-field__trigger:focus-visible {
  border-color: var(--color-text);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
}

.search-field.has-error .search-field__trigger {
  border-color: var(--color-error);
}

.search-field__label-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--gap-label);
}

.search-field__icon {
  flex-shrink: 0;
  width: calc(15px * var(--scale));
  height: auto;
}

.search-field__icon--calendar {
  width: calc(19px * var(--scale));
}

.search-field__label {
  font-size: var(--text-label);
  font-weight: 400;
  line-height: 1;
  color: var(--color-text);
}

.search-field__value {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: var(--gap-value);
  width: 100%;
}

.search-field__value-text {
  font-size: var(--text-value);
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
}

.search-field__flag {
  font-size: var(--flag-size);
  line-height: 1;
}

.search-field__chevron {
  margin-left: auto;
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-left: var(--chevron-w) solid transparent;
  border-right: var(--chevron-w) solid transparent;
  border-top: var(--chevron-h) solid var(--color-text);
  opacity: 0.85;
}

.search-field__error {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + calc(4px * var(--scale)));
  font-size: calc(13px * var(--scale));
  font-weight: 500;
  color: var(--color-error);
}

/* Rotating destination animation */
.search-field__value-text.is-animating {
  animation: destination-fade 0.4s ease;
}

@keyframes destination-fade {
  0% { opacity: 1; transform: translateY(0); }
  40% { opacity: 0; transform: translateY(-8px); }
  60% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Search dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  animation: dropdown-in 0.25s ease;
}

@keyframes dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-dropdown__input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--color-text);
  border-radius: var(--radius-card);
  margin: 12px;
}

.search-dropdown__icon {
  flex-shrink: 0;
  opacity: 0.6;
}

.search-dropdown__divider {
  width: 1px;
  height: 20px;
  background: var(--color-border);
  flex-shrink: 0;
}

.search-dropdown__input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text);
  min-width: 0;
}

.search-dropdown__clear {
  flex-shrink: 0;
  display: flex;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.search-dropdown__clear:hover {
  color: var(--color-text);
}

.search-dropdown__body {
  max-height: 320px;
  overflow-y: auto;
}

.search-dropdown__hint {
  padding: 20px 16px 24px;
  font-size: 15px;
  color: var(--color-text-muted);
  text-align: center;
}

.search-dropdown__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  border-bottom: 1px solid var(--color-border);
}

.search-dropdown__header-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.search-dropdown__header-count {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-light);
}

.search-dropdown__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  background: var(--color-white);
  transition: background 0.15s ease;
}

.search-dropdown__item:hover,
.search-dropdown__item:focus-visible {
  background: #fafafa;
  outline: none;
}

.search-dropdown__item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  overflow: hidden;
}

.search-dropdown__item-icon--city {
  background: #e8f0fe;
  color: #1a73e8;
}

.search-dropdown__item-icon--region {
  background: #e8f0fe;
}

.search-dropdown__item-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-dropdown__item-name {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
}

.search-dropdown__item-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  background: #f3f3f3;
  padding: 4px 10px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Search button */
.search-card__action {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  z-index: 1;
}

.btn--search {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: var(--gap-search-btn);
  padding: calc(var(--btn-search-pad-y) - 1px) calc(var(--btn-search-pad-x) - 2px);
  font-size: calc(var(--text-search) - 2px);
  font-weight: 510;
  line-height: 1;
  color: var(--color-text);
  background: var(--color-yellow);
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-search-btn);
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn--search__icon {
  flex-shrink: 0;
  width: calc(17px * var(--scale) - 2px);
  height: auto;
}

.btn--search:hover {
  background: var(--color-yellow-hover);
  transform: scale(1.04);
}

.btn--search:active {
  transform: scale(1.02);
}

@media (max-width: 767px) {
  .search-card__fields {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .search-field--destination,
  .search-field--duration {
    flex: 1 1 auto;
    width: 100%;
  }
}

/* ==========================================================================
   Date picker modal
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
  animation: overlay-in 0.3s ease;
}

.modal-overlay[hidden] {
  display: none;
}

@keyframes overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.date-modal {
  width: 100%;
  max-width: 680px;
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  animation: modal-in 0.35s ease;
  overflow: hidden;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.date-modal__header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 24px 24px 16px;
}

.date-modal__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
}

.date-modal__close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.date-modal__close:hover {
  color: var(--color-text);
}

.date-modal__notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 20px 16px;
  padding: 12px 16px;
  background: #fff9e6;
  border-radius: var(--radius-field);
  font-size: 14px;
  font-weight: 500;
  color: #8b6914;
  line-height: 1.4;
}

.date-modal__notice-icon {
  flex-shrink: 0;
  font-size: 16px;
}

.date-modal__calendars {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 8px 20px 20px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 600px) {
  .date-modal__calendars {
    flex-direction: row;
    gap: 32px;
  }
}

.calendar {
  flex: 1;
  min-width: 0;
}

.calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 12px;
}

.calendar__month {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.calendar__nav {
  display: flex;
  gap: 4px;
}

.calendar__nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: background 0.2s ease;
}

.calendar__nav-btn:hover:not(:disabled) {
  background: #f0f0f0;
}

.calendar__nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  margin-bottom: 4px;
}

.calendar__weekday {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-light);
  padding: 4px 0;
  text-transform: lowercase;
}

.calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.calendar__day:hover:not(:disabled):not(.is-selected) {
  background: #f5f5f5;
}

.calendar__day.is-other-month {
  color: var(--color-text-light);
}

.calendar__day.is-past {
  color: #d0d0d0;
  cursor: not-allowed;
}

.calendar__day.is-in-range {
  background: #f0f0f0;
  border-radius: 0;
}

.calendar__day.is-range-start {
  background: #f0f0f0;
  border-radius: 50% 0 0 50%;
}

.calendar__day.is-range-end {
  background: #f0f0f0;
  border-radius: 0 50% 50% 0;
}

.calendar__day.is-selected {
  border-color: #1a3a6e;
  color: var(--color-text);
  font-weight: 600;
}

.calendar__day.is-range-start.is-range-end {
  border-radius: 50%;
}

.date-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #fafafa;
}

.date-modal__status {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.btn--apply {
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-yellow);
  border-radius: var(--radius-btn);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn--apply:hover:not(:disabled) {
  background: var(--color-yellow-hover);
  transform: scale(1.04);
}

.btn--apply:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   Destinations section
   ========================================================================== */

.destinations {
  padding: calc(64px * var(--scale)) 0 calc(80px * var(--scale));
  background: var(--color-white);
}

.destinations__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(32px * var(--scale));
}

.destinations__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(12px * var(--scale));
  max-width: calc(640px * var(--scale));
  text-align: center;
}

.destinations__title {
  font-size: clamp(28px, 4vw, calc(40px * var(--scale)));
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.destinations__subtitle {
  font-size: calc(16px * var(--scale));
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.destinations__tabs {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: calc(4px * var(--scale));
  padding: calc(4px * var(--scale));
  background: #f2f2f2;
  border-radius: 999px;
}

.destinations__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(6px * var(--scale));
  padding: calc(10px * var(--scale)) calc(20px * var(--scale));
  font-size: calc(15px * var(--scale));
  font-weight: 510;
  line-height: 1;
  color: var(--color-text);
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.destinations__tab:hover {
  background: rgba(255, 255, 255, 0.55);
}

.destinations__tab.is-active {
  background: var(--color-white);
  border-color: var(--color-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.destinations__badge {
  display: inline-flex;
  align-items: center;
  padding: calc(2px * var(--scale)) calc(6px * var(--scale));
  font-size: calc(10px * var(--scale));
  font-weight: 600;
  line-height: 1;
  color: var(--color-white);
  background: #2b6cff;
  border-radius: 4px;
  text-transform: capitalize;
}

.destinations__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(16px * var(--scale));
  width: 100%;
}

.destinations__grid[data-active-tab="global"] {
  grid-template-columns: minmax(0, calc(360px * var(--scale)));
  justify-content: center;
}

.dest-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: calc(14px * var(--scale));
  min-height: calc(88px * var(--scale));
  padding: calc(18px * var(--scale)) calc(20px * var(--scale));
  background: var(--color-white);
  border: 1px solid #ebebeb;
  border-radius: calc(14px * var(--scale));
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.dest-card::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -35%;
  width: 55%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.035) 0%, transparent 72%);
  pointer-events: none;
}

.dest-card:hover {
  border-color: #d8d8d8;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.dest-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dest-card__icon--flag {
  width: calc(48px * var(--scale));
  height: calc(48px * var(--scale));
  font-size: calc(28px * var(--scale));
  line-height: 1;
  background: #f5f5f5;
  border-radius: 50%;
}

.dest-card__icon--globe,
.dest-card__icon--plan {
  width: calc(48px * var(--scale));
  height: calc(48px * var(--scale));
}

.dest-card__globe-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.dest-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(4px * var(--scale));
  min-width: 0;
  flex: 1 1 auto;
}

.dest-card__label {
  font-size: calc(12px * var(--scale));
  font-weight: 400;
  line-height: 1;
  color: var(--color-text-light);
}

.dest-card__name {
  font-size: calc(17px * var(--scale));
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

.dest-card__arrow {
  position: absolute;
  right: calc(16px * var(--scale));
  bottom: calc(14px * var(--scale));
  flex-shrink: 0;
  color: #b0b0b0;
}

.btn--destinations {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: calc(16px * var(--scale)) calc(32px * var(--scale));
  font-size: calc(17px * var(--scale));
  font-weight: 510;
  line-height: 1;
  color: var(--color-text);
  background: var(--color-yellow);
  border-radius: calc(10px * var(--scale));
  box-shadow: var(--shadow-search-btn);
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn--destinations:hover {
  background: var(--color-yellow-hover);
  transform: scale(1.02);
}

@media (max-width: 900px) {
  .destinations__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .destinations {
    padding: 48px 0 64px;
  }

  .destinations__inner {
    gap: 24px;
  }

  .destinations__tabs {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: calc(14px * var(--scale));
  }

  .destinations__tab {
    flex: 1 1 auto;
    padding: 10px 14px;
    font-size: 14px;
  }

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

  .dest-card__name {
    font-size: 16px;
  }
}

/* ==========================================================================
   eSIM promo banner
   ========================================================================== */

.esim-promo {
  --esim-promo-scale: 1.2;
  padding: 0 0 calc(64px * var(--scale));
  background: var(--color-white);
}

.esim-promo__wrap {
  display: flex;
  justify-content: center;
}

.esim-promo__banner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: calc(19px * var(--esim-promo-scale));
  width: 100%;
  max-width: calc(1040px * var(--esim-promo-scale));
  min-height: calc(293px * var(--esim-promo-scale));
  height: auto;
  padding: calc(24px * var(--esim-promo-scale)) calc(60px * var(--esim-promo-scale));
  background: url("../assets/images/what-is-esim-bg.jpg") center / cover no-repeat;
  border-radius: calc(20px * var(--esim-promo-scale));
  overflow: hidden;
}

.esim-promo__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: calc(19px * var(--esim-promo-scale));
  flex: 1 1 calc(465px * var(--esim-promo-scale));
  min-width: 0;
  max-width: calc(465px * var(--esim-promo-scale));
  padding: 0;
}

.esim-promo__title {
  font-size: clamp(calc(28px * var(--esim-promo-scale)), 3.2vw, calc(37px * var(--esim-promo-scale)));
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: calc(-0.8px * var(--esim-promo-scale));
  color: var(--color-text);
}

.esim-promo__text {
  max-width: calc(378px * var(--esim-promo-scale));
  font-size: calc(16px * var(--esim-promo-scale));
  font-weight: 510;
  line-height: 1.2;
  color: var(--color-text);
  text-wrap: pretty;
}

.btn--esim-promo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: calc(12px * var(--esim-promo-scale)) calc(28px * var(--esim-promo-scale));
  font-size: calc(16px * var(--esim-promo-scale));
  font-weight: 600;
  line-height: calc(24px * var(--esim-promo-scale));
  color: var(--color-text);
  background: var(--color-yellow);
  border-radius: 9999px;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn--esim-promo:hover {
  background: var(--color-yellow-hover);
  transform: scale(1.03);
}

.esim-promo__guarantee {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: calc(5px * var(--esim-promo-scale));
  font-size: calc(12px * var(--esim-promo-scale));
  font-weight: 500;
  line-height: calc(18px * var(--esim-promo-scale));
  color: var(--color-text);
}

.esim-promo__check {
  flex-shrink: 0;
  width: calc(16px * var(--esim-promo-scale));
  height: calc(16px * var(--esim-promo-scale));
}

.esim-promo__media {
  position: relative;
  flex: 0 0 calc(394px * var(--esim-promo-scale));
  width: calc(394px * var(--esim-promo-scale));
  min-height: calc(293px * var(--esim-promo-scale));
  align-self: stretch;
}

.esim-promo__photo {
  position: absolute;
  left: calc(19px * var(--esim-promo-scale));
  top: calc(23px * var(--esim-promo-scale));
  width: calc(375px * var(--esim-promo-scale));
  height: calc(270px * var(--esim-promo-scale));
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
}

/* Stack before the side-by-side layout gets too cramped */
@media (max-width: 1100px) {
  .esim-promo__banner {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: calc(36px * var(--esim-promo-scale)) calc(32px * var(--esim-promo-scale)) calc(28px * var(--esim-promo-scale));
    background-size: cover;
    background-position: center top;
  }

  .esim-promo__content {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .esim-promo__text {
    max-width: min(100%, calc(520px * var(--esim-promo-scale)));
    font-size: calc(18px * var(--esim-promo-scale));
    line-height: 1.25;
  }

  .esim-promo__guarantee {
    justify-content: center;
  }

  .esim-promo__media {
    flex: 0 0 auto;
    width: 100%;
    max-width: calc(394px * var(--esim-promo-scale));
    min-height: calc(240px * var(--esim-promo-scale));
    height: calc(240px * var(--esim-promo-scale));
    margin: 0 auto;
  }

  .esim-promo__photo {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
  }
}

@media (max-width: 560px) {
  .esim-promo {
    padding-bottom: 48px;
  }

  .esim-promo__banner {
    padding: calc(28px * var(--esim-promo-scale)) calc(20px * var(--esim-promo-scale)) calc(20px * var(--esim-promo-scale));
    border-radius: calc(16px * var(--esim-promo-scale));
  }

  .esim-promo__text {
    font-size: calc(17px * var(--esim-promo-scale));
    line-height: 1.3;
  }

  .esim-promo__media {
    min-height: calc(200px * var(--esim-promo-scale));
    height: calc(200px * var(--esim-promo-scale));
  }
}

/* ==========================================================================
   App download banner
   ========================================================================== */

.app-download {
  --app-download-scale: 1.2;
  padding: 0 0 calc(48px * var(--app-download-scale));
  background: var(--color-white);
}

.app-download__wrap {
  display: flex;
  justify-content: center;
}

.app-download__banner {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: calc(24px * var(--app-download-scale));
  width: 100%;
  max-width: calc(1040px * var(--app-download-scale));
  min-height: calc(320px * var(--app-download-scale));
  padding: calc(32px * var(--app-download-scale)) calc(48px * var(--app-download-scale)) 0;
  background: transparent;
  border-radius: calc(20px * var(--app-download-scale));
  overflow: hidden;
  isolation: isolate;
}

.app-download__banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../assets/images/what-is-esim-bg.jpg") center / cover no-repeat;
  transform: scaleX(-1);
  border-radius: inherit;
}

.app-download__media,
.app-download__content {
  position: relative;
  z-index: 1;
}

.app-download__media {
  flex: 0 0 calc(340px * var(--app-download-scale));
  width: calc(340px * var(--app-download-scale));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: flex-end;
  margin-top: auto;
}

.app-download__device {
  display: block;
  width: 100%;
  max-width: calc(320px * var(--app-download-scale));
  height: auto;
  margin-bottom: 0;
  object-fit: contain;
  object-position: bottom center;
}

.app-download__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: calc(20px * var(--app-download-scale));
  flex: 1 1 0;
  min-width: 0;
  max-width: calc(480px * var(--app-download-scale));
  align-self: center;
  padding-bottom: calc(32px * var(--app-download-scale));
}

.app-download__title {
  font-size: clamp(calc(28px * var(--app-download-scale)), 3vw, calc(37px * var(--app-download-scale)));
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--color-text);
}

.app-download__text {
  font-size: calc(16px * var(--app-download-scale));
  font-weight: 510;
  line-height: 1.35;
  color: var(--color-text);
  text-wrap: pretty;
}

.app-download__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(12px * var(--app-download-scale));
}

.btn--app-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(8px * var(--app-download-scale));
  padding: calc(12px * var(--app-download-scale)) calc(24px * var(--app-download-scale));
  font-size: calc(16px * var(--app-download-scale));
  font-weight: 600;
  line-height: 1;
  color: #fff;
  background: #000;
  border-radius: 9999px;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn--app-store:hover {
  background: #1a1a1a;
  transform: scale(1.03);
}

.btn--app-store__icon {
  width: calc(12px * var(--app-download-scale));
  height: auto;
  flex-shrink: 0;
}

.btn--play-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(8px * var(--app-download-scale));
  padding: calc(12px * var(--app-download-scale)) calc(24px * var(--app-download-scale));
  font-size: calc(16px * var(--app-download-scale));
  font-weight: 600;
  line-height: 1;
  color: var(--color-text);
  background: var(--color-yellow);
  border-radius: 9999px;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn--play-store:hover {
  background: var(--color-yellow-hover);
  transform: scale(1.03);
}

.btn--play-store__icon {
  width: calc(15px * var(--app-download-scale));
  height: auto;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .app-download__banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: calc(32px * var(--app-download-scale)) calc(24px * var(--app-download-scale)) 0;
  }

  .app-download__content {
    align-items: center;
    align-self: center;
    max-width: none;
    padding-bottom: calc(24px * var(--app-download-scale));
  }

  .app-download__media {
    flex: 0 0 auto;
    width: 100%;
    max-width: calc(280px * var(--app-download-scale));
    align-self: center;
    order: -1;
  }

  .app-download__buttons {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .app-download__buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn--app-store,
  .btn--play-store {
    width: 100%;
    max-width: 280px;
  }
}

/* ==========================================================================
   How it works
   ========================================================================== */

.how-it-works {
  --how-scale: 1.2;
  --how-card-min-height: calc(465px * var(--how-scale));
  --how-card-content-min-height: calc(445px * var(--how-scale));
  padding: calc(50px * var(--how-scale)) 0 calc(60px * var(--how-scale));
  background: var(--color-white);
}

.how-it-works__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: calc(40px * var(--how-scale));
  width: 100%;
  max-width: calc(1040px * var(--how-scale));
}

.how-it-works__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(10px * var(--how-scale));
  width: 100%;
}

.how-it-works__title {
  width: 100%;
  font-size: calc(35px * var(--how-scale));
  font-weight: 510;
  line-height: 1.43;
  color: #191c1f;
  text-transform: capitalize;
}

.how-it-works__subtitle {
  width: 100%;
  font-size: calc(18px * var(--how-scale));
  font-weight: 400;
  line-height: 1.28;
  color: #191c1f;
}

.how-it-works__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(25px * var(--how-scale));
  width: 100%;
}

.how-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  padding: calc(20px * var(--how-scale)) calc(20px * var(--how-scale)) 0;
  background: #eef1f6;
  border-radius: calc(12px * var(--how-scale));
}

.how-card__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(20px * var(--how-scale));
  flex: 1 1 auto;
  width: 100%;
}

.how-card__step {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: calc(31px * var(--how-scale));
  height: calc(30px * var(--how-scale));
  padding: calc(6px * var(--how-scale)) calc(10px * var(--how-scale));
  font-size: calc(19px * var(--how-scale));
  font-weight: 400;
  line-height: 1;
  color: #191c1f;
  background: var(--color-white);
  border-radius: 99px;
}

.how-card__text {
  display: flex;
  flex-direction: column;
  gap: calc(16px * var(--how-scale));
  width: 100%;
}

.how-card__heading {
  font-size: calc(21px * var(--how-scale));
  font-weight: 510;
  line-height: 1.1;
  color: #191c1f;
}

.how-card__description {
  font-size: calc(16px * var(--how-scale));
  font-weight: 400;
  line-height: 1.44;
  color: #191c1f;
}

.how-card__visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  overflow: hidden;
}

.how-card__visual img {
  display: block;
  width: 100%;
  max-width: calc(290px * var(--how-scale));
  height: auto;
}

.btn--how-cta {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: calc(5px * var(--how-scale));
  padding: calc(14px * var(--how-scale)) calc(40px * var(--how-scale));
  font-size: calc(16px * var(--how-scale));
  font-weight: 510;
  line-height: 1;
  color: var(--color-white);
  background: #000;
  border-radius: calc(40px * var(--how-scale));
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn--how-cta:hover {
  background: #1a1a1a;
  transform: scale(1.03);
}

.btn--how-cta__icon {
  flex-shrink: 0;
  width: calc(14px * var(--how-scale));
  height: auto;
  filter: invert(1);
}

@media (min-width: 961px) {
  .how-card {
    min-height: var(--how-card-min-height);
  }

  .how-card__content {
    min-height: var(--how-card-content-min-height);
  }
}

@media (max-width: 960px) {
  .how-it-works__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .how-it-works {
    padding: 40px 0 48px;
  }

  .how-it-works__title {
    font-size: 28px;
  }

  .how-it-works__subtitle {
    font-size: 16px;
  }
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  --faq-scale: 1.2;
  padding: calc(50px * var(--faq-scale)) 0 calc(60px * var(--faq-scale));
  background: #f5f6f8;
}

.faq__inner {
  display: flex;
  flex-direction: column;
  gap: calc(32px * var(--faq-scale));
  width: 100%;
  max-width: calc(1040px * var(--faq-scale));
}

.faq__header {
  display: flex;
  flex-direction: column;
  gap: calc(12px * var(--faq-scale));
  width: 100%;
}

.faq__title {
  width: 100%;
  font-size: calc(35px * var(--faq-scale));
  font-weight: 510;
  line-height: 1.3;
  letter-spacing: -0.5px;
  color: #191c1f;
}

.faq__subtitle {
  width: 100%;
  max-width: none;
  font-size: calc(18px * var(--faq-scale));
  font-weight: 400;
  line-height: 1.5;
  color: #5c5d66;
}

.faq__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  width: 100%;
  border-bottom: 1px solid #e3e4e8;
}

.faq__tab {
  position: relative;
  flex: 0 1 auto;
  padding: calc(14px * var(--faq-scale)) calc(18px * var(--faq-scale));
  font-size: calc(16px * var(--faq-scale));
  font-weight: 500;
  line-height: 1.2;
  color: #86878f;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.faq__tab:hover {
  color: #191c1f;
}

.faq__tab.is-active {
  color: #1a73e8;
  border-bottom-color: #1a73e8;
}

.faq__panels {
  width: 100%;
}

.faq__panel {
  display: flex;
  flex-direction: column;
  gap: calc(15px * var(--faq-scale));
}

.faq__panel[hidden] {
  display: none;
}

.faq__item {
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee;
  border-radius: calc(12px * var(--faq-scale));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.faq__item-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(16px * var(--faq-scale));
  width: 100%;
  padding: calc(20px * var(--faq-scale)) calc(24px * var(--faq-scale));
  font-size: calc(18px * var(--faq-scale));
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.3px;
  color: #191c1f;
  list-style: none;
  cursor: pointer;
}

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

.faq__chevron {
  flex-shrink: 0;
  width: calc(12px * var(--faq-scale));
  height: calc(12px * var(--faq-scale));
  color: #86878f;
  transition: transform 0.2s ease;
}

.faq__item[open] .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 calc(24px * var(--faq-scale)) calc(20px * var(--faq-scale));
  font-size: calc(16px * var(--faq-scale));
  font-weight: 400;
  line-height: 1.6;
  color: #5c5d66;
}

@media (max-width: 640px) {
  .faq {
    --faq-scale: 1;
    padding: 40px 0 48px;
  }

  .faq__title {
    font-size: 28px;
  }

  .faq__subtitle {
    font-size: 16px;
  }

  .faq__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .faq__tabs::-webkit-scrollbar {
    display: none;
  }

  .faq__tab {
    flex-shrink: 0;
    padding: 12px 14px;
    font-size: 14px;
  }

  .faq__item-trigger {
    padding: 16px;
    font-size: 15px;
  }

  .faq__answer {
    padding: 0 16px 16px;
    font-size: 14px;
  }
}

/* ==========================================================================
   Site footer
   ========================================================================== */

.site-footer {
  padding: 56px 0 32px;
  background: #191c1f;
  color: #fff;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: calc(1040px * 1.2);
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px 48px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
}

.site-footer__tagline {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 120px;
}

.site-footer__heading {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.site-footer__link {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease;
}

.site-footer__link:hover {
  color: #fff;
}

.site-footer__apps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-footer__app-icon {
  display: block;
  flex-shrink: 0;
}

.site-footer__app-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.88;
  transition: opacity 0.2s ease;
}

.site-footer__app-link:hover {
  opacity: 1;
}

.how-it-works__subtitle a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.how-it-works__subtitle a:hover {
  color: #1a73e8;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__copy {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer .logo {
  color: #fff;
}

@media (max-width: 640px) {
  .site-footer {
    padding: 40px 0 24px;
  }

  .site-footer__top {
    flex-direction: column;
  }

  .site-footer__columns {
    gap: 28px 40px;
  }
}

/* ==========================================================================
   Placeholder sections
   ========================================================================== */

.section-placeholder {
  padding: 80px 0;
  background: #fafafa;
  border-top: 1px solid var(--color-border);
}

.section-placeholder h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-placeholder p {
  font-size: 16px;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
