/* Responsive refinements for the home page.
   Every rule is scoped to tablet/mobile widths so the desktop layout stays intact. */

.about-mobile { display: none; }

@media (max-width: 1024px) {
  :root {
    --section-space: 40px;
    --section-heading-gap: 28px;
  }

  body { overflow-x: clip; }

  #services,
  #calculator,
  #promotions,
  #portfolio,
  #about,
  #reviews,
  #faq,
  #contacts { scroll-margin-top: 76px !important; }

  .site-header { padding: 12px 20px 0; }
  .header-logo,
  .header-inner { height: 48px; }
  .header-phone-btn,
  .header-burger { width: 44px; height: 44px; }
  .header-logo__img { height: 24px; }

  .hero {
    height: auto;
    min-height: 720px;
    padding: 84px 0 0;
    padding-bottom: var(--section-space);
    align-items: stretch;
  }
  .hero__content {
    width: calc(100% - 40px);
    min-height: 608px;
    grid-template-columns: 1fr;
    gap: 18px;
    --hero-pad-x: clamp(36px, 6vw, 64px);
    --hero-pad-y: 38px;
  }
  .hero__left {
    min-height: 430px;
    padding: var(--hero-pad-y) var(--hero-pad-x);
    transform: none;
  }
  .hero__headline {
    max-width: 760px;
    font-size: clamp(48px, 7vw, 64px);
  }
  .hero__subtitle { max-width: 640px; font-size: 16px; }
  .hero__right { display: block; padding: 0 var(--hero-pad-x); }
  .hero__benefits { gap: 12px; }
  .hero__benefit {
    min-height: 112px;
    padding: 18px 20px;
    border-radius: 20px;
  }
  .hero__benefit-val { font-size: 20px; }
  .hero__benefit-lbl { font-size: 13px; }

  .categories { padding-block: var(--section-space); }
  .categories-inner { padding-inline: 24px; }
  .categories__header { align-items: center; margin-bottom: var(--section-heading-gap); }
  .tab { min-height: 44px; padding: 10px 28px; }
  .repair-bento { gap: 16px; }
  .repair-row { gap: 16px; }
  .rc { height: 340px; }
  .rc__left { padding: 22px; }
  .rc__photo {
    width: 42%;
    min-width: 180px;
    background-size: auto var(--rc-photo-size);
    background-position-x: center;
    background-position-y: var(--rc-photo-position-y);
  }
  .rc__bullets li { font-size: 12px; }
  .rc__more { min-height: 44px; padding-inline: 14px; }

  .calculator { padding-block: var(--section-space); }
  .calc-wrap { padding: 0 24px; }
  .calc-form {
    width: 100%;
    max-width: 840px;
    min-height: 640px;
    margin-inline: auto;
    border-radius: 28px;
  }
  .calc-promo { display: none; }
  .calc-next-btn { min-height: 48px; height: 48px; }
  .calc-back-btn { width: 48px; height: 48px; }
  .calc-btn-row .calc-cta-btn { min-height: 52px; }

  .promotions { padding-block: var(--section-space); }
  .promotions .section-title { margin-bottom: var(--section-heading-gap); }
  .promo-grid { grid-template-columns: 1.45fr 1fr; gap: 16px; }
  .promo-col { height: 480px; gap: 16px; }
  .promo-card--large { height: 480px; }
  .promo-banner { padding: 32px 30px 0; }
  .promo-banner__body { max-width: 58%; }
  .promo-banner__title { font-size: 27px; }
  .promo-banner__big-num { font-size: 56px; }
  .promo-banner__big-num--text,
  .promo-banner--measurement .promo-banner__title { font-size: 27px; }
  .promo-banner__big-text { font-size: 17px; }

  .portfolio { padding-block: var(--section-space); }
  .portfolio .section-header-row { margin-bottom: var(--section-heading-gap); }
  .portfolio-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr);
    height: 420px;
  }
  .portfolio-grid--row2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: 240px;
  }
  .port-featured { height: auto; }
  .port-stack { height: auto; flex-direction: column; }

  .installment {
    min-height: 0;
    padding: 32px 32px 0;
    gap: 24px;
    overflow: hidden;
  }
  .installment__left { min-width: 0; padding-bottom: 32px; }
  .installment__heading { font-size: 40px; }
  .installment__sub { font-size: 16px; }
  .installment__actions { gap: 18px; flex-wrap: wrap; }
  .installment__image { width: 46%; max-width: 460px; }

  .why-us { padding-block: var(--section-space); }
  .why-us .section-title { margin-bottom: var(--section-heading-gap); }
  .gb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gb-card { min-height: 300px; }
  .gb-card--wide { grid-column: 1 / -1; min-height: 280px; }
  .gb-card:not(.gb-card--wide) .gb-card__text { flex-basis: 52%; padding: 24px; }
  .gb-card:not(.gb-card--wide) .gb-card__img { flex-basis: 48%; }
  .gb-card:not(.gb-card--wide) .gb-card__img img { transform: scale(1.28) translateX(7%); }
  .gb-card__title { font-size: 24px; }
  .gb-card:not(.gb-card--wide) .gb-card__title { font-size: 19px; }

  .about { padding-top: var(--section-space); }
  .bento-about { gap: 16px; }
  .bento-feature { padding: 30px; }
  .bento-row2 { gap: 16px; }

  .reviews { padding-block: var(--section-space) !important; }
  .review-card { padding: 24px; }
  .review-text { font-size: 15px; }

  .faq { padding-block: var(--section-space); }
  .faq .section-title { margin-bottom: var(--section-heading-gap); }
  .faq-header { min-height: 68px; }

  .contacts { padding-block: var(--section-space); }
  .contacts-wrap { gap: 40px; }
  .contacts-heading { font-size: 34px; margin-bottom: var(--section-heading-gap); }
  .contacts-avatar { width: 96px; height: 96px; }

  .footer { padding-top: 44px; }
  .footer-main { gap: 28px; }
  .footer-col a,
  .footer-contact-link { min-height: 44px; align-items: center; }
  .social-icon { width: 44px; height: 44px; }
  .privacy-row { min-height: 44px; }
}

