/* Адаптивные стили — все медиазапросы проекта
   Три уровня:
   · Телефон — до 767px
   · Планшет — 768px–1199px
   · ПК — от 1200px
*/

/* ────────────────────────────────────────
   ПЛАНШЕТ: 768px – 1199px
──────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1199px) {

  :root {
    --text-hero: clamp(36px, 6vw, 56px);
    --text-4xl: clamp(32px, 5vw, 48px);
    --text-3xl: clamp(28px, 4vw, 40px);
    --text-2xl: clamp(22px, 3.2vw, 30px);
    --layout-section-y: var(--tablet-section-y);
    --layout-container-padding: 0 var(--tablet-gutter);
  }

  h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
  h2 { font-size: clamp(1.625rem, 3.5vw, 2.75rem); }
  h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

  .header__logo:not(.header__logo--footer) .header__logo-wordmark {
    font-size: 1rem;
  }

  .header__logo:not(.header__logo--footer) {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch-min);
    padding: 4px 0;
    box-sizing: content-box;
  }

  .footer__social {
    width: var(--touch-min);
    height: var(--touch-min);
  }

  /* Calculator: общие touch-targets на планшете */
  .calc__step-nav-btn {
    min-width: var(--touch-min);
    min-height: var(--touch-min);
  }

  .calc__sidebar-item--clickable {
    min-height: var(--touch-min);
  }

  /* ── SEO-лендинги + privacy (фаза 3) ── */
  .seo-landing,
  .privacy-page {
    padding: clamp(72px, 9vw, 92px) 0 clamp(40px, 5vw, 56px);
  }

  .page-title {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    line-height: 1.15;
    margin-bottom: 14px;
    overflow-wrap: anywhere;
  }

  .seo-landing__breadcrumb {
    font-size: 0.8125rem;
    line-height: 1.45;
    margin-bottom: 14px;
    overflow-wrap: anywhere;
  }

  .seo-landing__breadcrumb-list {
    overflow-wrap: anywhere;
  }

  .seo-landing__breadcrumb-list a {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch-min);
    padding: 4px 2px;
    margin: -4px -2px;
  }

  .seo-landing__intro {
    font-size: var(--text-base);
    line-height: 1.55;
    max-width: 100%;
    margin-bottom: 28px;
  }

  .section-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    line-height: 1.25;
    margin: 28px 0 12px;
    overflow-wrap: anywhere;
  }

  .seo-landing__faq > .section-subtitle,
  .seo-landing__related > .section-subtitle,
  .privacy-page__content > .section-subtitle:first-child,
  .seo-landing__content > .section-subtitle:first-child {
    margin-top: 0;
  }

  .seo-landing__content p {
    font-size: var(--text-base);
    line-height: 1.55;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .seo-landing__cta {
    margin: 32px 0;
    padding: 24px;
    border-radius: var(--tablet-radius);
    max-width: 100%;
  }

  .seo-landing__cta-copy .text-body {
    font-size: var(--text-base);
    line-height: 1.5;
  }

  .seo-landing__cta-btn,
  .seo-landing__cta .btn {
    min-height: var(--touch-primary);
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .seo-landing__faq {
    margin-top: 32px;
    max-width: 100%;
  }

  .seo-landing__faq h2 {
    margin-bottom: 14px;
  }

  .seo-landing__faq summary {
    min-height: var(--touch-min);
    padding: 14px 0;
    font-size: var(--text-base);
    line-height: 1.4;
  }

  .seo-landing__faq summary,
  .seo-landing__faq p {
    overflow-wrap: anywhere;
  }

  .seo-landing__faq p {
    font-size: var(--text-sm);
    line-height: 1.5;
    padding-bottom: 16px;
  }

  .seo-landing__related {
    margin-top: 40px;
    max-width: 100%;
  }

  .seo-landing__related-link {
    min-height: var(--touch-min);
    font-size: var(--text-base);
    overflow-wrap: anywhere;
  }

  .privacy-page__updated {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 32px;
  }

  .privacy-page__content p,
  .privacy-page__content li,
  .privacy-page__content dd {
    font-size: var(--text-base);
    line-height: 1.55;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .privacy-page__content ul,
  .privacy-page__content ol {
    padding-left: 22px;
  }

  .privacy-page__content dl {
    max-width: 100%;
  }

  .privacy-page__back {
    margin-top: 40px;
  }

  .privacy-page__back .btn {
    min-height: var(--touch-primary);
    justify-content: center;
  }

  .seo-landing__content table,
  .privacy-page__content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .seo-landing__content pre,
  .privacy-page__content pre {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* .section не дублирует вертикальные отступы */
  .seo-landing.section,
  .privacy-page.section {
    padding-block: 0;
  }

  .seo-landing,
  .privacy-page {
    overflow-x: clip;
    max-width: 100%;
  }

  .seo-landing__content a,
  .privacy-page__content a {
    overflow-wrap: anywhere;
  }

  .privacy-page__content dt {
    font-size: var(--text-base);
    margin-top: 16px;
  }

  .privacy-page__content dd {
    margin-bottom: 8px;
  }

  /* Минимальный футер SEO/privacy */
  .footer.section {
    padding-block: clamp(32px, 5vw, 48px);
  }

  .footer__bottom {
    gap: 12px;
  }

  .footer__bottom a {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch-min);
    padding: 8px 4px;
    overflow-wrap: anywhere;
  }

  /* Hero — планшет: общая база (layout narrow/wide ниже) */
  .hero {
    min-height: auto;
    padding-top: clamp(72px, 10vw, 88px);
    justify-content: flex-start;
  }

  .hero__inner {
    padding-block: clamp(32px, 5vw, 56px);
  }

  .hero__meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .hero__meta-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
  }

  .hero__meta-stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 16px;
    border-radius: var(--tablet-radius);
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    text-align: left;
  }

  .hero__meta-divider {
    display: none;
  }

  .hero__meta-num {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-variant-numeric: tabular-nums;
  }

  .hero__meta-label {
    font-size: 0.625rem;
    line-height: 1.35;
  }

  .hero__title-wrap {
    min-height: auto;
  }

  .hero__title-line {
    font-size: clamp(2.25rem, 4.8vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero__description {
    font-size: 1.0625rem;
    line-height: 1.6;
    max-width: 52ch;
  }

  .hero__actions {
    gap: 12px;
  }

  .hero__actions .btn {
    min-height: var(--touch-primary);
    padding: 14px 24px;
  }

  .hero__visual {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }

  .hero__magazine {
    width: 100%;
    aspect-ratio: 16 / 11;
  }

  .hero__magazine-frame {
    border-radius: var(--tablet-radius);
  }

  .hero__trust-panel {
    gap: 12px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .hero__bento-small {
    gap: 10px;
  }

  .hero__bento-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 2px;
    padding: 16px 18px;
    min-height: var(--touch-min);
  }

  .hero__bento-card svg {
    grid-row: 1 / 3;
    width: 22px;
    height: 22px;
  }

  .hero__bento-num {
    grid-column: 2;
    font-size: 1.0625rem;
  }

  .hero__bento-text {
    grid-column: 2;
    font-size: 0.8125rem;
  }

  .hero__tag-row {
    gap: 8px;
  }

  .hero__trust-panel .hero__tag-row .tag {
    min-height: var(--touch-min);
    padding: 8px 14px;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
  }

  .hero__trust-panel .hero__tag-row .tag svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  @media (hover: none) {
    .hero__magazine-frame:hover,
    .hero__preview-card:hover {
      transform: none;
    }
  }

  /* Stats — карточный стиль */
  .stats__row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-items: stretch;
  }

  .stats__divider { display: none; }

  .stats__item {
    padding: 20px 24px;
    border-radius: var(--tablet-radius);
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
  }

  .stats__cta {
    grid-column: 1 / -1;
    padding: 0;
    margin-top: 4px;
    text-align: center;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .stats__cta .btn {
    min-height: var(--touch-primary);
  }

  /* Bento */
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .bento-card {
    padding: 20px;
    overflow-wrap: anywhere;
  }

  .bento-card--large { grid-column: span 2; }
  .bento-card--wide { grid-column: span 2; }

  .bento-card__cta {
    min-height: var(--touch-min);
  }

  /* Price formula banner */
  .price-formula-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 24px;
    border-radius: var(--tablet-radius);
  }

  .price-formula-calc {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .price-formula-calc__result,
  .price-formula-calc__part {
    overflow-wrap: anywhere;
  }

  .price-formula-btn {
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
    min-height: var(--touch-primary);
  }

  /* Portfolio */
  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .portfolio-lightbox__content {
    max-width: min(520px, 90vw);
  }

  /* CTA — планшет: stack */
  .cta-final__inner {
    padding: clamp(48px, 8vw, 72px) clamp(24px, 5vw, 48px);
  }

  .cta-final__body {
    grid-template-columns: 1fr;
    gap: clamp(20px, 3vw, 28px);
  }

  .cta-final__copy {
    text-align: center;
  }

  .cta-final__headline {
    max-width: none;
    overflow-wrap: anywhere;
    font-size: clamp(2rem, 7vw, 2.75rem);
  }

  .cta-final__lede {
    overflow-wrap: anywhere;
    max-width: 36ch;
    margin-inline: auto;
  }

  .cta-final__status {
    justify-content: center;
  }

  .cta-final__chips {
    justify-content: center;
  }

  .cta-final__chip {
    flex: 1 1 calc(33.33% - 8px);
    min-width: 88px;
    align-items: center;
    text-align: center;
  }

  .cta-final__ticket {
    text-align: center;
    align-items: center;
  }

  .cta-final__ticket-price {
    justify-content: center;
  }

  .cta-final__alt-link {
    justify-content: center;
    min-height: var(--touch-min);
  }

  /* FAQ */
  .faq__list { max-width: 100%; }

  .faq__question {
    padding: 20px 24px;
    min-height: var(--touch-min);
    align-items: center;
  }

  .faq__question-text {
    overflow-wrap: anywhere;
  }

  .faq__answer {
    padding: 0 24px 20px;
    overflow-wrap: anywhere;
  }

  /* Footer — планшет: общая база (layout narrow/wide ниже) */
  .footer {
    position: relative;
    z-index: 1;
    padding: clamp(48px, 7vw, 72px) 0 clamp(32px, 5vw, 48px);
  }

  .footer::before {
    height: clamp(48px, 8vw, 72px);
  }

  body.cookie-banner-visible .footer {
    padding-bottom: calc(clamp(32px, 5vw, 48px) + var(--cookie-banner-offset, 0px) + var(--safe-bottom));
  }

  .footer__top {
    gap: clamp(28px, 4vw, 36px);
    margin-bottom: clamp(36px, 5vw, 48px);
    padding-bottom: clamp(36px, 5vw, 48px);
  }

  .footer__social {
    width: var(--touch-min);
    height: var(--touch-min);
  }

  .footer__social svg {
    width: 18px;
    height: 18px;
  }

  .footer__contact-item,
  .footer__links a {
    min-height: var(--touch-min);
    align-items: center;
  }

  .footer__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(12px, 2vw, 20px);
    align-content: start;
  }

  .footer__links h4 {
    grid-column: 1 / -1;
    margin-bottom: 12px;
  }

  .footer__links a {
    border-bottom: none;
    padding: 8px 0;
  }

  .footer__contacts h4 {
    margin-bottom: 12px;
  }

  .footer__contact-item {
    padding: 10px 0;
  }

  .footer__contact {
    padding: clamp(20px, 3vw, 24px) clamp(20px, 4vw, 28px);
    background: color-mix(in srgb, var(--color-text-inverse) 4%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-text-inverse) 10%, transparent);
    border-radius: var(--radius-lg);
  }

  .footer__contact h4 {
    margin: 0 0 6px;
  }

  .footer__contact p {
    margin: 0;
    line-height: 1.5;
    color: color-mix(in srgb, var(--color-text-inverse) 55%, transparent);
  }

  .footer__contact-btn {
    min-height: var(--touch-primary);
    padding: 14px 24px;
    white-space: nowrap;
  }

  .footer__legal {
    margin-bottom: clamp(24px, 4vw, 32px);
    padding-bottom: clamp(24px, 4vw, 32px);
  }

  .footer__legal-line {
    overflow-wrap: anywhere;
    line-height: 1.55;
  }

  .footer__bottom {
    gap: 12px 24px;
  }

  .footer__bottom p,
  .footer__bottom a {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch-min);
    padding: 6px 0;
    overflow-wrap: anywhere;
  }
}

