/*
 * Premium Mobile Conversion — 2.25.31
 * Mobile/tablet-only conversion layer for the Premium presentation mode.
 * Desktop Premium and the STAVROS presentation mode intentionally keep their
 * existing visual rules.
 */

/* Structural wrappers must behave exactly like the former direct children on
 * desktop and in the STAVROS presentation mode. */
.spl-calc-advanced-fields,
.spl-quote-form__technical-fields,
.spl-quote-form__extra-fields {
  display: contents;
}

.spl-calc-advanced-toggle,
.spl-quote-form__section-toggle,
.spl-premium-mobile-trust,
.spl-mobile-carousel-nav {
  display: none;
}

@media (max-width: 1024px) {
  /* The entire layer is strongly scoped so the STAVROS mode remains untouched. */
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page {
    --pmc-accent: #c95635;
    --pmc-ink: #12231d;
    --pmc-green: #0d4b3b;
    --pmc-surface: #f8f4ee;
    --pmc-line: rgba(18, 35, 29, .14);
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-purchase-routes {
    display: none !important;
  }

  /* Progressive calculator: three decisions first, technical choices on demand. */
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero-calc {
    max-width: none !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-fields--commerce {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-field--profile {
    grid-column: 1 / -1;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-advanced-fields {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 2px;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-advanced-fields.is-open {
    display: grid;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-field--city {
    grid-column: 1 / -1;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-advanced-toggle {
    display: flex !important;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 12px 0 0;
    padding: 10px 14px;
    border: 1px solid rgba(13, 75, 59, .2);
    border-radius: 12px;
    color: #234137;
    background: rgba(13, 75, 59, .04);
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-advanced-toggle b {
    display: grid;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    font-size: 18px;
    line-height: 1;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-mobile-defaults--premium {
    display: block !important;
    margin: 12px 0 0 !important;
    color: #58645f !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  /* Catalog and published projects become swipeable. The next-card edge is a
   * visual affordance; arrows provide a keyboard-accessible alternative. */
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-catalog__grid,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-real-projects {
    display: flex !important;
    grid-template-columns: none !important;
    width: calc(100% + 18px);
    gap: 14px !important;
    margin-right: -18px;
    padding: 4px 18px 14px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-catalog__grid::-webkit-scrollbar,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-real-projects::-webkit-scrollbar {
    display: none;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-product-card,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-real-project {
    flex: 0 0 clamp(320px, 46vw, 430px) !important;
    width: clamp(320px, 46vw, 430px) !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-mobile-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 0;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-mobile-carousel-nav__count {
    color: #68706a;
    font-size: 12px;
    font-weight: 650;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-mobile-carousel-nav__actions {
    display: flex;
    gap: 8px;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-mobile-carousel-nav button {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid #d9cbbd;
    border-radius: 50%;
    color: #143c30;
    background: #fff;
    font: inherit;
    font-size: 20px;
    cursor: pointer;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-mobile-carousel-nav button:disabled {
    opacity: .35;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-catalog-helper {
    margin-top: 18px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-premium-mobile-trust {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(13, 75, 59, .14);
    border-radius: 14px;
    color: #17372d;
    background: #f4f8f5;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-premium-mobile-trust > span {
    color: #d29b38;
    letter-spacing: 1px;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-premium-mobile-trust div {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-premium-mobile-trust strong,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-premium-mobile-trust small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-premium-mobile-trust strong {
    font-size: 13px;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-premium-mobile-trust small {
    color: #65716c;
    font-size: 11px;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-premium-mobile-trust a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #b94f31;
    font-size: 12px;
    font-weight: 700;
  }

  /* Project scenario: keep the premium storytelling but remove repeated editorial
   * explanations on tablet/mobile. */
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-scenarios__lead-card {
    display: none !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-section-head--scenario {
    grid-template-columns: 1fr !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-scenarios__resultbox {
    display: none !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-scenarios__tabs {
    display: flex !important;
    gap: 10px !important;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-scenarios__tabs::-webkit-scrollbar {
    display: none;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-scenarios__tab {
    flex: 0 0 min(76vw, 350px) !important;
    scroll-snap-align: start;
  }

  /* The cost-example section repeats the live calculator and is removed only on
   * mobile/tablet. The source remains in the document and desktop presentation. */
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-cost-examples {
    display: none !important;
  }

  /* Independent proof remains prominent but no longer repeats every supporting
   * paragraph on a small screen. */
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-yandex-proof__topics article:nth-child(n+3),
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-verified-reviews article:nth-child(n+2) {
    display: none !important;
  }

  /* Progressive quote form. The technical fields collapse only after the
   * calculator has populated all required values; direct visitors see them open. */
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-premium-quote-summary {
    display: grid !important;
    gap: 5px;
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(213, 169, 93, .34);
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-premium-quote-summary[hidden] {
    display: none !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-premium-quote-summary small {
    color: #efbe70;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-premium-quote-summary strong {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 20px;
    font-weight: 500;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-premium-quote-summary > span {
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote-form__technical-fields,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote-form__extra-fields {
    display: none;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote-form__technical-fields.is-open {
    display: grid;
    gap: 12px;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote-form__extra-fields.is-open {
    display: grid;
    gap: 12px;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote-form__section-toggle {
    display: flex !important;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .92);
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote-form__section-toggle b {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    font-size: 18px;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote.is-premium-highlighted .spl-quote__card {
    box-shadow: 0 0 0 3px rgba(239, 190, 112, .28), 0 26px 70px rgba(0, 0, 0, .2) !important;
  }
}

@media (max-width: 767px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  /* More product, less header and empty space in the first viewport. */
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .sp-header__inner {
    min-height: 68px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero {
    min-height: 0 !important;
    padding: 58px 0 48px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__inner {
    gap: 30px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__copy h1 {
    max-width: 9.5ch !important;
    font-size: clamp(40px, 12vw, 50px) !important;
    line-height: .97 !important;
    letter-spacing: -.035em !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__lead {
    max-width: 34ch !important;
    margin-top: 18px !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__price {
    margin-top: 16px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__actions--purchase {
    display: grid !important;
    grid-template-columns: 1.15fr .85fr;
    gap: 9px !important;
    margin-top: 22px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__action--mobile {
    min-height: 52px !important;
    margin: 0 !important;
    padding-inline: 12px !important;
    font-size: 13px !important;
    text-align: center;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__sample-link--mobile {
    margin-top: 13px !important;
    min-height: 44px;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero-calc {
    padding: 22px 18px !important;
    border-radius: 20px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero-calc h2 {
    font-size: 32px !important;
    line-height: 1.02 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero-calc__lead {
    font-size: 14px !important;
    line-height: 1.48 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero-calc input,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero-calc select,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote-form input:not([type="checkbox"]):not([type="file"]),
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote-form select {
    min-height: 48px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-result--commerce {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-result__price {
    grid-column: 1 / -1;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page [data-calc-submit] {
    min-height: 54px !important;
    margin-top: 14px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-proof-strip__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-proof-strip a {
    min-height: 86px !important;
    padding: 13px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-section {
    padding-block: 50px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-section-head {
    margin-bottom: 22px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-section-head h2,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-real-proof__subhead h3,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote__copy h2,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-faq-premium__head h2 {
    font-size: clamp(31px, 9.5vw, 39px) !important;
    line-height: 1.02 !important;
    letter-spacing: -.025em !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-product-card,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-real-project {
    flex-basis: min(86vw, 350px) !important;
    width: min(86vw, 350px) !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-product-card__media {
    min-height: 250px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-product-card__body {
    padding: 16px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-product-card__actions {
    display: grid !important;
    gap: 8px !important;
    margin-top: 12px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-product-card__actions .spl-button {
    min-height: 48px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-product-card__compare {
    min-height: 44px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-catalog-helper {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 18px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-catalog-helper__icon {
    display: none !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-catalog-helper h3 {
    font-size: 24px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-premium-mobile-trust {
    grid-template-columns: 1fr auto;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-premium-mobile-trust > span {
    display: none;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-scenarios__stage {
    grid-template-columns: 1fr !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-scenarios__media {
    min-height: 280px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-scenarios__content {
    padding: 20px 16px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-scenarios__description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-scenarios__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-scenarios__facts article:nth-child(3) {
    display: none !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-scenarios__actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-scenarios__actions .spl-inline-link {
    grid-column: 1 / -1;
    min-height: 44px;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-yandex-proof__content .spl-head-note {
    display: none !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-yandex-proof__score,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-yandex-proof__content {
    padding: 22px 18px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-yandex-proof__score > strong {
    font-size: 64px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-yandex-proof__topics article {
    min-height: 0 !important;
    padding: 12px !important;
  }

  /* Remove the duplicate teaser and keep one continuous, short form route. */
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote__result-grid > span:nth-child(n+4) {
    display: none !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote__card {
    padding: 22px 18px !important;
    border-radius: 20px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote__card h3 {
    font-size: 30px !important;
    line-height: 1.04 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote-form {
    gap: 12px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote-form__grid,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote-form__grid--dimensions,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote-form__grid--contact {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote-form textarea {
    min-height: 96px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote-form__consent {
    min-height: 48px;
    align-items: flex-start !important;
    padding: 8px 0 !important;
    cursor: pointer;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote-form__consent input {
    width: 22px !important;
    height: 22px !important;
    margin-top: 2px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote-form__submit {
    min-height: 54px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-install-check__head,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-control-route__head,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-order-protection__head {
    margin-bottom: 18px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-faq-premium__ask,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-faq-premium__summary {
    display: none !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-faq-premium__tabs {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto;
    padding: 0 0 8px !important;
    scrollbar-width: none;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-faq-premium__tabs::-webkit-scrollbar {
    display: none;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-faq-premium__tabs button {
    flex: 0 0 auto;
    min-height: 44px !important;
    padding: 9px 13px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-faq-premium__panel {
    grid-template-columns: 1fr !important;
    padding: 0 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-faq-premium__questions summary {
    min-height: 52px;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-final--purchase {
    min-height: 0 !important;
    padding-block: 54px 88px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-final__content--purchase h2 {
    max-width: 12ch !important;
    font-size: clamp(35px, 10vw, 44px) !important;
    line-height: 1 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-final-route {
    min-height: 126px !important;
    padding: 18px !important;
  }

  /* Two consistent actions after the hero. Visibility is controlled by the
   * existing observer, now shared by both presentation modes. */
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-mobile-bar {
    grid-template-columns: .86fr 1.14fr !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(calc(100% + 24px));
    transition: opacity .2s ease, visibility .2s ease, transform .25s ease;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-mobile-bar.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-mobile-bar a {
    min-height: 52px !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-mobile-bar a:nth-child(2) {
    color: #fff !important;
    background: var(--pmc-accent) !important;
  }

  html.sp-menu-open[data-sp-theme="premium"] body.home.stavros-panels-site .spl-mobile-bar,
  html.sp-search-open[data-sp-theme="premium"] body.home.stavros-panels-site .spl-mobile-bar {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(calc(100% + 24px)) !important;
  }
}

@media (max-width: 340px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__copy h1 {
    font-size: 37px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__actions--purchase,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-fields--commerce,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-advanced-fields.is-open {
    grid-template-columns: 1fr !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-field--profile,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-field--city {
    grid-column: auto;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-product-card,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-real-project {
    flex-basis: 88vw !important;
    width: 88vw !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-mobile-bar {
    transition: none !important;
  }
}

/* Mobile-specific copy is present in the same semantic element, avoiding
 * duplicated headings while keeping the desktop editorial text untouched. */
.spl-premium-copy--mobile { display: none; }
@media (max-width: 767px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-premium-copy--desktop { display: none; }
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-premium-copy--mobile { display: inline; }
}

/* 2.25.27 stability pass: keep the former desktop calculator geometry and the
 * existing STAVROS compact calculator despite the new progressive wrapper. */
.spl-calc-mobile-defaults--premium {
  display: none;
}

html[data-sp-theme="stavros"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-field--city {
  display: none !important;
}

@media (min-width: 1025px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-field--city {
    display: none !important;
  }
}

@media (min-width: 1181px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-fields--commerce > .spl-calc-field--basic:nth-of-type(1),
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-fields--commerce > .spl-calc-field--basic:nth-of-type(2),
  html[data-sp-theme="stavros"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-fields--commerce > .spl-calc-field--basic:nth-of-type(1),
  html[data-sp-theme="stavros"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-fields--commerce > .spl-calc-field--basic:nth-of-type(2) {
    grid-column: span 6;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-field--profile,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-advanced-fields > .spl-calc-field:first-child,
  html[data-sp-theme="stavros"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-field--profile,
  html[data-sp-theme="stavros"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-advanced-fields > .spl-calc-field:first-child {
    grid-column: span 6;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-advanced-fields > .spl-calc-field:nth-child(n+2):not(.spl-calc-field--city),
  html[data-sp-theme="stavros"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-advanced-fields > .spl-calc-field:nth-child(n+2):not(.spl-calc-field--city) {
    grid-column: span 3;
  }
}

@media (max-width: 1024px) {
  html[data-sp-theme="stavros"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-advanced-fields {
    display: none !important;
  }
}

@media (max-width: 980px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__action--mobile[data-sp-view-only="premium"] {
    display: inline-flex !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__action--desktop[data-sp-view-only="premium"] {
    display: none !important;
  }
}

/* 2.25.27 final touch-target pass: secondary OPAN and scenario controls remain
 * visually restrained while meeting a 44 px touch area on tablet/mobile. */
@media (max-width: 1024px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-product-card__actions .spl-inline-link,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-scenarios__tab {
    min-height: 44px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-product-card__actions .spl-inline-link {
    display: inline-flex !important;
    align-items: center;
  }
}

/* Short landscape screens: keep the offer, price and primary action in the first
 * viewport instead of making users scroll before seeing a conversion control. */
@media (min-width: 568px) and (max-width: 1024px) and (max-height: 500px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero {
    padding: 28px 0 24px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__inner {
    gap: 20px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__copy h1 {
    max-width: 15ch !important;
    font-size: clamp(38px, 5.8vw, 46px) !important;
    line-height: .96 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__lead {
    max-width: 50ch !important;
    margin-top: 12px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__price {
    margin-top: 10px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__actions--purchase {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 8px !important;
    margin-top: 12px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__action--mobile {
    width: auto !important;
    min-height: 46px !important;
    padding-inline: 18px !important;
  }
}

@media (min-width: 568px) and (max-width: 1024px) and (max-height: 500px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero {
    padding: 18px 0 16px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__copy h1 {
    max-width: 22ch !important;
    font-size: clamp(34px, 4.8vw, 40px) !important;
    line-height: .98 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__lead {
    max-width: 62ch !important;
    margin-top: 8px !important;
    font-size: 13px !important;
    line-height: 1.34 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__price {
    margin-top: 7px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__actions--purchase {
    margin-top: 8px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__action--mobile {
    min-height: 44px !important;
  }
}

@media (min-width: 568px) and (max-width: 1024px) and (max-height: 500px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__copy {
    position: relative;
    min-height: 246px;
    padding-right: min(34vw, 292px);
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__actions--purchase {
    position: absolute;
    right: 0;
    bottom: 0;
    display: grid !important;
    width: min(32vw, 276px);
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin: 0 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__action--mobile {
    width: 100% !important;
  }
}

/* The legacy base stylesheet hides mobile hero actions with !important. Restore
 * the shared secondary PAN action only inside Premium; the STAVROS-only action
 * remains governed by data-sp-view-only. */
@media (max-width: 980px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-button--ghost.spl-hero__action--mobile {
    display: inline-flex !important;
  }
}

@media (min-width: 568px) and (max-width: 1024px) and (max-height: 500px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__actions--purchase {
    bottom: 56px;
  }
}

/* 2.25.28 — compact phone composition.
 * The previous conversion pass was functionally correct, but the phone hero and
 * several section headings were oversized. This layer reduces vertical stretch
 * without changing desktop Premium, tablet composition, STAVROS, OPAN or the
 * conversion routes. */
.spl-hero__micro-actions {
  display: contents;
}

@media (max-width: 767px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .sp-header__inner {
    min-height: 66px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero {
    min-height: 0 !important;
    padding: 0 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__inner {
    gap: 20px !important;
    padding-top: 28px !important;
    padding-bottom: 26px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero .spl-kicker {
    margin-bottom: 13px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    letter-spacing: .13em !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__copy h1 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    font-size: clamp(36px, 10.2vw, 42px) !important;
    line-height: .97 !important;
    letter-spacing: -.032em !important;
    text-wrap: balance;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__lead {
    max-width: 36ch !important;
    margin: 13px 0 0 !important;
    font-size: 14px !important;
    line-height: 1.42 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__price {
    margin: 12px 0 0 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__price > strong {
    font-size: 26px !important;
    line-height: 1 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__price > small {
    margin-top: 4px !important;
    font-size: 10.5px !important;
    line-height: 1.3 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__actions--purchase {
    grid-template-columns: 1.08fr .92fr !important;
    gap: 8px !important;
    margin: 16px 0 0 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__action--mobile {
    min-height: 48px !important;
    padding-inline: 10px !important;
    font-size: 12.5px !important;
    line-height: 1.15 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__micro-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
    margin-top: 10px;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__sample-link--mobile {
    min-height: 38px !important;
    margin: 0 !important;
    font-size: 11.5px !important;
    line-height: 1.25 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__yandex {
    justify-self: end;
    gap: 1px 7px !important;
    margin: 0 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__yandex > span {
    font-size: 13px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__yandex strong {
    font-size: 10.5px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__yandex small {
    font-size: 9px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__yandex small:last-child {
    display: none !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero-calc {
    padding: 18px 16px !important;
    border-radius: 18px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero-calc h2 {
    font-size: 28px !important;
    line-height: 1.02 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero-calc__lead {
    margin-top: 10px !important;
    font-size: 13.5px !important;
    line-height: 1.42 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero-calc input,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero-calc select {
    min-height: 46px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-advanced-toggle {
    min-height: 44px !important;
    margin-top: 10px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-mobile-defaults--premium {
    margin-top: 9px !important;
    font-size: 11.5px !important;
    line-height: 1.4 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-result--commerce {
    margin-block: 11px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-calc-result--commerce > span {
    padding: 11px 12px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page [data-calc-submit] {
    min-height: 50px !important;
    margin-top: 11px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-proof-strip a {
    min-height: 72px !important;
    padding: 11px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-section {
    padding-block: 40px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-section-head {
    margin-bottom: 18px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-section-head h2,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-real-proof__subhead h3,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote__copy h2,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-faq-premium__head h2 {
    font-size: clamp(28px, 8.4vw, 34px) !important;
    line-height: 1.04 !important;
    letter-spacing: -.022em !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-product-card__media {
    min-height: 220px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-scenarios__media {
    min-height: 220px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-real-proof__subhead {
    margin-top: 26px !important;
    margin-bottom: 14px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-yandex-proof__score > strong {
    font-size: 56px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote__card h3 {
    font-size: 26px !important;
    line-height: 1.06 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-final--purchase {
    padding-block: 44px 82px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-final__content--purchase h2 {
    font-size: clamp(32px, 9vw, 38px) !important;
    line-height: 1.02 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-final-route {
    min-height: 108px !important;
    padding: 16px !important;
  }
}

@media (max-width: 340px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__inner {
    padding-top: 22px !important;
    padding-bottom: 22px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__copy h1 {
    font-size: 34px !important;
    line-height: .98 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__micro-actions {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__yandex {
    justify-self: start;
  }
}

/* Preserve the dedicated compact landscape composition after the phone layer. */
@media (min-width: 568px) and (max-width: 1024px) and (max-height: 500px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero {
    padding: 0 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__inner {
    padding-top: 18px !important;
    padding-bottom: 16px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__copy h1 {
    max-width: 22ch !important;
    font-size: clamp(34px, 4.8vw, 40px) !important;
    line-height: .98 !important;
  }
}


/* 2.25.29 — full-page mobile concentration.
 * The compact hero is retained. Long explanatory modules stay in the source
 * and remain fully visible on desktop above 1024px, in STAVROS and with JavaScript disabled,
 * while mobile/tablet Premium exposes them progressively after a concise summary. */
.spl-premium-section-body {
  display: contents;
}

.spl-premium-section-toggle {
  display: none;
}

@media (max-width: 1024px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-materials__grid {
    display: flex !important;
    grid-template-columns: none !important;
    width: calc(100% + 18px);
    gap: 14px !important;
    margin-right: -18px;
    padding: 4px 18px 14px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-materials__grid::-webkit-scrollbar {
    display: none;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-material-card {
    flex: 0 0 clamp(320px, 46vw, 430px) !important;
    width: clamp(320px, 46vw, 430px) !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}

@media (max-width: 1024px) {
  html.sp-premium-mobile-disclosures-ready[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-premium-section-toggle {
    display: flex;
    width: 100%;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 18px 0 0;
    padding: 13px 14px 13px 16px;
    border: 1px solid rgba(13, 75, 59, .18);
    border-radius: 16px;
    color: #17372d;
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(240,247,243,.96));
    box-shadow: 0 12px 28px rgba(20, 52, 42, .08);
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  html.sp-premium-mobile-disclosures-ready[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-premium-section-toggle > span {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  html.sp-premium-mobile-disclosures-ready[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-premium-section-toggle strong {
    font-size: 13.5px;
    line-height: 1.25;
  }

  html.sp-premium-mobile-disclosures-ready[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-premium-section-toggle small {
    color: #68736e;
    font-size: 11px;
    line-height: 1.35;
  }

  html.sp-premium-mobile-disclosures-ready[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-premium-section-toggle > b {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #0d4b3b;
    font-size: 21px;
    font-weight: 500;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(13, 75, 59, .18);
  }

  html.sp-premium-mobile-disclosures-ready[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-premium-section-toggle.is-open {
    border-color: rgba(201, 86, 53, .28);
    background: #fff;
  }

  html.sp-premium-mobile-disclosures-ready[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-premium-section-body.is-mobile-collapsed {
    display: none;
  }

  html.sp-premium-mobile-disclosures-ready[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-premium-section-body.is-mobile-collapsed.is-open {
    display: block;
    margin-top: 16px;
  }

  /* The summaries now carry these messages on phones; remove duplicate lead cards. */
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-scenarios__lead-card,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-install-check__visual {
    display: none !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-materials__intro {
    display: none !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-materials__grid {
    width: calc(100% + 16px);
    margin-right: -16px;
    padding-right: 16px;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-material-card {
    flex-basis: min(86vw, 348px) !important;
    width: min(86vw, 348px) !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-materials__media {
    min-height: 190px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-material-card__content {
    padding: 18px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-material-card__list {
    margin-block: 12px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-value-proof__hero {
    gap: 14px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-value-proof__intro {
    padding: 18px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-value-proof__chips {
    gap: 7px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-value-proof__chips span:nth-child(n+4) {
    display: none;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-install-check__promise,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-control-route__promise {
    margin-top: 14px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-order-protection .spl-head-note,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-process .spl-head-note,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-install .spl-head-note {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 1024px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-premium-section-toggle {
    scroll-margin-block: 84px 92px;
  }
}

/* 2.25.29 narrow-screen containment: retain the next-card affordance without
 * letting the swipe tracks enlarge the document viewport on 280–340px screens. */
@media (max-width: 340px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-catalog__grid,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-real-projects,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-materials__grid {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    margin-right: 0 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-yandex-proof__score,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-yandex-proof__content {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}

/* Prevent decorative installation petals from creating a desktop scrollbar. */
html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-install {
  overflow-x: clip;
}

@media (max-width: 767px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-catalog__grid,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-real-projects,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-materials__grid {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    margin-right: 0 !important;
  }
}

/* Compare tray must be completely absent until at least one PAN is selected.
 * The legacy translated state still left a visible 38px strip above the mobile
 * action bar and obscured every viewport screenshot. */
html[data-sp-theme="premium"] body.stavros-panels-site .sp-compare-tray {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .3s var(--sp-ease), opacity .2s ease, visibility .2s ease;
}

html[data-sp-theme="premium"] body.stavros-panels-site .sp-compare-tray.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Final phone concentration and contrast pass. */
@media (max-width: 767px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-value-proof__lead {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-value-proof__intro > p {
    display: none !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-value-proof__intro > strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-yandex-proof__topics article:nth-child(n+3) {
    display: none !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote .spl-head-note {
    color: rgba(255, 255, 255, .78) !important;
  }
}

/* 2.25.30 — second independent visual audit.
 * Resolve legacy token aliases only inside Premium, restore the material CTA,
 * remove mid-sentence mobile clipping and keep the 1024px header readable. */
html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page {
  --spl-accent: var(--spl-copper);
  --spl-text: var(--spl-ink);
  --spl-text-soft: var(--spl-muted);
  --spl-serif: Georgia, "Times New Roman", serif;
}

html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page
.spl-material-card__footer a:not(.spl-material-card__link) {
  background: var(--spl-copper-dark) !important;
  color: #fff !important;
  border-color: var(--spl-copper-dark) !important;
}

html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page
.spl-material-card__actions a {
  min-height: 48px !important;
  padding-block: 10px !important;
}

html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page
.spl-material-card__footer a:not(.spl-material-card__link):hover,
html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page
.spl-material-card__footer a:not(.spl-material-card__link):focus-visible {
  background: #87391f !important;
  border-color: #87391f !important;
}

@media (min-width: 981px) and (max-width: 1180px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .sp-header__inner {
    grid-template-columns: minmax(132px, 150px) minmax(0, 1fr) auto !important;
    column-gap: 16px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .sp-nav-list {
    display: flex !important;
    justify-content: center !important;
    gap: clamp(14px, 1.7vw, 22px) !important;
    min-width: 0 !important;
    font-size: .76rem !important;
    letter-spacing: .015em !important;
    white-space: nowrap !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .sp-nav-list > li,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .sp-nav-list > li > a {
    margin-inline: 0 !important;
  }
}

@media (max-width: 767px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-value-proof__lead,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-value-proof__intro > strong,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-order-protection .spl-head-note,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-process .spl-head-note,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-install .spl-head-note {
    display: block !important;
    overflow: visible !important;
    -webkit-box-orient: initial !important;
    -webkit-line-clamp: initial !important;
  }
}

/* 2.25.31 — real full-page visual and technical audit.
 * These corrections are limited to Premium at mobile/tablet widths. They
 * harmonise the 1024px conversion path, restore 44px touch targets, improve
 * form legibility and remove the last avoidable vertical gaps. */
@media (max-width: 1024px) {
  /* Use the same conversion hierarchy throughout the complete mobile/tablet
   * range: calculation first, product selection second, OPAN as a distinct
   * supporting action. */
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__action--desktop[data-sp-view-only="premium"],
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__action--desktop:not([data-sp-view-only]),
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__sample-link--desktop[data-sp-view-only="premium"] {
    display: none !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__action--mobile[data-sp-view-only="premium"],
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-button--ghost.spl-hero__action--mobile,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__sample-link--mobile[data-sp-view-only="premium"] {
    display: inline-flex !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__sample-link--mobile,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__yandex {
    min-height: 44px !important;
    align-items: center !important;
  }

  /* The dark project form must remain readable in daylight and at low screen
   * brightness. Placeholder text stays visually secondary but passes a useful
   * contrast threshold against the field surface. */
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote-form input::placeholder,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote-form textarea::placeholder {
    color: rgba(255, 255, 255, .72) !important;
    opacity: 1 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote-form__consent {
    grid-template-columns: 22px minmax(0, 1fr) !important;
    min-height: 48px !important;
    align-items: center !important;
    padding-block: 7px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote-form__consent input[type="checkbox"] {
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    margin: 0 !important;
    align-self: center !important;
  }
}

@media (max-width: 767px) {
  /* Header controls were visually 40px despite adequate surrounding space. */
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .sp-icon-button {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }

  /* Let the short product rationale finish instead of ending in the middle of
   * a phrase; three lines remain compact at ordinary phone widths. */
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-product-card__reason p {
    -webkit-line-clamp: 3 !important;
  }

  /* The inherited 68px inner padding plus a legacy first-child margin created
   * a visibly empty green shelf above the final conversion message. */
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-final__content--purchase {
    padding-block: 30px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-final__content--purchase > .spl-final__copy {
    margin-top: 0 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-final__content--purchase > .spl-final__routes {
    margin-top: 22px !important;
  }

  /* Match the cookie control to the legal links instead of displaying the
   * browser's default grey button in the Premium footer. */
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .sp-footer__legal-links [data-cookie-settings] {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 6px 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
  }
}

@media (max-width: 340px) {
  /* Five lines are required only for the longest PAN rationale at 280–320px;
   * keeping it visible is preferable to an unexplained mid-sentence cut. */
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-product-card__reason p {
    -webkit-line-clamp: 5 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-product-card__live-price span {
    -webkit-line-clamp: 3 !important;
  }
}


/* Complete PAN explanations in Premium cards on every viewport. The existing
 * card geometry already reserves the space; a third line removes sentence
 * fragments without changing STAVROS. */
html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-product-card__reason p {
  -webkit-line-clamp: 3 !important;
}

@media (max-width: 1024px) {
  /* Tablet sections use the intentionally shorter editorial copy as well.
   * Otherwise the 3-line legacy clamp cuts the longer desktop sentence at
   * 768–844px despite the section being designed as a compact disclosure. */
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-install-check .spl-premium-copy--desktop,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-control-route .spl-premium-copy--desktop,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-order-protection .spl-premium-copy--desktop {
    display: none !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-install-check .spl-premium-copy--mobile,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-control-route .spl-premium-copy--mobile,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-order-protection .spl-premium-copy--mobile {
    display: inline !important;
  }
}

@media (max-width: 1024px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-install-check .spl-head-note,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-control-route .spl-head-note,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-order-protection .spl-head-note {
    display: block !important;
    overflow: visible !important;
    -webkit-box-orient: initial !important;
    -webkit-line-clamp: initial !important;
  }
}


/* 2.25.32 — final mobile visual polish after full screenshot review.
 * Scope: Premium home at phone/tablet widths only. The changes improve
 * hierarchy, touch clarity and form readability without altering desktop,
 * STAVROS, OPAN routes, prices or admin-managed section content. */
@media (max-width: 767px) {
  /* The secondary proof row was technically large enough but visually cramped.
   * Give both actions a stable two-column rhythm and a subtle shared surface. */
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__micro-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: stretch !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__sample-link--mobile,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__yandex {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 46px !important;
    box-sizing: border-box !important;
    padding: 6px 8px !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,.045) !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__sample-link--mobile {
    justify-content: space-between !important;
    font-size: 11.5px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__yandex {
    justify-self: stretch !important;
    justify-content: center !important;
    gap: 1px 6px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__yandex > span {
    font-size: 13.5px !important;
    white-space: nowrap !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__yandex strong {
    font-size: 10.5px !important;
    line-height: 1.15 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__yandex small {
    font-size: 9.5px !important;
    line-height: 1.15 !important;
  }

  /* The two catalogue routes previously looked like unfinished text fragments.
   * They now form one compact, accessible decision row. */
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-catalog__head-actions {
    display: grid !important;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr) !important;
    width: 100% !important;
    gap: 8px !important;
    align-items: stretch !important;
    margin-top: 2px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-catalog__head-actions .spl-inline-link {
    min-width: 0 !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 7px !important;
    padding: 9px 11px !important;
    border: 1px solid rgba(13,75,59,.15) !important;
    border-radius: 12px !important;
    color: #17372d !important;
    background: rgba(255,255,255,.8) !important;
    font-size: 11.5px !important;
    font-weight: 750 !important;
    line-height: 1.18 !important;
    text-decoration: none !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-catalog__head-actions .spl-inline-link--muted {
    background: rgba(238,245,241,.9) !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-catalog__head-actions .spl-inline-link:hover,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-catalog__head-actions .spl-inline-link:focus-visible {
    border-color: rgba(201,86,53,.48) !important;
    box-shadow: 0 0 0 3px rgba(201,86,53,.13) !important;
  }

  /* Long lower-page headings remain expressive but no longer dominate four
   * consecutive screens. Balancing also prevents awkward one-word tails. */
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-section-head h2,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-real-proof__subhead h3,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote__copy h2,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-faq-premium__head h2,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-install-check__head h2,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-control-route h2,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-order-protection h2 {
    font-size: clamp(28px, 7.8vw, 32px) !important;
    line-height: 1.035 !important;
    text-wrap: balance !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-section {
    padding-block: 36px !important;
  }

  /* Make the legal choice legible without enlarging the form materially. */
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote-form__consent span {
    color: rgba(255,255,255,.82) !important;
    font-size: 12.5px !important;
    line-height: 1.35 !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote-form__consent a {
    color: #fff !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote__phone {
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Footer links remain visually quiet, but each legal row now clears the
   * modern 24px minimum target and gains a visible keyboard focus state. */
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .sp-footer__legal-links a {
    min-height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .sp-footer a:focus-visible,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .sp-footer button:focus-visible {
    outline: 2px solid #9a4a2d !important;
    outline-offset: 3px !important;
  }
}

@media (max-width: 340px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-catalog__head-actions {
    grid-template-columns: 1fr !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-section-head h2,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-real-proof__subhead h3,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote__copy h2,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-faq-premium__head h2,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-install-check__head h2,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-control-route h2,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-order-protection h2 {
    font-size: 28px !important;
  }
}


@media (max-width: 299px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__micro-actions {
    grid-template-columns: 1fr !important;
  }
}


/* Very narrow phones keep the proof row compact rather than stacking two
 * secondary cards below the primary CTA. */
@media (max-width: 340px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__micro-actions {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 6px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__sample-link--mobile,
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__yandex {
    min-height: 44px !important;
    padding: 2px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__sample-link--mobile {
    font-size: 10.5px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__yandex {
    width: auto !important;
    min-width: 104px !important;
    justify-self: end !important;
    gap: 0 4px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__yandex > span {
    font-size: 10.5px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__yandex strong {
    font-size: 0 !important;
    white-space: nowrap !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__yandex strong::after {
    content: "5,0 Яндекс";
    font-size: 9.5px;
    line-height: 1.15;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-hero__yandex small {
    display: none !important;
  }
}


/* Final regression corrections found by the 280–1024px full-page audit. */
@media (max-width: 1024px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote-form__submit {
    min-height: 50px !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-quote__phone {
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

@media (max-width: 340px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .spl-product-card__reason p {
    -webkit-line-clamp: 5 !important;
  }
}

/* The sticky header already turns its menu control into a clearly visible
 * close button. Hiding the second close icon inside the Premium drawer avoids
 * two adjacent X controls competing for the same action. */
@media (max-width: 1024px) {
  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .sp-mobile-nav__close {
    display: none !important;
  }

  html[data-sp-theme="premium"] body.home.stavros-panels-site.stavros-premium-v2.sp-front-page .sp-mobile-nav__head {
    padding-right: 16px !important;
  }
}
