/**
 * Adaptive layout fixes.
 * Phone: ≤768px. Laptop/Mac/tablet: ≤1280px and short viewports.
 */

/* Blog hub card system lives in style.css (.blog-hub / .blog-topic-grid). */

/* Closing photo CTA: one size on every page, match NN / Sochi / home */
.city-cta,
.home-final-cta,
.about-page__cta,
.ach-cta-section,
.ach-cta-section.ach-screen {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--site-cta-min-h, 28.875rem);
  max-height: none;
  padding-block: var(--site-cta-pad-y, clamp(5rem, 12vh, 8rem));
  overflow: hidden;
}

/* ------------------------------------------------------------------
   Laptop / Mac / iPad: text wrap, no 100vh crush, no glyph collision
   ------------------------------------------------------------------ */
@media (max-width: 1280px) {
  h1,
  h2,
  h3,
  h4,
  .hero-spotlight__layer,
  .train-hub__layer,
  .train-fmt-hero__title,
  .offer-sync__title,
  .offer-sync__title-word,
  .geo-immersive__city,
  .blog-topic-card__title,
  .city-section-title {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    max-width: 100%;
    min-width: 0;
  }

  .train-hub__layer {
    white-space: normal;
    flex-wrap: wrap;
    line-height: 1.08;
    letter-spacing: -0.02em;
  }

  .train-hub--home .train-hub__layer {
    line-height: 1.06;
    letter-spacing: -0.02em;
  }

  .hero-spotlight__layer {
    line-height: 1.06;
  }

  .offer-sync__title {
    line-height: 1;
  }

  .offer-sync__title-num {
    line-height: 0.95;
  }

  .offer-sync__title-word {
    margin-top: 0;
  }

  .geo-immersive__city {
    overflow-wrap: normal;
    word-break: normal;
  }
}