/* ────────────────────────────────────────
   ШАПКА — планшет узкий (бургер): 768–900px
──────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 900px) {

  .header {
    padding: calc(12px + var(--safe-top)) 0 12px;
  }

  .header__inner {
    height: 56px;
    gap: 12px;
  }

  .header__logo:not(.header__logo--footer) .header__logo-wordmark {
    display: inline-flex;
    font-size: 0.875rem;
  }

  .header__logo-mark {
    height: 32px;
    width: 42px;
  }

  .header__nav,
  .header__actions {
    display: none;
  }

  .header__mobile-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .header__mobile-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-primary);
    padding: 10px 16px;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
  }

  .header__burger {
    display: flex;
  }

  /* Плавающая CTA при скрытой шапке */
  .floating-cta {
    display: block;
    left: calc(var(--tablet-gutter) + var(--safe-left));
    right: auto;
    bottom: calc(24px + var(--safe-bottom));
    z-index: calc(var(--z-header) - 1);
  }

  body.cookie-banner-visible .floating-cta {
    bottom: calc(var(--cookie-banner-offset, 148px) + var(--safe-bottom));
  }

  body.is-in-calculator .floating-cta,
  body.is-in-post-calc .floating-cta,
  body.is-near-footer .floating-cta {
    display: none;
  }

  .floating-cta__link {
    min-height: var(--touch-primary);
    padding: 12px 18px;
    font-size: 0.8125rem;
  }

  /* Drawer на планшете */
  .mobile-menu {
    max-height: 75vh;
    padding: 28px 32px calc(28px + var(--safe-bottom));
  }

  .mobile-menu__link {
    padding: 12px 0;
    min-height: var(--touch-min);
    align-items: center;
  }

  .mobile-menu__contact {
    min-height: var(--touch-primary);
    padding: 14px 0;
  }

  /* ── Фаза 2: Hero / Process / Calculator (узкий планшет) ── */

  .hero__inner {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vw, 28px);
    padding-block: clamp(28px, 4vw, 48px);
  }

  .hero__meta,
  .hero__content {
    display: contents;
  }

  .hero__title-wrap,
  .hero__visual {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    max-width: 100%;
  }

  .hero__meta .section-label {
    order: 1;
  }

  .hero__title-wrap {
    order: 2;
  }

  .hero__meta-stats {
    order: 3;
    width: 100%;
  }

  .hero__description {
    order: 4;
    max-width: none;
  }

  .hero__actions {
    order: 5;
  }

  .hero__visual {
    order: 6;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .hero__magazine {
    aspect-ratio: 16 / 10;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
    min-height: var(--touch-primary);
  }

  .hero__trust-panel .hero__tag-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero__trust-panel .hero__tag-row .tag {
    flex: 1 1 calc(50% - 4px);
    width: auto;
    justify-content: flex-start;
  }

  .process__timeline {
    grid-template-columns: 1fr;
    border-radius: var(--tablet-radius);
  }

  .process__step {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    border-top: none;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    text-align: left;
  }

  .process__step:last-child { border-bottom: none; }

  .process__step-connector { display: none; }

  .process__step-dot {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .process__step-content {
    text-align: left;
    flex: 1;
    padding: 0;
  }

  /* Calculator: tabletCompact — split + touch chrome */
  .calc__main {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 0;
    align-items: start;
    border-radius: var(--tablet-radius);
    overflow: hidden;
    --calc-node-size: 28px;
  }

  .calc__progress {
    grid-column: 1 / -1;
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    margin: 0;
    padding: 14px 16px 16px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface-muted);
    border-radius: 0;
  }

  .calc__main-body {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    overflow-x: clip;
  }

  .calc__main .calc__sidebar {
    display: block;
    grid-column: 2;
    grid-row: 2;
    position: sticky;
    top: calc(72px + 8px);
    align-self: start;
    padding: 16px;
    margin: 0;
    border-radius: 0;
    border-top: none;
    border-left: 1px solid color-mix(in srgb, var(--color-gold) 18%, transparent);
  }

  .calc__sidebar--partial .calc__sidebar-disclaimer,
  .calc__sidebar--partial .calc__phone-link {
    display: none;
  }

  .calc__sidebar--partial .calc__sidebar-actions .tg-consent-hint,
  .calc__sidebar--partial .calc__sidebar-actions .tg-calc-hint {
    display: none;
  }

  .product-grid--picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
  }

  .product-grid--picker .product-card {
    flex: none;
    min-width: 0;
    max-width: none;
    width: auto;
  }

  .product-grid--picker .product-card:nth-child(5) {
    grid-column: 1 / -1;
    width: min(100%, 260px);
    justify-self: center;
  }

  .product-grid--picker .product-card__inner {
    min-height: 132px;
    padding: 14px 12px 12px;
    gap: 8px;
  }

  .product-grid--picker .product-card__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
  }

  .product-grid--picker .product-card__title {
    font-size: 0.875rem;
  }

  .product-grid--picker .product-card__desc {
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .product-grid--picker .product-card__price {
    font-size: 0.8125rem;
  }

  .calc__type-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .calc__type-grid--3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .calc__fields--two-cols {
    grid-template-columns: 1fr;
  }

  .calc__step {
    padding: 16px 20px;
  }

  #calculator .calc__step-actions:has(.calc__prev-btn):has(.calc__next-btn) {
    display: grid;
    grid-template-columns: minmax(108px, 0.38fr) minmax(0, 1fr);
    gap: 10px;
  }

  #calculator .calc__step-actions .calc__prev-btn,
  #calculator .calc__step-actions .calc__next-btn {
    min-height: var(--touch-primary);
    width: auto;
  }

  body.is-in-calculator #calculator {
    padding-bottom: 0;
  }

  .calc__main-body .calc__step:not(.calc__step--result) .calc__step-actions {
    position: sticky;
    bottom: 0;
    z-index: 8;
    margin-top: 12px;
    padding-top: 10px;
    padding-bottom: calc(10px + var(--safe-bottom));
    background: linear-gradient(
      to top,
      var(--calc-action-bar-bg) 72%,
      color-mix(in srgb, var(--calc-action-bar-bg) 85%, transparent) 88%,
      transparent
    );
    border-top: none;
  }

  #calculator .calc__main-body .calc__step:not(.calc__step--result) .calc__step-actions {
    padding-bottom: calc(10px + var(--safe-bottom));
  }

  .calc__step--result .calc__result-footer {
    margin-top: 0;
    padding-top: 12px;
    padding-bottom: calc(12px + var(--safe-bottom));
    border-top: 1px solid var(--color-border);
    position: sticky;
    bottom: 0;
    z-index: 8;
    background: linear-gradient(
      to top,
      var(--color-surface-elevated) 78%,
      color-mix(in srgb, var(--color-surface-elevated) 90%, transparent) 92%,
      transparent
    );
  }

  /* SEO: CTA на всю ширину (узкий планшет) */
  .seo-landing__cta .btn,
  .privacy-page__back .btn {
    width: 100%;
  }

  /* Footer — узкий планшет */
  .footer__top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand brand"
      "contacts links"
      "contact contact";
    gap: 32px 28px;
    align-items: start;
  }

  .footer__brand {
    grid-area: brand;
    display: grid;
    grid-template-columns: minmax(148px, auto) 1fr;
    grid-template-areas:
      "logo desc"
      "logo socials";
    gap: 12px 28px;
    align-items: start;
  }

  .footer__brand .header__logo--footer {
    grid-area: logo;
    align-self: center;
  }

  .footer__brand-desc {
    grid-area: desc;
    max-width: none;
    margin: 0;
  }

  .footer__socials {
    grid-area: socials;
  }

  .footer__contacts { grid-area: contacts; }
  .footer__links { grid-area: links; }
  .footer__contact { grid-area: contact; }

  .footer__contact {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 6px 24px;
    align-items: center;
  }

  .footer__contact h4 {
    grid-column: 1;
    grid-row: 1;
  }

  .footer__contact p {
    grid-column: 1;
    grid-row: 2;
  }

  .footer__contact-btn {
    grid-column: 2;
    grid-row: 1 / -1;
    width: auto;
    min-width: min(100%, 240px);
    justify-self: end;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 8px;
  }

  @media (max-width: 834px) {
    .footer__brand {
      grid-template-columns: 1fr;
      grid-template-areas:
        "logo"
        "desc"
        "socials";
      gap: 16px;
      text-align: center;
    }

    .footer__brand .header__logo--footer {
      justify-self: center;
    }

    .footer__socials {
      justify-content: center;
    }

    .footer__contact {
      grid-template-columns: 1fr;
      grid-template-rows: auto auto auto;
      gap: 12px;
      text-align: center;
    }

    .footer__contact h4,
    .footer__contact p {
      grid-column: 1;
    }

    .footer__contact h4 { grid-row: 1; }
    .footer__contact p { grid-row: 2; }

    .footer__contact-btn {
      grid-column: 1;
      grid-row: 3;
      width: 100%;
      justify-self: stretch;
    }
  }

}

