/* Телефон: первый экран, шапка, нижняя панель, вылезающие блоки (аудит 18.11.2026).
   Собранный Tailwind в base.css не пересобирается, поэтому правки — здесь, точечно. */

/* Цена и подача под H1 — на всех ширинах. */
.hero-offer{margin-top:18px;display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px;color:rgba(255,255,255,.82);font-size:17px;font-weight:700;line-height:1.35}
.hero-offer strong{color:#f7a719;font-size:22px;font-weight:900}
.hero-offer span{color:rgba(255,255,255,.35)}

/* До lg: H1 → цена → форма → текст и ссылки. На десктопе сетка не меняется. */
@media (max-width:1023px){
  .home-hero-inner{display:flex;flex-direction:column;align-items:stretch;gap:0;padding-top:112px}
  .home-hero-inner>.hero-copy{display:contents}
  .home-hero-inner .hero-copy>*{order:3}
  .home-hero-inner .hero-copy>p:first-child,
  .home-hero-inner .hero-copy>h1,
  .home-hero-inner .hero-copy>.hero-offer{order:1}
  .home-hero-inner>.hero-form{order:2;margin-top:24px;margin-bottom:8px}
  .home-hero-inner h1{font-size:34px;margin-top:16px}
  .hero-lead>*{font-size:16px}
}

/* Шапка: номер текстом, в одну строку. */
.header-phone-mobile{white-space:nowrap;font-size:15px;font-weight:800;letter-spacing:-.01em;padding:8px 4px}
@media (max-width:359px){.header-phone-mobile{font-size:13px}}

/* Нижняя панель: номер в одну строку, кнопки по содержимому. */
#action-bar{grid-template-columns:1fr 1fr;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
#action-bar>a:first-child{white-space:nowrap;font-size:15px;padding-left:10px;padding-right:10px}
/* Плашка cookie на телефоне — над панелью, а не поверх неё. */
@media (max-width:1023px){
  #cookie-bar{bottom:calc(84px + env(safe-area-inset-bottom,0px))}
  body{padding-bottom:76px}
}

/* Документы без макетов-заглушек. */
.document-card--plain>div:last-child{padding:4px 2px 3px}
.document-card--plain h3{font-size:17px}
.document-card--plain p{margin-top:8px;font-size:14px;line-height:1.5;color:#66717d}

/* Блоки, которые вылезали за экран на 375 px. */
.static-tariff-table-wrap,.cat-spec-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
/* H1 без переноса внутри слова («Бабуш-кинском»): на телефоне кегль меньше, слово переносится только если не влезает целиком. */
.static-page-head h1{overflow-wrap:break-word;hyphens:manual}
@media (max-width:639px){.static-page-head h1{font-size:34px;line-height:1.12}}
@media (max-width:639px){main{overflow-x:clip}}

/* Характеристики карточки: 4 колонки на телефоне не помещались (578 px) — две пары в столбик. */
@media (max-width:639px){
  .product-facts,.product-facts thead,.product-facts tbody{display:block}
  .product-facts tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .product-facts thead th:nth-child(n+3){display:none}
  .product-facts th,.product-facts td{width:auto;padding:12px 14px;overflow-wrap:anywhere}
}

/* Блоки способов подачи: /dostavka/ (#placement) и каталог (.cat-section#delivery).
   У секций не было своих стилей: заголовок мелкий, фото разной высоты, кнопка вплотную к тексту. */
:is(#placement,#delivery).cat-section{padding:76px 0}
:is(#placement,#delivery) .cat-section-head{display:flex;align-items:end;justify-content:space-between;gap:30px}
:is(#placement,#delivery) .cat-eyebrow{display:block;font-size:12px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:#a8690a}
:is(#placement,#delivery) .cat-section-head h2{margin-top:12px;font-size:clamp(30px,3.4vw,44px);line-height:1.13}
:is(#placement,#delivery) .cat-section-head>p{max-width:360px;font-size:15px;line-height:1.65;color:#5b666f}
.shared-transport-copy>p{margin-bottom:24px}
@media(max-width:900px){:is(#placement,#delivery) .cat-section-head{align-items:start;flex-direction:column;gap:16px}:is(#placement,#delivery) .cat-section-head>p{max-width:650px}}
@media(max-width:639px){:is(#placement,#delivery).cat-section{padding:52px 0}}

/* Шапка на телефоне: 96 → 64 px, название в две строки вместо трёх,
   первый экран (H1, цена, форма) поднимается выше. */
@media (max-width:639px){
  #site-header{padding-bottom:0}
  #site-header .header-main-row{min-height:64px;gap:12px}
  .header-logo{gap:8px}
  .header-logo img{width:32px;height:32px}
  .header-logo>span>span:first-child{font-size:13px;line-height:1.1;text-wrap:balance;max-width:7.2em}
  .header-phone-mobile{padding:6px 2px}
}
@media (max-width:1023px){
  .page-home .home-hero-inner{padding-top:28px}
}

/* Мелкие подписи 10–11,5 px → не меньше 12–13 px (цена, наличие, шаги, подписи карточек). */
.concrete-grade-price small,.concrete-grade-price .is-available,.concrete-grade-price .is-unavailable,
.concrete-grade-name small,.price-option-price small{font-size:12px}
.concrete-grade-number,.price-option-index{font-size:12px}
.step-card small,.shared-transport-kicker,.promotions-badge,.cx-eyebrow{font-size:12px}
#contacts dl dt,.mv4-info dt{font-size:12px}
[data-home-block=categories] .category-card>span:last-child,#purpose a.group .purpose-material{font-size:13px}
#purpose>.container-page>p.mt-5{font-size:13px}
.cx-volume-tool>summary small{font-size:12px}
.concrete-task-grid small{font-size:12px}

/* Карточка товара, блок «Согласуем доставку»: пункты справа были без оформления — как на главной. */
.delivery-layout article>h3{font-size:19px}
.delivery-layout article>p{margin-top:8px;font-size:15px;line-height:1.65;color:var(--color-ink-500,#5b666f)}

/* Районы доставки: блок на /dostavka/ и «соседние районы» на районной странице. */
.delivery-areas-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}
.delivery-areas-group,.delivery-areas-metro{border:1px solid #e1e5e8;border-radius:18px;background:#fff}
.delivery-areas-group>summary,.delivery-areas-metro>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;cursor:pointer;list-style:none;font-size:17px;font-weight:800}
.delivery-areas-group>summary::-webkit-details-marker,.delivery-areas-metro>summary::-webkit-details-marker{display:none}
.delivery-areas-group>summary small,.delivery-areas-metro>summary small{flex:none;min-width:28px;padding:2px 8px;border-radius:99px;background:#f3f4f6;color:#5b666f;font-size:12px;text-align:center}
.delivery-areas-group>summary::after,.delivery-areas-metro>summary::after{content:"";flex:none;width:9px;height:9px;margin-left:4px;border-right:2px solid #a8690a;border-bottom:2px solid #a8690a;transform:rotate(45deg);transition:transform .2s}
.delivery-areas-group[open]>summary::after,.delivery-areas-metro[open]>summary::after{transform:rotate(-135deg)}
.delivery-areas-group>summary span,.delivery-areas-metro>summary span{flex:1}
.delivery-areas-group ul{padding:0 20px 18px;columns:2;column-gap:16px}
.delivery-areas-group li,.delivery-areas-letters li{break-inside:avoid;padding:4px 0;font-size:15px;line-height:1.35}
.delivery-areas a{color:#12171a;text-decoration:underline;text-decoration-color:#d7dbe0;text-underline-offset:3px}
.delivery-areas a:hover{color:#a8690a;text-decoration-color:currentColor}
.delivery-areas-metro{margin-top:12px}
.delivery-areas-letters{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px 24px;padding:4px 20px 20px}
.delivery-areas-letters b{display:block;margin-bottom:2px;color:#a8690a;font-size:15px}
.delivery-areas-chips{display:flex;flex-wrap:wrap;gap:8px}
.delivery-areas-chips a{display:inline-block;padding:9px 14px;border:1px solid #e1e5e8;border-radius:99px;background:#fff;text-decoration:none;font-size:15px}
.delivery-areas-chips a:hover{border-color:#f4a623}
.delivery-areas-all{margin-top:24px}
.delivery-areas a.btn-ghost{text-decoration:none;color:inherit}
@media(max-width:1023px){.delivery-areas-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:639px){.delivery-areas-grid{grid-template-columns:1fr;gap:8px}.delivery-areas-group>summary,.delivery-areas-metro>summary{padding:15px 16px;font-size:16px}.delivery-areas-group ul{padding:0 16px 16px}.delivery-areas-letters{grid-template-columns:1fr 1fr;padding:4px 16px 16px}}

/* Меню продукции: четвёртая колонка «Нерудные и плиты» + «Асфальт». */
@media (min-width: 1024px) {
  .nav-dropdown-product > .nav-dropdown-panel { width: min(960px, 100vw - 3rem); }
  .nav-product-grid { grid-template-columns: 1.35fr 1fr .92fr .92fr; }
}
.nav-column-label-spaced { margin-top: 1rem; }

/* Переход «Рассчитать»: блок не уходит под липкую шапку. */
#calc-section,#lead,#lead form{scroll-margin-top:76px}
