/* Phone flow shell, Figma 208:4720 (footer), 451:315 (compact header).
 * Tablet/desktop keep their existing layout and stylesheet order.
 *
 * 24.09.2026 телефонный поток возвращён на канву 430: правило
 * html:has(body.phone-flow){zoom:1} убрано, работает :root{zoom:calc(100vw/430px)}
 * из main.style.css. Причина — заказчик показал искажения на 320–800, и на
 * телефоне они одного рода: резиновая вёрстка ужимала колонку, не трогая
 * кегль. На «Готовых наборах» при 375px описание набора сжималось до 161px
 * при шрифте 14px, и текст переносился по два слова; в макете колонка 175px.
 *
 * Перевод механический и проверяемый: все 52 clamp(min, Xvw, max) в этом
 * дереве на ширине 430 давали ровно свой max (у двух средний член даже больше
 * максимума), то есть max и есть значение из макета. Их заменили на max, а
 * шесть оставшихся выражений с vw посчитали на канве: 100vw→100%,
 * 29.07vw/30.70vw→125px/132px, min(3.45vw,15px)→14.835px,
 * формулу стикера на корпоративной→358px, 182px и --cert-unit→1px.
 * Единиц vw в css/phone больше нет: под zoom они считаются от реального
 * окна, а не от канвы, и ужимались бы дважды.
 *
 * Чего это стоит: 30 из 50 clamp'ов держали минимум выше 320px. Теперь
 * вместо пола идёт пропорциональное уменьшение — на 375px расхождение с
 * прежним поведением около 6%, на 320px до 20%. Это осознанный размен:
 * заказчик просил совпадение с макетом 1 в 1, а 320 отдельно согласован
 * как допустимо ужатый.
 *
 * ВАЖНО, какие файлы сюда НЕ входят. figma-pages/shared/mobile-flow.css
 * оставляет zoom:1 для .dp-page, .sostav-section, .faq-page, .legal-page,
 * .cart-page, .checkout-page, .cw-page — у них фиксированная канва уже
 * снята, они живут резиновыми. Их стили лежат в pages/content.css,
 * pages/commerce.css и pages/certificates.css, поэтому эти три файла
 * сохраняют clamp с vw. Если убрать резину и там, страницы получат
 * размеры канвы 430 без всякого масштабирования и поедут на узком экране.
 * Проверять так: селектор из списка выше есть в файле → файл не трогаем.
 */

/* Use the existing drawer across the desktop zoom band, not the cramped row.
   The 62px header controls remain at least 44px after the smallest root zoom. */
