@media (max-width: 540px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .hero-copy { min-width: 0; }
  .hero p { width: auto; }
  .hero .eyebrow { white-space: normal; }

  .mascot-scene .airplane {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
  }

  .mascot-orbit {
    width: 94%;
    height: auto;
    aspect-ratio: 1;
    inset: auto;
  }
}

@media (max-width: 450px) {
  .catalog .country-card {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 8px;
    padding: 16px 9px;
  }

  .catalog .country-card .card-arrow { display: none; }
  .catalog .country-card h3 { overflow-wrap: normal; hyphens: auto; }
}

@media (max-width: 370px) {
  .catalog .country-card {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 6px;
    padding-inline: 8px;
  }

  .catalog .country-card > img, .catalog .country-card .country-emoji {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 540px) {
  html[lang="en"] .hero h1 {
    font-size: clamp(22px, 7vw, 36px);
  }
}

html[lang] .hero h1 { font-size: clamp(26px, 5vw, 60px); white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 540px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(90px, .52fr); }
}
.catalog-sort { display: flex; flex-wrap: wrap; gap: 1rem; margin: .6rem 0; }
.catalog-sort a[aria-current] { font-weight: 700; }
.tuda footer { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.tuda footer .legal-links { flex-direction: row; flex-wrap: wrap; justify-content: center; margin: 0; }

.home-help {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  margin-block: clamp(32px, 4vw, 52px);
}
.home-steps, .home-questions {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(22px, 2.5vw, 34px);
}
.home-steps { background: var(--wash); scroll-margin-top: 18px; }
.home-questions { background: var(--canvas); }
.home-help h2 { margin: 0 0 20px; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.15; }
.home-steps ol { list-style: none; display: grid; gap: 18px; margin: 0; }
.home-steps li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.step-index {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%; background: var(--highlight); color: var(--deep); font-weight: 700;
}
.home-steps h3 { font-size: 16px; line-height: 1.4; margin: 2px 0; }
.home-steps p, .home-help .faq details p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.home-help .faq { max-width: none; margin: 0; }
.home-help .faq details p { margin-top: 0; }
.home-help .faq summary { min-height: 54px; font-size: 16px; }
.home-help .faq summary > span { font-size: 22px; }
.home-help-link {
  display: inline-flex; align-items: center; align-self: flex-start;
  min-height: 44px; margin-top: auto; padding-top: 16px; gap: 8px;
  font-size: 15px; font-weight: 650; color: var(--primary);
}
.home-help-link:hover { text-decoration: underline; }
@media (max-width: 800px) {
  .home-help { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .home-steps, .home-questions { padding: 20px; }
}

.simtap-hero {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  margin-bottom: 32px;
}
.simtap-hero-copy { align-self: center; padding: clamp(24px, 4vw, 54px); }
.simtap-hero h1 span { color: #165647; }
.simtap-hero h1 { color: var(--ink); font-size: clamp(32px, 4vw, 54px); line-height: 1.07; text-wrap: balance; }
.simtap-hero-copy p { margin: 18px 0 22px; max-width: 43ch; color: var(--muted); line-height: 1.5; }
.simtap-hero-actions { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.simtap-hero-actions .primary-button { width: auto; margin: 0; padding-inline: 24px; background: var(--primary); color: var(--canvas); }
.simtap-hero-actions .primary-button:is(:hover, :focus-visible) { background: var(--deep); }
.simtap-hero-actions .hero-link { margin: 0; }
.simtap-hero-photo { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.simtap-hero-benefits { grid-column: 1 / -1; display: flex; gap: 12px 30px; flex-wrap: wrap; padding: 16px clamp(20px, 4vw, 54px); border-top: 1px solid var(--line); }
.simtap-hero-benefits span { background: var(--highlight); color: var(--ink); padding: 6px 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.simtap-hero-benefits svg { color: var(--ink); }
.country-card .country-flag { box-shadow: none; }
.country-hit { display: inline-block; vertical-align: middle; margin-inline-start: 6px; padding: 3px 6px; background: var(--highlight); color: var(--ink); border-radius: 6px; font-size: 11px; line-height: 1.2; }
@media (max-width: 680px) {
  .simtap-hero { grid-template-columns: minmax(0, 1fr); }
  .simtap-hero-photo { height: clamp(180px, 55vw, 310px); object-fit: contain; }
  .simtap-hero-actions .hero-link { display: inline-flex; }
}

.home-reasons { margin: 24px 0 32px; }
.home-reasons h2 { margin: 0 0 14px; }
.home-reason-links { grid-auto-rows: 1fr; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-reason-links a, .faq-action { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 14px; border-radius: 10px; background: var(--highlight); color: var(--ink); font-weight: 600; }
.home-reason-links > li { display: grid; min-width: 0; }
.home-reason-links a { overflow-wrap: anywhere; }
.home-reason-links svg { flex: none; }
.faq-action { display: inline-flex; background: var(--wash); margin: 4px 8px 8px 0; color: var(--primary); }
.home-reason-links a:hover { background: var(--surface); text-decoration: none; }
.faq-action:hover { text-decoration: underline; }

@media (max-width: 680px) {
  .tuda .main:has(#destinations) { padding-inline: 16px; }
  .tuda .brand { min-height: 44px; }
  .simtap-hero h1 { font-size: 30px; line-height: 1.12; }
  .simtap-hero-copy p { margin-block: 12px 16px; font-size: 16px; }
  .simtap-hero-actions a, .catalog a, .home-help a, .tuda footer a { min-height: 44px; min-width: 44px; }
  .home-reason-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog .section-heading { align-items: stretch; flex-direction: column; }
  .catalog .search { width: 100%; }
  .catalog .search input { font-size: 16px; }
  .catalog .tabs { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .catalog .tabs::-webkit-scrollbar { display: none; }
  .catalog .tabs a { flex: 0 0 auto; white-space: nowrap; }
  .catalog .catalog-hint { display: none; }
  .catalog .country-grid { grid-template-columns: minmax(0, 1fr); }
  .catalog .country-card { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; padding: 12px 16px; gap: 14px; }
  .catalog .country-card .card-arrow { display: grid; }
  .catalog .country-card h3, .catalog .country-card strong { font-size: 16px; }
  .faq-action { width: 100%; margin-inline: 0; justify-content: center; }
  .tuda footer a, .catalog-sort a { display: inline-flex; align-items: center; }
}

.country-comparison { margin-block: 16px; }
.country-comparison table { width: 100%; border-collapse: collapse; }
.country-comparison th, .country-comparison td { text-align: start; padding: 8px; border-bottom: 1px solid var(--line); }
.country-comparison a { display: inline-flex; align-items: center; min-height: 44px; }

.guide-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 12px; }
.guide-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; background: var(--canvas); border: 1px solid var(--line, #e5e1d6); border-radius: 16px; }
.guide-card h2 { margin: 0; font-size: 1.2rem; line-height: 1.25; }
.guide-card p { margin: 6px 0 0; line-height: 1.5; color: var(--muted); }
.guide-arrow { display: grid; place-items: center; flex: none; color: var(--accent); }
.guide-card:hover { border-color: var(--outline); }
.guide-actions, .guide-regions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
.guide-actions { margin-top: 16px; }
.guide-actions a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--primary); }
.guide-regions a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; font-weight: 600; color: var(--primary); }
.guide-regions a span { padding: 4px 12px; line-height: 1.5; border-radius: 999px; background: var(--wash); }
.guide-regions a:focus-visible { outline-offset: -3px; }
@media (max-width: 680px) {
  .guide-list { grid-template-columns: 1fr; }
  .guide-card { padding: 16px; }
}

@media (max-width: 370px) {
  .home-reason-links a {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    overflow-wrap: normal;
  }
}

.home-hero {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  margin: 0 0 24px;
  padding: clamp(24px, 3.4vw, 40px) clamp(28px, 4vw, 48px);
  color: var(--hero-text);
  border: 1px solid #444777;
  border-radius: var(--hero-radius);
  background: var(--hero-background) url("/travel-media/simtap-hero-background.svg") center / cover no-repeat;
}
.home-hero-product { position: relative; isolation: isolate; min-width: 0; width: 100%; max-width: 420px; justify-self: center; }
.home-hero-product::before {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: 2%;
  left: 10%;
  width: 80%;
  height: 8%;
  border-radius: 50%;
  background: #867aff;
  opacity: .5;
  filter: blur(24px);
}
.home-hero-art { width: 100%; height: auto; filter: drop-shadow(0 18px 22px #05061099); }
.home-hero .simtap-hero-copy { position: relative; z-index: 1; padding: 0; }
.home-hero h1 { margin: 0; color: inherit; font-size: clamp(34px, 4.6vw, 50px); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; }
.home-hero h1 span { color: var(--hero-accent); }
.home-hero h1 > span { display: block; }
.home-hero p { max-width: 42ch; color: #c5c8e2; }
.home-hero .simtap-hero-actions { flex-direction: row; gap: 4px 16px; }
.home-hero .primary-button { background: #f5f5f7; color: #101114; }
.home-hero .primary-button:is(:hover, :focus-visible) { background: #e4e6ff; color: #101114; }
.home-hero .hero-link { color: #f5f5f7; }
.home-hero a:focus-visible { outline: 3px solid #a5b3ff; outline-offset: 3px; }
.catalog .section-heading { display: flex; gap: 8px; align-items: stretch; flex-direction: column-reverse; }
.catalog .search { background: var(--surface); width: 100%; min-height: 52px; border: 0; border-radius: 14px; }
.catalog .search input { width: 100%; font-size: 16px; }
.catalog .tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog .tabs a { border-radius: 999px; background: var(--surface); color: var(--ink); padding-inline: 16px; }
.catalog .tabs a.active { background: var(--ink); color: var(--canvas); }
.catalog .catalog-hint { display: none; }
.catalog .country-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 32px; }
.catalog .country-card { display: flex; min-width: 0; gap: 12px; padding: 16px 0; align-items: center; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--canvas); }
.catalog .country-card:hover { background: var(--surface); transform: none; }
.catalog .country-card > div { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.catalog .country-card h3 { margin: 0; overflow-wrap: anywhere; }
.catalog .country-card div > span { text-align: right; }
.catalog .country-card .card-arrow { flex: none; width: 20px; background: transparent; }
.catalog .country-flag-badge { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); }
.catalog .country-flag-badge .country-flag { width: 30px; height: 20px; }
.tuda .main:has(#destinations) { padding-inline: clamp(24px,4vw,48px); }
.home-reasons { margin-block: 32px; }
.home-steps, .home-questions { background: var(--surface); border: 0; }
@media (max-width: 680px) {
  .catalog .country-grid { grid-template-columns: minmax(0,1fr); }
  .catalog .tabs { flex-wrap: nowrap; }
}
@media (max-width: 740px) {
  .home-hero {
    grid-template-columns: fit-content(55%) minmax(0, 1fr);
    grid-template-areas: "title title" "lead lead" "actions phones";
    gap: 0 8px;
    padding: 24px clamp(14px, 4vw, 24px);
    border-radius: 24px;
    background-position: 65% center;
  }
  .home-hero .simtap-hero-copy { display: contents; }
  .home-hero .simtap-hero-copy > :is(h1, h2) { grid-area: title; }
  .home-hero h1 { font-size: clamp(30px, 7.5vw, 36px); }
  .home-hero .simtap-hero-copy > p { grid-area: lead; }
  .home-hero .simtap-hero-actions { grid-area: actions; align-self: center; flex-direction: column; align-items: flex-start; }
  .home-hero .primary-button { padding-inline: 12px; max-width: 100%; }
  .home-hero-product { grid-area: phones; width: min(100%, 220px); justify-self: center; align-self: center; }
}