/* ────────────────────────────────────────
   ШАПКА — планшет широкий (сжатая): 901–1199px
──────────────────────────────────────── */
@media (min-width: 901px) and (max-width: 1199px) {

  .header {
    padding: calc(14px + var(--safe-top)) 0 14px;
  }

  .header__inner {
    gap: 12px;
  }

  .header__logo:not(.header__logo--footer) .header__logo-wordmark {
    font-size: 0.9375rem;
  }

  .header__logo-mark {
    height: 34px;
    width: 44px;
  }

  .header__nav {
    display: flex;
    flex: 1;
    justify-content: center;
    padding: 4px;
    gap: 2px;
    min-width: 0;
  }

  /* Только 3 ключевых пункта; остальные — в drawer */
  .header__nav-link:nth-child(n + 4) {
    display: none;
  }

  .header__nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-min);
    padding: 8px 14px;
  }

  .header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .header__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    padding: 0;
    border-radius: var(--radius-full);
    background: rgba(28, 25, 23, 0.05);
    border: 1px solid var(--color-border);
    flex-shrink: 0;
  }

  .header__phone .contact-phone__text {
    display: none;
  }

  .header__phone i {
    width: 18px;
    height: 18px;
  }

  .header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: var(--touch-min);
    padding: 10px 14px;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  /* Короткая подпись Telegram */
  .header__cta-label--full {
    display: none;
  }

  .header__cta-label--short {
    display: inline;
  }

  .header__mobile-bar {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .header__mobile-cta {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .mobile-menu {
    max-height: 70vh;
    padding: 28px 40px calc(28px + var(--safe-bottom));
  }

  /* ── Фаза 2: Hero / Bento / Calculator / Process (широкий планшет) ── */

  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    grid-template-rows: auto auto auto;
    gap: 20px clamp(24px, 3vw, 40px);
    align-items: start;
    padding-block: clamp(36px, 5vw, 56px);
  }

  .hero__meta {
    grid-column: 1 / -1;
    grid-row: 1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
  }

  .hero__meta .section-label {
    flex: 0 1 auto;
    margin: 0;
  }

  .hero__meta-stats {
    flex: 1 1 380px;
    max-width: 500px;
    margin-left: auto;
  }

  .hero__title-wrap {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
  }

  .hero__content {
    grid-column: 1;
    grid-row: 3;
    max-width: 100%;
    padding-bottom: 8px;
  }

  .hero__visual {
    grid-column: 2;
    grid-row: 2 / 4;
    max-width: none;
    width: 100%;
    justify-self: stretch;
    position: sticky;
    top: calc(76px + var(--safe-top));
  }

  .hero__magazine {
    aspect-ratio: 4 / 3;
  }

  .hero__title-line {
    font-size: clamp(2.5rem, 4.2vw, 3.25rem);
  }

  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .hero__actions .btn {
    width: auto;
    flex: 0 1 auto;
    min-height: var(--touch-primary);
  }

  .hero__trust-panel .hero__tag-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero__trust-panel .hero__tag-row .tag {
    flex: 1 1 calc(50% - 4px);
    width: auto;
    justify-content: flex-start;
  }

  /* Footer — широкий планшет */
  .footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr) minmax(0, 0.95fr);
    grid-template-areas:
      "brand contacts links"
      "cta cta cta";
    gap: 32px clamp(24px, 3vw, 36px);
    align-items: start;
  }

  .footer__brand {
    grid-area: brand;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .footer__brand-desc {
    max-width: none;
    margin: 0;
  }

  .footer__contacts { grid-area: contacts; }
  .footer__links { grid-area: links; }

  .footer__contact {
    grid-area: cta;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 28px;
    align-items: center;
  }

  .footer__contact h4 {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: center;
    margin: 0;
    padding-right: 28px;
    border-right: 1px solid color-mix(in srgb, var(--color-text-inverse) 10%, transparent);
  }

  .footer__contact p {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: center;
    max-width: 42ch;
  }

  .footer__contact-btn {
    grid-column: 3;
    grid-row: 1 / -1;
    width: auto;
    min-width: 240px;
    margin-top: 0;
    justify-self: end;
  }

  .footer__bottom {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  @media (max-width: 1024px) {
    .footer__contact {
      grid-template-columns: 1fr auto;
      grid-template-rows: auto auto auto;
      gap: 12px 20px;
    }

    .footer__contact h4 {
      grid-column: 1 / -1;
      grid-row: 1;
      padding-right: 0;
      border-right: none;
    }

    .footer__contact p {
      grid-column: 1;
      grid-row: 2;
      max-width: none;
    }

    .footer__contact-btn {
      grid-column: 1 / -1;
      grid-row: 3;
      width: 100%;
      justify-self: stretch;
    }
  }

  .bento-card--large {
    grid-row: span 2;
    min-height: 200px;
  }

  .price-formula-banner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
  }

  .price-formula-calc {
    flex: 1 1 200px;
    justify-content: flex-start;
  }

  .price-formula-btn {
    width: auto;
    max-width: none;
    margin-inline: 0;
    flex-shrink: 0;
  }

  /* Calculator: tabletSplit — desktop-like grid */
  .calc__main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 0;
    align-items: start;
    --calc-node-size: 28px;
  }

  .calc__progress {
    grid-column: 1 / -1;
    position: static;
    padding: 16px 24px;
    margin: 0;
    border-radius: 0;
  }

  .calc__main-body {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    overflow-x: clip;
  }

  .calc__main .calc__sidebar {
    display: block;
    grid-column: 2;
    grid-row: 2;
    position: sticky;
    top: 88px;
    align-self: start;
    padding: 20px;
    margin: 0;
    border-top: none;
  }

  .calc__main-body .calc__step:not(.calc__step--result) .calc__step-actions {
    position: static;
    margin-top: 20px;
    padding-top: 20px;
    padding-bottom: 0;
    background: none;
    border-top: 1px solid var(--color-border);
  }

  .calc__step--result .calc__result-footer {
    position: static;
    background: none;
    padding-bottom: 0;
  }

  #calculator .calc__step-actions:has(.calc__prev-btn):has(.calc__next-btn) {
    display: grid;
    grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
    gap: 12px;
  }

  #calculator .calc__step-actions .calc__prev-btn,
  #calculator .calc__step-actions .calc__next-btn {
    min-height: var(--touch-min);
    width: auto;
  }

  .product-grid--picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
  }

  .product-grid--picker .product-card {
    flex: none;
    min-width: 0;
    max-width: none;
    width: auto;
  }

  .product-grid--picker .product-card:nth-child(5) {
    grid-column: 1 / -1;
    width: min(100%, 280px);
    justify-self: center;
  }

  .product-grid--picker .product-card__inner {
    min-height: 140px;
    padding: 16px 14px 14px;
  }

  .product-grid--picker .product-card__icon {
    width: 42px;
    height: 42px;
  }

  .calc__type-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .calc__type-grid--3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .calc__fields--two-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .calc__step {
    padding: 20px 24px;
  }

  .calc__sidebar-cta {
    min-height: var(--touch-min);
  }

  .process__timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .process__step {
    padding: 28px 20px;
    border-top: none;
  }

  .process__step:nth-child(3) { border-right: none; }

  .process__step:nth-child(4),
  .process__step:nth-child(5) {
    border-top: 1px solid var(--color-border);
  }

  .process__step-connector { display: none; }

  /* CTA — широкий планшет: split layout */
  .cta-final__body {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(28px, 4vw, 40px);
    align-items: end;
  }

  .cta-final__copy {
    text-align: left;
  }

  .cta-final__headline {
    max-width: 12ch;
  }

  .cta-final__lede {
    max-width: 28ch;
    margin-inline: 0;
  }

  .cta-final__status {
    justify-content: flex-start;
  }

  .cta-final__chips {
    justify-content: flex-end;
  }

  .cta-final__chip {
    flex: 0 1 auto;
    align-items: flex-start;
    text-align: left;
  }

  .cta-final__ticket {
    text-align: left;
    align-items: flex-start;
  }

  .cta-final__ticket-price {
    justify-content: flex-start;
  }

  .cta-final__alt-link {
    justify-content: flex-start;
  }

  /* SEO: CTA компактная кнопка (широкий планшет) */
  .seo-landing__cta .btn {
    width: auto;
    min-width: min(100%, 300px);
    padding-inline: 28px;
  }

  .privacy-page__back .btn {
    width: auto;
    min-width: min(100%, 240px);
  }

  .seo-landing__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px 24px;
  }

  .seo-landing__cta-copy {
    flex: 1 1 280px;
    margin-bottom: 0;
  }

  .calc__phone-link {
    min-height: var(--touch-min);
    padding: 10px 12px;
  }

  /* Читаемая ширина колонки на широком планшете */
  .seo-landing__intro,
  .seo-landing__content,
  .seo-landing__cta,
  .seo-landing__faq,
  .seo-landing__related,
  .privacy-page__content,
  .privacy-page__back {
    max-width: 720px;
  }

}

/* ────────────────────────────────────────
   ПК (ДЕСКТОП): от 1200px
──────────────────────────────────────── */
@media (min-width: 1200px) {

  :root {
    --text-hero: clamp(52px, 8vw, 96px);
    --text-4xl: clamp(42px, 6vw, 72px);
    --text-3xl: clamp(32px, 4.5vw, 48px);
    --text-2xl: clamp(24px, 3vw, 32px);
    --text-xl: clamp(20px, 2.2vw, 24px);
    --text-lg: clamp(17px, 1.8vw, 20px);
    --text-base: clamp(15px, 1.6vw, 17px);
    --layout-container-padding: 0 var(--desktop-gutter, clamp(16px, 4vw, 40px));
    --layout-section-y: clamp(var(--space-8), 4vw, 3.5rem);
  }

  h1 { font-size: clamp(3rem, 6vw, 5.5rem); }
  h2 { font-size: clamp(2.25rem, 4.5vw, 4rem); }
  h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }

  .header__mobile-bar,
  .header__burger {
    display: none;
  }

}