@media (min-width: 861px) and (max-width: 1199px),
       (width > 860px) and (max-width: 1199px),
       (min-width: 861px) and (width < 1200px) {
  body.phone-flow .site-header {
    top: max(8px, env(safe-area-inset-top));
    padding-inline: 20px;
  }
  body.phone-flow .header-inner {
    height: 58px;
    padding-inline: 16px;
    gap: 12px;
  }
  body.phone-flow .site-header.is-open .header-inner { backdrop-filter: none; }
  /* WebKit can delay transitions on these root-zoomed fixed overlays, leaving
     the drawer off-canvas after activation. Switch states immediately. */
  body.phone-flow .header-nav {
    position: fixed;
    inset: 0;
    flex: unset;
    display: flex;
    overflow-x: clip;
    visibility: hidden;
    pointer-events: none;
    justify-content: flex-end;
    background: rgba(0, 0, 0, .2);
    opacity: 0;
    transition: none;
  }
  body.phone-flow .site-header.is-open .header-nav {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transition: none;
  }
  body.phone-flow .nav-menu-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    width: min(330px, 86%);
    height: 100%;
    max-height: 100%;
    padding: 135px 50px 50px;
    overflow-y: auto;
    scroll-padding-top: 135px;
    background: #FFF6EB;
    box-shadow: -16px 0 32px rgba(45, 24, 18, .14);
    transform: translateX(100%);
    transition: none;
  }
  body.phone-flow .site-header.is-open .nav-menu-panel { transform: translateX(0); }
  body.phone-flow .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    width: 100%;
  }
  body.phone-flow .nav-menu > li > a {
    display: flex;
    align-items: center;
    min-height: 0;
    font-size: 16px;
    line-height: 14px;
    white-space: normal;
  }
  body.phone-flow .nav-mobile-footer { display: flex; }
  body.phone-flow .site-header .nav-mobile-footer__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    line-height: 0;
  }
  body.phone-flow .site-header .nav-mobile-footer__socials img {
    width: 58px;
    height: 58px;
    max-width: none;
    transform: translate(2px, 2px);
  }
  body.phone-flow .site-header .nav-mobile-footer__socials a:nth-child(1) img { content: url('../../img/footer-phone-max.svg'); }
  body.phone-flow .site-header .nav-mobile-footer__socials a:nth-child(2) img { content: url('../../img/footer-phone-tg.svg'); }
  body.phone-flow .site-header .nav-mobile-footer__socials a:nth-child(3) img { content: url('../../img/footer-phone-inst.svg'); }
  body.phone-flow .site-header .nav-mobile-footer__socials a:nth-child(4) img { content: url('../../img/footer-phone-call.svg'); }
  body.phone-flow .nav-menu-panel .sub-menu { display: none; }
  body.phone-flow .nav-menu-panel .menu-item-has-children.is-expanded > .sub-menu {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin: 24px 0 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0.7;
    visibility: visible;
    transform: none;
  }
  body.phone-flow .nav-menu-panel .sub-menu a {
    display: flex;
    align-items: center;
    min-height: 0;
    font-size: 16px;
    line-height: normal;
  }
  body.phone-flow .site-header .nav-menu-panel .menu-item-has-children.is-expanded > a .nav-caret {
    transform: rotate(180deg);
  }
  body.phone-flow .site-header .nav-menu-panel .menu-item-has-children:not(.is-expanded) > a .nav-caret {
    transform: none;
  }
  body.phone-flow .header-right {
    position: static;
    gap: 12px;
  }
  body.phone-flow .header-right .socials { display: none; }
  body.phone-flow .site-header .cart-btn {
    width: max-content;
    min-width: 124px;
    flex: 0 0 auto;
    min-height: 62px;
    height: 62px;
    box-sizing: border-box;
    position: relative;
    justify-content: flex-start;
    gap: 11px;
    padding: 0 28px 0 14px;
    border: 0;
    background: transparent;
  }
  body.phone-flow .site-header .cart-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 14px;
    right: 14px;
    width: auto;
    min-width: 96px;
    height: 29px;
    box-sizing: border-box;
    border: 1.5px solid #9D1F2A;
    border-radius: 999px;
    background: #FFF6EB;
    transform: translateY(-50%);
  }
  body.phone-flow .site-header .cart-btn:hover {
    box-shadow: none;
    transform: none;
  }
  body.phone-flow .site-header .cart-icon-wrap {
    position: relative;
    z-index: 1;
    width: 29px;
    height: 29px;
    margin-left: 0;
    flex: 0 0 29px;
  }
  body.phone-flow .site-header .cart-price {
    position: relative;
    z-index: 1;
    font-size: 11px;
  }
  body.phone-flow .site-header .nav-burger {
    display: flex;
    flex: 0 0 62px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 62px;
    height: 62px;
    border: 0;
    padding: 0;
    position: relative;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
  }
  body.phone-flow .site-header .nav-burger::before {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: #FFF6EB;
    box-shadow: 0 4px 12px rgba(45, 24, 18, .14);
  }
  body.phone-flow .site-header .nav-burger:hover { transform: none; }
  body.phone-flow .site-header .nav-burger span {
    position: relative;
    z-index: 1;
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: #B01E2B;
    transition: none;
  }
  body.phone-flow .site-header.is-open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.phone-flow .site-header.is-open .nav-burger span:nth-child(2) { opacity: 0; }
  body.phone-flow .site-header.is-open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* Keep the existing footer sizing limited to touch landscape. */
  @media (pointer: coarse) and (orientation: landscape) and (min-width: 861px) and (max-width: 1199px),
         (pointer: coarse) and (orientation: landscape) and (width > 860px) and (max-width: 1199px),
         (pointer: coarse) and (orientation: landscape) and (min-width: 861px) and (width < 1200px) {
    body.phone-flow .site-footer .footer-social-item {
      flex: 0 0 calc(38px / var(--paola-root-zoom, calc(100vw / 1200px)));
      width: calc(38px / var(--paola-root-zoom, calc(100vw / 1200px)));
      height: calc(38px / var(--paola-root-zoom, calc(100vw / 1200px)));
    }
    body.phone-flow .site-footer .footer-social-row {
      gap: calc(8px / var(--paola-root-zoom, calc(100vw / 1200px)));
      margin-inline: 0;
    }
    body.phone-flow .site-footer .footer-social-item img {
      width: calc(58px / var(--paola-root-zoom, calc(100vw / 1200px)));
      height: calc(58px / var(--paola-root-zoom, calc(100vw / 1200px)));
      /* Center the 38px red face inside its 38px cell; keep the screen offset fixed under root zoom. */
      transform: translate(calc(2px / var(--paola-root-zoom, calc(100vw / 1200px))), 2px);
    }
    body.phone-flow .site-footer .footer-col-nav a,
    body.phone-flow .site-footer .footer-col-contact a,
    body.phone-flow .site-footer .footer-legal a,
    body.phone-flow .site-footer .footer-col-buttons .btn {
      min-width: 0;
      min-height: 0;
    }
    body.phone-flow .site-footer .footer-col-buttons .btn {
      width: calc(176px / var(--paola-root-zoom, calc(100vw / 1200px)));
      max-width: 100%;
      min-height: 46px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    body.phone-flow .header-nav,
    body.phone-flow .nav-menu-panel,
    body.phone-flow .site-header .nav-burger span { transition: none; }
  }
}