@media (max-width: 768px) {
  :root {
    --section-space: 36px;
    --section-heading-gap: 18px;
  }

  .site-header { padding: 10px 14px 0; }
  .header-split { gap: 6px; }
  .header-logo { height: 46px; padding: 0 18px; }
  .header-inner { height: 46px; padding: 0 4px; }
  .header-phone-btn,
  .header-burger { width: 44px; height: 44px; }

  .hero {
    min-height: max(680px, 100svh);
    padding: 66px 0 0;
    padding-bottom: var(--section-space);
  }
  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(10,18,33,.16) 0%, rgba(10,18,33,.05) 38%, rgba(10,18,33,.46) 100%);
  }
  .hero__content { width: 100%; min-height: 0; gap: 0; }
  .hero__left {
    min-height: 0;
    padding: 24px 20px calc(env(safe-area-inset-bottom, 0px) + 26px);
  }
  .hero__location-badge { margin-bottom: 14px; }
  .hero__headline {
    font-size: clamp(34px, 9.8vw, 46px);
    line-height: 1.02;
    letter-spacing: 0.02em;
    text-wrap: balance;
  }
  .hero__subtitle {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.5;
    max-width: 580px;
  }
  .hero__actions { padding-top: 22px; gap: 10px; }
  .hero__actions .btn,
  .btn--outline-hero { min-height: 52px; }
  .hero__free-note { min-height: 24px; margin-top: 10px; font-size: 13px; }
  .hero__proof {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.28);
    justify-content: flex-start;
  }
  .hero__review-text,
  .hero__proof-label { font-size: 12px; }
  .hero__right { display: none; }

  .categories { padding-block: var(--section-space); }
  .categories-inner { padding-inline: 20px; }
  .categories__header { margin-bottom: var(--section-heading-gap); }
  .categories__header .section-title { font-size: 25px; margin: 0; }
  .tabs { padding: 3px; }
  .tab { min-height: 44px; padding: 10px 18px; font-size: 14px; }

  .repair-bento {
    margin-right: -20px;
    padding: 2px 20px 8px 0;
    gap: 14px;
    scroll-padding-left: 0;
  }
  .rc {
    flex-basis: min(78vw, 300px);
    height: auto;
    min-height: 0;
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(24,39,75,.09);
  }
  .rc__photo {
    position: relative;
    width: 100%;
    height: 200px;
    min-width: 0;
    background-size: auto var(--rc-photo-size);
    background-position-x: center;
    background-position-y: var(--rc-photo-position-y);
  }
  .rc__left { padding: 16px 18px 18px; }
  .rc__top { gap: 8px; }
  .rc__title { font-size: 18px; line-height: 1.25; }
  .rc__desc {
    display: block;
    font-size: 13px;
    line-height: 1.45;
  }
  .rc__bullets {
    display: flex;
    gap: 7px;
    margin-top: 2px;
  }
  .rc__bullets li {
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.35;
  }
  .rc__dot { margin-top: .45em; }
  .rc__bottom {
    margin-top: 16px;
    padding-top: 14px;
    gap: 14px;
  }
  .rc__price {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.35px;
  }
  .rc__more {
    min-height: 48px;
    padding-block: 12px;
    font-size: 15px;
    line-height: 1.2;
  }
  .rc__more-arrow { display: none; }

  .calculator { padding-block: var(--section-space); }
  .calc-wrap { padding-inline: 20px; }
  .calc-form { max-width: none; min-height: 0; }
  .calc-title { font-size: 27px; line-height: 1.18; }
  .calc-content { padding: 18px 20px 20px; }
  .room-card__photo { height: 124px; }
  .room-card__label { min-height: 48px; }
  .area-chip { min-height: 44px; }
  .repair-option { min-height: 58px; }
  .calc-checkbox { min-height: 44px; }
  .calc-input-sm,
  .calc-phone-wrap { min-height: 52px; }

  .promotions { padding-block: var(--section-space); }
  .promotions .section-title { margin-bottom: var(--section-heading-gap); }
  .promo-grid {
    display: flex;
    gap: 14px;
    margin-right: -20px;
    padding: 2px 20px 8px 0;
  }
  .promo-card,
  .promo-col .promo-card:first-child,
  .promo-col .promo-card:last-child {
    flex-basis: min(82vw, 320px);
    height: 340px;
  }
  .promo-card--large { flex-basis: min(86vw, 336px); height: 340px; }
  .promo-banner { padding: 28px 24px 0; }
  .promo-banner__body { max-width: 72%; }
  .promo-banner__title { font-size: 24px; line-height: 1.15; }
  .promo-banner__sub { font-size: 16px; line-height: 1.45; }
  .promo-banner__body--overlay { left: 24px; bottom: 26px; max-width: calc(100% - 48px); }

  .portfolio { padding-block: var(--section-space); }
  .portfolio .section-header-row { margin-bottom: var(--section-heading-gap); gap: 6px; }
  .portfolio .section-header-row .section-title {
    min-width: 0;
    font-size: 17px;
    white-space: nowrap;
  }
  .portfolio .section-header-row .btn { min-height: 44px; padding-inline: 10px; font-size: 12px; }
  .portfolio-scroll {
    height: 320px;
    gap: 14px;
    margin-right: -20px;
    padding-right: 20px;
  }
  .portfolio-scroll .port-card,
  .portfolio-scroll .port-card--tall {
    flex-basis: min(82vw, 320px);
    height: 320px;
  }
  .portfolio-scroll .port-overlay { padding: 22px 20px; }
  .port-title { font-size: 18px; }
  .port-meta { font-size: 13px; }

  .installment {
    min-height: 0;
    padding: 32px 20px 0;
    gap: 16px;
  }
  .installment__left { padding-bottom: 0; }
  .installment__heading { font-size: 32px; }
  .installment__sub { font-size: 16px; }
  .pills-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .pill { min-height: 38px; display: flex; align-items: center; justify-content: center; text-align: center; }
  .installment__actions { width: 100%; gap: 16px; }
  .installment .btn--outline-white { width: 100%; min-height: 50px; }
  .bank-partners { width: 100%; justify-content: center; flex-wrap: wrap; }
  .installment__image { width: 100%; max-width: none; height: 200px; }

  .why-us { padding-block: var(--section-space); }
  .why-us .section-title { margin-bottom: var(--section-heading-gap); }
  .gb-grid {
    display: flex;
    gap: 14px;
    margin-right: -20px;
    padding: 2px 20px 8px 0;
  }
  .gb-card,
  .gb-card--wide {
    flex-basis: min(86vw, 330px);
    min-height: 0;
  }
  /* Same frame for every card; each illustration is aligned separately below. */
  .gb-card__img,
  .gb-card:not(.gb-card--wide) .gb-card__img,
  .gb-card--light:not(.gb-card--wide) .gb-card__img,
  .gb-card--gray:not(.gb-card--wide) .gb-card__img,
  .gb-card--orange:not(.gb-card--wide) .gb-card__img {
    flex: 0 0 250px;
    width: 100%;
    height: 250px;
  }
  .gb-card__img img,
  .gb-card--wide .gb-card__img img,
  .gb-card:not(.gb-card--wide) .gb-card__img img,
  .gb-card--light:not(.gb-card--wide) .gb-card__img img,
  .gb-card--gray:not(.gb-card--wide) .gb-card__img img,
  .gb-card--orange:not(.gb-card--wide) .gb-card__img img {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: translate(var(--gb-img-x, 0), var(--gb-img-y, 0)) scale(var(--gb-img-scale, 1));
    transform-origin: center;
  }

  /* Individual compensation for transparent margins inside each source file. */
  /* The Y values include a shared 6px downward offset for top breathing room. */
  .gb-card--g1 { --gb-img-scale: 1.16; --gb-img-x: 1px;   --gb-img-y: 2px; }
  .gb-card--g2 { --gb-img-scale: 1.22; --gb-img-x: -15px; --gb-img-y: 5px; }
  .gb-card--g3 { --gb-img-scale: 1.19; --gb-img-x: 3px;   --gb-img-y: -4px; }
  .gb-card--g4 { --gb-img-scale: 1.14; --gb-img-x: -19px; --gb-img-y: -2px; }
  .gb-card--g5 { --gb-img-scale: 1.05; --gb-img-x: -5px;  --gb-img-y: 2px; }

  .gb-card__text,
  .gb-card:not(.gb-card--wide) .gb-card__text {
    flex: 1 1 auto;
    display: grid;
    grid-template-rows: 55px minmax(0, 1fr);
    padding: 18px 20px 20px;
    gap: 12px;
  }
  .gb-card__text .gb-compare {
    height: 100%;
    margin-top: 0;
    align-items: stretch;
  }
  .gb-card__text .gb-col {
    display: flex;
    min-width: 0;
    flex-direction: column;
  }
  .gb-card__title,
  .gb-card:not(.gb-card--wide) .gb-card__title {
    min-height: 55px;
    font-size: 20px;
  }
  .gb-title-xl { font-size: 30px; }
  .gb-list li { font-size: 13px; }
  .gb-compare--stack { gap: 12px; }

  .about { padding-top: var(--section-space); }
  .about-header {
    align-items: flex-end;
    margin-bottom: 18px;
  }
  .about-header__left {
    min-width: 0;
    gap: 7px;
  }
  .about-header__left .badge {
    display: inline-flex;
    padding: 0 !important;
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 1.6px;
  }
  .about-header .section-title {
    margin: 0;
    max-width: 290px;
    font-size: clamp(27px, 8vw, 32px);
    line-height: 1.06;
    letter-spacing: 0.02em;
    text-wrap: balance;
  }
  .about-header__cta { display: none; }
  .bento-about,
  .bento-row2 { display: none; }

  .about-mobile {
    display: grid;
    gap: 12px;
  }
  .about-mobile-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(26, 26, 26, .06);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(24, 39, 75, .07);
  }
  .about-mobile-card__photo {
    position: relative;
    height: 205px;
    overflow: hidden;
    background: #f7f8fa;
  }
  .about-mobile-card__photo::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 52%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(12, 18, 28, .34));
  }
  .about-mobile-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
  }
  .about-mobile-card__team {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    color: #fff;
    background: rgba(17, 17, 17, .78);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 14px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .about-mobile-card__team strong {
    font-size: 24px;
    line-height: 1;
    letter-spacing: -.5px;
  }
  .about-mobile-card__team span {
    font-size: 10px;
    line-height: 1.15;
    color: rgba(255, 255, 255, .72);
  }
  .about-mobile-card__body { padding: 21px 20px 20px; }
  .about-mobile-card__body h3 {
    max-width: 300px;
    font-size: 25px;
    line-height: 1.12;
    letter-spacing: -.4px;
    text-wrap: balance;
  }
  .about-mobile-card__body > p {
    margin-top: 10px;
    color: #59616d;
    font-size: 16px;
    line-height: 1.5;
  }
  .about-mobile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
  }
  .about-mobile-stats > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 82px;
    padding: 12px 4px 10px;
    text-align: center;
  }
  .about-mobile-stats dt {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: clamp(23px, 6.5vw, 25px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  .about-mobile-stats dd {
    margin: 0;
    color: #66707d;
    min-height: 34px;
    font-size: clamp(13px, 3.5vw, 14px);
    line-height: 1.25;
    text-align: center;
  }
  .about-mobile-quote {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px 12px;
    margin: 0;
    padding: 20px;
    color: #fff;
    background: #171717;
    border-radius: 22px;
  }
  .about-mobile-quote > svg {
    grid-row: 1 / span 2;
    color: var(--accent);
  }
  .about-mobile-quote blockquote {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
  }
  .about-mobile-quote figcaption {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
  }
  .about-mobile-quote__avatar {
    width: 34px;
    height: 34px;
    margin-right: 2px;
    flex: 0 0 34px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
  }
  .about-mobile-quote__avatar--initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
  }
  .about-mobile-quote figcaption strong {
    color: #fff;
    font-size: 13px;
  }

  .reviews { padding-block: var(--section-space) !important; }
  .reviews-carousel { margin-right: -20px; }
  .review-card { flex-basis: min(86vw, 330px); padding: 22px; }
  .review-text { font-size: 16px; line-height: 1.55; }
  .review-source { min-height: 32px; }

  .faq { padding-block: var(--section-space); }
  .faq .section-title { margin-bottom: var(--section-heading-gap); }
  .faq-header { min-height: 68px; padding: 18px 20px; }
  .faq-q { font-size: 18px; line-height: 1.35; }
  .faq-answer-inner { font-size: 16px; line-height: 1.55; }

  .contacts { padding-block: var(--section-space); }
  .contacts-wrap { gap: 28px; }
  .contacts-heading { font-size: 28px; line-height: 1.08; margin-bottom: var(--section-heading-gap); }
  .contacts-person { gap: 16px; }
  .contacts-avatar { width: 80px; height: 80px; }
  .form-input,
  .phone-input,
  .btn--full { min-height: 56px; height: 56px; }
  .privacy-text { font-size: 14px; }

  .footer { padding-top: 36px; }
  .footer-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-col a,
  .footer-contact-link { min-height: 44px; align-items: center; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .gb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gb-card--wide { grid-column: span 2; }
}

@media (min-width: 769px) and (max-width: 900px) {
  .bento-col,
  .bento-photo { display: none; }
  .bento-about { display: block; }
  .bento-row2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
    margin-top: 16px;
  }
  .bento-team,
  .bento-quote { min-height: 190px; }
}