/* ────────────────────────────────────────
   ТЕЛЕФОН: до 767px
──────────────────────────────────────── */
@media (max-width: 767px) {

  :root {
    --text-hero: clamp(32px, 9vw, 44px);
    --text-4xl: clamp(28px, 8vw, 40px);
    --text-3xl: clamp(24px, 7vw, 32px);
    --text-2xl: clamp(20px, 5.5vw, 26px);
    --text-xl: clamp(18px, 4.5vw, 22px);
    --text-lg: clamp(16px, 4vw, 18px);
    --text-base: clamp(15px, 3.8vw, 16px);
    --layout-container-padding: 0 var(--mobile-gutter, 16px);
    --layout-section-y: 32px;
    --layout-header-gap: var(--space-5);
    --layout-block-gap: var(--space-6);
    --mobile-gutter: 16px;
    --mobile-content-target: 356px;
    --touch-min: 44px;
    --touch-primary: 48px;
    --mobile-radius: 12px;
    --mobile-section-gap: 12px;
    --mobile-bp-narrow: 389px;
    --mobile-bp-ultra: 360px;
    --calc-inner-target: 324px;
    --calc-touch-min: var(--touch-min);
    --calc-btn-h: var(--touch-primary);
    --calc-btn-h-sm: var(--touch-min);
    --calc-btn-radius: var(--mobile-radius);
    --card-radius: 14px;
  }

  h1 { font-size: clamp(1.75rem, 8vw, 2.5rem); }

  /* ── Mobile Design System (Phase 0) ── */

  .section,
  main > section {
    overflow-x: clip;
    max-width: 100%;
    padding-block: var(--layout-section-y);
  }

  /* ── Phase 5: Visual polish ── */

  h2 {
    font-size: clamp(1.5rem, 6vw, 2.25rem);
    letter-spacing: -0.02em;
  }

  h3 { font-size: clamp(1.125rem, 4.5vw, 1.5rem); }

  .section-label {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
  }

  .section-step-header__desc,
  .section-header p,
  .bento-card p,
  .process__step-content p,
  .faq__answer,
  .cta-final__lede,
  .seo-landing__intro,
  .seo-landing__content p {
    font-size: 0.875rem;
  }

  .section-step-header {
    gap: 12px;
    margin-bottom: var(--space-6);
    padding-bottom: 16px;
  }

  .section-step-header__icon {
    width: 44px;
    height: 44px;
  }

  .section-step-header__icon svg,
  .section-step-header__icon i {
    width: 24px;
    height: 24px;
  }

  .section-step-header__body h2 {
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .bento-card,
  .bento-card--large,
  .bento-card--small,
  .faq__item,
  .price-formula-banner,
  .stats__item,
  .process__timeline,
  .portfolio__card,
  .cta-final__inner,
  .seo-landing__cta {
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
  }

  .bento-card:hover {
    box-shadow: var(--card-shadow);
  }

  .faq__item[open] {
    box-shadow: var(--card-shadow);
  }

  .bento-card__cta:active,
  .btn:active,
  .faq__question:active,
  .portfolio__card:active,
  .process__step:active {
    transform: scale(0.98);
  }

  .product-card__price,
  .calc__type-price,
  .calc__result-row-price,
  .calc__result-row-formula,
  .calc__result-row-name,
  .calc__sidebar-item-price,
  .seo-landing__breadcrumb-list {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .btn {
    text-transform: none;
    border-radius: var(--mobile-radius);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .section-header {
    margin-bottom: var(--space-6);
  }

  .section-padding {
    padding-inline: clamp(var(--mobile-gutter), 4vw, 20px);
  }

  .container {
    padding-inline: clamp(var(--mobile-gutter), 4vw, 20px);
  }

  /* Единый gap между карточками на мобайле (product-grid имеет собственный override внутри этого media) */
  .bento-grid,
  .portfolio__grid,
  .calc__complexity-grid,
  .calc__options-grid,
  .calc__type-grid {
    gap: 12px;
  }

  h1 { letter-spacing: -0.03em; }

  .btn {
    padding: 14px 20px;
    min-height: 48px;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
  }

  /* Mobile menu — bottom drawer */
  .mobile-menu {
    padding: 20px var(--mobile-gutter) calc(20px + var(--safe-bottom));
    max-height: 85vh;
  }

  .mobile-menu__link {
    align-items: center;
    min-height: var(--touch-primary);
    padding: 12px 4px;
    border-radius: var(--mobile-radius);
  }

  .mobile-menu__link:hover {
    padding-left: 4px;
  }

  .mobile-menu__contact {
    min-height: var(--touch-primary);
    padding: 12px 4px;
    border-radius: var(--mobile-radius);
  }

  .mobile-menu__contacts .btn {
    width: 100%;
    min-height: var(--touch-primary);
  }

  .header__logo-mark {
    height: 2rem;
  }

  .header__logo:not(.header__logo--footer) .header__logo-wordmark {
    display: none;
  }

  /* HEADER */
  .header {
    padding: var(--safe-top) 0 0;
  }

  .header__inner {
    height: 56px;
    gap: 8px;
  }

  .header__logo {
    margin-right: auto;
    min-height: var(--touch-min);
    min-width: var(--touch-min);
    padding: 4px 0;
    box-sizing: content-box;
  }

  .header__nav {
    display: none;
  }

  .header__cta-group {
    display: none;
  }

  .header__phone {
    display: none;
  }

  .header__cta {
    display: none;
  }

  .header__mobile-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .header__mobile-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-primary);
    padding: 10px 14px;
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .header__burger {
    display: flex;
  }

  /* Плавающая CTA — только мобайл, снизу слева */
  .floating-cta {
    display: block;
    left: calc(var(--mobile-gutter) + var(--safe-left));
    right: auto;
    bottom: calc(24px + var(--safe-bottom));
    z-index: calc(var(--z-header) - 1);
    transition:
      transform 420ms var(--ease-spring),
      opacity 320ms var(--ease-out),
      bottom 280ms var(--ease-out);
  }

  body.cookie-banner-visible .floating-cta {
    bottom: calc(var(--cookie-banner-offset, 148px) + var(--safe-bottom));
  }

  body.is-in-calculator .floating-cta {
    display: none;
  }

  body.is-in-calculator #calculator {
    padding-bottom: 0;
  }

  .floating-cta__link {
    min-height: var(--touch-primary);
    padding: 12px 18px;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: none;
    border-radius: var(--mobile-radius);
    max-width: calc(100vw - (var(--mobile-gutter) * 2) - var(--safe-left) - var(--safe-right));
  }

  /* HERO */
  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .hero__inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: var(--space-8) 0 var(--space-8);
  }

  .hero__meta,
  .hero__content,
  .hero__visual {
    display: contents;
  }

  .hero__meta .section-label { order: 1; }
  .hero__title-wrap {
    order: 2;
    min-height: auto;
  }

  .hero__title-line {
    font-size: clamp(36px, 10vw, 48px);
    letter-spacing: -0.02em;
    line-height: 1.1;
  }

  .hero__title-line--accent {
    padding-inline-end: 0.06em;
    overflow: visible;
  }

  .hero__title-line--outlined {
    color: var(--color-text);
    -webkit-text-stroke: 0;
    font-weight: 200;
  }

  .hero__description {
    order: 4;
    max-width: none;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .hero__actions { order: 5; }
  .hero__meta-stats { order: 6; }
  .hero__magazine { order: 7; width: 100%; aspect-ratio: 4 / 3; }
  .hero__trust-panel { order: 8; width: 100%; align-self: stretch; }

  .hero__meta-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
  }

  .hero__meta-stat {
    flex-direction: column;
    padding: 12px;
    border-radius: 12px;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
  }

  .hero__meta-divider { display: none; }

  .hero__meta-num { font-size: 1.375rem; }

  .hero__meta-label { font-size: 0.6875rem; }

  /* Hero widget — мобильная адаптация */
  .hero__magazine-frame {
    border-radius: 16px;
  }

  .hero__magazine-viewport {
    min-height: 160px;
  }

  .hero__magazine-slide {
    padding: 4px;
  }

  .hero__magazine-page {
    bottom: 10px;
    left: 10px;
  }

  .hero__magazine-page-glass {
    padding: 6px 12px;
  }

  .hero__magazine-progress {
    left: 6px;
    right: 6px;
    bottom: 6px;
  }

  .hero__preview-card {
    width: 100%;
    border-radius: 16px;
  }

  .hero__preview-stage {
    height: 160px;
    border-radius: 12px;
  }

  .hero__preview-text {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
    letter-spacing: 0.12em;
  }

  .hero__preview-lighting-list,
  .hero__preview-lighting-samples {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 8%,
      #000 92%,
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 8%,
      #000 92%,
      transparent 100%
    );
  }

  .hero__preview-lighting-list::-webkit-scrollbar,
  .hero__preview-lighting-samples::-webkit-scrollbar {
    display: none;
  }

  .hero__preview-lighting-btn,
  .hero__lighting-sample {
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  .hero__bento-small {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  /* Trust-панель — на всю ширину галереи, без белой подложки */
  .hero__trust-panel {
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    gap: 10px;
  }

  .hero__trust-panel__divider {
    display: block;
    height: 1px;
    margin: 2px 0;
    opacity: 0.45;
    background: linear-gradient(
      90deg,
      transparent,
      var(--color-gold) 30%,
      var(--color-gold-light) 50%,
      var(--color-gold) 70%,
      transparent
    );
  }

  .hero__bento-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 2px;
    padding: 12px 14px;
    min-height: 72px;
  }

  .hero__bento-card svg {
    grid-row: 1 / 3;
    width: 22px;
    height: 22px;
  }

  .hero__bento-num {
    grid-column: 2;
    font-size: 1.0625rem;
  }

  .hero__bento-text {
    grid-column: 2;
    font-size: 0.75rem;
  }

  .hero__bento-card--gold {
    box-shadow: var(--shadow-gold);
  }

  .hero__bento-card--dark {
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero__tag-row {
    flex-direction: column;
    gap: 8px;
  }

  .hero__trust-panel .hero__tag-row .tag {
    width: 100%;
    justify-content: flex-start;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.6875rem;
    letter-spacing: 0.07em;
  }

  .hero__trust-panel .hero__tag-row .tag svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  .hero__trust-panel .hero__tag-row .tag-gold {
    color: #8B6E2A;
    background: var(--color-gold-dim);
  }

  .hero__trust-panel .hero__tag-row .tag:not(.tag-gold) {
    background: var(--color-surface-muted);
    border-color: var(--color-border-strong);
    color: var(--color-text);
  }

  .hero__pills {
    flex-wrap: wrap;
    gap: 6px;
  }

  .hero__impact-svg {
    height: 62px;
  }

  .hero__preview-impact-caption {
    font-size: 0.6875rem;
  }

  .hero__actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  /* Блочные CTA: полная ширина, touch-target 48px (калькулятор — отдельная система в #calculator) */
  .hero__actions .btn-primary,
  .hero__actions .btn-ghost,
  .stats__cta .btn,
  .price-formula-btn,
  .process__cta .btn,
  .cta-final__actions .btn,
  .footer__contact .btn,
  .portfolio__more .btn,
  .modal__submit,
  .cookie-consent__btn,
  .seo-landing__cta .btn {
    width: 100%;
    justify-content: center;
    min-height: var(--touch-primary);
    font-size: 0.875rem;
    white-space: normal;
    text-align: center;
  }

  .hero__actions .btn-ghost {
    text-align: center;
  }

  .hero__actions .btn-ghost svg,
  .price-formula-btn svg,
  .portfolio__more .btn svg {
    flex-shrink: 0;
  }

  /* Бегущая строка hero — компактнее на мобайле */
  .hero__ticker {
    padding: 10px 0;
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 6%,
      #000 94%,
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 6%,
      #000 94%,
      transparent 100%
    );
  }

  .hero__ticker-track {
    gap: 14px;
  }

  .hero__ticker-track span:not(.hero__ticker-sep) {
    font-size: clamp(0.625rem, 2.75vw, 0.6875rem);
    letter-spacing: 0.05em;
  }

  .hero__ticker-sep {
    font-size: clamp(0.625rem, 2.75vw, 0.6875rem);
  }

  .cta-final__actions {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    width: 100%;
  }

  .footer__contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .footer__contact-btn {
    margin-bottom: 0;
  }

  /* STATS — bento-карточки 2×2 (grid в stats.css) */
  .stats__item {
    flex: none;
    padding: 16px 14px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-surface-elevated);
    box-shadow: var(--shadow-card);
    gap: 6px;
  }

  .stats__item:hover {
    background: var(--color-surface-elevated);
  }

  .stats__item--link {
    transition: background var(--transition-fast), transform var(--transition-fast);
  }

  .stats__item--link:active {
    transform: scale(0.98);
    background: var(--color-gold-dim-soft);
  }

  .stats__sub--full {
    display: none;
  }

  .stats__sub--short {
    display: block;
  }

  .stats__count {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .stats__item--text .stats__text-value {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .stats__suffix {
    font-size: 1rem;
  }

  .stats__title {
    font-size: 0.6875rem;
    margin-top: 2px;
    overflow-wrap: anywhere;
  }

  .stats__sub {
    font-size: 0.75rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .stats__cta {
    grid-column: 1 / -1;
    padding: 0;
    margin-top: 4px;
    text-align: center;
  }

  .stats__cta .btn {
    width: 100%;
    min-height: var(--touch-primary);
    justify-content: center;
  }

  /* BENTO */
  .bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .bento-card {
    padding: 24px;
    overflow: hidden;
  }

  .bento-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--touch-min);
    padding: 12px 16px;
    width: 100%;
    max-width: 100%;
    text-transform: none;
    letter-spacing: 0.04em;
    white-space: normal;
    text-align: center;
    border-radius: var(--mobile-radius);
    touch-action: manipulation;
  }

  .bento-card--large,
  .bento-card--medium,
  .bento-card--wide {
    grid-column: span 2;
    grid-row: span 1;
  }

  .bento-card--large {
    min-height: auto;
    padding: 24px 20px;
    border-radius: var(--radius-lg);
  }

  .bento-card__deco--letters {
    opacity: 0.08;
  }

  .bento-card__deco--letters span {
    font-size: 120px;
  }

  .bento-card--small {
    grid-column: span 1;
    min-height: auto;
    padding: 16px;
    border-radius: 14px;
  }

  .bento-card--small h3 {
    font-size: 1rem;
  }

  .bento-card__accent-text {
    font-size: 0.8125rem;
    padding-right: 24px;
  }

  .bento-card__corner-icon {
    bottom: 16px;
    right: 16px;
  }

  .bento-card__formula {
    flex-direction: column;
    gap: 12px;
  }

  /* Price formula banner */
  .price-formula-banner {
    flex-direction: column;
    gap: 16px;
    padding: 20px 16px;
    border-radius: 14px;
  }

  .price-formula-label { font-size: 11px; }

  .price-formula-calc {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .price-formula-btn {
    width: 100%;
    min-height: var(--touch-primary);
    height: auto;
  }

  /* SERVICES HEADER */
  .section-step-header:not(.section-step-header--centered) .section-step-header__desc {
    text-align: left;
    max-width: none;
    overflow-wrap: anywhere;
  }

  #services-title {
    overflow-wrap: anywhere;
    line-height: 1.15;
  }

  .price-formula-calc__result,
  .price-formula-calc__part {
    overflow-wrap: anywhere;
  }

  /* CALCULATOR */
  .calc__fields--two-cols { grid-template-columns: 1fr; }

  /* Шаг 1: горизонтальные list-cards (touch) */
  .product-grid--picker {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
  }

  .product-grid--picker .product-card {
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .product-grid--picker .product-card__inner {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 2px;
    padding: 14px 16px;
    border-radius: 14px;
    min-height: var(--touch-min);
    position: relative;
  }

  .product-grid--picker .product-card__badge {
    top: 8px;
    left: auto;
    right: 8px;
    padding: 2px 6px;
    font-size: 0.5625rem;
    letter-spacing: 0.04em;
  }

  .product-grid--picker .product-card__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
    grid-row: 1 / 4;
    grid-column: 1;
    align-self: center;
  }

  .product-grid--picker .product-card__content {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    gap: 2px;
    flex: none;
    width: auto;
  }

  .product-grid--picker .product-card__title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
  }

  .product-grid--picker .product-card__desc {
    font-size: 0.6875rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-grid--picker .product-card__price {
    margin-top: 0;
    padding-top: 2px;
    grid-column: 2;
    grid-row: 3;
    text-align: left;
    align-self: start;
    font-size: 0.75rem;
  }

  .product-grid--picker .product-card__icon i,
  .product-grid--picker .product-card__icon svg {
    width: 20px;
    height: 20px;
  }

  .product-grid--picker .product-card input:checked + .product-card__inner::after,
  .product-grid--picker .product-card--selected .product-card__inner::after {
    top: 22px;
    left: 22px;
    right: auto;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
  }

  .product-grid--picker .product-card:has(.product-card__badge) input:checked + .product-card__inner::after,
  .product-grid--picker .product-card:has(.product-card__badge).product-card--selected .product-card__inner::after {
    top: 22px;
    left: 22px;
    bottom: auto;
    right: auto;
    transform: translate(-50%, -50%);
  }

  .calc__next-btn {
    margin-top: 8px;
  }
  .calc__complexity-grid { grid-template-columns: 1fr; }
  .calc__options-grid { grid-template-columns: 1fr; }
  .calc__type-grid { grid-template-columns: 1fr; }
  .calc__type-grid--3 { grid-template-columns: 1fr; }
  .calc__addons-grid { grid-template-columns: 1fr; }
  .calc__complexity-card-inner,
  .calc__option-card-inner,
  .calc__step:not(.calc__step--params):not(.calc__step--logistics) .calc__type-card-inner {
    flex-direction: row;
    text-align: left;
    gap: 12px;
    min-height: auto;
  }
  .calc__addon-checkbox { padding: 14px 16px; }

  /* Калькулятор: single surface — одна карточка calc__main */
  #calculator .calc__wrapper::before {
    display: none;
  }

  .calc__main {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-height: none;
    height: fit-content;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    overflow: visible;
    --calc-section-gap: var(--mobile-section-gap);
    --calc-section-radius: 14px;
    --calc-section-pad: 14px;
  }

  /* ── Калькулятор: единая система кнопок (mobile) ── */
  #calculator .btn,
  #calculator a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: var(--calc-btn-h);
    padding: 12px 16px;
    border-radius: var(--calc-btn-radius);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-transform: none;
    white-space: normal;
    text-align: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    max-width: 100%;
    box-sizing: border-box;
  }

  #calculator .btn-primary {
    box-shadow: var(--shadow-sm);
  }

  #calculator .btn-ghost {
    padding: 12px 16px;
    border: 1.5px solid var(--color-border);
    background: var(--color-surface-elevated);
    color: var(--color-text-muted);
  }

  #calculator .btn svg,
  #calculator .btn i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  #calculator .btn:active {
    transform: scale(0.98);
  }

  @media (hover: none) {
    #calculator .btn:hover {
      transform: none;
    }
  }

  #calculator .calc__step-actions,
  #calculator .calc__result-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    width: 100%;
  }

  #calculator .calc__step-actions:has(.calc__prev-btn):has(.calc__next-btn) {
    display: grid;
    grid-template-columns: minmax(108px, 0.38fr) minmax(0, 1fr);
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
  }

  #calculator .calc__step-actions:has(.calc__prev-btn):not(:has(.calc__next-btn)) .calc__prev-btn,
  #calculator .calc__step-actions:has(.calc__next-btn):not(:has(.calc__prev-btn)) .calc__next-btn {
    width: 100%;
    grid-column: 1 / -1;
  }

  #calculator .calc__step-actions .calc__prev-btn,
  #calculator .calc__step-actions .calc__next-btn {
    min-height: var(--calc-btn-h);
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--calc-btn-radius);
    font-size: 0.875rem;
  }

  #calculator .calc__step-actions .calc__prev-btn {
    min-width: 108px;
    border: 1.5px solid var(--color-border);
    background: var(--color-surface-elevated);
  }

  #calculator .calc__preset {
    min-height: var(--calc-btn-h-sm);
    height: var(--calc-btn-h-sm);
    padding: 0 8px;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  #calculator .calc__preset:active {
    transform: scale(0.97);
  }

  #calculator .calc__counter {
    min-height: var(--calc-btn-h);
    border-radius: var(--calc-btn-radius);
  }

  #calculator .calc__counter-btn {
    width: var(--calc-btn-h);
    height: var(--calc-btn-h);
    min-width: var(--calc-btn-h);
    min-height: var(--calc-btn-h);
    flex-shrink: 0;
  }

  #calculator .calc__counter-btn svg {
    width: 18px;
    height: 18px;
  }

  #calculator .calc__counter-input {
    flex: 1;
    width: auto;
    min-width: 0;
    height: var(--calc-btn-h);
    min-height: var(--calc-btn-h);
    font-size: 1.25rem;
  }

  #calculator .calc__toggle-group {
    min-height: calc(var(--calc-btn-h) + 8px);
    padding: 4px;
    border-radius: var(--calc-btn-radius);
  }

  #calculator .calc__toggle-btn {
    min-height: var(--calc-btn-h-sm);
    padding: 10px 12px;
    font-size: 0.8125rem;
    border-radius: calc(var(--calc-btn-radius) - 2px);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  #calculator .calc__toggle-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  #calculator .calc__tooltip {
    width: var(--calc-btn-h-sm);
    height: var(--calc-btn-h-sm);
    min-width: var(--calc-btn-h-sm);
    min-height: var(--calc-btn-h-sm);
    margin: -10px 0;
    font-size: 0.6875rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  #calculator .calc__result-cta--primary {
    min-height: var(--calc-btn-h);
    padding: 12px 14px;
    border-radius: var(--calc-btn-radius);
    font-size: 0.875rem;
    line-height: 1.25;
    white-space: normal;
  }

  #calculator .calc__result-cta--secondary {
    min-height: var(--calc-btn-h);
    padding: 12px 14px;
    border-radius: var(--calc-btn-radius);
    font-size: 0.875rem;
    border: 1.5px solid var(--color-border);
    background: var(--color-surface-elevated);
  }

  #calculator .calc__result-back,
  #calculator .calc__result-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: var(--calc-btn-h-sm);
    min-width: var(--calc-btn-h-sm);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  #calculator .calc__option-row .calc__type-card-inner {
    min-height: calc(var(--calc-btn-h) + 8px);
  }

  #calculator .calc__result-back:active,
  #calculator .calc__result-share:active {
    background: var(--color-surface-muted);
  }

  #calculator .calc__addon-checkbox {
    min-height: var(--calc-btn-h);
    touch-action: manipulation;
  }

  #calculator .calc__result-cta-label--short {
    display: none;
  }

  #calculator:has(.calc__main--on-result) .calc__share-toast {
    bottom: calc(148px + var(--safe-bottom));
  }

  .calc__progress {
    grid-column: auto;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
    margin: 0;
    padding: 14px 12px 16px;
    --calc-node-size: 32px;
    contain: none;
    overflow: visible;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface-muted);
    box-shadow: none;
    width: 100% !important;
  }

  .calc__main-body {
    grid-column: auto;
    flex: 1 1 auto;
    height: fit-content;
    min-height: 0;
    max-height: none;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow-y: auto;
    overflow-x: clip;
    -webkit-overflow-scrolling: touch;
  }

  .calc__main-body > .calc__step[hidden] {
    display: none !important;
    margin: 0;
    padding: 0;
  }

  /* Сайдбар на мобильных не показываем (цена — только на шаге 4, в самом шаге) */
  .calc__main .calc__sidebar {
    display: none !important;
  }

  .calc__main--on-result {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
  }

  .calc__main:not(.calc__main--on-result) {
    overflow: visible;
  }

  .calc__main--on-result .calc__progress {
    margin-bottom: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface-muted);
    box-shadow: none;
  }

  .calc__main--on-result .calc__step--result {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .calc__sidebar-header {
    margin-bottom: 8px;
    padding-bottom: 8px;
  }

  .calc__sidebar-status {
    display: none;
  }

  .calc__sidebar-items {
    gap: 6px;
    margin-bottom: 8px;
    max-height: none;
    overflow: visible;
  }

  .calc__sidebar-item {
    min-height: auto;
    padding: 8px 10px;
    gap: 8px;
  }

  .calc__sidebar-divider {
    margin: 8px 0;
  }

  .calc__sidebar-total-panel {
    padding: 10px 12px;
    margin-bottom: 8px;
  }

  .calc__sidebar-hint {
    font-size: 0.6875rem;
    padding: 6px 10px;
    margin-bottom: 8px;
  }

  .calc__sidebar-disclaimer {
    display: none;
  }

  .calc__sidebar-actions {
    flex-direction: column;
    gap: 8px;
  }

  .calc__sidebar-cta {
    width: 100%;
    min-height: 48px;
    font-size: 0.8125rem;
    box-shadow: var(--shadow-gold);
  }

  .calc__phone-link {
    display: none;
  }

  .calc__step { padding: 14px; }

  /* Unified step header — шаги 1–4 */
  .calc__step-header,
  .calc__result-header.calc__step-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid color-mix(in srgb, var(--color-border) 55%, transparent);
    text-align: left;
  }

  .calc__step-header .calc__step-icon,
  .calc__result-header.calc__step-header .calc__step-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .calc__step-header .calc__step-icon svg,
  .calc__result-header.calc__step-header .calc__step-icon svg {
    width: 24px;
    height: 24px;
  }

  .calc__step-header .calc__step-title,
  .calc__result-header.calc__step-header .calc__step-title {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 2px;
  }

  .calc__step-header .calc__step-desc,
  .calc__result-header.calc__step-header .calc__step-desc {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--color-text-muted);
  }

  /* Шаги 1–3: форма заканчивается кнопками, без белого полотна */
  .calc__main-body .calc__step:not(.calc__step--result) .calc__step-actions {
    padding-top: 0;
    border-top: none;
  }

  .calc__step--products {
    padding: 16px 16px 0;
  }

  .calc__step--params {
    padding: 16px 16px 0;
  }

  .calc__step--products .calc__step-actions,
  .calc__step--params .calc__step-actions,
  .calc__step--logistics .calc__step-actions {
    margin-top: 10px;
    margin-bottom: 0;
    padding: 0;
    border-top: none;
  }

  .calc__step--products .calc__next-btn {
    margin-top: 0;
  }

  .calc__step--logistics {
    padding-bottom: 0;
  }

  .calc__step--logistics .calc__step-actions {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .calc__step--logistics .calc__step-result {
    display: none;
  }

  .calc__progress-stepper {
    margin-bottom: 20px;
    padding: 0 !important; /* force full width for track/dots/rail inside .calc__progress */
    position: relative !important; /* для абсолютного позиционирования линии прогресса */
    width: 100% !important;
  }

  /* Old segment connectors are hidden (rail is used instead). Margin rule kept only for safety if display is re-enabled elsewhere. */
  .calc__step-nav-item:not(:last-child)::after {
    margin: 0 2px;
  }

  .calc__step-nav-num {
    font-size: 0.75rem;
  }

  .calc__step-nav-item.completed .calc__step-nav-num::after,
  .calc__step-nav-btn.completed .calc__step-nav-num::after {
    width: 11px;
    height: 11px;
  }

  .calc__progress-meta {
    margin-bottom: 14px;
    font-size: 0.8125rem;
    gap: 2px;
  }

  /* === Мобильный calc__progress — заполняет всю ширину ===
     Точки у краёв (flex:none + space-between), линия прогресса между центрами. */

  .calc__steps-track {
    justify-content: space-between;
    width: 100% !important;
  }

  .calc__progress-stepper .calc__step-nav-item {
    flex: none !important;
    min-width: 0;
  }

  .calc__progress-stepper .calc__step-nav-item:last-child {
    flex: none !important;
  }

  /* Offset first and last dot so their centers are closer to the absolute edges of the area */
  .calc__progress-stepper .calc__step-nav-item:first-child .calc__step-nav-node {
    margin-left: calc(-1 * var(--calc-node-size) / 2);
  }
  .calc__progress-stepper .calc__step-nav-item:last-child .calc__step-nav-node {
    margin-right: calc(-1 * var(--calc-node-size) / 2);
  }

  /* Зона касания 44px (WCAG touch target) */
  .calc__step-nav-btn {
    min-width: var(--calc-touch-min);
    min-height: var(--calc-touch-min);
  }

  /* Немного уменьшаем узел для лучшей плотности */
  .calc__step-nav-num {
    font-size: 0.6875rem;
  }

  /* Показываем и стилизуем рельс как красивую линию прогресса на мобиле */
  .calc__progress .calc__progress-rail,
  .calc__main .calc__progress-rail {
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px;
    background: color-mix(in srgb, var(--color-dark) 12%, transparent);
    transform: translateY(-50%) !important;
    z-index: 0 !important;
    /* линия заполняет всю ширину (точки перекрывают концы) */
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 1px;
    pointer-events: none;
  }

  .calc__progress-rail-track {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
  }

  #calcProgressRailFill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--calc-progress, 0%);
    background: var(--color-gold);
    border-radius: 1px;
    transition: width 200ms ease;
  }

  /* Поднимаем точки поверх линии прогресса */
  .calc__steps-nav {
    position: relative;
    z-index: 1;
  }

  .calc__step-nav-node {
    position: relative;
    z-index: 2;
    background: var(--color-surface-muted); /* чтобы точка перекрывала линию */
    border-radius: 50%;
  }

  /* Делаем текущий шаг в meta чуть заметнее */
  .calc__progress-current {
    color: color-mix(in srgb, var(--color-dark) 75%, transparent);
    font-weight: 500;
  }

  .calc__result-secondary {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  /* ── Калькулятор: общие touch-стили ── */

  .calc__label {
    margin-bottom: 10px;
    font-size: 0.75rem;
  }

  .calc__addon-checkbox {
    padding: 14px 12px;
    border-radius: 10px;
    font-size: 0.875rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .calc__addon-name {
    font-size: 0.875rem;
  }

  .calc__addon-price {
    font-size: 0.8125rem;
  }

  .calc__step-result {
    padding: 14px 16px;
    border-radius: 12px;
    margin-top: 20px;
    background: var(--color-surface-elevated);
    box-shadow: var(--shadow-xs);
  }

  .calc__step-result-formula {
    font-size: 0.8125rem;
    flex: 1;
    min-width: 0;
  }

  .calc__step-result-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-gold-dark);
    flex-shrink: 0;
  }

  .calc__main-body .calc__step:not(.calc__step--result) .calc__step-actions {
    position: sticky;
    bottom: 0;
    z-index: 8;
    margin-top: 12px;
    padding-top: 10px;
    padding-bottom: calc(10px + var(--safe-bottom));
    background: linear-gradient(
      to top,
      var(--calc-action-bar-bg) 72%,
      color-mix(in srgb, var(--calc-action-bar-bg) 85%, transparent) 88%,
      transparent
    );
    border-top: none;
  }

  #calculator .calc__main-body .calc__step:not(.calc__step--result) .calc__step-actions {
    padding-bottom: calc(10px + var(--safe-bottom));
  }

  .calc__hint {
    font-size: 0.75rem;
    line-height: 1.45;
  }

  /* ── Шаг 2 (Параметры): mobile v3 — 5 продуктов, единый list-card язык ── */

  .calc__step--params .calc__product-fields {
    display: flex;
    flex-direction: column;
    gap: var(--mobile-section-gap);
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
  }

  .calc__step--params .calc__product-fields > * {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
  }

  .calc__step--params .calc__field {
    min-width: 0;
    text-align: left;
  }

  .calc__step--params .calc__section-card {
    padding: 14px;
    border-radius: var(--mobile-radius);
  }

  .calc__step--params .calc__product-fields > .calc__section-card {
    margin-bottom: 0;
  }

  /* Размеры: lightbox / bracket / film / banner — как у букв, отдельная карточка на поле */
  .calc__step--params .calc__fields--two-cols.calc__section-card {
    padding: 0;
    gap: var(--mobile-section-gap);
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .calc__step--params .calc__fields--two-cols.calc__section-card .calc__field {
    padding: 14px;
    background: var(--color-surface-elevated);
    border-radius: var(--mobile-radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
  }

  .calc__step--params .calc__fields--two-cols.calc__section-card .calc__label {
    margin-bottom: 10px;
  }

  .calc__step--params .calc__label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    margin-bottom: 10px;
    letter-spacing: 0.06em;
    row-gap: 4px;
    text-transform: uppercase;
    line-height: 1.3;
  }

  #calculator .calc__step--params .calc__tooltip {
    width: 28px;
    height: 28px;
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    margin: -8px -10px -8px 0;
    font-size: 0.6875rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .calc__step--params .calc__hint {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    line-height: 1.45;
    margin-top: 8px;
    color: var(--color-text-muted);
  }

  .calc__step--params .calc__product-fields > .calc__hint {
    margin: 0;
    padding: 10px 12px;
    background: var(--color-surface-muted);
    border-radius: var(--mobile-radius);
    border: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
    border-left: 3px solid var(--color-gold);
    box-shadow: none;
  }

  .calc__step--params .calc__fields {
    gap: 12px;
  }

  .calc__step--params .calc__fields--two-cols {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Буквы: preview-bar + слайдер */
  .calc__step--params .calc__slider-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .calc__step--params .calc__slider-visual {
    width: 100%;
    flex: none;
  }

  .calc__step--params .calc__letter-preview {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    min-height: 56px;
    padding: 12px 16px;
    border-radius: var(--mobile-radius);
    box-sizing: border-box;
    background: var(--color-dark);
    border: 1px solid color-mix(in srgb, var(--color-gold) 25%, transparent);
    box-shadow:
      inset 0 0 20px color-mix(in srgb, var(--color-gold) 7%, transparent),
      0 4px 12px color-mix(in srgb, var(--color-dark) 15%, transparent);
  }

  .calc__step--params .calc__letter-preview-letter {
    font-size: var(--letter-size, 1.75rem);
    line-height: 1;
    color: var(--color-gold-light);
    text-shadow:
      0 0 10px color-mix(in srgb, var(--color-gold) 50%, transparent),
      0 0 20px color-mix(in srgb, var(--color-gold) 22%, transparent);
  }

  .calc__step--params .calc__letter-preview-arrow {
    display: none;
  }

  .calc__step--params .calc__letter-preview-size {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-gold);
    white-space: nowrap;
  }

  .calc__step--params .calc__slider-controls {
    width: 100%;
    min-width: 0;
  }

  .calc__step--params .calc__range {
    height: 8px;
    margin: 6px 0 8px;
    border-radius: 4px;
    width: 100%;
  }

  .calc__step--params .calc__range::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 4px;
  }

  .calc__step--params .calc__range::-webkit-slider-thumb {
    width: 32px;
    height: 32px;
    margin-top: -12px;
    border-width: 2.5px;
    box-shadow: var(--shadow-md), 0 0 0 4px rgba(201, 152, 42, 0.12);
  }

  .calc__step--params .calc__range::-moz-range-track,
  .calc__step--params .calc__range::-moz-range-progress {
    height: 8px;
    border-radius: 4px;
  }

  .calc__step--params .calc__range::-moz-range-thumb {
    width: 32px;
    height: 32px;
    border-width: 2.5px;
    box-shadow: var(--shadow-md), 0 0 0 4px rgba(201, 152, 42, 0.12);
  }

  .calc__step--params .calc__range-labels {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
  }

  .calc__step--params .calc__range-presets {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 2px;
    margin-inline: -2px;
    padding-inline: 2px;
  }

  .calc__step--params .calc__preset {
    flex: 0 0 56px;
    min-width: 56px;
    width: 56px;
    font-family: var(--font-heading);
    scroll-snap-align: start;
  }

  /* Счётчик — на всю ширину (буквы, лайтбокс, кронштейн) */
  .calc__step--params .calc__counter {
    width: 100%;
    max-width: 100%;
    border-width: 1.5px;
    border-radius: var(--calc-btn-radius);
  }

  .calc__step--params .calc__counter-input {
    font-family: var(--font-heading);
    font-weight: 700;
  }

  /* Числовые поля — bracket / film / banner + лайтбокс */
  .calc__step--params .calc__size-input-group {
    width: 100%;
    min-height: var(--calc-btn-h);
    border-radius: var(--calc-btn-radius);
    margin-bottom: 0;
  }

  .calc__step--params .calc__size-input {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    padding: 12px;
    text-align: center;
    min-width: 0;
  }

  .calc__step--params .calc__size-unit {
    font-family: var(--font-heading);
    padding: 0 14px;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
  }

  /* Лайтбокс: input + range вертикально */
  .calc__step--params .calc__slider-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  .calc__step--params .calc__slider-wrapper .calc__size-input-group {
    width: 100%;
  }

  /* Типы: list-cards — цена под текстом (буквы с desc / лайтбокс без desc / плёнка 2-col) */
  .calc__step--params .calc__type-grid,
  .calc__step--params .calc__type-grid--2,
  .calc__step--params .calc__type-grid--3 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: visible;
    padding: 0;
    margin: 0;
    -webkit-mask-image: none;
            mask-image: none;
  }

  .calc__step--params .calc__type-grid::after {
    display: none;
  }

  .calc__step--params .calc__type-card {
    width: 100%;
    min-width: 0;
  }

  #calculator .calc__step--params .calc__option-row .calc__type-card-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: start;
    row-gap: 2px;
    padding: 12px 44px 12px 14px;
    border-radius: var(--calc-btn-radius);
    text-align: left;
    border-width: 1.5px;
    min-height: auto;
  }

  .calc__step--params .calc__type-name {
    grid-column: 1;
    grid-row: 1;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .calc__step--params .calc__type-desc {
    grid-column: 1;
    grid-row: 2;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    line-height: 1.35;
    color: var(--color-text-muted);
    margin: 0;
    overflow-wrap: anywhere;
  }

  .calc__step--params .calc__type-price {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid color-mix(in srgb, var(--color-border) 65%, transparent);
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-gold-dark);
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
  }

  #calculator .calc__step--params .calc__type-badge {
    position: static;
    display: inline-block;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: start;
    width: fit-content;
    margin: 0 0 6px;
    font-size: 0.5625rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
  }

  .calc__step--params .calc__type-card-inner:has(.calc__type-badge) .calc__type-name {
    grid-row: 2;
  }

  .calc__step--params .calc__type-card-inner:has(.calc__type-badge) .calc__type-desc {
    grid-row: 3;
  }

  .calc__step--params .calc__type-card-inner:has(.calc__type-badge) .calc__type-price {
    grid-row: 4;
  }

  .calc__step--params .calc__type-card-inner:not(:has(.calc__type-desc)) {
    grid-template-rows: auto auto;
  }

  .calc__step--params .calc__type-card-inner:not(:has(.calc__type-desc)) .calc__type-name {
    grid-row: 1;
    align-self: start;
  }

  .calc__step--params .calc__type-card-inner:not(:has(.calc__type-desc)) .calc__type-price {
    grid-row: 2;
    margin-top: 4px;
    padding-top: 4px;
  }

  .calc__step--params .calc__type-card-inner:has(.calc__type-badge):not(:has(.calc__type-desc)) .calc__type-name {
    grid-row: 2;
  }

  .calc__step--params .calc__type-card-inner:has(.calc__type-badge):not(:has(.calc__type-desc)) .calc__type-price {
    grid-row: 3;
  }

  #calculator .calc__step--params .calc__type-card input:checked + .calc__type-card-inner::after {
    top: 50%;
    right: 12px;
    left: auto;
    bottom: auto;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
  }

  /* Аддоны: буквы / плёнка / баннер */
  #calculator .calc__step--params .calc__addon-checkbox {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 4px;
    min-height: var(--touch-primary);
    padding: 14px;
    border-radius: var(--mobile-radius);
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-shadow: var(--shadow-xs);
  }

  #calculator .calc__step--params .calc__addon-checkbox:has(input:checked) {
    background: var(--color-gold-dim-soft);
    border-color: var(--color-border-accent);
    box-shadow: var(--shadow-gold);
  }

  .calc__step--params .calc__addon-box {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .calc__step--params .calc__addon-content {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .calc__step--params .calc__addon-name {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .calc__step--params .calc__addon-price {
    grid-column: 3;
    grid-row: 1;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-gold-dark);
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
    max-width: 42%;
  }

  .calc__step--params span.calc__label {
    display: flex;
    width: 100%;
  }

  .calc__step--params .calc__field.calc__section-card .calc__hint {
    margin-top: 10px;
    padding-top: 0;
  }

  @media (hover: none) {
    #calculator .calc__step--params .calc__type-card:hover .calc__type-card-inner,
    #calculator .calc__step--params .calc__addon-checkbox:hover {
      border-color: var(--color-border);
      transform: none;
    }

    #calculator .calc__step--params .calc__type-card:active .calc__type-card-inner,
    #calculator .calc__step--params .calc__addon-checkbox:active {
      transform: scale(0.99);
    }
  }

  /* ── Шаг 3 (Монтаж и доставка): мобильная шапка ── */

  .calc__step--logistics .calc__step-result {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 16px;
    border-left-width: 3px;
  }

  .calc__step--logistics .calc__step-result-price {
    font-size: 1.375rem;
    color: var(--color-gold-dark);
  }

  .calc__step--logistics .calc__addon-checkbox {
    min-height: 48px;
  }

  .calc__step--logistics .calc__addon-price {
    flex-shrink: 0;
  }

  /* ── Шаг 3 (Монтаж и доставка): мобильная визуальная адаптация ── */

  .calc__step--logistics .calc__section {
    margin-bottom: 20px;
  }

  .calc__step--logistics .calc__section-title {
    font-size: 0.75rem;
    margin-bottom: 14px;
  }

  .calc__step--logistics .calc__section-divider {
    margin: 20px 0;
  }

  .calc__step--logistics #calcMountSection[hidden] + .calc__section-divider {
    display: none;
  }

  .calc__step--logistics .calc__toggle-group {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 20px;
    gap: 6px;
  }

  .calc__step--logistics .calc__toggle-btn {
    justify-content: center;
  }

  .calc__step--logistics {
    padding: 16px 16px 0;
  }

  .calc__step--logistics .calc__addon-checkbox {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 12px;
  }

  .calc__step--logistics .calc__addon-content {
    flex: 1 1 calc(100% - 56px);
    min-width: 0;
  }

  .calc__step--logistics .calc__addon-price {
    flex: 0 0 auto;
    margin-left: auto;
    white-space: normal;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .calc__step--logistics .calc__section-card {
    margin-bottom: 12px;
    padding: 14px;
  }

  .calc__step--logistics .calc__section-divider {
    display: none;
  }

  .calc__step--logistics .calc__type-grid,
  .calc__step--logistics .calc__type-grid--3 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: visible;
    padding: 0;
    margin: 0;
    -webkit-mask-image: none;
            mask-image: none;
  }

  .calc__step--logistics .calc__type-grid::after {
    display: none;
  }

  .calc__step--logistics .calc__type-card {
    width: 100%;
    min-width: 0;
  }

  .calc__step--logistics .calc__type-card-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 2px;
    min-height: calc(var(--calc-btn-h) + 8px);
    padding: 12px 14px;
    border-radius: var(--calc-btn-radius);
    text-align: left;
    border-width: 1.5px;
  }

  .calc__step--logistics .calc__type-name {
    grid-column: 1;
    grid-row: 1;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
  }

  .calc__step--logistics .calc__type-desc {
    grid-column: 1;
    grid-row: 2;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    line-height: 1.35;
    color: var(--color-text-muted);
    margin: 0;
  }

  .calc__step--logistics .calc__type-price {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: center;
    margin-top: 0;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-gold-dark);
    white-space: nowrap;
    text-align: right;
  }

  .calc__step--logistics .calc__type-card-inner:not(:has(.calc__type-desc)) {
    grid-template-rows: auto;
  }

  .calc__step--logistics .calc__type-card-inner:not(:has(.calc__type-desc)) .calc__type-name {
    grid-row: 1 / -1;
    align-self: center;
  }

  .calc__step--logistics .calc__addons-grid {
    gap: 8px;
    margin-top: 16px;
  }

  .calc__step--logistics .calc__addon-desc {
    font-size: 0.6875rem;
    line-height: 1.35;
  }

  .calc__step--logistics .calc__free-delivery-notice {
    padding: 12px 14px;
    font-size: 0.8125rem;
    border-radius: 12px;
    line-height: 1.4;
  }

  /* ── Шаг 4 (Итог): receipt-first, conversion CTA ── */

  .calc__main--on-result,
  .calc__main--on-result .calc__main-body,
  .calc__step--result {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: clip;
  }

  .calc__step--result {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 12px 0;
  }

  .calc__step--result .calc__result-header,
  .calc__step--result .calc__result-hero,
  .calc__step--result .calc__result-breakdown,
  .calc__step--result .calc__result-footer,
  .calc__step--result .calc__result-actions,
  .calc__step--result .btn {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
  }

  .calc__step--result .calc__step-title {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  .calc__step--result .calc__result-header.calc__step-header {
    margin-bottom: 0;
    padding-bottom: 12px;
    border-bottom: none;
  }

  .calc__step--result .calc__result-header .calc__step-icon {
    background: var(--color-success-dim);
    border-color: color-mix(in srgb, var(--color-success) 25%, transparent);
    color: var(--color-success);
  }

  .calc__step--result .calc__result-badge {
    margin-bottom: 4px;
    font-size: 0.625rem;
    padding: 2px 8px;
  }

  .calc__step--result .calc__result-hero {
    margin-bottom: 0;
    padding: 16px 12px 14px;
    border-radius: 14px;
    background:
      linear-gradient(145deg, var(--color-surface-elevated) 0%, color-mix(in srgb, var(--color-gold-pale) 65%, var(--color-surface-elevated)) 100%);
    border: 1px solid color-mix(in srgb, var(--color-gold) 32%, transparent);
    box-shadow: var(--shadow-gold);
    color: var(--color-text);
    text-align: center;
  }

  .calc__step--result .calc__result-total-label {
    font-size: 0.6875rem;
    margin-bottom: 6px;
    color: var(--color-text-muted);
    letter-spacing: 0.08em;
  }

  .calc__step--result .calc__result-total-price {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 4px;
    max-width: 100%;
  }

  .calc__step--result .calc__result-total-num {
    font-size: clamp(1.75rem, 9vw, 2.75rem);
    color: var(--color-gold-dark);
    text-shadow: none;
    line-height: 1;
  }

  .calc__step--result .calc__result-tilde {
    font-size: 1.25rem;
    color: color-mix(in srgb, var(--color-gold-dark) 45%, transparent);
  }

  .calc__step--result .calc__result-total-currency {
    font-size: 1.125rem;
    color: var(--color-gold-dark);
  }

  .calc__step--result .calc__result-disclaimer {
    font-size: 0.75rem;
    line-height: 1.45;
    margin-top: 10px;
    color: var(--color-text-muted);
    max-width: none;
  }

  .calc__step--result .calc__result-breakdown {
    margin-bottom: 0;
    border-radius: 14px;
    border: 1px solid var(--color-border);
    background: var(--color-surface-elevated);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
  }

  .calc__step--result .calc__result-breakdown::before {
    content: 'Состав сметы';
    display: block;
    padding: 12px 14px 8px;
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface-muted);
  }

  .calc__step--result .calc__result-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 24px;
    grid-template-rows: auto auto auto;
    gap: 2px 8px;
    align-items: start;
    padding: 10px 10px;
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
  }

  .calc__step--result .calc__result-row:last-child {
    border-bottom: none;
  }

  .calc__step--result .calc__result-row-icon {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--color-gold-dim-soft);
    border: 1px solid var(--color-border-accent);
    color: var(--color-gold-dark);
  }

  .calc__step--result .calc__result-row-icon {
    font-size: inherit;
    line-height: 1;
  }

  .calc__step--result .calc__result-row-icon svg,
  .calc__step--result .calc__result-row-icon i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .calc__step--result .calc__result-row-info {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 0;
    overflow: hidden;
  }

  .calc__step--result .calc__result-row-name {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .calc__step--result .calc__result-row-formula {
    font-size: 0.6875rem;
    line-height: 1.35;
    color: var(--color-text-muted);
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .calc__step--result .calc__result-row-price {
    grid-column: 2 / 4;
    grid-row: 3;
    align-self: start;
    flex-basis: auto;
    padding-left: 0;
    padding-top: 2px;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--color-gold-dark);
    white-space: normal;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .calc__step--result .calc__result-row--clickable {
    touch-action: manipulation;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .calc__step--result .calc__result-row-edit {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    padding: 0;
    font-size: 0;
    border-radius: 50%;
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    opacity: 1;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / 14px no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / 14px no-repeat;
    background-color: var(--color-surface-muted);
  }

  .calc__step--result .calc__result-row--clickable:active {
    background: var(--color-surface-muted);
  }

  .calc__step--result .calc__result-row--clickable:active .calc__result-row-edit {
    background-color: color-mix(in srgb, var(--color-gold) 18%, var(--color-surface-muted));
  }

  .calc__step--result .calc__result-footer {
    margin-top: 0;
    padding-top: 12px;
    padding-bottom: calc(12px + var(--safe-bottom));
    border-top: 1px solid var(--color-border);
    position: sticky;
    bottom: 0;
    z-index: 8;
    background: linear-gradient(
      to top,
      var(--color-surface-elevated) 78%,
      color-mix(in srgb, var(--color-surface-elevated) 90%, transparent) 92%,
      transparent
    );
  }

  .calc__step--result .calc__result-footer .calc__result-actions,
  .calc__step--result .calc__result-footer .calc__result-secondary,
  .calc__step--result .calc__result-footer .calc__step-actions {
    order: unset;
    position: static;
    background: none;
    margin-bottom: 0;
    padding-top: 0;
    border-top: none;
  }

  .calc__step--result .calc__result-footer .calc__result-actions {
    gap: 10px;
    margin-bottom: 0;
  }

  .calc__step--result .calc__result-footer .calc__result-actions--primary {
    gap: 8px;
  }

  .calc__step--result .calc__result-footer .calc__result-cta--primary {
    box-shadow: var(--shadow-gold);
  }

  .calc__step--result .calc__result-footer .calc__result-actions .tg-consent-hint--result {
    font-size: 0.6875rem;
    line-height: 1.45;
    padding: 0 4px;
  }

  .calc__step--result .calc__result-footer .calc__result-secondary {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 6px;
    padding-top: 4px;
  }

  .calc__step--result .calc__result-footer .calc__result-back,
  .calc__step--result .calc__result-footer .calc__result-share {
    font-size: 0.8125rem;
  }

  .calc__step--result .calc__result-footer .calc__step-actions {
    margin-top: 8px;
    margin-bottom: 0;
  }

  .calc__step--result .calc__result-footer .calc__step-actions .calc__prev-btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  /* Узкие экраны ≤389px (контент ~356px с учётом container padding) */
  @media (max-width: 389px) {
    .calc__progress {
      padding: 12px 10px 14px;
      --calc-node-size: 24px;
    }

    .calc__progress-stepper {
      margin-bottom: 16px;
      padding: 0;
    }

    .calc__progress-meta {
      font-size: 0.75rem;
      margin-bottom: 12px;
    }

    .calc__step--params .calc__range-presets {
      gap: 6px;
    }

    .calc__step--params .calc__preset {
      flex-basis: 52px;
      min-width: 52px;
      width: 52px;
    }

    .calc__step--logistics .calc__addon-checkbox {
      display: grid;
      grid-template-columns: 22px minmax(0, 1fr);
      grid-template-rows: auto auto;
      column-gap: 12px;
      row-gap: 2px;
      align-items: start;
    }

    .calc__step--logistics .calc__addon-box {
      grid-row: 1 / span 2;
      align-self: center;
    }

    .calc__step--logistics .calc__addon-content {
      grid-column: 2;
      grid-row: 1;
    }

    .calc__step--logistics .calc__addon-desc {
      display: block;
    }

    .calc__step--logistics .calc__addon-price {
      grid-column: 2;
      grid-row: 2;
      margin-left: 0;
      text-align: left;
    }

    #calculator .calc__result-cta-label--full {
      display: none;
    }

    #calculator .calc__result-cta-label--short {
      display: inline;
    }

    .calc__step--params .calc__field.calc__section-card,
    .calc__step--params .calc__fields--two-cols.calc__section-card .calc__field {
      padding: 12px;
    }

    #calculator .calc__step--params .calc__option-row .calc__type-card-inner {
      padding: 11px 40px 11px 12px;
    }

    .calc__step--params .calc__type-name {
      font-size: 0.8125rem;
    }

    .calc__step--params .calc__type-price,
    .calc__step--logistics .calc__type-price {
      font-size: 0.75rem;
    }

    #calculator .calc__step--params .calc__addon-checkbox {
      grid-template-columns: 22px minmax(0, 1fr);
      grid-template-rows: auto auto;
      align-items: start;
      padding: 12px;
    }

    #calculator .calc__step--params .calc__addon-box {
      grid-row: 1 / span 2;
      align-self: center;
    }

    #calculator .calc__step--params .calc__addon-content {
      grid-column: 2;
      grid-row: 1;
    }

    #calculator .calc__step--params .calc__addon-price {
      grid-column: 2;
      grid-row: 2;
      max-width: none;
      margin-top: 2px;
      padding-left: 0;
      text-align: left;
    }

    .calc__step--params .calc__letter-preview {
      min-height: 52px;
      padding: 10px 14px;
      gap: 12px;
    }

    .calc__step--params .calc__size-input {
      font-size: 1rem;
      padding: 10px;
    }

    .calc__step--params .calc__product-fields > .calc__hint {
      padding: 8px 10px;
      font-size: 0.6875rem;
    }

    .calc__step--logistics .calc__toggle-btn {
      font-size: 0.75rem;
      padding: 8px 8px;
    }

    .calc__step--params .calc__step-desc,
    .calc__step--logistics .calc__step-desc {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .calc__step--result .calc__result-back,
    .calc__step--result .calc__result-share {
      font-size: 0.75rem;
    }

    .calc__main--on-result .calc__progress {
      padding: 12px 10px 14px;
    }

    .calc__step--result {
      gap: 8px;
      padding: 10px 10px 0;
    }

    .calc__step--result .calc__result-hero {
      padding: 14px 10px 12px;
      border-radius: 12px;
    }

    .calc__step--result .calc__result-total-num {
      font-size: clamp(1.625rem, 8.5vw, 2.25rem);
    }

    .calc__step--result .calc__result-breakdown::before {
      padding: 10px 10px 6px;
      font-size: 0.625rem;
    }

    .calc__step--result .calc__result-row {
      padding: 8px;
      gap: 2px 6px;
      grid-template-columns: 28px minmax(0, 1fr) 22px;
    }

    .calc__step--result .calc__result-row-icon {
      width: 28px;
      height: 28px;
      border-radius: 8px;
    }

    .calc__step--result .calc__result-row-edit {
      width: 22px;
      height: 22px;
    }

    #calculator .btn,
    #calculator a.btn {
      padding: 11px 12px;
      font-size: 0.8125rem;
    }

    #calculator .calc__result-cta--primary,
    #calculator .calc__result-cta--secondary {
      padding: 12px 10px;
    }

    #calculator .calc__preset {
      font-size: 0.75rem;
      padding: 0 4px;
    }

    #calculator .calc__step-actions:has(.calc__prev-btn):has(.calc__next-btn) {
      grid-template-columns: minmax(96px, 0.36fr) minmax(0, 1fr);
      gap: 8px;
    }

    .calc__step--result .calc__result-footer .calc__result-actions .tg-consent-hint--result {
      font-size: 0.625rem;
      padding: 0 2px;
    }
  }

  /* PORTFOLIO */
  .portfolio__grid { grid-template-columns: 1fr; }

  .portfolio__placeholder-sign {
    letter-spacing: 2px;
  }

  .portfolio__card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-min);
    padding: 10px 16px;
    text-transform: none;
    letter-spacing: 0.04em;
    border-radius: var(--mobile-radius);
    width: 100%;
    max-width: 100%;
  }

  .portfolio-lightbox {
    padding: 16px;
  }

  .portfolio-lightbox__content {
    padding: 24px;
  }

  .portfolio-lightbox__close {
    width: var(--touch-min);
    height: var(--touch-min);
    top: 12px;
    right: 12px;
  }

  /* PROCESS */
  .process__timeline {
    grid-template-columns: 1fr;
    border-radius: var(--radius-lg);
    overflow-x: visible;
    padding-bottom: 0;
    margin-bottom: 3rem;
  }
  .process__step {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    text-align: left;
  }
  .process__step:last-child { border-bottom: none; }
  .process__step-connector { display: none; }
  .process__step-dot { margin-bottom: 0; flex-shrink: 0; }
  .process__step-content { text-align: left; padding: 0; flex: 1; }

  .process__step-icon {
    margin: 0 0 12px;
  }

  /* FAQ */
  .faq__question {
    padding: 16px 20px;
    min-height: var(--touch-min);
    align-items: center;
  }

  .faq__question-text {
    overflow-wrap: anywhere;
    line-height: 1.4;
  }

  .faq__answer {
    padding: 0 20px 16px;
    overflow-wrap: anywhere;
  }

  /* CTA — mobile stack */
  .cta-final__inner {
    padding: 56px 28px;
    border-radius: var(--radius-lg);
  }

  .cta-final__state {
    min-height: auto;
  }

  .cta-final__body {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cta-final__copy {
    text-align: center;
  }

  .cta-final__headline {
    overflow-wrap: anywhere;
    line-height: 1.02;
    max-width: none;
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .cta-final__lede {
    overflow-wrap: anywhere;
    max-width: 100%;
    font-size: 1rem;
    margin-inline: auto;
  }

  .cta-final__status {
    justify-content: center;
  }

  .cta-final__step-badge {
    margin-left: 0;
  }

  .cta-final__chips {
    justify-content: center;
  }

  .cta-final__chip {
    flex: 1 1 calc(33.33% - 8px);
    min-width: 0;
    align-items: center;
    text-align: center;
    padding: 10px 12px;
  }

  .cta-final__chip-value {
    font-size: 0.875rem;
  }

  .cta-final__ticket {
    width: 100%;
    text-align: center;
    align-items: center;
  }

  .cta-final__ticket-price {
    justify-content: center;
  }

  .cta-final__alt-link {
    justify-content: center;
    text-align: center;
  }

  /* FOOTER */
  .footer__top { grid-template-columns: 1fr; gap: 40px; }

  .footer__social {
    width: var(--touch-min);
    height: var(--touch-min);
  }

  .footer__contact-item,
  .footer__links a {
    min-height: var(--touch-min);
    padding: 10px 0;
    overflow-wrap: anywhere;
  }

  .header__logo--footer .header__logo-wordmark {
    white-space: normal;
    flex-wrap: wrap;
    overflow-wrap: anywhere;
  }

  .footer__brand-desc {
    overflow-wrap: anywhere;
  }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }

  .footer__bottom a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-min);
    padding: 8px 4px;
  }

  .faq__answer a,
  .cookie-consent__text a {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch-min);
    padding: 6px 0;
    margin: -2px 0;
  }
  .footer {
    padding-bottom: calc(var(--space-20) + var(--safe-bottom));
  }

  body.cookie-banner-visible .footer {
    padding-bottom: calc(var(--space-20) + var(--cookie-banner-offset, 0px) + var(--safe-bottom));
  }

  .footer::before {
    height: 64px;
  }

  /* Модальные окна */
  .modal-overlay {
    padding: 16px;
  }

  .modal {
    padding: 28px 24px;
    max-height: 90dvh;
    overflow-y: auto;
    overflow-x: clip;
  }

  .modal__close {
    width: var(--touch-min);
    height: var(--touch-min);
    top: 12px;
    right: 12px;
  }

  .exit-intent__preview {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

/* ────────────────────────────────────────
   УЗКИЙ МОБИЛЬНЫЙ: до 389px (контент ~356px)
──────────────────────────────────────── */
@media (max-width: 389px) {
  .stats__row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .stats__item {
    padding: 12px 10px;
  }

  .stats__count {
    font-size: clamp(1.75rem, 8.5vw, 2.25rem);
  }

  .stats__item--text .stats__text-value {
    font-size: clamp(1.5rem, 7.5vw, 2rem);
  }

  .stats__suffix {
    font-size: 0.875rem;
  }

  .stats__title {
    font-size: 0.625rem;
    letter-spacing: 0.06em;
  }

  .stats__sub {
    font-size: 0.6875rem;
  }

  .stats__cta {
    grid-column: 1 / -1;
  }

  /* Hero: 2+1 stats grid на контентной ширине 356px */
  .hero__meta-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero__meta-stats .hero__meta-stat:last-child {
    grid-column: 1 / -1;
  }

  .hero__meta-stat {
    padding: 10px 12px;
  }

  .hero__meta-num {
    font-size: 1.25rem;
  }

  .hero__title-line {
    font-size: clamp(1.75rem, 8.5vw, 2.5rem);
  }

  /* Services */
  #services-title {
    font-size: clamp(1.5rem, 7.5vw, 2rem);
  }

  .bento-card--large,
  .bento-card--medium {
    padding: 20px 16px;
  }

  .bento-card--small {
    padding: 14px;
  }

  .price-formula-banner {
    padding: 16px 14px;
  }

  /* Process */
  .process__step {
    padding: 16px;
    gap: 12px;
  }

  /* FAQ */
  .faq__question {
    padding: 14px 16px;
  }

  .faq__answer {
    padding: 0 16px 14px;
  }

  /* CTA */
  .cta-final__inner {
    padding: 48px 20px;
  }

  .cta-final__headline {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .cta-final__chip {
    flex: 1 1 100%;
  }

  /* Portfolio lightbox */
  .portfolio-lightbox__content {
    padding: 20px 16px;
  }

  /* Modals */
  .modal {
    padding: 20px 16px;
  }
}

/* Touch-устройства: без hover-эффектов, glass и vignette всегда видимы */
@media (hover: none) {
  .btn:hover,
  .btn-primary:hover,
  .btn-gold:hover,
  .btn-outline:hover,
  .btn-ghost:hover {
    transform: none;
  }

  .bento-card:hover,
  .card:hover,
  .faq__item:hover {
    transform: none;
    box-shadow: var(--card-shadow, var(--shadow-xs));
    border-color: var(--color-border);
  }

  .bento-card--dark:hover {
    border-color: transparent;
    box-shadow: var(--card-shadow, var(--shadow-xs));
  }

  .process__step:hover {
    background: transparent;
  }

  .process__step:hover .process__step-dot,
  .process__step:hover .process__step-icon {
    transform: none;
    color: inherit;
  }

  .portfolio__card:hover {
    transform: none;
    box-shadow: var(--card-shadow, var(--shadow-xs));
  }

  .portfolio__card-image::after {
    opacity: 1;
  }

  .portfolio__card-info,
  .portfolio__card-btn {
    transform: none;
    visibility: visible;
    transition: none;
  }

  .portfolio__card-overlay {
    pointer-events: auto;
  }

  .hero__magazine-frame:hover {
    transform: none;
  }
}

/* Toast Telegram: fallback внизу экрана (без якоря) */
@media (max-width: 767px) {
  .tg-copy-toast:not(.tg-copy-toast--anchored) {
    bottom: calc(24px + var(--safe-bottom));
  }

  body.is-in-calculator .tg-copy-toast:not(.tg-copy-toast--anchored) {
    bottom: calc(24px + var(--safe-bottom));
  }

  body.cookie-banner-visible .tg-copy-toast:not(.tg-copy-toast--anchored) {
    bottom: calc(var(--cookie-banner-offset, 148px) + 16px + var(--safe-bottom));
  }
}

@media (max-width: 389px) {
  .floating-cta__link {
    white-space: normal;
    line-height: 1.25;
    text-align: center;
    padding: 12px 14px;
  }

  .header__mobile-cta {
    padding: 10px 12px;
    font-size: 0.625rem;
  }

  .cta-final__alt-link {
    white-space: normal;
    line-height: 1.35;
    text-align: center;
  }
}