@media (max-height: 900px) {
  .train-hub,
  .train-hub__shell {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .train-flow__rows {
    flex: none !important;
    grid-template-rows: none !important;
    min-height: 0 !important;
  }

  .train-flow__rows > li,
  .train-flow__row {
    height: auto !important;
    min-height: 7.25rem !important;
  }

  .proof-dome-section.section,
  .proof-dome__bleed {
    height: auto !important;
    max-height: none !important;
    min-height: min(36rem, 78svh) !important;
  }

  .hero-section,
  .hero-section--spotlight {
    min-height: auto;
    height: auto;
    max-height: none;
  }

  body.home .hero-section,
  body.home .hero-section--spotlight {
    height: calc(100svh - var(--site-header-h, 4.25rem)) !important;
    min-height: calc(100svh - var(--site-header-h, 4.25rem)) !important;
    max-height: calc(100svh - var(--site-header-h, 4.25rem)) !important;
  }
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  background: var(--aura-surface);
  padding: var(--aura-gap-md);
  border-radius: var(--aura-radius-card);
  border: 1px solid var(--aura-border-color);
  line-height: 1.65;
}

.article-body p,
.article-body li {
  margin-bottom: 1rem;
}

.article-body h2,
.article-body h3 {
  margin: 2rem 0 1rem;
}

.article-body img {
  max-width: 100%;
  height: auto;
}

.article-single .post-navigation {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  /* --- Global: clip sideways scroll, keep full-bleed safe --- */
  html,
  body {
    overflow-x: clip;
    max-width: 100%;
  }

  .site,
  .site-content,
  main,
  .site-main {
    overflow-x: clip;
    max-width: 100%;
  }

  .trust-band,
  .brand-rail-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden;
  }

  .trust-band__copy {
    max-width: 20rem;
    padding: 0 0.5rem;
    font-size: 0.95rem;
    line-height: 1.62;
  }

  /* =========================================================
     1) HERO VIDEO — full phone screen again
     ========================================================= */
  .hero-section,
  .hero-section--spotlight {
    min-height: 100svh;
    min-height: 100dvh;
    height: 100svh;
    height: 100dvh;
    max-height: none;
    padding: 5.25rem 1rem 4.25rem;
    box-sizing: border-box;
    align-items: flex-end;
    justify-content: center;
  }

  body.home .hero-section,
  body.home .hero-section--spotlight {
    height: calc(100svh - var(--site-header-h, 4.25rem));
    min-height: calc(100svh - var(--site-header-h, 4.25rem));
    max-height: calc(100svh - var(--site-header-h, 4.25rem));
    padding: 1rem 1rem 1.5rem;
  }

  .hero-section__video,
  .hero-section__veil {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .hero-spotlight {
    width: 100%;
    max-width: 100%;
    padding-inline: 0.15rem;
  }

  .hero-spotlight__glitch {
    margin-bottom: 1.25rem;
  }

  .hero-spotlight__layer {
    font-size: clamp(2.45rem, 12.8vw, 3.55rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
    gap: 0.12em;
    overflow-wrap: normal;
    word-break: normal;
  }

  /* Keep glitch layers visible for auto-swap (do not blank title on touch) */
  .hero-spotlight__layer--b,
  .hero-spotlight__layer--acid,
  .hero-spotlight__layer--blood {
    display: flex !important;
  }

  .hero-spotlight__layer--a {
    animation: hero-mobile-glitch-a 2.4s steps(1, end) infinite;
  }

  .hero-spotlight__layer--b {
    animation: hero-mobile-glitch-b 2.4s steps(1, end) infinite;
  }

  .hero-spotlight__layer--acid {
    animation: hero-mobile-glitch-acid 2.4s steps(1, end) infinite;
  }

  .hero-spotlight__layer--blood {
    animation: hero-mobile-glitch-blood 2.4s steps(1, end) infinite;
  }

  @keyframes hero-mobile-glitch-a {
    0%,
    38% {
      opacity: 1;
    }
    42%,
    92% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }

  @keyframes hero-mobile-glitch-b {
    0%,
    38% {
      opacity: 0;
    }
    42%,
    92% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }

  @keyframes hero-mobile-glitch-acid {
    0%,
    38% {
      opacity: 0;
      transform: none;
    }
    42%,
    92% {
      opacity: 0.72;
      transform: translate(-3px, 2px);
    }
    100% {
      opacity: 0;
      transform: none;
    }
  }

  @keyframes hero-mobile-glitch-blood {
    0%,
    38% {
      opacity: 0;
      transform: none;
    }
    42%,
    92% {
      opacity: 0.72;
      transform: translate(3px, -2px);
    }
    100% {
      opacity: 0;
      transform: none;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-spotlight__layer--a,
    .hero-spotlight__layer--b,
    .hero-spotlight__layer--acid,
    .hero-spotlight__layer--blood {
      animation: none !important;
    }

    .hero-spotlight__layer--a {
      opacity: 1 !important;
    }

    .hero-spotlight__layer--b,
    .hero-spotlight__layer--acid,
    .hero-spotlight__layer--blood {
      opacity: 0 !important;
      transform: none !important;
    }
  }

  .hero-spotlight__seo {
    font-size: clamp(1.05rem, 4.4vw, 1.3rem);
    margin-top: 0.15rem;
  }

  .hero-spotlight__seo-lead {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  /* =========================================================
     2) OFFER SYNC — "4 направления" ABOVE the 4 service cards
     ========================================================= */
  .offer-sync--static .offer-sync__viewport {
    display: flex;
    flex-direction: column;
  }

  .offer-sync--static .offer-sync__ui {
    order: -1;
    position: relative;
    height: auto;
  }

  .offer-sync--static .offer-sync__stage {
    order: 1;
  }

  .offer-sync--static .offer-sync__ui-inner {
    padding-top: 1.25rem;
    padding-bottom: 0.75rem;
  }

  .offer-sync--static .offer-sync__slide {
    min-height: clamp(16rem, 58vw, 20rem);
  }

  /* =========================================================
     3) PROOF DOME / photo carousel — full viewport again
     ========================================================= */
  .proof-dome-section.section {
    min-height: calc(100svh - 4.25rem);
    max-height: none;
    overflow: hidden;
  }

  .proof-dome__bleed {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    height: calc(100svh - 4.25rem) !important;
    min-height: calc(100svh - 4.25rem) !important;
    overflow: hidden;
    display: block;
  }

  .proof-dome-section__head {
    position: absolute;
    top: calc(4.25rem + 0.3rem);
    left: 50%;
    right: auto;
    bottom: auto;
    z-index: 8;
    display: flex;
    width: calc(100% - 1.75rem);
    padding: 0;
    background: transparent;
    transform: translateX(-50%);
  }

  .proof-dome-section__foot {
    position: absolute;
    left: 50%;
    bottom: 1.05rem;
    z-index: 8;
    width: max-content;
    max-width: calc(100% - 1.75rem);
    transform: translateX(-50%);
  }

  .proof-dome-hall {
    flex-direction: column;
    align-items: center;
    padding: 0;
    border-radius: 0;
    background: none;
  }

  .proof-dome-hall__outline,
  .proof-dome-hall__solid {
    font-size: clamp(2.5rem, 15vw, 3.35rem);
  }

  .proof-dome-hall__of {
    font-size: clamp(1.05rem, 5.5vw, 1.4rem);
  }

  .proof-dome-hall__cta {
    width: auto;
    min-height: 2.95rem;
    font-size: 0.7rem;
    padding: 0.75rem 1.3rem;
  }

  .proof-dome__stage {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden;
  }

  #proof-dome-root {
    overflow: hidden;
  }

  #proof-dome-root > .sphere-root {
    transform: none;
    width: 100%;
    height: 100%;
  }

  #proof-dome-root .stage {
    transform: scale(1.55);
    transform-origin: center 55%;
  }

  /* =========================================================
     4) BLOG TOPIC CARDS — stack full width
     ========================================================= */
  .grid-12 {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .grid-12 > .aura-card,
  .blog-topic-card {
    grid-column: 1 / -1 !important;
    width: 100%;
    max-width: 100%;
  }

  .grid-12 > .aura-card img,
  .blog-topic-card img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .home-blog {
    padding: 1.1rem 0 1.35rem !important;
  }

  .home-blog__title {
    font-size: clamp(1.85rem, 9.5vw, 2.7rem) !important;
  }

  .blog-topic-grid--home {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0.75rem !important;
  }

  .blog-topic-grid--home .blog-topic-card__hit {
    display: flex !important;
    flex-direction: column !important;
  }

  .blog-topic-grid--home .blog-topic-card img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
  }

  /* =========================================================
     5) ABOUT PAGE — large badge, cut section air under header
     ========================================================= */
  .about-page__hero.section,
  .about-page__hero {
    padding-top: 0 !important;
    padding-bottom: 1rem !important;
    min-height: auto !important;
    display: block !important;
  }

  .about-page__hero-grid {
    grid-template-columns: 1fr !important;
    gap: 0.55rem !important;
    min-height: auto !important;
    align-items: start !important;
    /* Only clear sticky header — match story block side padding */
    padding: 4.15rem 1.1rem 1rem !important;
  }

  .about-page__hero-copy {
    padding-top: 0 !important;
    padding-inline: 0 !important;
    gap: 0.85rem !important;
    justify-content: flex-start !important;
  }

  .about-page__hero-lanyard {
    order: -1;
    height: min(58svh, 480px) !important;
    min-height: 400px !important;
    max-height: min(58svh, 480px) !important;
    margin: -0.5rem 0 0 !important;
    overflow: hidden !important;
  }

  .about-page__hero-lanyard .about-lanyard-root {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    /* Large render; crop empty WebGL air above the badge */
    height: min(78svh, 660px) !important;
    min-height: 560px !important;
    max-height: none !important;
    margin-top: -24% !important;
    transform: none !important;
  }

  .about-page__title {
    font-size: clamp(2.55rem, 12.4vw, 3.6rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.025em !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }

  .about-page__title-line {
    white-space: nowrap !important;
  }

  .about-page__brutal-num {
    font-size: clamp(2rem, 9vw, 2.6rem) !important;
  }

  .about-page__lead {
    font-size: clamp(1.02rem, 4.2vw, 1.15rem) !important;
    line-height: 1.58 !important;
  }

  .about-page__geo-block {
    max-width: none !important;
    gap: 0.2rem !important;
  }

  .about-page__geo-city {
    font-size: clamp(1.08rem, 4.8vw, 1.35rem) !important;
  }

  .about-page__geo {
    font-size: clamp(1.15rem, 5.5vw, 1.4rem) !important;
  }

  .about-page__hero-copy {
    gap: 1rem !important;
  }

  .about-page__story-panel {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  .about-page__story-visual {
    min-height: 16rem;
    max-height: 20rem;
  }

  .about-page__story-visual::after {
    background: linear-gradient(
      to top,
      var(--aura-bg) 0%,
      rgba(28, 30, 36, 0.35) 45%,
      transparent 100%
    );
  }

  .about-page__story-copy {
    padding: 1.5rem 1.1rem 2rem !important;
  }

  .about-page__story-copy .about-page__section-title {
    max-width: none !important;
    overflow-wrap: anywhere;
    font-size: clamp(1.35rem, 6.5vw, 1.85rem);
  }

  .about-page__split {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }

  .about-page__hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .about-page__hero-actions .btn {
    width: 100%;
  }

  /* Джиб / Подушка / Progress — чуть крупнее + воздух между строками */
  .about-page .about-set__title {
    font-size: min(2.85rem, calc((100vw - 3rem) / 7.35)) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
    max-width: 100% !important;
  }

  /* =========================================================
     5b) ABOUT-SET / OTHER FORMATS — numbers left, text with gap
     ========================================================= */
  .about-set__row,
  .about-set__row.train-set__link {
    display: grid !important;
    grid-template-columns: 3.6rem minmax(0, 1fr) !important;
    column-gap: 1.15rem !important;
    row-gap: 0 !important;
    align-items: start !important;
    padding: 1.15rem 0.5rem 1.15rem 0.55rem !important;
  }

  .about-set__num {
    position: relative !important;
    grid-column: 1 !important;
    width: 3.6rem !important;
    max-width: 3.6rem !important;
    margin: 0 !important;
    font-size: clamp(1.45rem, 7.2vw, 1.85rem) !important;
    line-height: 1 !important;
    letter-spacing: -0.04em !important;
    text-align: left !important;
    overflow: visible;
  }

  .about-set__content,
  .about-set__content.train-set__content {
    grid-column: 2 !important;
    min-width: 0 !important;
    padding-top: 0.1rem !important;
    padding-left: 0.15rem !important;
  }

  .about-set__name,
  .about-set__name.train-set__name {
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: clamp(0.95rem, 4.5vw, 1.15rem) !important;
    line-height: 1.1 !important;
  }

  .about-set__tags {
    gap: 0.25rem 0.55rem !important;
  }

  /* =========================================================
     5c) FAQ — title fit + space from left accent line
     ========================================================= */
  .train-fmt-faq,
  .train-fmt-faq .city-block-head {
    overflow: visible !important;
  }

  /*
   * FAQ title: centered urban stack.
   */
  .train-fmt-faq .city-block-head {
    text-align: center !important;
  }
  .train-fmt-faq .city-section-title {
    max-width: 100% !important;
    width: 100% !important;
    margin-inline: auto !important;
    font-size: clamp(1.45rem, 7.2vw, 2.15rem) !important;
    font-weight: 900 !important;
    line-height: 1.06 !important;
    letter-spacing: -0.02em !important;
    text-align: center !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    overflow: visible !important;
  }
  .train-fmt-faq .city-section-lead {
    margin-inline: auto !important;
    text-align: center !important;
  }

  .city-faq__q,
  .train-fmt-faq .city-faq__q,
  .train-faq__trigger {
    padding-left: 1.35rem !important;
    padding-right: 0.75rem !important;
    column-gap: 0.9rem !important;
  }

  .city-faq__body,
  .train-fmt-faq .city-faq__body {
    padding-left: 1.35rem !important;
    padding-right: 0.75rem !important;
  }

  .train-fmt-faq .city-faq__item[open] {
    box-shadow: inset 3px 0 0 0 var(--train-fmt-faq-accent, var(--aura-primary, #ff2a42));
  }

  .train-fmt-faq .city-faq__item[open] .city-faq__q,
  .train-fmt-faq .city-faq__item[open] .city-faq__body {
    padding-left: 1.45rem !important;
  }

  .train-faq__content-inner {
    padding-left: 1.35rem !important;
    padding-right: 0.75rem !important;
  }

  /* =========================================================
     6) TRAIN FLOW — centered copy, right CTA desktop / centered mobile
     ========================================================= */
  .train-flow__rows {
    grid-template-rows: none !important;
    gap: 0.75rem !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .train-flow__rows > li {
    min-height: 0 !important;
    height: auto !important;
  }

  .train-flow__row {
    display: grid !important;
    grid-template-columns: 2.7rem minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 0.55rem 0.75rem !important;
    height: auto !important;
    min-height: clamp(8rem, 30vw, 10rem) !important;
    padding: 1.2rem 1.1rem 1.2rem 1rem !important;
    align-items: center !important;
    border-left: 3px solid transparent !important;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 28px) 100%, 0 100%) !important;
  }

  .train-flow__rows > li:nth-child(even) .train-flow__row {
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 14px, 100% 100%, 0 100%) !important;
  }

  .train-flow__num {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    height: auto !important;
    font-size: clamp(1.5rem, 7.6vw, 2rem) !important;
    line-height: 1 !important;
    letter-spacing: -0.03em !important;
    color: transparent !important;
    -webkit-text-stroke: 1.25px color-mix(in srgb, var(--flow-accent, #ff2a42) 55%, rgba(255, 255, 255, 0.25)) !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
  }

  .train-flow__copy {
    grid-column: 2 !important;
    grid-row: 1 !important;
    max-width: none !important;
    width: 100% !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.28rem;
    margin: 0 !important;
  }

  .train-flow__name {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    font-size: clamp(1.05rem, 4.6vw, 1.35rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;
  }

  .train-flow__desc {
    -webkit-line-clamp: 3 !important;
    font-size: clamp(0.92rem, 3.6vw, 1.05rem) !important;
    color: rgba(255, 255, 255, 0.94) !important;
  }

  .train-flow__go {
    position: static !important;
    transform: none !important;
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    justify-self: center !important;
    width: max-content !important;
    min-width: 11.25rem !important;
    margin: 0 !important;
    padding: 0.78rem 1.2rem 0.78rem 1.35rem !important;
    font-size: 0.84rem !important;
    color: #fff !important;
    background: var(--flow-accent) !important;
    border: none !important;
    border-radius: 999px !important;
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--flow-accent) 55%, #fff),
      0 0 18px var(--flow-glow, rgba(255, 42, 66, 0.45)) !important;
    clip-path: none !important;
  }

  .train-flow__row:hover,
  .train-flow__row:focus-visible,
  .train-flow__row:active,
  .train-flow__row.is-hot {
    transform: none !important;
    border-left-color: var(--flow-accent) !important;
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--flow-accent) 22%, transparent),
      0 0 28px color-mix(in srgb, var(--flow-glow, rgba(255,42,66,0.45)) 35%, transparent) !important;
  }

  .train-flow__row:hover .train-flow__num,
  .train-flow__row:focus-visible .train-flow__num,
  .train-flow__row:active .train-flow__num,
  .train-flow__row.is-hot .train-flow__num {
    color: var(--flow-accent) !important;
    -webkit-text-stroke-color: transparent !important;
    text-shadow: 0 0 18px var(--flow-glow, rgba(255,42,66,0.45)) !important;
    transform: scale(1.04) !important;
  }

  .train-flow__row:hover .train-flow__go,
  .train-flow__row:focus-visible .train-flow__go,
  .train-flow__row:active .train-flow__go,
  .train-flow__row.is-hot .train-flow__go {
    color: #fff !important;
    background: var(--flow-accent) !important;
    border: none !important;
    transform: none !important;
  }

  .train-flow__row--acid .train-flow__go,
  .train-flow__row--acid:hover .train-flow__go,
  .train-flow__row--acid:focus-visible .train-flow__go,
  .train-flow__row--acid:active .train-flow__go,
  .train-flow__row--acid.is-hot .train-flow__go {
    color: #0a0c10 !important;
    text-shadow: none !important;
    box-shadow:
      0 0 0 1px color-mix(in srgb, #0a0c10 28%, var(--flow-accent)),
      0 0 12px rgba(223, 255, 0, 0.22) !important;
  }

  .train-hub--catalog .train-flow__row {
    position: relative !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    min-height: 0 !important;
    padding: 1.05rem 1rem !important;
    column-gap: 0 !important;
    row-gap: 0.7rem !important;
    align-items: center !important;
    align-content: center !important;
    justify-items: center !important;
  }

  .train-hub--catalog .train-flow__copy {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    min-width: 0 !important;
    padding-inline: 2.55rem !important;
  }

  .train-hub--catalog .train-flow__name {
    overflow-wrap: normal !important;
    word-break: normal !important;
    white-space: normal !important;
    font-size: clamp(1.1rem, 4.9vw, 1.34rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;
    flex-direction: column !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.1em !important;
  }

  .train-hub--catalog .train-flow__name-a,
  .train-hub--catalog .train-flow__name-b {
    display: block !important;
    white-space: nowrap !important;
    max-width: 100%;
  }

  .train-hub--catalog .train-flow__num {
    position: absolute !important;
    left: 0.7rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    color: transparent !important;
    -webkit-text-stroke: 1.25px color-mix(in srgb, var(--flow-accent) 55%, rgba(255, 255, 255, 0.25)) !important;
    text-shadow: none !important;
    font-size: clamp(1.55rem, 7.4vw, 2rem) !important;
    line-height: 1 !important;
    letter-spacing: -0.03em !important;
  }

  .train-hub--catalog .train-flow__row:hover .train-flow__num,
  .train-hub--catalog .train-flow__row:focus-visible .train-flow__num,
  .train-hub--catalog .train-flow__row:active .train-flow__num,
  .train-hub--catalog .train-flow__row.is-hot .train-flow__num {
    color: var(--flow-accent) !important;
    -webkit-text-stroke-color: transparent !important;
    text-shadow: 0 0 18px var(--flow-glow, rgba(255, 42, 66, 0.45)) !important;
    transform: translateY(-50%) scale(1.04) !important;
  }

  .train-hub--catalog .train-flow__go {
    grid-column: 1 !important;
    grid-row: 2 !important;
    justify-self: center !important;
    min-width: 0 !important;
    padding: 0.62rem 0.95rem 0.62rem 1.05rem !important;
  }

  /* About-set: tap highlight (phones have no real hover) */
  .about-set__row {
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }

  .about-set__row.is-hot .about-set__name,
  .about-set__row:active .about-set__name {
    transform: translateX(2px);
  }

  /* =========================================================
     7) TRAIN PROCESS — stop cards overlapping
     ========================================================= */
  .train-process__steps-wrap {
    overflow: visible;
  }

  .train-process__track {
    display: none !important;
  }

  .train-process__steps {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    grid-auto-rows: auto !important;
    gap: 0.85rem !important;
    height: auto !important;
    align-items: stretch !important;
  }

  .train-process__step {
    display: grid !important;
    grid-template-columns: 3rem minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    column-gap: 0.85rem !important;
    row-gap: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    align-items: start !important;
    position: relative !important;
  }

  /* Line runs through circle centers (num sits above with solid bg) */
  .train-process__step:not(:last-child)::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: 1.5rem !important;
    left: 1.5rem !important;
    width: 2px !important;
    height: calc(100% + 0.85rem) !important;
    transform: translateX(-50%) !important;
    background: rgba(0, 229, 255, 0.55) !important;
    border-radius: 999px !important;
    z-index: 0 !important;
    pointer-events: none !important;
  }

  .train-process__step.is-lit:not(:last-child)::before {
    background: linear-gradient(180deg, var(--aura-primary), var(--aura-secondary)) !important;
  }

  .train-process__num {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 3rem;
    height: 3rem;
    position: relative;
    z-index: 2;
  }

  .train-process__card {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    align-items: flex-start !important;
    text-align: left !important;
    padding: 0.9rem 1rem !important;
  }

  .train-process.is-ready .train-process__card {
    opacity: 1 !important;
    transform: none !important;
  }

  .train-process__card-title,
  .train-process__card-text {
    text-align: left !important;
    width: 100%;
  }

  /* FAQ CTA buttons stack */
  .home-final-cta__actions,
  .city-faq + .button-row,
  .train-faq__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .home-final-cta__actions .btn {
    width: 100%;
  }

  /* Geo immersive — мягче затемнение неактивного города при тапе/скролле */
  .geo-immersive__shade {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.28) 48%,
      rgba(0, 0, 0, 0.1) 100%
    ) !important;
  }

  .geo-immersive__split:hover .geo-immersive__half:not(:hover) .geo-immersive__bg,
  .geo-immersive__split:focus-within .geo-immersive__half:not(:focus-within) .geo-immersive__bg {
    filter: brightness(0.82) saturate(0.9) !important;
    transform: scale(1) !important;
  }

  .geo-immersive__split:hover .geo-immersive__half:not(:hover) .geo-immersive__shade,
  .geo-immersive__split:focus-within .geo-immersive__half:not(:focus-within) .geo-immersive__shade {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.76) 0%,
      rgba(0, 0, 0, 0.36) 58%,
      rgba(0, 0, 0, 0.14) 100%
    ) !important;
  }

  .geo-immersive__half:hover .geo-immersive__bg,
  .geo-immersive__half:focus-visible .geo-immersive__bg {
    filter: brightness(1.04) saturate(1.08) !important;
    transform: scale(1.02) !important;
  }

  .geo-immersive__half:hover .geo-immersive__shade,
  .geo-immersive__half:focus-visible .geo-immersive__shade {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.68) 0%,
      rgba(0, 0, 0, 0.22) 55%,
      transparent 100%
    ) !important;
  }

  .geo-immersive__bg {
    transform: scale(1);
  }

  .geo-immersive__city {
    font-size: clamp(1.85rem, 9.4vw, 2.55rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .geo-immersive__city-line:first-child {
    -webkit-text-stroke-width: 1.5px;
  }

  .geo-immersive__content {
    width: min(100%, 18rem);
    padding: 0 1.15rem 2rem;
    transform: rotate(-1.5deg);
  }

  .geo-immersive__half--sochi .geo-immersive__content {
    transform: rotate(1.5deg);
  }

  .geo-immersive__half {
    min-height: 18rem;
    align-items: flex-end;
    justify-content: center;
  }

  /* Cookie */
  .cookie-banner {
    left: 0;
    right: 0;
    width: 100%;
    padding-inline: 0.75rem;
    box-sizing: border-box;
  }

  .cookie-banner__inner {
    max-width: 100%;
  }

  .cookie-banner__accept {
    width: auto;
    flex: 1 1 auto;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__close {
    flex: 0 0 2.5rem;
  }

  .site-footer__grid,
  .site-footer__cols,
  .footer-columns,
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .site-footer {
    padding-inline: 1rem;
    padding-block: 1.5rem 1.1rem !important;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 1.1rem !important;
    padding-bottom: 0.85rem !important;
  }

  .footer-brand__actions {
    width: 100%;
  }

  .footer-brand__actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.48rem 0.85rem !important;
    font-size: 0.74rem !important;
  }

  .footer-col__title {
    margin-bottom: 0.65rem !important;
    font-size: 0.74rem !important;
  }

  .footer-col a {
    font-size: 1rem !important;
    font-weight: 700 !important;
  }

  .footer-icon {
    width: 1.2rem !important;
    height: 1.2rem !important;
  }

  .footer-bottom {
    padding-top: 0.75rem !important;
  }

  /* Offer cards — mobile: фото без оверлея, читаемость только у текста */
  .offer-sync__slide-shade,
  .train-page .offer-sync--catalog .offer-sync__slide-shade,
  .offer-sync--static .offer-sync__slide.is-active:hover .offer-sync__slide-shade,
  .offer-sync--static .offer-sync__slide.is-active:focus-visible .offer-sync__slide-shade,
  .offer-sync--static .offer-sync__slide--hot.is-active:hover .offer-sync__slide-shade,
  .offer-sync--static .offer-sync__slide--hot.is-active:focus-visible .offer-sync__slide-shade,
  .offer-sync__slide[data-offer-slide="0"] .offer-sync__slide-shade,
  .offer-sync__slide[data-offer-slide="1"] .offer-sync__slide-shade,
  .offer-sync__slide[data-offer-slide="2"] .offer-sync__slide-shade,
  .offer-sync__slide[data-offer-slide="3"] .offer-sync__slide-shade,
  .offer-sync--static .offer-sync__slide[data-offer-slide="0"] .offer-sync__slide-shade,
  .offer-sync--static .offer-sync__slide[data-offer-slide="1"] .offer-sync__slide-shade,
  .offer-sync--static .offer-sync__slide[data-offer-slide="2"] .offer-sync__slide-shade,
  .offer-sync--static .offer-sync__slide[data-offer-slide="3"] .offer-sync__slide-shade,
  .offer-sync--static .offer-sync__slide[data-offer-slide="0"].is-active:hover .offer-sync__slide-shade,
  .offer-sync--static .offer-sync__slide[data-offer-slide="1"].is-active:hover .offer-sync__slide-shade,
  .offer-sync--static .offer-sync__slide[data-offer-slide="2"].is-active:hover .offer-sync__slide-shade,
  .offer-sync--static .offer-sync__slide[data-offer-slide="3"].is-active:hover .offer-sync__slide-shade,
  .offer-sync--static .offer-sync__slide[data-offer-slide="0"].is-active:focus-visible .offer-sync__slide-shade,
  .offer-sync--static .offer-sync__slide[data-offer-slide="1"].is-active:focus-visible .offer-sync__slide-shade,
  .offer-sync--static .offer-sync__slide[data-offer-slide="2"].is-active:focus-visible .offer-sync__slide-shade,
  .offer-sync--static .offer-sync__slide[data-offer-slide="3"].is-active:focus-visible .offer-sync__slide-shade {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    background: none !important;
    transition: none !important;
  }

  .offer-sync__slide-body {
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  .offer-sync__slide-title {
    font-size: clamp(1.7rem, 8.2vw, 2.4rem) !important;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    text-shadow:
      0 0 10px rgba(0, 0, 0, 0.9),
      0 1px 3px rgba(0, 0, 0, 0.95),
      0 2px 8px rgba(0, 0, 0, 0.75);
  }

  .offer-sync__slide-label {
    text-shadow:
      0 0 8px rgba(0, 0, 0, 0.85),
      0 1px 2px rgba(0, 0, 0, 0.9);
  }

  .offer-sync__slide-text {
    color: #fff !important;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.5;
    text-shadow:
      0 0 10px rgba(0, 0, 0, 0.9),
      0 1px 3px rgba(0, 0, 0, 0.95),
      0 2px 8px rgba(0, 0, 0, 0.75);
  }

  /* Hero format: premium mast, air at bottom */
  .train-fmt-hero {
    overflow: hidden !important;
    padding-bottom: 5rem !important;
  }

  .train-fmt-hero .train-fmt-hero__inner.container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .train-fmt-hero__title {
    font-size: min(2.05rem, calc((100vw - 2.1rem) / 13.2)) !important;
    letter-spacing: -0.035em !important;
    line-height: 1.04 !important;
    max-width: 100% !important;
    width: 100%;
    overflow: visible;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    box-sizing: border-box;
  }

  /* Gruppy hero: shorter lines → larger type on phone */
  .train-page--cyan .train-fmt-hero__title {
    font-size: min(2.9rem, calc((100vw - 2rem) / 8.5)) !important;
    letter-spacing: -0.04em !important;
    line-height: 0.98 !important;
  }

  .train-fmt-hero__line,
  .train-fmt-hero__line--hit {
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .train-fmt-hero__line--shift {
    padding-left: clamp(0.75rem, 5vw, 1.75rem) !important;
  }

  .train-fmt-hero__lead {
    max-width: none !important;
  }

  /* Menu submenu: never shift left on tap/focus */
  .site-nav__list > .menu-item-has-children > .sub-menu,
  .site-nav__list > .menu-item-has-children:hover > .sub-menu,
  .site-nav__list > .menu-item-has-children:focus-within > .sub-menu {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
  }

  .site-nav__list .sub-menu a {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  /* Format page flow title */
  .train-fmt-flow__title {
    font-size: clamp(1.95rem, 9.5vw, 2.75rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.02em !important;
    max-width: 100% !important;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    white-space: normal;
  }

  .train-fmt-flow__head {
    min-width: 0;
    max-width: 100%;
    overflow: visible;
  }

  .train-fmt-flow__shell,
  .train-fmt-flow > .container {
    overflow-x: visible;
    max-width: 100%;
  }

  /* Знакомо? + Что ты получишь — одинаковый зазор цифра/текст */
  .train-page--urban {
    --fmt-num-col: 3.25rem !important;
    --fmt-num-gap: 1rem !important;
  }

  .train-fmt-hit__item,
  .train-fmt-deal__result {
    grid-template-columns: var(--fmt-num-col) minmax(0, 1fr) !important;
    column-gap: var(--fmt-num-gap) !important;
  }

  .train-fmt-hit__num,
  .train-fmt-deal__idx {
    width: 100% !important;
    text-align: right !important;
    min-width: 0 !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
    font-variant-numeric: tabular-nums !important;
  }

  .train-fmt-hit__copy,
  .train-fmt-deal__copy {
    padding-left: 0 !important;
    margin-left: 0 !important;
  }

  .train-fmt-deal__results {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  /* =========================================================
     8) DISPLAY TYPE — no mid-word wrap, no glyph crush
     ========================================================= */
  h1,
  h2,
  h3,
  h4,
  .hero-spotlight__layer,
  .train-hub__layer,
  .train-hub__line,
  .train-fmt-hero__title,
  .train-fmt-hero__line,
  .train-fmt-hit__title,
  .train-fmt-deal__title,
  .train-fmt-flow__title,
  .train-gallery__title,
  .train-deal__headline,
  .offer-sync__title,
  .offer-sync__title-word,
  .offer-sync__slide-title,
  .geo-immersive__city,
  .city-hero__title-city,
  .city-section-title,
  .city-story__title,
  .blog-topic-card__title,
  .about-page__title,
  .about-set__title,
  .home-final-cta__title,
  .city-cta__title,
  .ach-cta-title,
  .ach-gallery-title,
  .home-blog__title {
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }

  .train-hub__layer,
  .train-hub--home .train-hub__layer {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.08em;
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;
    font-size: clamp(1.35rem, 7.2vw, 2.05rem) !important;
  }

  .train-hub__line {
    white-space: nowrap;
  }

  .train-fmt-deal__title,
  .train-fmt-hit__title {
    max-width: 100% !important;
    width: 100%;
    white-space: normal !important;
    font-size: clamp(1.9rem, 9.3vw, 2.7rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.02em !important;
  }

  .train-gallery__kicker {
    font-size: clamp(1.12rem, 5.2vw, 1.4rem) !important;
    letter-spacing: 0.16em !important;
  }

  .train-gallery__title {
    max-width: 100% !important;
    width: 100%;
    white-space: normal !important;
    font-size: clamp(3.05rem, 16vw, 4.15rem) !important;
    line-height: 0.88 !important;
    letter-spacing: -0.04em !important;
  }

  .train-fmt-deal,
  .train-fmt-deal__top,
  .train-fmt-deal__head,
  .train-fmt-deal > .container {
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100%;
  }

  .train-fmt-deal__shell,
  .train-fmt-deal__top {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .train-deal__headline {
    max-width: 100% !important;
    font-size: clamp(2.4rem, 14vw, 3.4rem) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.03em !important;
    overflow: visible;
  }

  .train-fmt-deal {
    overflow-x: clip !important;
    overflow-y: visible !important;
    padding-bottom: clamp(3.5rem, 9vw, 5.5rem) !important;
  }

  .train-deal {
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: visible !important;
  }

  .train-deal__layout {
    padding: 0 !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .train-deal__ticket,
  .train-deal__action-zone,
  .train-deal__shimmer-wrap {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .train-deal__shimmer {
    justify-content: center !important;
  }

  .train-deal__shimmer-text {
    text-align: center !important;
  }

  .train-deal__ticket {
    transform: none !important;
    transform-style: flat !important;
  }

  .train-deal,
  .train-fmt-deal {
    perspective: none !important;
    overflow: visible !important;
  }

  .train-deal__price--text {
    white-space: normal !important;
    line-height: 1.1 !important;
  }

  .train-deal__price:not(:has(.train-deal__currency)),
  .train-deal__price--text {
    white-space: normal !important;
    max-width: 100% !important;
  }

  .train-deal__price:not(:has(.train-deal__currency)) .train-deal__amount,
  .train-deal__amount--text {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: min(1.75rem, calc((100vw - 5.8rem) / 11.2)) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.04em !important;
    padding-inline-end: 0.16em !important;
    box-sizing: border-box !important;
  }

  .train-deal__hint {
    position: relative !important;
    z-index: 2 !important;
    line-height: 1.6 !important;
    font-size: 0.9rem !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    padding-bottom: 0.35rem !important;
  }

  .city-hero__title-city,
  .city-page--nn .city-hero__title-city,
  .city-page--sochi .city-hero__title-city,
  .city-page--sochi .city-hero__title-city + .city-hero__title-city {
    font-size: min(3.1rem, calc((100vw - 2.3rem) / 5.4)) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.03em !important;
    white-space: nowrap !important;
  }

  /* City offer: keep «ИНДИВИДУАЛЬНАЯ» fully visible */
  .city-offer {
    overflow: visible !important;
  }

  .city-offer__brief {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-inline: 0.15rem !important;
  }

  .city-offer__title,
  .city-page--nn .city-offer__title,
  .city-page--sochi .city-offer__title {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: min(1.85rem, calc((100vw - 2.8rem) / 13.4)) !important;
    letter-spacing: -0.055em !important;
    line-height: 1.05 !important;
    overflow: visible !important;
  }

  .city-offer__title-line,
  .city-page--nn .city-offer__title-line,
  .city-page--sochi .city-offer__title-line {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-align: left !important;
  }

  .city-page--nn .city-offer__btn--go,
  .city-page--sochi .city-offer__btn--go {
    justify-content: center !important;
    padding: 0.7rem 3.2rem !important;
    text-align: center !important;
  }

  .city-page--nn .city-offer__btn-label,
  .city-page--sochi .city-offer__btn-label {
    text-align: center !important;
  }

  .city-page--nn .city-offer__btn-arrow,
  .city-page--sochi .city-offer__btn-arrow {
    position: absolute !important;
    right: 0.55rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  .city-story__title {
    font-size: clamp(1.7rem, 8.4vw, 2.5rem) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.025em !important;
  }

  .city-faq__q,
  .train-fmt-faq .city-faq__q,
  .train-faq__trigger {
    align-items: start !important;
  }

  .city-faq__q-text,
  .train-fmt-faq .city-faq__q-text {
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    white-space: normal !important;
    line-height: 1.35 !important;
    font-size: clamp(0.86rem, 3.7vw, 0.98rem) !important;
  }

  .city-page--nn .city-faq .city-section-title,
  .city-page--sochi .city-faq .city-section-title {
    line-height: 1.22 !important;
    letter-spacing: -0.03em !important;
  }

  .blog-topic-card__title,
  .home-blog__title {
    overflow-wrap: normal !important;
    word-break: normal !important;
    line-height: 1.12 !important;
    letter-spacing: -0.02em !important;
  }

  .blog-hub__title {
    font-size: clamp(2.15rem, 10.2vw, 3.15rem) !important;
    letter-spacing: -0.035em !important;
    line-height: 1.02 !important;
    gap: 0.22em !important;
  }

  .home-final-cta__title,
  .city-cta__title,
  .ach-cta-title,
  .about-page__cta-title {
    font-size: clamp(1.7rem, 8.6vw, 2.5rem) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.025em !important;
    max-width: 100%;
  }

  .ach-gallery-title {
    font-size: clamp(1.45rem, 7.4vw, 2.1rem) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.025em !important;
  }

  .train-process__card-title {
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    line-height: 1.2 !important;
    font-size: clamp(0.95rem, 4.1vw, 1.12rem) !important;
  }

  .about-set__name,
  .about-set__name.train-set__name {
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .offer-sync__title {
    line-height: 1.04 !important;
    letter-spacing: -0.03em !important;
  }

  .site-nav__list .sub-menu a {
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .site-footer a,
  .site-footer p,
  .cookie-banner p,
  .cookie-banner__text {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
}

@media (max-width: 480px) {
  .hero-spotlight__layer {
    font-size: clamp(2.2rem, 12.4vw, 3.05rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
  }

  .offer-sync--static .offer-sync__slide {
    min-height: 15rem;
  }

  .train-fmt-hero__title {
    font-size: min(1.9rem, calc((100vw - 1.8rem) / 13.4)) !important;
  }

  .train-page--cyan .train-fmt-hero__title {
    font-size: min(2.65rem, calc((100vw - 1.8rem) / 8.6)) !important;
  }
}

/* Homepage formats: fill remaining phone viewport. Desktop hub stays as-is. */
@media (max-width: 900px) {
  .train-hub--home {
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: calc(100svh - var(--flow-nav, 4.25rem)) !important;
    max-height: none !important;
    overflow: visible !important;
    padding-top: clamp(0.85rem, 2.2vh, 1.35rem) !important;
    padding-bottom: clamp(1.15rem, 3.2vh, 1.85rem) !important;
  }

  .train-hub--home .train-hub__shell {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    gap: clamp(0.85rem, 2.4vh, 1.35rem) !important;
  }

  .train-hub--home .train-hub__mast {
    padding-top: 0.15rem !important;
    padding-bottom: clamp(0.55rem, 1.8vh, 0.95rem) !important;
  }

  .train-hub--home .train-flow__rows {
    flex: 1 1 auto !important;
    display: grid !important;
    grid-template-rows: repeat(3, minmax(8rem, 1fr)) !important;
    gap: clamp(0.8rem, 2vh, 1.15rem) !important;
    min-height: 0 !important;
  }

  .train-hub--home .train-flow__rows > li {
    min-height: 8rem !important;
    height: auto !important;
  }

  .train-hub--home .train-flow__row {
    height: 100% !important;
    min-height: 8rem !important;
    padding-block: 1.2rem !important;
    row-gap: 0.85rem !important;
    align-content: center !important;
    align-items: center !important;
  }

  .train-hub--home .train-flow__num {
    grid-row: 1 / span 2 !important;
    align-self: center !important;
  }

  .train-hub--home .train-flow__name {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.12em !important;
    max-width: 100% !important;
    font-size: clamp(1.18rem, 5vw, 1.5rem) !important;
    letter-spacing: -0.025em !important;
  }

  .train-hub--home .train-flow__copy {
    min-width: 0 !important;
  }

  .train-hub--home .train-flow__name-a,
  .train-hub--home .train-flow__name-b {
    display: block !important;
  }

  .train-hub--home .train-flow__name-a {
    color: var(--flow-accent) !important;
    -webkit-text-fill-color: var(--flow-accent) !important;
    -webkit-text-stroke: 0 !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    text-shadow:
      0 2px 18px rgba(0, 0, 0, 0.7),
      0 0 22px var(--flow-glow, rgba(255, 42, 66, 0.45)) !important;
  }

  .train-hub--home .train-flow__name-b {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }

  .train-hub--home .train-flow__go {
    grid-column: 2 !important;
    grid-row: 2 !important;
    justify-self: center !important;
    margin-top: 0 !important;
  }

  .train-hub--home .train-flow__desc {
    display: none !important;
  }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .train-hub--home {
    min-height: 0 !important;
  }

  .train-hub--home .train-flow__rows {
    flex: none !important;
    grid-template-rows: none !important;
  }
}

/* Achievements desktop: first screen fits viewport, hint not over stats */
@media (min-width: 769px) {
  .ach-hero.ach-screen,
  .ach-hero {
    min-height: calc(100svh - var(--offer-sync-header, 4.25rem)) !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 2.75rem 1.25rem 1.35rem !important;
    justify-content: flex-start !important;
  }

  .ach-hero-inner {
    flex: 1 1 auto !important;
    justify-content: center !important;
    width: min(100%, 56rem) !important;
  }

  .ach-scroll-hint {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0.85rem auto 0.2rem !important;
    flex-shrink: 0 !important;
  }
}

@media (min-width: 769px) and (max-height: 860px) {
  .ach-hero.ach-screen,
  .ach-hero {
    padding-top: 1.85rem !important;
    padding-bottom: 1rem !important;
  }
}

/* Achievements: continuous page flow, no full-screen block cuts */
@media (max-width: 768px) {
  .ach-screen {
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    justify-content: flex-start !important;
  }

  .ach-screen__inner {
    max-height: none !important;
    height: auto !important;
    justify-content: flex-start !important;
  }

  .ach-hero.ach-screen,
  .ach-hero {
    min-height: 0 !important;
    max-height: none !important;
    padding: 4.75rem 1.1rem 2.35rem !important;
    justify-content: flex-start !important;
    gap: 1.15rem !important;
    scroll-snap-align: none !important;
  }

  .ach-hero-inner {
    width: 100% !important;
    margin: 0 auto !important;
    flex: none !important;
    justify-content: flex-start !important;
    padding-bottom: 0 !important;
  }

  .ach-stamp {
    margin-bottom: 1.35rem !important;
    padding: 0.58rem 1.35rem !important;
    font-size: clamp(1.05rem, 4.4vw, 1.28rem) !important;
    letter-spacing: 0.15em !important;
  }

  .ach-title {
    margin-bottom: 1.25rem !important;
    gap: 0.38rem !important;
    line-height: 1.12 !important;
  }

  .ach-title-line {
    font-size: clamp(2.25rem, 11.5vw, 2.9rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.02em !important;
  }

  .ach-lead {
    margin: 0 auto 1.35rem !important;
    font-size: clamp(0.95rem, 3.7vw, 1.08rem) !important;
    line-height: 1.5 !important;
    max-width: 22.5rem !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
  }

  .ach-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    justify-items: center !important;
    align-items: start !important;
    gap: 1.15rem 1.6rem !important;
    padding-top: 1.25rem !important;
    width: min(100%, 19.5rem) !important;
  }

  .ach-stat-item {
    min-width: 0 !important;
    gap: 0.35rem !important;
  }

  .ach-stat-item:nth-child(3) {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
  }

  .ach-stat-num {
    font-size: clamp(1.85rem, 8vw, 2.35rem) !important;
  }

  .ach-stat-label {
    font-size: 0.72rem !important;
    letter-spacing: 0.1em !important;
  }

  .ach-scroll-hint {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: 3 !important;
    margin: 0.15rem auto 0 !important;
    flex-shrink: 0 !important;
  }
}

@media (max-width: 768px) and (max-height: 700px) {
  .ach-hero.ach-screen,
  .ach-hero {
    padding-top: 3.35rem !important;
    gap: 0.9rem !important;
  }

  .ach-stamp {
    margin-bottom: 1rem !important;
    padding: 0.5rem 1.2rem !important;
    font-size: clamp(0.98rem, 4vw, 1.15rem) !important;
  }

  .ach-title {
    margin-bottom: 1rem !important;
    gap: 0.32rem !important;
  }

  .ach-title-line {
    font-size: clamp(2.05rem, 10.5vw, 2.55rem) !important;
  }

  .ach-lead {
    margin-bottom: 1rem !important;
    font-size: 0.92rem !important;
  }

  .ach-stats {
    gap: 0.9rem 1.35rem !important;
    padding-top: 1rem !important;
  }

  .ach-stat-num {
    font-size: clamp(1.7rem, 7.5vw, 2.1rem) !important;
  }
}

/* Achievements gallery: larger type, natural section flow */
@media (max-width: 768px) {
  .ach-gallery-section.ach-screen,
  .ach-gallery-section {
    min-height: 0 !important;
    max-height: none !important;
    padding: 2.75rem 0.85rem 3rem !important;
    justify-content: flex-start !important;
    scroll-margin-top: calc(var(--offer-sync-header, 4.25rem) + 0.85rem) !important;
    scroll-snap-align: none !important;
  }

  .ach-gallery-section .ach-screen__inner {
    max-height: none !important;
    height: auto !important;
    justify-content: flex-start !important;
    gap: 1.25rem !important;
    padding-block: 0 !important;
  }

  .ach-gallery-head {
    gap: 0.85rem !important;
    margin: 0 0 0.35rem !important;
    flex-shrink: 0 !important;
    padding-top: 0 !important;
  }

  .ach-gallery-stamp {
    padding: 0.5rem 1.25rem !important;
    font-size: clamp(1.12rem, 4.6vw, 1.38rem) !important;
    letter-spacing: 0.14em !important;
  }

  .ach-gallery-title {
    gap: 0.2rem !important;
  }

  .ach-gallery-title__main {
    font-size: clamp(3.05rem, 15.5vw, 4.2rem) !important;
  }

  .ach-gallery-title__sub {
    font-size: clamp(1.35rem, 6.2vw, 1.9rem) !important;
    gap: 0.32em !important;
  }

  .ach-gallery-section .ach-swiper {
    flex: 0 1 auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    align-self: stretch !important;
  }

  .ach-gallery-section .ach-swiper__slide {
    width: min(88vw, 360px) !important;
    height: clamp(210px, 34svh, 290px) !important;
  }

  .ach-gallery-section .ach-swiper__main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.35rem 0 0 !important;
  }

  .ach-gallery-section .ach-swiper__bar {
    margin-top: 1rem !important;
  }

  .ach-contests-section {
    min-height: 0 !important;
    padding-top: 2.85rem !important;
    overflow-x: clip !important;
    max-width: 100% !important;
  }

  .ach-contests-inner,
  .ach-loop,
  .ach-loop__head,
  .ach-loop__head-row {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .ach-loop__head {
    gap: 1.15rem !important;
  }

  .ach-loop__stamp {
    padding: 0.5rem 1.1rem !important;
    font-size: clamp(0.92rem, 3.6vw, 1.08rem) !important;
    letter-spacing: 0.14em !important;
    max-width: 100% !important;
  }

  .ach-loop__title {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    font-size: clamp(1.65rem, 7.8vw, 2.15rem) !important;
    line-height: 1.14 !important;
    letter-spacing: -0.03em !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .ach-loop__title span {
    display: block !important;
    margin-top: 0.3em !important;
    max-width: 100% !important;
  }

  .ach-loop__summary {
    flex-wrap: wrap !important;
    gap: 0.55rem 0.85rem !important;
    max-width: 100% !important;
  }

  .ach-loop__lead {
    max-width: 100% !important;
  }
}