@media (min-width: 600px) and (max-width: 768px) {
  .hero { min-height: 820px; }

  .repair-bento {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  .repair-row { display: contents; }
  .rc { width: auto; min-width: 0; }
  .rc__photo { height: 180px; }
  .calc-wrap { padding-inline: 24px; }
  .room-card__photo { height: 140px; }

  .promo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, .9fr);
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  .promo-col { display: flex; height: 460px; }
  .promo-card,
  .promo-col .promo-card:first-child,
  .promo-col .promo-card:last-child { width: auto; height: auto; min-width: 0; }
  .promo-card--large { width: auto; height: 460px; min-width: 0; }
  .promo-banner { padding: 28px 26px 0; }
  .promo-banner__title { font-size: 22px; }
  .promo-banner__sub { font-size: 14px; }

  .portfolio-scroll {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  .portfolio-grid,
  .portfolio-grid--row2,
  .port-featured,
  .port-stack { display: contents; }
  .portfolio-scroll .port-card,
  .portfolio-scroll .port-card--tall { width: auto; height: 250px; }

  .installment {
    flex-direction: row;
    align-items: center;
    padding-inline: 24px;
  }
  .installment__left { flex: 1 1 56%; }
  .installment__image { flex: 1 1 44%; width: 44%; height: auto; }
  .installment__actions { align-items: flex-start; }

  .gb-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  .gb-card,
  .gb-card--wide { width: auto; min-width: 0; }
  .gb-card--wide {
    grid-column: 1 / -1;
    flex-direction: row;
    min-height: 280px;
  }
  .gb-card--wide .gb-card__img { order: 0; width: 42%; height: auto; }
  .gb-card--wide .gb-card__text { width: 58%; }

  .about-mobile-card {
    display: grid;
    grid-template-columns: minmax(250px, .9fr) minmax(0, 1.1fr);
  }
  .about-mobile-card__photo { height: 100%; min-height: 330px; }
  .about-mobile-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
  }
  .about-mobile-stats { margin-top: 22px; }
  .review-card { flex-basis: calc(50% - 7px); }
}