@media (min-width: 861px) and (max-width: 1199px),
       (width > 860px) and (max-width: 1199px),
       (min-width: 861px) and (width < 1200px) {
  body.home .site-footer .footer-inner { padding-bottom: 30px; }
}

/* Fluid pages keep their native canvas here. The full desktop row is wider
   than these viewports, so use the same accessible drawer before it clips. */
@media (min-width: 861px) and (max-width: 1199px) and (pointer: fine),
       (min-width: 861px) and (max-width: 1199px) and (orientation: portrait),
       (width > 860px) and (max-width: 1199px) and (pointer: fine),
       (min-width: 861px) and (width < 1200px) and (pointer: fine),
       (width > 860px) and (max-width: 1199px) and (orientation: portrait),
       (min-width: 861px) and (width < 1200px) and (orientation: portrait) {
  body.fluid-flow .site-header {
    top: max(8px, env(safe-area-inset-top));
    padding-inline: 20px;
  }
  body.fluid-flow .site-header .header-inner {
    width: 100%;
    max-width: none;
    height: 62px;
    padding-inline: 16px;
    gap: 12px;
    box-sizing: border-box;
  }
  body.fluid-flow .site-header.is-open .header-inner { backdrop-filter: none; }
  body.fluid-flow .site-header .header-nav {
    position: fixed;
    inset: 0;
    flex: unset;
    display: flex;
    visibility: hidden;
    pointer-events: none;
    justify-content: flex-end;
    overflow: hidden;
    background: rgba(0, 0, 0, .2);
    opacity: 0;
    transition: opacity .25s ease, visibility 0s linear .3s;
  }
  body.fluid-flow .site-header.is-open .header-nav {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transition: opacity .25s ease, visibility 0s;
  }
  body.fluid-flow .nav-menu-panel {
    display: flex;
    flex-direction: column;
    width: min(380px, 86%);
    height: 100%;
    max-height: 100%;
    padding: 74px 24px 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #FFF6EB;
    box-shadow: -16px 0 32px rgba(45, 24, 18, .14);
    transform: translateX(100%);
    transition: transform .3s ease;
  }
  body.fluid-flow .site-header.is-open .nav-menu-panel { transform: translateX(0); }
  body.fluid-flow .nav-menu { flex-direction: column; align-items: stretch; gap: 8px; width: 100%; }
  body.fluid-flow .nav-menu > li { width: 100%; }
  body.fluid-flow .nav-menu > li > a {
    display: flex;
    align-items: center;
    min-height: 48px;
    font-size: 16px;
    line-height: 1.2;
    white-space: normal;
  }
  body.fluid-flow .nav-menu-panel .menu-item-has-children.is-expanded > .sub-menu {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin: 8px 0 0;
    padding: 0 0 0 16px;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  body.fluid-flow .nav-menu-panel .sub-menu a { display: flex; align-items: center; min-height: 48px; line-height: 1.2; }
  body.fluid-flow .header-right { position: static; margin-left: auto; gap: 12px; }
  body.fluid-flow .header-right .socials { display: none; }
  body.fluid-flow .site-header .cart-btn { min-height: 44px; height: 44px; padding: 0 12px 0 6px; }
  body.fluid-flow .site-header .cart-icon-wrap { width: 44px; height: 44px; }
  body.fluid-flow .site-header .nav-burger {
    display: flex;
    flex: 0 0 44px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #FFF6EB;
    box-shadow: 0 4px 12px rgba(45, 24, 18, .14);
    cursor: pointer;
  }
  body.fluid-flow .site-header .nav-burger span { display: block; width: 22px; height: 2px; margin: 0 auto; background: #B01E2B; transition: .22s ease; }
  body.fluid-flow .site-header.is-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.fluid-flow .site-header.is-open .nav-burger span:nth-child(2) { opacity: 0; }
  body.fluid-flow .site-header.is-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  @media (prefers-reduced-motion: reduce) {
    body.fluid-flow .header-nav,
    body.fluid-flow .nav-menu-panel,
    body.fluid-flow .site-header .nav-burger span { transition: none; }
  }
}

@media (max-width: 430px) {
  /* Страницы, оставшиеся резиновыми, глушат канву здесь. Раньше это делал
     общий html:has(body.phone-flow){zoom:1}, а правило из
     figma-pages/shared/mobile-flow.css только дублировало его на словах:
     проверено на живой странице — mobile-flow.css на «Составе» вообще не
     подключается, так что единственным выключателем был общий сброс.
     Список синхронизирован с тем, что лежит в pages/content.css,
     pages/commerce.css и pages/certificates.css. */
  html:has(:is(.dp-page, .sostav-page, .sostav-section, .faq-page, .legal-page,
               .cart-page, .checkout-page, .cw-page)) { zoom: 1; }

  body.phone-flow {
    --phone-gutter: 25px;
    width: 100%;
    min-width: 0;
  }

  body.phone-flow .site-header {
    width: 100%;
    max-width: none;
    left: 0;
    right: 0;
    top: max(20px, env(safe-area-inset-top));
    padding: 0 12px 0 20px;
    transform: none;
  }
  body.phone-flow .site-header .header-inner {
    width: 100%;
    max-width: none;
    min-height: 44px;
    height: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  body.phone-flow .site-header .header-right {
    gap: 14px;
    margin-left: auto;
    /* Figma 208:6718 applies one Drop shadow to the shared cart/menu group. */
    filter: drop-shadow(4px 4px 2px rgba(70, 59, 47, .25));
  }
  body.phone-flow .site-header .cart-btn {
    min-height: 44px; height: 44px; flex-shrink: 0;
    padding: 0 0 0 20px; border: 0; gap: 8px;
    /* Figma 208:6720 keeps the capsule edge; its outer shadow belongs to the
       shared header-right group (208:6718), not to this pill alone. */
    box-shadow: inset 0 0 0 1px rgba(255, 246, 235, .85);
  }
  body.phone-flow.home .site-header .cart-btn {
    /* Figma 208:6720 uses a 60%-opaque brown capsule over the home canvas. */
    border: 1px solid rgba(255, 246, 235, .6);
    background: rgba(64, 28, 12, .6);
    backdrop-filter: blur(4.5px);
    box-shadow: none;
  }
  /* Every native page uses the same live, high-contrast cart (451:315).
   * Do not inherit the dark desktop price on the brown compact capsule. */
  body.phone-flow .site-header .cart-price {
    display: block; color: #fff6eb; font-size: 16px; line-height: 21px;
  }
  body.phone-flow .site-header .cart-icon-wrap {
    width: 44px; height: 44px; flex: 0 0 44px;
  }
  body.phone-flow .site-header .cart-icon {
    width: 25px; height: 19.117px;
  }
  body.phone-flow .site-header .cart-icon path {
    fill: url(#paola-cart-icon-gradient); stroke: none;
  }
  body.phone-flow .site-header .cart-count {
    top: 26px; left: auto; right: -9px; width: 19px; height: 19px; transform: none;
  }
  body.phone-flow .site-header .nav-burger {
    width: 44px !important;
    height: 44px !important;
    flex-basis: 44px !important;
    gap: 4.3333px;
    background: linear-gradient(180deg, #FFF6ED 0%, #F8EADC 100%);
    box-shadow: none;
  }
  body.phone-flow .site-header .nav-burger span {
    position: relative;
    top: .8333px;
    width: 18.6667px;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(180deg, #DA1B2C 0%, #9D1F2A 100%);
  }
  body.phone-flow .site-header .header-nav {
    width: 100%;
    /* inset: 0 fills the fixed viewport even when the 430px canvas is zoomed.
       Viewport units would be scaled a second time below 430px. */
    height: auto;
  }
  body.phone-flow .site-header .nav-menu-panel {
    /* 330px по макету (Figma 208:4549 — панель 330 на кадре 430, слева
       остаются 100px затемнённой страницы). Было min(100%, 430px), и на
       телефоне шторка раскрывалась во всю ширину, перебивая базовое
       правило min(330px, 86%), которое как раз на эти узлы и ссылается. */
    width: min(330px, 86%);
    min-width: 0;
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  body.phone-flow .site-header .sub-menu {
    position: static;
    display: none;
    min-width: 0;
    width: 100%;
    margin: 12px 0 0;
    padding: 0 0 0 12px;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  body.phone-flow .site-header .menu-item-has-children.is-expanded > .sub-menu { display: block; }
  body.phone-flow .site-header .sub-menu a { white-space: normal; min-height: 44px; display: flex; align-items: center; }

  /* Natural-height footer: nav, contacts and legal text participate in flow. */
  body.phone-flow .site-footer {
    width: 100%;
    height: auto;
    min-height: 553px;
  }
  body.phone-flow .site-footer .footer-inner {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 553px;
    margin: 0;
    padding: 76px var(--phone-gutter) 30px;
  }
  body.phone-flow .site-footer .footer-logo-svg {
    position: relative;
    inset: auto;
    flex: none;
    width: min(382px, calc(100% + 2px));
    height: auto;
    aspect-ratio: 382 / 64;
    max-width: none;
    margin: 0;
  }
  body.phone-flow .site-footer .footer-logo { width: 100%; height: auto; content: url('../../img/footer-phone-logo@3x.png'); }
  body.phone-flow .site-footer .footer-columns {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 176px);
    column-gap: 22px;
    row-gap: 33px;
    width: 100%;
    max-width: 374px;
    height: auto;
    margin: 42px 0 0;
  }
  body.phone-flow .site-footer :is(.footer-col-nav, .footer-col-buttons, .footer-col-contact) {
    position: static;
    inset: auto;
    width: auto;
    min-width: 0;
    height: auto;
  }
  body.phone-flow .site-footer .footer-col-nav { display: flex; flex-direction: column; gap: 16px; }
  body.phone-flow .site-footer .footer-col-nav a { font-size: 9px; line-height: 11px; white-space: normal; }
  body.phone-flow .site-footer .footer-col-buttons { grid-column: 2; grid-row: 2; flex-direction: column; gap: 22px; margin-left: -1px; }
  body.phone-flow .site-footer .footer-col-buttons .btn { width: 100%; max-width: 176px; min-width: 0; font-weight: 500; letter-spacing: .36px; }
  body.phone-flow .site-footer .footer-col-contact { grid-column: 1; grid-row: 2; margin-top: 9px; font-size: 9px; line-height: 17px; }
  body.phone-flow .site-footer :is(.footer-col-contact__label, .footer-col-contact__phone) { line-height: 11px; }
  body.phone-flow .site-footer .footer-col-contact__address { margin-top: 3px; }
  body.phone-flow .site-footer .footer-social-row { display: flex; flex-wrap: wrap; gap: 8px; }
  body.phone-flow .site-footer .footer-social-item { flex: 0 0 38px; width: 38px; height: 38px; }
  body.phone-flow .site-footer .footer-social-item img { width: 58px; height: 58px; max-width: none; transform: translate(1px, 1px); }
  /* Flatten Figma SVG filters at 3x: WebKit rasterizes these shadows at 1x. */
  body.phone-flow .site-footer .footer-social-item:nth-child(1) img { content: url('../../img/footer-phone-max@3x.png'); }
  body.phone-flow .site-footer .footer-social-item:nth-child(2) img { content: url('../../img/footer-phone-tg@3x.png'); }
  body.phone-flow .site-footer .footer-social-item:nth-child(3) img { content: url('../../img/footer-phone-inst@3x.png'); }
  body.phone-flow .site-footer .footer-social-item:nth-child(4) img { content: url('../../img/footer-phone-call@3x.png'); }
  /* Соцсети в шторке меню — тем же приёмом, что и в подвале выше.
     Прежде там стояли исходные SVG в 38px: круг выходил примерно 22px,
     а тень из фильтра Figma WebKit растрирует в один икс и на retina
     она мылится. Ячейка остаётся 38, картинка рисуется 58 и подменяется
     на те же PNG в три плотности. */
  body.phone-flow .site-header .nav-mobile-footer__socials a {
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 38px; width: 38px; height: 38px; line-height: 0;
  }
  body.phone-flow .site-header .nav-mobile-footer__socials img {
    width: 58px; height: 58px; max-width: none; transform: translate(2px, 2px);
  }
  body.phone-flow .site-header .nav-mobile-footer__socials a:nth-child(1) img { content: url('../../img/footer-phone-max@3x.png'); }
  body.phone-flow .site-header .nav-mobile-footer__socials a:nth-child(2) img { content: url('../../img/footer-phone-tg@3x.png'); }
  body.phone-flow .site-header .nav-mobile-footer__socials a:nth-child(3) img { content: url('../../img/footer-phone-inst@3x.png'); }
  body.phone-flow .site-header .nav-mobile-footer__socials a:nth-child(4) img { content: url('../../img/footer-phone-call@3x.png'); }

  body.phone-flow .site-footer .footer-divider { position: static; width: 100%; max-width: 374px; height: .5px; background: rgba(176, 30, 43, .5); margin: 40px 0 0; }
  body.phone-flow .site-footer .footer-legal {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 243px) minmax(0, 106px);
    gap: 23px;
    width: 100%;
    max-width: 374px;
    margin: 26.5px 0 0;
    padding: 0;
    align-items: end;
  }
  body.phone-flow .site-footer .footer-legal-main { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; width: 100%; min-width: 0; }
  body.phone-flow .site-footer .footer-legal-main span:nth-child(3) { grid-column: 1 / -1; max-width: 233px; }
  body.phone-flow .site-footer .footer-legal :is(span, a) { font-size: 8px; line-height: 11px; white-space: normal; }
  body.phone-flow .site-footer .footer-legal > a { text-align: right; }
}

@media (max-width: 379px) {
  /* The artboard's 9px two-column footer cannot simply shrink with the phone.
   * Reflow the lower row and give the small print a readable physical size. */
  body.phone-flow .site-footer .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  body.phone-flow .site-footer .footer-col-nav a { font-size: 11px; line-height: 15px; }
  body.phone-flow .site-footer .footer-col-contact { grid-column: 1 / -1; grid-row: 2; font-size: 11px; margin-top: 0; }
  body.phone-flow .site-footer .footer-col-buttons { grid-column: 1 / -1; grid-row: 3; margin-left: 0; }
  body.phone-flow .site-footer .footer-legal { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  body.phone-flow .site-footer .footer-legal-main { grid-template-columns: minmax(0, 1fr); }
  body.phone-flow .site-footer .footer-legal :is(span, a) { font-size: 10px; line-height: 14px; }
  body.home.phone-flow .site-footer .footer-legal > a { width: 100%; text-align: left; }
}
