/**
 * Linker — мобильная композиция (только ≤767px).
 * На ≥768 этот файл не меняет раскладку.
 * Подключать ПОСЛЕ site-marketing.css.
 */

@media (max-width: 767px) {
  :root {
    --home-sheet-peek: 0px;
  }

  .home-stage {
    overflow-x: clip;
  }

  /* Герой: обычный блок, без sticky-параллакса */
  .home-stage__hero.screen1 {
    position: relative !important;
    top: auto !important;
    z-index: 1;
    min-height: 0;
    justify-content: flex-start;
    gap: 1.15rem;
    padding: 0.85rem 1rem 1.35rem;
    overflow: visible;
  }

  .screen1 {
    min-height: unset;
    overflow: visible;
    gap: 1rem;
  }

  /* Стекло: фон секций, без «губы» и наезда */
  .home-sheet {
    margin-top: 0 !important;
    border-radius: 1.5rem 1.5rem 0 0;
    background: rgba(12, 16, 16, 0.55);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
  }

  .home-sheet__cap {
    display: none !important;
  }

  .home-sheet > section:first-of-type {
    padding-top: 1.5rem;
  }

  .home-sheet__section,
  .home-sheet > section {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .home-sheet__section.py-10,
  .home-sheet > section.py-10 {
    padding-top: 1.75rem !important;
    padding-bottom: 1.5rem !important;
  }

  .home-sheet > section.py-14,
  #pricing {
    padding-top: 1.5rem !important;
    padding-bottom: 1.75rem !important;
  }

  .home-sheet > footer {
    padding-top: 1.5rem !important;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom)) !important;
  }

  /* —— Герой: типографика и CTA —— */
  .screen1_bejdzh {
    margin-top: 0;
    margin-bottom: 0.75rem;
    max-width: 100%;
    padding: 0.4rem 0.85rem;
  }

  .screen1_bejdzh_text {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .screen1_zagolovok {
    font-size: clamp(1.4rem, 6.8vw, 1.9rem);
    line-height: 1.18;
    max-width: 100%;
    margin-bottom: 0.45rem;
  }

  .screen1_podzagolovok {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
    max-width: 20rem;
    margin-inline: auto;
    margin-bottom: 0.75rem;
  }

  .screen1_tekst_1klik {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.4rem;
    max-width: 18rem;
    margin-inline: auto;
    font-size: 0.9rem;
    line-height: 1.35;
    text-wrap: balance;
  }

  .screen1_tekst_1klik__sep {
    display: none;
  }

  .screen1_tekst_1klik__item {
    white-space: normal;
    text-align: center;
  }

  .screen1_knopka_kupit_wrap {
    margin-top: 1.15rem;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .screen1_knopka_kupit {
    width: 100%;
    max-width: 20rem;
    justify-content: center;
    min-height: 3.1rem;
    padding: 0.9rem 1.35rem;
    font-size: 1rem;
    touch-action: manipulation;
  }

  .screen1_bottom {
    margin-top: 0.85rem;
    transform: none;
    width: 100%;
  }

  /* Benefits 2×2 */
  .screen1_benefits {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0 !important;
    border-radius: 1.15rem !important;
    padding: 0 !important;
    overflow: hidden;
  }

  .screen1_benefit {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.25rem !important;
    width: auto !important;
    max-width: none !important;
    min-height: 4.75rem;
    padding: 0.95rem 0.55rem !important;
    font-size: 0.78rem !important;
    line-height: 1.3 !important;
    box-sizing: border-box;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .screen1_benefit:nth-child(2n) {
    border-right: 0;
  }

  .screen1_benefit:nth-child(n + 3) {
    border-bottom: 0;
  }

  .screen1_benefit > span {
    display: block !important;
    white-space: normal !important;
    text-wrap: balance;
    max-width: 9.5rem;
  }

  .screen1_benefit > span:first-child {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
  }

  .screen1_benefit > span:last-child {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
  }

  /* Секции */
  .section-head {
    margin-bottom: 1.15rem;
    padding-inline: 0.15rem;
  }

  .section-head__label {
    margin-bottom: 0.65rem;
    font-size: 0.625rem;
  }

  .section-head__title {
    font-size: clamp(1.3rem, 6vw, 1.65rem);
    line-height: 1.25;
    margin-bottom: 0.45rem;
  }

  .section-head__sub {
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: 22rem;
    margin-inline: auto;
  }

  /* Шаги — столбик */
  .steps-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    overflow: visible !important;
    margin-inline: 0 !important;
    padding: 0 !important;
    scroll-snap-type: none !important;
  }

  .steps-grid > .step-card {
    width: 100% !important;
    max-width: none !important;
    flex: unset !important;
  }

  .step-card {
    padding: 1.15rem 1.1rem;
  }

  .step-card__title {
    font-size: 1rem;
  }

  .step-card__text {
    font-size: 0.875rem;
    line-height: 1.55;
  }

  /* Тарифы — столбик, один скролл страницы */
  .plans-rail {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
    overflow: visible !important;
    margin-inline: 0 !important;
    padding: 0.15rem 0 0.5rem !important;
    scroll-snap-type: none !important;
  }

  .plans-rail > .plan-card {
    width: 100% !important;
    max-width: none !important;
    flex: unset !important;
    padding: 1.2rem 1.15rem 1.15rem;
  }

  .plans-rail .plan-card__badge {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    align-self: flex-start;
    margin: 0 0 0.65rem;
    display: inline-flex;
    max-width: 100%;
    white-space: nowrap;
    line-height: 1.2;
    padding: 0.3rem 0.7rem;
    font-size: 10px;
  }

  .plans-rail .plan-card__name {
    margin-top: 0 !important;
    text-align: left;
  }

  .plans-rail .plan-card__price,
  .plans-rail .plan-card__period,
  .plans-rail .plan-card__save {
    text-align: left;
  }

  .plan-card__price {
    font-size: 1.85rem;
  }

  .plan-perks {
    margin: 1rem 0 1.15rem;
    gap: 0.5rem;
  }

  .plan-perk {
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .plan-card a.glass-button,
  .plan-card a.glass-button-primary,
  .plan-card .glass-button,
  .plan-card .glass-button-primary {
    min-height: 2.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    touch-action: manipulation;
  }

  .plans-hero {
    padding: 1rem 0 1.25rem;
  }

  .plans-hero__title {
    font-size: clamp(1.4rem, 6.5vw, 1.85rem);
    line-height: 1.2;
  }

  .plans-hero__sub {
    font-size: 0.9rem;
    line-height: 1.5;
    padding-inline: 0.25rem;
  }

  main .grid.gap-6 {
    gap: 0.85rem !important;
  }

  .faq-head {
    margin-bottom: 1.15rem;
  }

  .faq-head__title {
    font-size: clamp(1.3rem, 5.5vw, 1.65rem);
  }

  .faq-head__sub {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .faq-item {
    border-radius: 1rem;
  }

  .faq-item h3,
  .faq-item button,
  .faq-item .faq-toggle,
  .faq-item summary {
    min-height: 2.85rem;
    font-size: 0.95rem;
    line-height: 1.4;
    touch-action: manipulation;
  }

  .faq-item p {
    font-size: 0.88rem;
    line-height: 1.55;
  }
}

@media (max-width: 420px) {
  .home-stage__hero.screen1 {
    gap: 0.95rem;
    padding-top: 0.65rem;
    padding-inline: 0.85rem;
  }

  .screen1_zagolovok {
    font-size: clamp(1.3rem, 7.2vw, 1.6rem);
  }

  .screen1_benefit {
    min-height: 4.5rem;
    padding: 0.85rem 0.4rem !important;
    font-size: 0.72rem !important;
  }

  .screen1_benefit > span {
    max-width: 8.6rem;
  }

  .section-head__title {
    font-size: clamp(1.2rem, 6.5vw, 1.5rem);
  }

  .plans-hero__title {
    font-size: clamp(1.3rem, 7vw, 1.65rem);
  }

  .plan-card__price {
    font-size: 1.7rem;
  }
}