@media (max-width: 390px) {
  .site-header { padding-inline: 10px; }
  .header-logo { padding-inline: 15px; }
  .header-logo__img { height: 22px; }
  .hero { min-height: max(650px, 100svh); }
  .hero__left { padding-inline: 16px; }
  .hero__headline { font-size: clamp(31px, 9vw, 36px); }
  .hero__subtitle { font-size: 15px; }
  .hero__proof { gap: 12px; }
  .hero__review-text,
  .hero__proof-label { font-size: 11px; }
  .categories-inner { padding-inline: 16px; }
  .categories__header { align-items: flex-start; }
  .categories__header .section-title { font-size: 23px; max-width: 95px; }
  .tab { padding-inline: 14px; font-size: 13px; }
  .repair-bento { margin-right: -16px; padding-right: 16px; }
  .rc { flex-basis: min(82vw, 292px); }
  .calc-wrap { padding-inline: 16px; }
  .calc-title { font-size: 25px; }
  .calc-content { padding-inline: 16px; }
  .room-row { gap: 8px; }
  .room-card__photo { height: 112px; }
  .room-card__label { padding-inline: 12px; }
  .promo-grid,
  .portfolio-scroll { margin-right: -16px; padding-right: 16px; }
  .promo-card,
  .promo-col .promo-card:first-child,
  .promo-col .promo-card:last-child { flex-basis: 296px; }
  .portfolio-scroll .port-card,
  .portfolio-scroll .port-card--tall { flex-basis: 292px; }
  .installment { padding-inline: 16px; }
  .gb-grid,
  .reviews-carousel { margin-right: -16px; }
  .gb-card,
  .gb-card--wide,
  .review-card { flex-basis: 310px; }
  .bento-stats { justify-content: space-between; width: 100%; gap: 10px; }
  .footer-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 340px) {
  .categories__header { flex-direction: column; align-items: stretch; }
  .categories__header .section-title { max-width: none; }
  .tabs { width: 100%; }
  .tab { flex: 1; }
}

@media (max-width: 768px) and (max-height: 700px) {
  .hero { min-height: 650px; }
  .hero__left { padding-top: 18px; padding-bottom: 20px; }
  .hero__location-badge { margin-bottom: 10px; }
  .hero__headline { font-size: clamp(30px, 8.7vw, 40px); }
  .hero__subtitle { margin-top: 9px; font-size: 14px; }
  .hero__actions { padding-top: 14px; }
  .hero__free-note { margin-top: 6px; }
  .hero__proof { margin-top: 10px; padding-top: 10px; }
}

/* Promotions: keep copy and media in separate visual zones on touch layouts. */
@media (max-width: 768px) {
  .promo-grid {
    display: flex;
    grid-template-columns: none;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    margin: 0 -20px 0 0;
    padding: 2px 20px 8px 0;
  }
  .promo-grid::-webkit-scrollbar { display: none; }
  .promo-col { display: contents; }

  .promo-card,
  .promo-card--large,
  .promo-col .promo-card:first-child,
  .promo-col .promo-card:last-child {
    flex: 0 0 min(82vw, 330px);
    width: auto;
    min-width: 0;
    height: 420px;
    scroll-snap-align: start;
  }

  .promo-banner {
    padding: 26px 22px 0;
  }
  .promo-banner__body {
    width: 100%;
    max-width: none;
    gap: 12px;
  }
  .promo-banner__title {
    max-width: 270px;
    font-size: clamp(27px, 7.5vw, 30px);
    line-height: 1.15;
    text-wrap: balance;
  }
  .promo-banner__sub {
    max-width: 280px;
    font-size: 16px;
    line-height: 1.45;
  }

  .promo-banner .promo-banner__img,
  .promo-col .promo-card:last-child .promo-banner__img {
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    height: var(--promo-media-height, 250px);
    background-size: contain;
    background-position: center bottom;
  }
  video.promo-banner__img {
    object-fit: contain;
    object-position: center bottom;
  }

  /* Each source has different transparent margins, so tune its viewport separately. */
  .promo-banner--installment {
    --promo-media-height: 210px;
  }
  .promo-banner--installment video.promo-banner__img {
    object-fit: cover;
  }
  .promo-banner--measurement {
    --promo-media-height: 235px;
  }
  .promo-banner--measurement .promo-banner__title {
    font-size: clamp(27px, 7.5vw, 30px);
    line-height: 1.12;
    max-width: none;
    text-wrap: balance;
  }
  .promo-banner--measurement .promo-banner__body {
    width: 100%;
    max-width: none;
  }
  .promo-banner--measurement .promo-banner__sub {
    font-size: 14px;
    line-height: 1.4;
    max-width: 290px;
  }
  .promo-col .promo-card.promo-banner--measurement .promo-banner__img {
    background-size: 116% auto;
    background-position: center calc(100% + 20px);
  }

  .promo-banner--large {
    background: #005BF4;
    padding: 24px 22px 0;
  }
  .promo-card.promo-banner--discount {
    height: 420px;
  }
  .promo-banner--large::after {
    display: none;
  }
  .promo-banner__alpha-video {
    inset: auto 0 0;
    width: 100%;
    height: 360px;
    object-fit: contain;
    object-position: center bottom;
    mix-blend-mode: normal;
    transform: translateY(50px) scale(.95);
    transform-origin: center bottom;
  }
  .promo-motion-video { display: block !important; }
  .promo-motion-fallback { display: none !important; }
  .promo-motion-static { display: none !important; }
  .promo-banner__body--overlay {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    gap: 12px;
  }
  .promo-banner__big-num {
    font-family: var(--font-display);
    font-size: 46px;
    font-weight: 800;
    line-height: 1.1;
  }
  .promo-banner__big-num--text {
    max-width: 260px;
    font-size: clamp(27px, 7.5vw, 30px);
    line-height: 1.08;
  }
  .promo-banner__big-text {
    max-width: 280px;
    font-size: 16px;
    font-weight: 400;
    color: rgba(255,255,255,.8);
    line-height: 1.45;
  }
}

@media (max-width: 390px) {
  .promo-grid { margin-right: -16px; padding-right: 16px; }
  .promo-card,
  .promo-card--large,
  .promo-col .promo-card:first-child,
  .promo-col .promo-card:last-child {
    flex-basis: min(82vw, 306px);
  }
}

/* Mobile section headings: one typographic scale, one vertical rhythm and one
   compact action pattern. Optional actions never compete with the title. */
@media (max-width: 768px) {
  :root {
    --mobile-section-title-size: 26px;
    --mobile-section-title-line: 1.12;
    --mobile-section-action-size: 48px;
    --mobile-section-heading-min-height: 48px;
  }

  .section-title,
  .categories__header .section-title,
  .portfolio .section-header-row .section-title,
  .about-header .section-title,
  .reviews-header .section-title,
  .faq .section-title,
  .calc-title,
  .installment__heading,
  .contacts-heading {
    font-size: var(--mobile-section-title-size);
    line-height: var(--mobile-section-title-line);
    letter-spacing: 0.02em;
    text-wrap: balance;
  }

  .section-title,
  .calc-title,
  .installment__heading,
  .contacts-heading {
    font-weight: 800;
  }

  .section-heading,
  .categories__header,
  .calculator__heading,
  .portfolio .section-header-row,
  .about-header,
  .reviews-header,
  .faq .section-title,
  .contacts-heading {
    margin-bottom: var(--section-heading-gap);
  }

  .section-heading,
  .faq .section-title,
  .contacts-heading {
    min-height: var(--mobile-section-heading-min-height);
    display: flex;
    align-items: center;
  }

  .categories__header {
    min-height: var(--mobile-section-heading-min-height);
    align-items: center;
    justify-content: flex-start;
  }

  .reviews-header {
    min-height: var(--mobile-section-heading-min-height);
    justify-content: center;
  }

  .categories__header .section-title {
    max-width: none;
  }

  .portfolio .section-header-row {
    align-items: center;
    gap: 12px;
  }
  .portfolio .section-header-row .section-title {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
  }
  .portfolio-title__line {
    display: block;
  }

  .section-header-row--action {
    min-height: var(--mobile-section-action-size);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .section-header-row--action .section-title,
  .section-header-row--action .about-header__left {
    flex: 1 1 auto;
    min-width: 0;
  }

  .section-header-action,
  .portfolio .section-header-row .section-header-action,
  .about-header .section-header-action {
    display: inline-flex;
    flex: 0 0 var(--mobile-section-action-size);
    width: var(--mobile-section-action-size);
    height: var(--mobile-section-action-size);
    min-height: var(--mobile-section-action-size);
    padding: 0;
    border-radius: 50%;
  }

  .section-header-action__label { display: inline; }
  .section-header-action__icon { width: 20px; height: 20px; }

  .portfolio .section-header-row .section-header-action {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    height: 48px;
    min-height: 48px;
    padding-inline: 16px;
    border-radius: 999px;
    gap: 8px;
    font-size: 14px;
  }

  .about-header .section-header-action {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    height: 48px;
    min-height: 48px;
    padding-inline: 16px;
    border-radius: 999px;
    gap: 8px;
    font-size: 14px;
  }

  .about-header {
    align-items: center;
  }
  .about-header .section-title {
    max-width: none;
  }
  .about-header__cta { display: inline-flex; }

  .calc-badge,
  .reviews-label,
  .about-header__left .badge {
    display: none;
  }

  .calc-header {
    gap: var(--section-heading-gap);
    padding-bottom: var(--section-heading-gap);
  }

  .installment__left {
    gap: var(--section-heading-gap);
  }

  .contacts-heading {
    text-transform: none;
  }
}

@media (max-width: 360px) {
  :root { --mobile-section-title-size: 24px; }
}

/* ── Full-width hero composed for the Comp 1 promo video ─────────── */
.hero.hero--showcase {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: stretch;
  min-height: 720px;
  height: 100svh;
  max-height: 980px;
  padding: 78px 0 0;
  overflow: hidden;
  background: #fff url('assets/hero-poster.jpg') center / cover no-repeat;
}

.hero--showcase::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.32) 34%, rgba(255,255,255,0) 58%);
}

.hero--showcase .hero__glow { display: none; }

.hero--showcase .hero__backdrop-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero--showcase .hero__content {
  position: relative;
  z-index: 2;
  width: min(1440px, 100%);
  min-height: 0;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(32px, 5vw, 76px) clamp(24px, 3vw, 44px);
  display: grid;
  grid-template-columns: minmax(660px, 1.15fr) minmax(340px, .85fr);
  grid-template-rows: 1fr auto;
  gap: 24px;
}

.hero--showcase .hero__left {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  min-height: 0;
  max-width: 720px;
  padding: 24px 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  transform: none;
}

.hero--showcase .hero__location-badge {
  margin: 0 0 22px;
  padding: 9px 15px;
  color: #0759e6;
  background: #edf4ff;
  border: 1px solid #d7e6ff;
  font-size: 13px;
  font-weight: 700;
}

.hero--showcase .hero__headline {
  max-width: 720px;
  margin: 0;
  color: #111827;
  font-size: clamp(51px, 4.8vw, 76px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: 0.02em;
  text-shadow: none;
  text-wrap: balance;
}

.hero--showcase .hero__headline span { color: #111827; }

.hero--showcase .hero__subtitle {
  max-width: 620px;
  margin-top: 24px;
  color: #4b5565;
  font-size: clamp(17px, 1.32vw, 19px);
  line-height: 1.62;
  text-shadow: none;
}

.hero--showcase .hero__actions {
  margin-top: 28px;
  padding: 0;
  gap: 10px;
}

.hero--showcase .hero__actions .btn {
  min-height: 56px;
  padding-inline: 26px;
  border-radius: 12px;
  font-size: 16px;
}

.hero--showcase .hero__actions .btn--orange {
  box-shadow: 0 12px 28px rgba(0, 91, 244, .2);
}

.hero--showcase .btn--outline-hero {
  color: #202938;
  background: rgba(255, 255, 255, .86);
  border: 1px solid #cfd6e2;
}

.hero--showcase .btn--outline-hero:hover {
  color: #005bf4;
  border-color: #8db7ff;
  background: #fff;
}

.hero--showcase .hero__free-note {
  margin: 0;
  color: #526074;
  font-size: 16px;
  font-weight: 550;
  line-height: 1.35;
  white-space: nowrap;
}

.hero--showcase .hero__free-note svg {
  width: 18px;
  height: 18px;
  stroke: #005bf4;
}
.hero--showcase .hero__free-note strong {
  color: #172033;
  font-size: 17px;
  font-weight: 700;
}

.hero--showcase .hero__assurance {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 14px;
  margin-top: 20px;
}

.hero--showcase .hero__assurance-divider {
  width: 1px;
  height: 28px;
  flex: 0 0 1px;
  background: #005bf4;
}

.hero--showcase .hero__proof {
  width: fit-content;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.hero--showcase .hero__proof-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.hero--showcase .hero__proof-logo svg { width: 100%; height: 100%; }

.hero--showcase .hero__proof-reviews {
  color: #59677b;
  font-size: 15px;
  line-height: 1.2;
}

.hero--showcase .hero__proof-dot {
  width: 3px;
  height: 3px;
  margin-inline: 2px;
  border-radius: 50%;
  background: #aeb8c8;
}

.hero--showcase .hero__right {
  display: block;
  width: min(550px, 100%);
  min-width: 0;
  margin-top: 40px;
  padding: 0;
}

.hero--showcase .hero__benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 42px);
  padding-top: 0;
  border-top: 0;
}

.hero--showcase .hero__benefit {
  position: relative;
  min-height: 0;
  padding: 0;
  gap: 3px;
  overflow: visible;
  color: #172033;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero--showcase .hero__benefit + .hero__benefit {
  padding-left: 0;
  border-left: 0;
}

.hero--showcase .hero__benefit:hover {
  transform: none;
  box-shadow: none;
}

.hero--showcase .hero__benefit svg { display: none; }

.hero--showcase .hero__benefit-val {
  margin: 0;
  color: #172033;
  font-size: clamp(26px, 2.2vw, 33px);
  font-weight: 700;
}

.hero--showcase .hero__benefit-lbl {
  color: #667085;
  font-size: 12px;
  line-height: 1.25;
}

.hero--showcase .hero__benefit--accent {
  color: #172033;
  background: transparent;
}

.hero--showcase .hero__benefit--accent .hero__benefit-val { color: #005bf4; }
.hero--showcase .hero__benefit--accent .hero__benefit-lbl { color: #667085; }

.hero--showcase .hero__benefit--dark {
  color: #172033;
  background: transparent;
}

.hero--showcase .hero__benefit--dark .hero__benefit-lbl { color: #667085; }

@media (max-width: 1180px) {
  .hero--showcase .hero__content {
    grid-template-columns: minmax(520px, 1fr) minmax(340px, 1fr);
    padding-inline: 34px;
  }
  .hero--showcase .hero__headline { font-size: clamp(48px, 5.2vw, 61px); }
  .hero--showcase .hero__right { width: min(520px, 100%); }
  .hero--showcase .hero__assurance {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .hero--showcase .hero__assurance-divider { display: none; }
}

@media (max-width: 1024px) {
  .hero.hero--showcase {
    min-height: 700px;
    height: 100svh;
    padding-top: 68px;
  }
  .hero--showcase .hero__content {
    width: 100%;
    min-height: 0;
    grid-template-columns: minmax(460px, 1fr) minmax(300px, 1fr);
    padding: 0 28px 24px;
  }
  .hero--showcase .hero__left { min-height: 0; padding-top: 32px; }
  .hero--showcase .hero__subtitle { max-width: 470px; font-size: 16px; }
  .hero--showcase .hero__right { display: block; width: min(500px, 100%); padding: 0; }
}

@media (min-width: 769px) and (max-width: 900px) {
  .hero--showcase .hero__content {
    grid-template-columns: minmax(400px, 1fr) minmax(230px, .7fr);
    gap: 18px;
    padding-inline: 24px;
  }
  .hero--showcase .hero__headline { font-size: 47px; }
  .hero--showcase .hero__subtitle { max-width: 420px; font-size: 15px; }
  .hero--showcase .hero__right { width: min(470px, 100%); }
  .hero--showcase .hero__benefit { min-height: 0; }
}

@media (max-width: 768px) {
  .hero.hero--showcase {
    min-height: 820px;
    height: max(820px, 100svh);
    padding: 66px 0 0;
  }

  .hero--showcase::after {
    background:
      linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.78) 46%, rgba(255,255,255,.12) 68%, rgba(255,255,255,.82) 100%),
      linear-gradient(90deg, rgba(255,255,255,.52) 0%, rgba(255,255,255,0) 82%);
  }

  .hero--showcase .hero__backdrop-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% center;
  }

  .hero--showcase .hero__content {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .hero--showcase .hero__left {
    flex: 0 0 auto;
    min-height: 0;
    max-width: 610px;
    padding: 22px 18px 0;
  }

  .hero--showcase .hero__location-badge { margin-bottom: 16px; }
  .hero--showcase .hero__headline {
    max-width: 560px;
    font-size: clamp(27px, 8.2vw, 36px);
    letter-spacing: 0;
  }
  .hero--showcase .hero__subtitle {
    max-width: 550px;
    margin-top: 16px;
    color: #4b5565;
    font-size: 16px;
    line-height: 1.55;
  }
  .hero--showcase .hero__actions {
    width: 100%;
    margin-top: 20px;
    padding: 0;
    flex-direction: row;
    align-items: stretch;
  }
  .hero--showcase .hero__actions .btn {
    width: auto;
    min-width: 0;
    min-height: 52px;
    padding-inline: 19px;
    font-size: 14px;
  }
  .hero--showcase .hero__free-note {
    min-height: 0;
    margin: 0;
    color: #526074;
    font-size: 14px;
    line-height: 1.35;
  }
  .hero--showcase .hero__free-note strong { font-size: 15px; }
  .hero--showcase .hero__assurance {
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
  }
  .hero--showcase .hero__proof {
    width: fit-content;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    gap: 6px;
    background: transparent;
    box-shadow: none;
  }
  .hero--showcase .hero__proof-reviews { font-size: 13px; }

  .hero--showcase .hero__right {
    display: block;
    width: 100%;
    margin-top: 28px;
    padding: 0;
  }
  .hero--showcase .hero__benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
    overflow: visible;
    border-top: 0;
  }
  .hero--showcase .hero__benefit {
    min-width: 0;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .hero--showcase .hero__benefit + .hero__benefit {
    padding-left: 0;
    border-left: 0;
  }
  .hero--showcase .hero__benefit-val { font-size: clamp(21px, 6.1vw, 26px); }
  .hero--showcase .hero__benefit-lbl { font-size: 10px; }
}

@media (max-width: 390px) {
  .hero.hero--showcase { min-height: 860px; height: max(860px, 100svh); }
  .hero--showcase .hero__left { padding-inline: 8px; }
  .hero--showcase .hero__headline { font-size: clamp(27px, 8.2vw, 32px); }
  .hero--showcase .hero__subtitle { font-size: 15px; }
  .hero--showcase .hero__actions { flex-direction: column; gap: 8px; }
  .hero--showcase .hero__actions .btn { width: 100%; }
  .hero--showcase .hero__right { padding: 0; }
}

@media (max-width: 340px) {
  .hero--showcase .hero__proof { width: fit-content; justify-content: flex-start; }
  .hero--showcase .hero__proof-dot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero--showcase .hero__backdrop-video,
  .promo-motion-video,
  .promo-motion-fallback {
    display: none !important;
  }
  .promo-motion-static {
    display: block !important;
    mix-blend-mode: normal;
  }
  html.is-apple-webkit .promo-motion-fallback,
  html.is-firefox .promo-motion-fallback { display: none !important; }
  html.is-apple-webkit .promo-motion-static,
  html.is-firefox .promo-motion-static { display: block !important; }
  .hero--showcase .hero__benefit:hover { transform: none; }
}

/* Mobile hero: the dedicated Comp 1_1 composition sits between the title and copy. */
.hero--showcase .hero__mobile-animation { display: none; }

@media (max-width: 768px) {
  .hero.hero--showcase {
    min-height: 0;
    height: auto;
    background: #fff;
  }

  .hero--showcase::after,
  .hero--showcase .hero__backdrop-video {
    display: none;
  }

  .hero--showcase .hero__content {
    height: auto;
    padding-bottom: 24px;
  }

  .hero--showcase .hero__left {
    width: 100%;
    max-width: none;
  }

  .hero--showcase .hero__mobile-animation {
    display: block;
    width: calc(100% + 36px);
    max-width: none;
    height: auto;
    max-height: 340px;
    aspect-ratio: 16 / 9;
    margin: 8px -18px 2px;
    object-fit: cover;
    object-position: center;
    background: #fff;
    pointer-events: none;
    transform: translateZ(0);
  }

  .hero--showcase .hero__subtitle { margin-top: 0; }

  .hero--showcase .hero__actions {
    flex-flow: row nowrap;
    align-items: stretch;
    gap: 8px;
  }

  .hero--showcase .hero__actions .btn {
    width: auto;
    min-width: 0;
    min-height: 52px;
    padding-inline: 12px;
    gap: 6px;
    font-size: clamp(12px, 3.55vw, 14px);
  }

  .hero--showcase .hero__actions .btn--orange { flex: 1.15 1 0; }
  .hero--showcase .hero__actions .btn--outline-hero { flex: 1 1 0; }
}

@media (max-width: 390px) {
  .hero--showcase .hero__mobile-animation {
    width: calc(100% + 16px);
    margin: 6px -8px 0;
  }

  .hero--showcase .hero__actions {
    flex-direction: row;
    gap: 6px;
  }

  .hero--showcase .hero__actions .btn {
    width: auto;
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero--showcase .hero__mobile-animation { display: none !important; }
}

/* Mobile hero refinement: keep the hero flat and minimal, like the rest of the site. */
.hero--showcase .hero__headline-line { display: block; }

@media (max-width: 768px) {
  .hero.hero--showcase {
    min-height: 100svh;
  }

  .hero--showcase .hero__content {
    min-height: calc(100svh - 66px);
    padding-bottom: 18px;
  }

  .hero--showcase .hero__left {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
  }

  .hero--showcase .hero__mobile-animation {
    height: clamp(280px, calc(100svh - 447px), 400px);
    max-height: 400px;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
  }

  .hero--showcase .hero__subtitle {
    display: none;
  }

  .hero--showcase .hero__headline {
    width: 100%;
    max-width: none;
    font-size: clamp(32px, 9.5vw, 40px);
    line-height: .98;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
  }

  .hero--showcase .hero__headline-line {
    max-width: 100%;
    white-space: nowrap;
  }

  .hero--showcase .hero__actions {
    order: 2;
    margin-top: 14px;
    gap: 8px;
  }

  .hero--showcase .hero__actions .btn {
    min-height: 54px;
    border-radius: 12px;
  }

  .hero--showcase .hero__actions .btn--orange {
    box-shadow: 0 8px 20px rgba(0, 91, 244, .14);
  }

  .hero--showcase .hero__assurance {
    order: 1;
    width: 100%;
    margin-top: 16px;
    margin-bottom: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .hero--showcase .hero__free-note {
    width: auto;
    min-height: 20px;
    flex: 0 1 auto;
    font-size: clamp(12px, 3.3vw, 13px);
    line-height: 1.2;
    white-space: nowrap;
  }

  .hero--showcase .hero__free-note strong { font-size: clamp(12px, 3.3vw, 13px); }
  .hero--showcase .hero__free-note-detail { display: none; }

  .hero--showcase .hero__proof {
    width: fit-content;
    min-height: 20px;
    flex: 0 0 auto;
    padding: 0;
    gap: 5px;
    border: 0;
  }

  .hero--showcase .hero__proof-logo {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
  }

  .hero--showcase .hero__proof-reviews { font-size: clamp(12px, 3.3vw, 13px); }

  .hero--showcase .hero__right {
    order: 3;
    width: 100%;
    margin-top: 20px;
    padding-top: 0;
    border-top: 0;
  }

  .hero--showcase .hero__benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .hero--showcase .hero__benefit {
    min-width: 0;
    padding: 0 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
  }

  .hero--showcase .hero__benefit:first-child { padding-left: 6px; }

  .hero--showcase .hero__benefit + .hero__benefit {
    padding-left: 6px;
    border-left: 0;
  }

  .hero--showcase .hero__benefit-val {
    width: 100%;
    font-size: clamp(19px, 5.9vw, 25px);
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-align: center;
  }

  .hero--showcase .hero__benefit--dark .hero__benefit-val {
    font-size: clamp(17px, 5vw, 22px);
    letter-spacing: 0;
  }

  .hero--showcase .hero__benefit-lbl {
    width: 100%;
    max-width: none;
    font-size: clamp(9px, 2.5vw, 10px);
    line-height: 1.25;
    text-align: center;
  }
}

@media (min-width: 400px) and (max-width: 768px) and (min-height: 880px) {
  .hero--showcase .hero__mobile-animation {
    height: clamp(460px, calc(100svh - 420px), 540px);
    max-height: 540px;
  }
}

@media (max-width: 390px) {
  .hero--showcase .hero__headline {
    font-size: clamp(27px, 8.2vw, 32px);
    letter-spacing: 0;
  }

  .hero--showcase .hero__benefit,
  .hero--showcase .hero__benefit + .hero__benefit { padding-inline: 4px; }
}

@media (max-width: 340px) {
  .hero--showcase .hero__headline {
    font-size: 27px;
    letter-spacing: 0;
  }

  .hero--showcase .hero__proof-reviews { font-size: 12px; }
  .hero--showcase .hero__benefit-val { font-size: 17px; }
  .hero--showcase .hero__benefit-lbl { font-size: 9px; }
}

/*
 * Keep the editorial two-line headline at every viewport width.
 * Container units keep the two-line headline fitted to the actual text column,
 * including the narrow 391–430px range where viewport-based sizing overflowed.
 */
.hero--showcase .hero__left {
  container-type: inline-size;
}

.hero--showcase .hero__headline {
  font-size: clamp(25px, 8.45cqi, 62px);
  letter-spacing: 0;
}

.hero--showcase .hero__headline-line {
  display: block;
  max-width: 100%;
  white-space: nowrap;
}
