/* ═══════════════════════════════════════════════════════════════
   Ремтехстрой — слой дизайн-кода (подключается после default.css)
   Графит + сигнальный жёлтый + белый. Шрифты: Fira Sans / Fira Sans Condensed.
   ═══════════════════════════════════════════════════════════════ */

:root {
    --radius: 6px;
    --radius-sm: 4px;
    --section-y: 96px;
    --hazard: repeating-linear-gradient(-45deg, var(--yellow-500) 0 14px, var(--graphite-950) 14px 28px);
}
@media (max-width: 768px) {
    :root { --section-y: 56px; }
}

/* ---------- База и браузерные поверхности ---------- */
html {
    accent-color: var(--yellow-500);
    scrollbar-color: var(--graphite-400) var(--graphite-100);
}
body { font-family: var(--font); }
h1, h2, h3, h4,
[class*="__title"] {
    font-family: var(--font-display);
    letter-spacing: 0;
    text-wrap: balance;
}
p { text-wrap: pretty; }
::selection { background: var(--yellow-500); color: var(--graphite-900); }
:focus-visible { outline: 3px solid var(--yellow-600); outline-offset: 3px; }
input, textarea { caret-color: var(--yellow-700); }
table, [class*="spec"] td, [class*="price"] { font-variant-numeric: tabular-nums; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Анимации появления на каждом блоке убраны: контент виден сразу */
.reveal, .reveal-left, .reveal-scale, .reveal-stagger, .reveal-stagger > *,
.brands-reveal, .brands-reveal .brands__item {
    opacity: 1 !important;
    transform: none !important;
}
.hero__title, .hero__text, .hero__buttons, .hero__nav-inner { animation: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Заголовок секции ---------- */
.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px 32px;
    margin-bottom: 40px;
}
.section-head__title { grid-column: 1; }
.section-head__link { grid-column: 2; grid-row: 1; justify-self: end; }
.section-head__sub { grid-column: 1 / -1; }
.section-head__title {
    margin: 0;
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 700;
    line-height: 1.05;
    color: var(--graphite-900);
}
.section-head__sub {
    flex-basis: 100%;
    max-width: 60ch;
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: var(--graphite-500);
}
.section-head__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 3px;
    font-weight: 600;
    color: var(--graphite-900);
    border-bottom: 2px solid var(--yellow-500);
    transition: gap .2s ease, color .2s ease;
}
.section-head__link::after { content: '→'; }
.section-head__link:hover { gap: 12px; }
.section-head--dark .section-head__title,
.home-catalog .section-head__title,
.home-catalog .section-head__link,
.section-head--dark .section-head__link { color: var(--white); }
.section-head--dark .section-head__sub { color: rgba(255,255,255,.7); }

/* ---------- Главная: первый экран ---------- */
.hero {
    display: flex;
    align-items: flex-end;
    min-height: min(860px, 100svh);
    padding-top: 0;
    overflow: hidden;
    background: var(--graphite-950);
    color: var(--white);
}
.hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 3;
    height: 10px;
    background: var(--hazard);
}
.hero .hero__slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero .swiper-wrapper,
.hero .hero__slide {
    height: 100%;
    min-height: 0;
}
.hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 68% 62%;
}
.hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(18,20,23,.94) 0%, rgba(18,20,23,.78) 36%, rgba(18,20,23,.2) 68%, rgba(18,20,23,0) 100%),
        linear-gradient(0deg, rgba(18,20,23,.75) 0%, rgba(18,20,23,0) 45%);
}
.hero .hero__content {
    position: relative;
    z-index: 2;
    display: block;
    height: auto;
    padding-top: calc(var(--topbar-h) + var(--header-h) + 72px);
    padding-bottom: 64px;
}
.hero .hero__title {
    max-width: 13ch;
    margin: 0 0 20px;
    font-size: clamp(38px, 5.4vw, 72px);
    font-weight: 700;
    line-height: 1;
    color: var(--white);
}
.hero__lead {
    max-width: 46ch;
    margin: 0 0 32px;
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.5;
    color: rgba(255,255,255,.82);
}
.hero-search {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 660px;
    padding: 6px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 20px 44px rgba(0,0,0,.38);
}
.hero-search:focus-within { outline: 3px solid var(--yellow-500); outline-offset: 3px; }
.hero-search__icon { flex-shrink: 0; margin-left: 12px; color: var(--graphite-400); }
.hero-search__input {
    flex: 1;
    min-width: 0;
    padding: 14px 4px;
    font: inherit;
    font-size: 16px;
    color: var(--graphite-900);
    background: transparent;
    border: 0;
    outline: none;
}
.hero-search__input::placeholder { color: var(--graphite-500); }
.hero-search__input::-webkit-search-cancel-button { display: none; }
.hero-search__btn {
    flex-shrink: 0;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    color: var(--on-primary);
    background: var(--primary);
    border-radius: var(--radius-sm);
    transition: background .2s ease;
}
.hero-search__btn:hover { background: var(--primary-dark); }
.hero__quick {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 28px;
}
.hero__quick-link {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-weight: 500;
    color: var(--white);
    transition: color .2s ease;
}
.hero__quick-link span {
    font-size: 13px;
    color: rgba(255,255,255,.55);
    font-variant-numeric: tabular-nums;
}
.hero__quick-link:hover { color: var(--yellow-500); }

/* ---------- Главная: каталог ---------- */
.home-catalog {
    padding: var(--section-y) 0;
    background: var(--graphite-900);
}
.cat-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.cat-tile {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border-radius: var(--radius);
}
.cat-tile__media {
    display: block;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--graphite-100);
}
.cat-tile__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.cat-tile:hover .cat-tile__media img { transform: scale(1.04); }
.cat-tile__body {
    flex: 1;
    padding: 20px 20px 22px;
    border-top: 4px solid var(--primary);
}
.cat-tile__title {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
}
.cat-tile__title a { color: var(--graphite-900); }
.cat-tile__title a:hover {
    text-decoration: underline;
    text-decoration-color: var(--yellow-500);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}
.cat-tile__count {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--graphite-500);
    font-variant-numeric: tabular-nums;
}
.cat-tile__subs {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--graphite-200);
}
.cat-tile__subs a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    font-size: 14px;
    line-height: 1.35;
    color: var(--graphite-700);
    border-bottom: 1px solid var(--graphite-100);
    transition: color .2s ease;
}
.cat-tile__subs a::after { content: '→'; color: var(--graphite-300); transition: color .2s ease, transform .2s ease; }
.cat-tile__subs a:hover { color: var(--graphite-900); }
.cat-tile__subs a:hover::after { color: var(--yellow-800); transform: translateX(3px); }
.cat-tile__more { font-weight: 600; }

/* ---------- Главная: бренды ---------- */
.home-brands {
    padding: var(--section-y) 0;
    background: var(--white);
}
.brand-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--graphite-200);
    border-left: 1px solid var(--graphite-200);
}
.brand-grid li {
    border-right: 1px solid var(--graphite-200);
    border-bottom: 1px solid var(--graphite-200);
}
.brand-grid__item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 128px;
    padding: 24px;
    transition: background .25s ease;
}
.brand-grid__item img {
    width: auto;
    max-width: 150px;
    max-height: 52px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .72;
    transition: filter .25s ease, opacity .25s ease;
}
.brand-grid__item span { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--graphite-700); }
.brand-grid__item:hover { background: var(--graphite-50); }
.brand-grid__item:hover img { filter: none; opacity: 1; }

/* ---------- Главная: о компании ---------- */
.home-about {
    padding: var(--section-y) 0;
    background: var(--graphite-50);
}
.home-about .home-about__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 64px;
    align-items: center;
}
.home-about .home-about__title {
    margin: 0 0 20px;
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.05;
}
.home-about__text p {
    max-width: 52ch;
    margin: 0 0 16px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--graphite-600);
}
.home-about__text .btn { margin-top: 16px; }
.home-about__photo { margin: 0; }
.home-about__photo img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius);
}

/* ---------- Регионы ---------- */
.regions .section-head { margin-bottom: 32px; }

/* ---------- Адаптив главной ---------- */
@media (max-width: 1100px) {
    .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .home-about .home-about__grid { grid-template-columns: 1fr; gap: 32px; }
    .home-about__photo { order: -1; }
    .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .hero { min-height: 640px; }
    .hero .hero__content { padding-top: calc(var(--header-h) + 40px); padding-bottom: 44px; }
    .hero-search__icon { display: none; }
    .hero__shade { background: linear-gradient(0deg, rgba(18,20,23,.94) 0%, rgba(18,20,23,.7) 55%, rgba(18,20,23,.35) 100%); }
    .cat-tiles { grid-template-columns: 1fr; }
    .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .brand-grid__item { height: 104px; padding: 18px; }
}

/* desktop: the search button shows its word, the icon is for phones only */
.hero-search__btn-icon { display: none; }

/* ---------- Главная: первый экран на телефоне ----------
   title fills the column in balanced lines, search is one row with an icon button,
   catalog sections are a ruled list (design code: lists with rulers, not chips/cards) */
@media (max-width: 600px) {
    .hero .hero__content { padding-top: calc(var(--header-h) + 32px); padding-bottom: 40px; }
    .hero .hero__title {
        max-width: none;
        margin-bottom: 14px;
        font-size: clamp(30px, 8.4vw, 40px);
        line-height: 1.04;
        letter-spacing: -0.01em;
        text-wrap: balance;
    }
    .hero__lead { max-width: none; margin-bottom: 22px; font-size: 16px; }

    .hero-search { flex-wrap: nowrap; gap: 6px; padding: 4px; max-width: none; }
    .hero-search__input { padding: 12px 10px 12px 12px; }
    .hero-search .hero-search__btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        padding: 0;
    }
    .hero-search__btn-icon { display: block; }
    .hero-search__btn-text {
        position: absolute;
        width: 1px; height: 1px;
        margin: -1px; padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        border: 0;
    }

    .hero .hero__quick {
        display: block;
        margin-top: 24px;
        border-top: 1px solid rgba(255,255,255,.16);
    }
    .hero .hero__quick-link {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 48px;
        padding: 4px 0;
        font-size: 15px;
        line-height: 1.3;
        border-bottom: 1px solid rgba(255,255,255,.16);
        -webkit-tap-highlight-color: transparent;
    }
    .hero .hero__quick-link span {
        margin-left: auto;
        color: rgba(255,255,255,.6);
    }
    .hero .hero__quick-link::after {
        content: '';
        flex-shrink: 0;
        width: 16px;
        height: 16px;
        background: currentColor;
        opacity: .55;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
                mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    }
    .hero .hero__quick-link:active { color: var(--yellow-500); }
    .hero .hero__quick-link:active::after { opacity: 1; }
}
/* narrow phones: the whole placeholder fits; input text stays 16px so iOS does not zoom */
@media (max-width: 380px) {
    .hero-search__input { padding-left: 10px; padding-right: 4px; }
    .hero-search__input::placeholder { font-size: 15px; }
    .hero-search .hero-search__btn { width: 46px; }
}

/* ═══════════════════════ Внутренние страницы ═══════════════════════ */

/* Шапки страниц: графит + сигнальная полоса снизу (как на главной) */
.cp-hero, .about-hero, .svc-hero, .bp-hero, .bd-hero {
    position: relative;
    background: var(--graphite-950);
}
.cp-hero::after, .about-hero::after, .svc-hero::after, .bp-hero::after, .bd-hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 8px;
    background: var(--hazard);
}
.about-hero, .svc-hero {
    min-height: 0;
    padding: calc(var(--topbar-h) + var(--header-h) + 64px) 0 72px;
}
.about-hero__overlay, .svc-hero__overlay { display: none; }
.about-hero__title, .svc-hero__title, .bp-hero__title, .cp-hero__title {
    max-width: 18ch;
    font-size: clamp(34px, 4.6vw, 60px);
    font-weight: 700;
    line-height: 1.02;
}
.about-hero__sub, .svc-hero__sub, .bp-hero__sub, .cp-hero__sub {
    max-width: 56ch;
    font-size: 18px;
    line-height: 1.55;
    color: rgba(255,255,255,.78);
}
.cp-hero { padding-bottom: 48px; }

/* «О компании» */
.about-vm { padding: 72px 0; background: var(--graphite-900); }
.about-vm__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    margin: 0;
}
.about-vm__block {
    display: block;
    padding-top: 24px;
    border-top: 2px solid var(--yellow-500);
}
.about-vm__label {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: var(--white);
}
.about-vm__text { margin: 0; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.78); }
.about-directions { padding: var(--section-y) 0; background: var(--graphite-50); }
.about-story__title { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; }

/* «Сервис»: список услуг вместо россыпи карточек */
.svc-list { padding: var(--section-y) 0 calc(var(--section-y) - 24px); background: var(--white); }
.svc-list__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 56px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.svc-list__item {
    padding: 22px 0 24px;
    border-top: 1px solid var(--graphite-200);
}
.svc-list__title {
    margin: 0 0 6px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--graphite-900);
}
.svc-list__text { margin: 0; max-width: 52ch; font-size: 15px; line-height: 1.6; color: var(--graphite-600); }

/* Регионы: сплошная панель вместо «стекла» */
.regions__panel {
    background: var(--graphite-800);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* 404: без градиентного текста */
.e404__digit,
.e404__digit--4a,
.e404__digit--4b {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    color: var(--graphite-900);
    font-family: var(--font-display);
}

@media (max-width: 900px) {
    .about-vm__grid, .svc-list__grid { grid-template-columns: 1fr; }
    .about-vm__grid { gap: 32px; }
}
@media (max-width: 600px) {
    .about-hero, .svc-hero { padding: calc(var(--header-h) + 32px) 0 48px; }
}

/* Каталог: плитки внутри колонки с сайдбаром */
.cl-main .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cl-main .cat-tile { border: 1px solid var(--graphite-200); }
.cp-hero__title { text-transform: none; }
.cnt-office { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 1100px) {
    .cl-main .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .cl-main .cat-tiles { grid-template-columns: 1fr; }
}

/* 404 */
.e404 { background: var(--graphite-50); }
.e404 *, .e404 { animation: none !important; }
.e404 .e404__number {
    display: block;
    text-align: center;
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: clamp(110px, 18vw, 200px);
    font-weight: 700;
    line-height: .9;
    color: var(--graphite-900);
    background: none;
    -webkit-text-fill-color: currentColor;
}
.e404 .e404__number::after {
    content: '';
    display: block;
    width: 168px;
    height: 10px;
    margin: 20px auto 0;
    background: var(--hazard);
}
.e404__title { color: var(--graphite-900); }
.e404__text { max-width: 52ch; margin-left: auto; margin-right: auto; color: var(--graphite-600); }

/* Карточки позиций без фото: узкая полоса с брендом вместо пустой области */
.cc-prod__img:has(> .cc-prod__placeholder) {
    aspect-ratio: auto;
    height: 56px;
    min-height: 0;
    background: var(--graphite-50);
    border-bottom: 1px solid var(--graphite-200);
}
.cc-prod__img:has(> .cc-prod__placeholder) .cc-prod__placeholder { display: none; }
.cc-prod__img:has(> .cc-prod__placeholder) .cc-prod__brand-label {
    top: 50%;
    left: 16px;
    right: auto;
    transform: translateY(-50%);
}

/* ═══════════════════════ Новости ═══════════════════════ */
.news-page { padding: 56px 0 var(--section-y); }
.news-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 28px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--graphite-200);
}
.news-tabs__item {
    padding: 10px 0 12px;
    margin-bottom: -1px;
    font-weight: 500;
    color: var(--graphite-600);
    border-bottom: 3px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
.news-tabs__item:hover { color: var(--graphite-900); }
.news-tabs__item.is-active { color: var(--graphite-900); border-bottom-color: var(--yellow-500); }
.news-list { margin: 0; padding: 0; list-style: none; }
.news-row {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    padding: 28px 0;
    border-top: 1px solid var(--graphite-200);
}
.news-row:last-child { border-bottom: 1px solid var(--graphite-200); }
.news-row__media {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--graphite-100);
    border-radius: var(--radius-sm);
}
.news-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.news-row:hover .news-row__media img { transform: scale(1.04); }
.news-row__meta, .news-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--graphite-500);
    font-variant-numeric: tabular-nums;
}
.news-row__meta span::before, .news-article__meta span::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    margin-right: 10px;
    vertical-align: middle;
    background: var(--yellow-500);
}
.news-row__title { margin: 0 0 10px; font-size: 24px; font-weight: 700; line-height: 1.15; }
.news-row__title a { color: var(--graphite-900); }
.news-row__title a:hover {
    text-decoration: underline;
    text-decoration-color: var(--yellow-500);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}
.news-row__excerpt { max-width: 72ch; margin: 0; font-size: 16px; line-height: 1.6; color: var(--graphite-600); }
.news-pager { display: flex; gap: 6px; margin-top: 32px; }
.news-pager__item {
    min-width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600; color: var(--graphite-700);
    border: 1px solid var(--graphite-200); border-radius: var(--radius-sm);
}
.news-pager__item.is-active { background: var(--graphite-900); color: var(--white); border-color: var(--graphite-900); }
.news-empty { color: var(--graphite-600); }

.news-article__title { max-width: 26ch; }
.news-article__meta { margin-top: 16px; color: rgba(255,255,255,.7); }
.news-article { padding: 56px 0 var(--section-y); }
.news-article__inner { max-width: 860px; }
.news-article__cover { margin: 0 0 40px; }
.news-article__cover img { width: 100%; height: auto; border-radius: var(--radius); }
.news-article__lead { font-size: 19px; line-height: 1.6; color: var(--graphite-700); }
.news-article__gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 40px;
}
.news-article__gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-sm); }
.news-more { padding: 0 0 var(--section-y); }

/* Текст статей и описаний, перенесённых со старого сайта */
.prose { font-size: 17px; line-height: 1.7; color: var(--graphite-800); overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.6em; line-height: 1.2; color: var(--graphite-900); }
.prose h2 { font-size: 28px; }
.prose h3 { font-size: 22px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .35em; }
.prose a { color: var(--graphite-900); text-decoration: underline; text-decoration-color: var(--yellow-600); text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose img { max-width: 100%; height: auto !important; border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose td, .prose th { padding: 8px 12px; border: 1px solid var(--graphite-200); text-align: left; }
.prose iframe { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-sm); }
.prose blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--graphite-300); color: var(--graphite-600); }

.pd-video__desc { margin: 16px 0 0; max-width: 72ch; color: var(--graphite-600); line-height: 1.6; }

@media (max-width: 700px) {
    .news-row { grid-template-columns: 1fr; gap: 16px; padding: 24px 0; }
    .news-row__title { font-size: 21px; }
    .news-article__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .prose { font-size: 16px; }
}

/* Контакты: подписи к телефонам и реквизиты */
.cnt-office__note { margin-left: 6px; font-size: 13px; color: var(--graphite-500); }
.cnt-requisites { margin-top: 56px; }
.cnt-requisites__list { margin: 20px 0 0; display: grid; gap: 0; max-width: 760px; }
.cnt-requisites__list > div {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--graphite-200);
}
.cnt-requisites__list > div:last-child { border-bottom: 1px solid var(--graphite-200); }
.cnt-requisites__list dt { color: var(--graphite-500); }
.cnt-requisites__list dd { margin: 0; color: var(--graphite-900); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
    .cnt-requisites__list > div { grid-template-columns: 1fr; gap: 2px; }
}

/* Новости: шапка страницы под фиксированным хедером, как у каталога */
.page-news .cp-hero,
.page-news-detail .cp-hero {
    padding-top: calc(var(--topbar-h) + var(--header-h) + 8px);
}
@media (max-width: 768px) {
    .page-news .cp-hero,
    .page-news-detail .cp-hero { padding-top: 100px; }
}

/* Статьи со старого сайта: встроенные стили .rts-* приводим к дизайн-коду (текст не меняется) */
.prose .rts-article { max-width: none; padding: 0; font-family: inherit; font-size: inherit; color: inherit; }
.prose .rts-article h1, .prose .rts-article h2, .prose .rts-article h3,
.prose .rts-lead .rts-brand, .prose .rts-table td.rts-nowrap { color: var(--graphite-900); font-family: var(--font-display); }
.prose .rts-article h2 { border-top: 1px solid var(--graphite-200); }
.prose .rts-article h4 { color: var(--yellow-800); }
.prose .rts-lead { background: var(--graphite-50); border-left: 0; border-top: 3px solid var(--yellow-500); border-radius: var(--radius-sm); }
.prose .rts-contacts { background: var(--graphite-900); border-radius: var(--radius); }
.prose .rts-contacts a { color: var(--yellow-500); }
.prose .rts-cta { background: var(--yellow-500); border-radius: var(--radius); }
.prose .rts-cta, .prose .rts-cta p, .prose .rts-cta a { color: var(--graphite-900); }
.prose .rts-figure figcaption, .prose .rts-table caption, .prose .rts-table-note { color: var(--graphite-500); }
.prose .rts-table thead th { background: var(--graphite-900); color: var(--white); }
.prose .rts-table tbody tr:nth-child(even), .prose .rts-table caption { background: var(--graphite-50); }
.prose .rts-table th, .prose .rts-table td, .prose .rts-industry, .prose .rts-ta { border-color: var(--graphite-200); }
.prose [style*="font-family"] { font-family: inherit !important; }

/* Метки офисов: офис — жёлтая, склад и филиал — графитовые */
.cnt-office__badge--hq { background: var(--yellow-100); color: var(--yellow-800); }
.cnt-office__badge--service { background: var(--graphite-100); color: var(--graphite-700); }

@media (max-width: 700px) {
    .news-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        margin-left: -16px;
        margin-right: -16px;
        padding: 0 16px;
    }
    .news-tabs::-webkit-scrollbar { display: none; }
    .news-tabs__item { white-space: nowrap; }
}

/* ═══════════════════════ Видео ═══════════════════════ */
.video-block { margin-top: 48px; }
.video-block--compact { margin-top: 0; }
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.video-card__player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--graphite-900);
    border-radius: var(--radius-sm);
    object-fit: contain;
}
.video-card__meta { padding-top: 12px; }
.video-card__title { margin: 0 0 4px; font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--graphite-900); }
.video-card__info { display: flex; gap: 12px; margin: 0; font-size: 13px; color: var(--graphite-500); font-variant-numeric: tabular-nums; }
.video-page { padding: 56px 0 var(--section-y); }
.video-page .video-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.svc-videos { padding: 0 0 var(--section-y); }
.pd-tabs__panel .video-block { margin-top: 24px; }
.page-video .cp-hero { padding-top: calc(var(--topbar-h) + var(--header-h) + 8px); }
@media (max-width: 768px) { .page-video .cp-hero { padding-top: 100px; } }
.video-page__more { margin: 40px 0 0; }
.pd-tabs__count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px;
    font-size: 12px; font-weight: 600; color: var(--on-primary);
    background: var(--primary); border-radius: 10px;
}

/* ═══════════════════════════════════════════════
   Поиск в шапке: заметное поле, подсказки, затемнение
   ═══════════════════════════════════════════════ */
.search-panel { padding: 16px 0 0; box-shadow: 0 12px 40px rgba(17,19,22,.18); }
.search-panel__form { height: auto; gap: 10px; }
.search-panel__field {
    flex: 1; min-width: 0; position: relative;
    display: flex; align-items: center; gap: 10px;
    height: 56px; padding: 0 8px 0 16px;
    background: var(--graphite-50);
    border: 2px solid var(--graphite-200);
    border-radius: var(--radius);
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.search-panel__field:hover { border-color: var(--graphite-300); }
.search-panel__field:focus-within {
    background: #fff;
    border-color: var(--yellow-500);
    box-shadow: 0 0 0 4px rgba(var(--yellow-rgb), .28);
}
.search-panel__icon { color: var(--graphite-500); flex-shrink: 0; }
.search-panel__field:focus-within .search-panel__icon { color: var(--graphite-900); }
.search-panel__input {
    height: 100%; font-size: 17px; font-weight: 500; color: var(--graphite-900);
    -webkit-appearance: none; appearance: none;
}
.search-panel__input:focus,
.search-panel__input:focus-visible { outline: none; box-shadow: none; }
.search-panel__input::placeholder { color: var(--graphite-400); font-weight: 400; }
.search-panel__input::-webkit-search-cancel-button { display: none; }
.search-panel__clear {
    flex-shrink: 0; width: 32px; height: 32px; border: 0; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    background: transparent; color: var(--graphite-500); cursor: pointer;
}
.search-panel__clear:hover { background: var(--graphite-100); color: var(--graphite-900); }
.search-panel__clear[hidden] { display: none; }
.search-panel__btn { height: 56px; padding: 0 32px; font-size: 15px; font-weight: 700; }
.search-panel__close {
    width: 44px; height: 44px; border-radius: var(--radius);
}
.search-panel__close:hover { background: var(--graphite-100); color: var(--graphite-900); }

.search-suggest { padding: 14px 0 20px; max-height: min(70vh, 620px); overflow-y: auto; overscroll-behavior: contain; }
.search-suggest__quick { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.search-suggest__quick[hidden] { display: none; }
.search-suggest__label { font-size: 13px; color: var(--graphite-500); }
.search-suggest__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.search-chip {
    font: 500 14px/1 var(--font); color: var(--graphite-800);
    padding: 9px 14px; border-radius: 4px; cursor: pointer;
    background: #fff; border: 1px solid var(--graphite-200);
    transition: border-color .15s ease, background-color .15s ease;
}
.search-chip:hover { border-color: var(--graphite-900); background: var(--graphite-50); }

.search-suggest__results { transition: opacity .15s ease; }
.search-suggest__results.is-loading { opacity: .55; }
.search-suggest__results:empty { display: none; }
.ss-group + .ss-group { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--graphite-100); }
.ss-group__label {
    font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
    color: var(--graphite-500); padding: 6px 12px;
}
.ss-item {
    display: flex; align-items: center; gap: 14px;
    padding: 8px 12px; border-radius: 4px; text-decoration: none; color: var(--graphite-900);
}
.ss-item:hover, .ss-item.is-active { background: var(--yellow-50); }
.ss-item.is-active { box-shadow: inset 3px 0 0 var(--yellow-500); }
.ss-item__ico {
    width: 40px; height: 40px; flex-shrink: 0; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    background: var(--yellow-50); color: var(--yellow-800);
}
.ss-item:hover .ss-item__ico, .ss-item.is-active .ss-item__ico { background: var(--yellow-500); color: var(--graphite-900); }
.ss-item__pic {
    width: 56px; height: 42px; flex-shrink: 0; border-radius: 4px; overflow: hidden;
    background: var(--graphite-100);
}
.ss-item__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ss-item__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ss-item__title { font-size: 15px; font-weight: 500; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-item__title mark { background: none; color: inherit; font-weight: 700; box-shadow: inset 0 -.35em 0 rgba(var(--yellow-rgb), .45); }
.ss-item__meta { font-size: 13px; color: var(--graphite-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-all {
    display: inline-flex; margin: 12px 12px 0; font-size: 14px; font-weight: 600;
    color: var(--graphite-900); text-decoration: underline; text-decoration-color: var(--yellow-500);
    text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.ss-all:hover { text-decoration-color: var(--graphite-900); }
.ss-empty { padding: 8px 12px; font-size: 14px; color: var(--graphite-600); }

.search-backdrop {
    position: fixed; inset: 0; z-index: 1999;
    background: rgba(17,19,22,.45);
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.search-open .search-backdrop { opacity: 1; pointer-events: auto; }

@media (max-width: 768px) {
    .search-panel { padding-top: 10px; }
    .search-panel__form { flex-wrap: wrap; }
    .search-panel__field { order: 1; flex-basis: calc(100% - 54px); height: 50px; }
    .search-panel__close { order: 2; }
    .search-panel__btn { order: 3; flex-basis: 100%; height: 48px; }
    .search-panel__input { font-size: 16px; }
    .search-suggest { max-height: calc(100vh - 160px); }
    .search-suggest__quick { flex-direction: column; gap: 8px; }
}

/* ═══════════════════════════════════════════════
   Иконки разделов каталога (cat_icon)
   ═══════════════════════════════════════════════ */
.cat-ico { display: block; flex-shrink: 0; }
/* светлые меню: иконки графитовые, без бледно-коричневого */
.mega__cat-icon, .mega-pl__col-icon, .mobile-menu__sub-icon, .pl-hub__section-icon, .bento__ico { color: var(--graphite-700); }
.mega__cat:hover .mega__cat-icon, .mega__cat.is-active .mega__cat-icon { color: inherit; }

/* ── Плитки подкатегорий: тёмная плашка с жёлтой иконкой, при наведении — жёлтая и тень ── */
.cc-subtile {
    border: 1px solid var(--graphite-200); background: #fff;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.cc-subtile__name { color: var(--graphite-900); font-size: 14px; font-weight: 600; line-height: 1.35; }
.cc-subtile__icon {
    border-radius: 4px; background: var(--graphite-900); color: var(--yellow-500);
    transition: background-color .2s ease, color .2s ease;
}
.cc-subtile:hover {
    transform: none; border-color: transparent;
    box-shadow: 0 10px 28px rgba(17,19,22,.14), 0 2px 6px rgba(17,19,22,.06);
}
.cc-subtile:hover .cc-subtile__icon { background: var(--yellow-500); color: var(--graphite-900); }

/* ═══════════════════════════════════════════════
   Кнопки: одно спокойное поведение при наведении
   Без подъёма, теней, свечения и градиентов — только смена заливки.
   ═══════════════════════════════════════════════ */
.btn, .pd-btn, .e404__btn, .bp-cta__btn, .hero-search__btn, .search-panel__btn {
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover, .pd-btn:hover, .e404__btn:hover, .bp-cta__btn:hover { transform: none; box-shadow: none; filter: none; }
.btn:active, .pd-btn:active, .e404__btn:active, .bp-cta__btn:active,
.hero-search__btn:active, .search-panel__btn:active { transform: translateY(1px); }

/* жёлтая — темнее на тон */
.btn--primary, .pd-btn--primary, .e404__btn--primary { background: var(--yellow-500); color: var(--graphite-900); box-shadow: none; }
.btn--primary:hover, .pd-btn--primary:hover, .e404__btn--primary:hover,
.hero-search__btn:hover, .search-panel__btn:hover { background: var(--yellow-600); color: var(--graphite-900); }

/* контурная на светлом — заливается графитом */
.btn--outline-dark:hover, .pd-btn--outline:hover, .e404__btn--outline:hover {
    background: var(--graphite-900); border-color: var(--graphite-900); color: #fff;
}
/* контурная на тёмном — заливается белым */
.btn--outline:hover { background: #fff; border-color: #fff; color: var(--graphite-900); }

/* CTA на жёлтом фоне: графитовая + графитовый контур */
.cnt-cta__inner { background: var(--yellow-500); }
.cnt-cta__actions .btn--primary { background: var(--graphite-900); color: #fff; }
.cnt-cta__actions .btn--primary:hover { background: var(--graphite-700); color: #fff; }
.cnt-cta__actions .btn--outline-dark { border: 1.5px solid var(--graphite-900); color: var(--graphite-900); background: transparent; }
.cnt-cta__actions .btn--outline-dark:hover { background: var(--graphite-900); color: var(--yellow-500); border-color: var(--graphite-900); }
.about-cta__actions .btn--primary { background: var(--graphite-900); color: #fff; }
.about-cta__actions .btn--primary:hover { background: var(--graphite-700); color: #fff; }
.about-cta__actions .btn--outline { border: 1.5px solid var(--graphite-900); color: var(--graphite-900); background: transparent; }
.about-cta__actions .btn--outline:hover { background: var(--graphite-900); color: var(--yellow-500); }
.bp-cta__btn--primary { background: var(--graphite-900); color: #fff; }
.bp-cta__btn--primary:hover { background: var(--graphite-700); }
.bp-cta__btn--outline { border: 1.5px solid var(--graphite-900); color: var(--graphite-900); }
.bp-cta__btn--outline:hover { background: var(--graphite-900); color: var(--yellow-500); }

/* полоса контактов: при наведении подсвечивается иконка, а не вся ячейка */
a.cnt-bar__item:hover { background: transparent; }
.cnt-bar__icon { transition: background-color .15s ease, color .15s ease; }
a.cnt-bar__item:hover .cnt-bar__icon { background: var(--yellow-500); color: var(--graphite-900); }
a.cnt-bar__item:hover .cnt-bar__val { text-decoration: underline; text-decoration-color: var(--yellow-500); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ═══ Карточка товара: «Подробнее» заметно заливается при наведении ═══ */
.cc-prod__more { transition: background-color .15s ease, border-color .15s ease, color .15s ease; border-color: var(--graphite-200); }
.cc-prod:hover .cc-prod__more,
.cc-prod__more:hover { background: var(--yellow-500); border-color: var(--yellow-500); color: var(--graphite-900); }
.cc-prod:hover { transform: none; box-shadow: 0 8px 24px rgba(17,19,22,.08); border-color: var(--graphite-300); }

/* ═══ Шапка фиксируется при прокрутке (десктоп; на мобильных она уже fixed) ═══ */
@media (min-width: 769px) {
    .header.is-fixed {
        position: fixed;
        top: 0;
        background: var(--graphite-950);
        border-bottom-color: rgba(255,255,255,.08);
        box-shadow: 0 6px 20px rgba(0,0,0,.25);
        animation: header-in .2s ease-out;
    }
    @keyframes header-in { from { transform: translateY(-100%); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .header.is-fixed { animation: none; } }

/* ═══ Поиск на главной и на странице результатов: одна рамка фокуса вместо двух ═══ */
.hero-search { border: 2px solid transparent; transition: border-color .15s ease, box-shadow .15s ease; }
.hero-search:focus-within {
    outline: none;
    border-color: var(--yellow-500);
    box-shadow: 0 20px 44px rgba(0,0,0,.38), 0 0 0 4px rgba(var(--yellow-rgb), .35);
}
.hero-search__input:focus,
.hero-search__input:focus-visible,
.sr-form__wrap input:focus,
.sr-form__wrap input:focus-visible { outline: none; box-shadow: none; }

/* ═══ Единый CTA и модалка «Написать нам» ═══ */
.bp-cta__btn { cursor: pointer; font-family: inherit; }
button.bp-cta__btn--outline { background: transparent; }
button.bp-cta__btn--outline:hover { background: var(--graphite-900); color: var(--yellow-500); }
.bp-cta__btn--outline { border: 1.5px solid var(--graphite-900); color: var(--graphite-900); }
.contact-modal__lead { font-size: 14px; line-height: 1.55; color: var(--graphite-600); margin: -8px 0 20px; }
.contact-modal__done { padding: 8px 0 4px; }
.contact-modal__done[hidden], #contactModalForm[hidden] { display: none; }
.contact-modal__done-title { font-size: 20px; font-weight: 700; color: var(--graphite-900); margin-bottom: 8px; }

/* ═══ Контакты: иконки в цветах макета (жёлтая плашка, графитовый знак) ═══ */
.regions__office-icon {
    width: 36px; height: 36px; border-radius: 4px;
    background: var(--yellow-500);
}
.regions__office-icon svg { width: 18px; height: 18px; stroke: var(--graphite-900); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* полоса контактов: иконки сразу «как при наведении», при наведении — графит с жёлтым знаком */
.cnt-bar__icon { background: var(--yellow-500); color: var(--graphite-900); border-radius: 4px; }
a.cnt-bar__item:hover .cnt-bar__icon,
.cnt-bar__socials:hover .cnt-bar__icon { background: var(--graphite-900); color: var(--yellow-500); }
.cnt-bar__socials:hover .cnt-bar__links a { text-decoration: underline; text-decoration-color: var(--yellow-500); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cnt-bar__links a { color: var(--graphite-900); }

/* ═══ Сигнальная полоса: медленно «едет» ═══ */
.hero::after, .cp-hero::after, .about-hero::after, .svc-hero::after, .bp-hero::after, .bd-hero::after, .e404 .e404__number::after {
    background-size: 39.598px 100%;
    background-repeat: repeat-x;
    animation: hazard-move 1.6s linear infinite;
}
@keyframes hazard-move { from { background-position: 0 0; } to { background-position: 39.598px 0; } }
@media (prefers-reduced-motion: reduce) {
    .hero::after, .cp-hero::after, .about-hero::after, .svc-hero::after, .bp-hero::after, .bd-hero::after, .e404 .e404__number::after { animation: none; }
}

/* ═══════════════════════════════════════════════
   Плеер роликов (.vp): клик — пауза/старт, полоса — перемотка
   ═══════════════════════════════════════════════ */
.vp {
    position: relative; overflow: hidden;
    aspect-ratio: 16 / 9; border-radius: var(--radius-sm);
    background: var(--graphite-950); color: #fff;
    outline: none; user-select: none; -webkit-user-select: none;
}
.vp:focus-visible { box-shadow: 0 0 0 3px var(--yellow-500); }
.vp:fullscreen { border-radius: 0; aspect-ratio: auto; }
.vp__video { display: block; width: 100%; height: 100%; object-fit: contain; cursor: pointer; background: #000; }
.vp svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 0; }
.vp__i-vol .vp__wave, .vp__i-muted path + path, .vp__fs svg path { stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vp__fs svg { fill: none; }

/* большая кнопка до старта и на паузе */
.vp__big {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 68px; height: 68px; border: 0; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: var(--yellow-500); color: var(--graphite-900);
    box-shadow: 0 6px 24px rgba(0,0,0,.35);
    transition: transform .15s ease, background-color .15s ease, opacity .15s ease;
}
.vp__big svg { width: 30px; height: 30px; margin-left: 4px; }
.vp__big:hover { background: #fff; transform: translate(-50%, -50%) scale(1.06); }
.vp.is-playing .vp__big { opacity: 0; pointer-events: none; }
.vp.is-waiting.is-playing .vp__big { opacity: 0; }

/* нижняя панель */
.vp__bar {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; gap: 10px;
    padding: 28px 12px 10px;
    background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0));
    opacity: 0; transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
}
.vp.is-started .vp__bar { opacity: 1; transform: none; }
.vp.is-started.is-playing:not(.is-active) .vp__bar { opacity: 0; transform: translateY(6px); }
.vp.is-started.is-playing:not(.is-active) .vp__video { cursor: none; }
.vp:not(.is-started):hover .vp__bar { opacity: 1; transform: none; }

.vp__btn {
    flex-shrink: 0; width: 34px; height: 34px; border: 0; border-radius: 4px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    background: transparent; color: #fff; cursor: pointer;
}
.vp__btn:hover { background: rgba(255,255,255,.14); color: var(--yellow-500); }
.vp__btn:focus-visible { outline: 2px solid var(--yellow-500); outline-offset: 0; }
.vp__i-pause, .vp.is-playing .vp__i-play { display: none; }
.vp.is-playing .vp__i-pause { display: block; }
.vp__i-muted, .vp.is-muted .vp__i-vol { display: none; }
.vp.is-muted .vp__i-muted { display: block; }

.vp__time { flex-shrink: 0; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; color: rgba(255,255,255,.9); }

.vp__seek { position: relative; flex: 1; min-width: 60px; height: 24px; cursor: pointer; touch-action: none; display: flex; align-items: center; }
.vp__seek:focus-visible { outline: none; }
.vp__seek:focus-visible .vp__thumb { box-shadow: 0 0 0 3px rgba(var(--yellow-rgb), .5); }
.vp__track { position: relative; width: 100%; height: 4px; border-radius: 2px; background: rgba(255,255,255,.28); overflow: hidden; transition: height .12s ease; }
.vp__seek:hover .vp__track, .vp.is-seeking .vp__track { height: 6px; }
.vp__buf { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(255,255,255,.35); }
.vp__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--yellow-500); }
.vp__thumb {
    position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px;
    border-radius: 50%; background: var(--yellow-500); box-shadow: 0 1px 4px rgba(0,0,0,.4);
    transform: scale(0); transition: transform .12s ease;
}
.vp__seek:hover .vp__thumb, .vp.is-seeking .vp__thumb, .vp__seek:focus-visible .vp__thumb { transform: scale(1); }
.vp__tip {
    position: absolute; bottom: 22px; left: 0; transform: translateX(-50%);
    padding: 3px 6px; border-radius: 3px; background: var(--graphite-900); color: #fff;
    font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity .12s ease;
}
.vp__seek:hover .vp__tip { opacity: 1; }

/* загрузка */
.vp.is-waiting.is-playing::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
    border: 3px solid rgba(255,255,255,.25); border-top-color: var(--yellow-500); border-radius: 50%;
    animation: vp-spin .8s linear infinite; pointer-events: none;
}
@keyframes vp-spin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
    .vp__bar { gap: 6px; padding: 24px 8px 8px; }
    .vp__time { font-size: 12px; }
    .vp__mute { display: none; }
    .vp__big { width: 56px; height: 56px; }
}
@media (hover: none) {
    .vp.is-started .vp__bar { opacity: 1; transform: none; }
    .vp__thumb { transform: scale(1); }
}

/* ═══ Сервис: «Заявка на сервис» — тёмная секция на всю ширину, как каталог на главной ═══ */
.svc-request {
    position: relative;
    padding: 96px 0 104px;
    background: var(--surface-dark, var(--graphite-950));
    color: #fff;
}
.svc-request::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px;
    background: var(--hazard); background-size: 39.598px 100%; background-repeat: repeat-x;
    animation: hazard-move 1.6s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .svc-request::before { animation: none; } }
.svc-request__inner {
    padding: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible;
    gap: 64px; align-items: start;
}
.svc-request__inner::after { display: none; }
.svc-request__intro { justify-content: flex-start; gap: 0; padding: 8px 0 0; }
.svc-request__title { font-size: clamp(30px, 3.2vw, 44px); letter-spacing: 0; margin-bottom: 16px; }
.svc-request__text { color: rgba(255,255,255,.75); max-width: 44ch; margin-bottom: 32px; }
.svc-request__contacts { gap: 12px; }
.svc-request__contact { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.svc-request__contact:hover { transform: none; background: var(--yellow-500); border-color: var(--yellow-500); color: var(--graphite-900); }
.svc-request__contact:hover small { color: var(--graphite-800); }
.svc-request__contact-icon { background: var(--yellow-500); color: var(--graphite-900); border-radius: 4px; }
.svc-request__contact:hover .svc-request__contact-icon { background: var(--graphite-900); color: var(--yellow-500); }
.svc-request__note { color: rgba(255,255,255,.6); }
.svc-request__form { background: #fff; border-radius: 6px; box-shadow: 0 24px 60px rgba(0,0,0,.35); padding: 32px; }
.svc-request .reveal { opacity: 1; transform: none; }
@media (max-width: 1024px) { .svc-request__inner { gap: 32px; } }
@media (max-width: 768px) {
    .svc-request { padding: 56px 0 64px; }
    .svc-request__inner { padding: 0; }
    .svc-request__form { padding: 20px; }
}
.svc-request { border-bottom: 1px solid rgba(255,255,255,.08); }

/* ═══ Плитки каталога: одинаковая высота, короткие списки ═══ */
.cat-tiles { align-items: stretch; }
.cat-tile { height: 100%; transition: box-shadow .2s ease; }
.cat-tile:hover { box-shadow: 0 14px 34px rgba(0,0,0,.28); }
.cat-tile__media { aspect-ratio: 16 / 10; }
.cat-tile__body { display: flex; flex-direction: column; padding: 18px 20px 20px; }
.cat-tile__title { font-size: 21px; min-height: 2.3em; display: flex; align-items: flex-end; }
.cat-tile__count { margin-bottom: 12px; }
.cat-tile__subs { flex: 1; }
.cat-tile__subs li { min-width: 0; }
.cat-tile__subs a {
    position: relative; display: block; padding: 8px 22px 8px 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cat-tile__subs a::after { position: absolute; right: 0; top: 8px; }
.cat-tile__all {
    margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
    font-size: 14px; font-weight: 700; color: var(--graphite-900);
    text-decoration: underline; text-decoration-color: var(--yellow-500); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.cat-tile__all svg { transition: transform .15s ease; }
.cat-tile__all:hover { text-decoration-color: var(--graphite-900); }
.cat-tile__all:hover svg { transform: translateX(3px); }
@media (max-width: 640px) {
    .cat-tile__title { min-height: 0; }
}

/* ═══ Бренд: логотип в блоке «О бренде» ═══ */
.bd-about__logo {
    display: flex; align-items: center; justify-content: center;
    width: 100%; max-width: 360px; height: 140px; margin: 0 0 24px; padding: 24px 32px;
    background: #fff; border: 1px solid var(--graphite-200); border-radius: 6px;
}
.bd-about__logo img { max-width: 100%; max-height: 80px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 640px) { .bd-about__logo { max-width: none; height: 110px; } }

/* ═══ CTA «Нужна консультация?»: компактнее по высоте ═══ */
.bp-cta__inner { padding: 28px 40px; }
.bp-cta__title { font-size: 22px; margin-bottom: 4px; }
@media (max-width: 768px) { .bp-cta__inner { padding: 24px 20px; } }

/* ═══ Карточка: секции одна под другой, навигация-якоря, активный пункт — жёлтая кнопка ═══ */
.pd-tabs__nav {
    position: sticky; top: var(--header-h, 72px); z-index: 20;
    display: flex; gap: 8px; padding: 12px 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--graphite-200);
    overflow-x: auto; scrollbar-width: none;
}
.pd-tabs__nav::-webkit-scrollbar { display: none; }
.pd-tabs__btn {
    flex-shrink: 0; display: inline-flex; align-items: center;
    margin: 0; padding: 10px 18px; border: 1px solid var(--graphite-200); border-radius: 4px;
    font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none;
    color: var(--graphite-800); background: #fff;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.pd-tabs__btn:hover { border-color: var(--graphite-900); color: var(--graphite-900); background: #fff; }
.pd-tabs__btn.is-active, .pd-tabs__btn.is-active:hover {
    background: var(--yellow-500); border-color: var(--yellow-500); color: var(--graphite-900);
}
.pd-tabs__btn.is-active .pd-tabs__count { background: var(--graphite-900); color: #fff; }
.pd-tabs__panel, .pd-tabs__panel.is-active { display: block; padding: 40px 0 8px; }
.pd-tabs__panel + .pd-tabs__panel { border-top: 1px solid var(--graphite-100); }
.pd-section__title { margin: 0 0 20px; font-size: 26px; font-weight: 700; color: var(--graphite-900); }

/* частые вопросы */
.pd-faq { max-width: 860px; }
.pd-faq__item { border-bottom: 1px solid var(--graphite-200); }
.pd-faq__item:first-child { border-top: 1px solid var(--graphite-200); }
.pd-faq__q {
    position: relative; list-style: none; cursor: pointer;
    padding: 18px 40px 18px 0; font-size: 16px; font-weight: 600; color: var(--graphite-900);
}
.pd-faq__q::-webkit-details-marker { display: none; }
.pd-faq__q::after {
    content: ''; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
    border-right: 2px solid var(--graphite-700); border-bottom: 2px solid var(--graphite-700);
    transform: rotate(45deg); transition: transform .2s ease;
}
.pd-faq__item[open] .pd-faq__q::after { transform: rotate(225deg); margin-top: -2px; }
.pd-faq__q:hover { color: var(--graphite-700); }
.pd-faq__q:focus-visible { outline: 3px solid var(--yellow-500); outline-offset: 2px; }
.pd-faq__a { margin: 0; padding: 0 40px 20px 0; font-size: 15px; line-height: 1.65; color: var(--graphite-700); }
.pd-faq__more { margin: 20px 0 0; font-size: 14px; color: var(--graphite-600); }
.pd-faq__more a, .pd-faq__link {
    padding: 0; border: 0; background: none; font: inherit; cursor: pointer; font-weight: 600;
    color: var(--graphite-900); text-decoration: underline; text-decoration-color: var(--yellow-500);
    text-decoration-thickness: 2px; text-underline-offset: 3px;
}
@media (max-width: 768px) {
    .pd-tabs__nav { top: 64px; }
    .pd-section__title { font-size: 22px; }
    .pd-tabs__panel, .pd-tabs__panel.is-active { padding-top: 28px; }
}

/* ═══ Карточки-разделы (bento): одинаковая высота в ряду, содержимое сверху ═══ */
.bento { align-items: stretch; }
.bento__cell { justify-content: flex-start; height: 100%; transition: box-shadow .2s ease; }
.bento__cell:hover { transform: none; box-shadow: 0 10px 28px rgba(17,19,22,.12); }
.bento__tags { margin-top: 16px; }
.bento__tag { white-space: normal; max-width: 100%; }

/* ═══ Новости: анонс не длиннее трёх строк ═══ */
.news-row__excerpt {
    display: -webkit-box; -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}

/* ═══ CTA: собственные внешние отступы, чтобы не прилипать к тёмной секции сверху ═══ */
.bp-cta { padding: 56px 0; }
@media (max-width: 768px) { .bp-cta { padding: 40px 0; } }
.bp-cta__inner { padding-top: 20px; padding-bottom: 20px; }
@media (max-width: 768px) { .bp-cta__inner { padding-top: 20px; padding-bottom: 20px; } }

/* ═══════════════════════════════════════════════
   Верхняя служебная полоса: тонкая, приглушённая, по краям контейнера
   ═══════════════════════════════════════════════ */
:root { --topbar-h: 36px; }
.topbar { background: var(--graphite-950); border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar__left, .topbar__right { gap: 20px; }
.topbar__info, .topbar__mail, .topbar__link {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 400; line-height: 1; color: var(--graphite-300);
    text-decoration: none; opacity: 1; transition: color .15s ease;
}
.topbar__info svg, .topbar__mail svg { flex-shrink: 0; color: var(--graphite-400); transition: color .15s ease; }
.topbar__info:hover, .topbar__mail:hover, .topbar__link:hover { color: var(--yellow-500); opacity: 1; }
.topbar__info:hover svg, .topbar__mail:hover svg { color: var(--yellow-500); }
.topbar__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--graphite-500); }
/* PDF-каталоги (появятся, если загрузить файлы в настройках) — в том же сером стиле, одной строкой */
.topbar__link-icon { width: 16px; height: 16px; opacity: .6; }
.topbar__link-wrap { flex-direction: row; align-items: baseline; gap: 6px; }
.topbar__link-title { font-size: 13px; font-weight: 400; }
.topbar__link-sub { font-size: 12px; color: var(--graphite-500); }
.topbar__socials { gap: 14px; }
.topbar__social { width: 18px; height: 18px; color: var(--graphite-300); }
.topbar__social svg { width: 16px; height: 16px; }
.topbar__social:hover { color: var(--yellow-500); }
.topbar__mail + .topbar__socials { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.12); height: 16px; }

/* Поиск — кнопка-иконка в основной шапке, рядом с телефоном */
.header__search-btn {
    flex-shrink: 0; margin-left: auto; margin-right: 20px;
    width: 40px; height: 40px; border-radius: 4px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid rgba(255,255,255,.22); background: transparent; color: #fff; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.header__search-btn:hover { background: var(--yellow-500); border-color: var(--yellow-500); color: var(--graphite-900); }
.header__search-btn:focus-visible { outline: 2px solid var(--yellow-500); outline-offset: 2px; }
.header__search-btn + .header__contact { margin-left: 0; }
@media (max-width: 768px) { .header__search-btn { display: none; } }
@media (max-width: 1100px) {
    .header__search-btn { width: 36px; height: 36px; margin-right: 10px; margin-left: 12px; }
}

/* ═══ Планшеты 769–960 px: меню не помещается в строку — переходим на «бургер», как на телефоне ═══ */
@media (min-width: 769px) and (max-width: 960px) {
    .header__nav, .header__contact, .header__search-btn { display: none; }
    .header__mobile-actions { display: flex; margin-left: auto; }
    .header__burger, .mob-contacts-btn { display: flex; }
}
/* кнопка поиска в шапке — без рамки */
.header__search-btn { border: 0; }
.header__search-btn:hover { background: var(--yellow-500); color: var(--graphite-900); }

/* ═══ Поиск — в верхней полосе, в том же сером стиле ═══ */
.topbar__search-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer;
    font: 400 13px/1 var(--font); color: var(--graphite-300); transition: color .15s ease;
}
.topbar__search-btn svg { color: var(--graphite-400); transition: color .15s ease; }
.topbar__search-btn:hover, .topbar__search-btn:hover svg { color: var(--yellow-500); }
.topbar__search-btn:focus-visible { outline: 2px solid var(--yellow-500); outline-offset: 4px; }
.topbar__search-btn + .topbar__mail { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.12); height: 16px; }

/* ═══════════════════════════════════════════════════════════════
   Боковое меню каталога — ЕДИНАЯ логика цветов (все правила меню здесь)
   · Тёмный (жёлтая иконка) — путь до текущей страницы
   · Жёлтый                 — только текущая страница («вы здесь»), на любом уровне
   · Светлый (серая иконка) — содержимое раздела, обычные пункты
   · Наведение              — серый чуть темнее фона строки; жёлтым не бывает никогда
   ═══════════════════════════════════════════════════════════════ */
.cl-sidebar {
    top: calc(var(--header-h) + 16px);
    max-height: calc(100vh - var(--header-h) - 32px);
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
}
.cl-sidebar::-webkit-scrollbar { display: none; }
.cl-sidebar__card { overflow: hidden; background: #fff; border: 1px solid var(--graphite-200); box-shadow: 0 2px 10px rgba(17,19,22,.05); }
.cl-sidebar__title { background: var(--graphite-900); color: #fff; border-bottom: 3px solid var(--yellow-500); }
.cl-sidebar__title svg { color: var(--yellow-500); }
.cl-sidebar__nav { padding: 0; }
.cl-sidebar__subs, .cl-sidebar__subs--lvl3 { background: var(--graphite-50); padding: 0; border: 0; }

/* обычные пункты — светлые */
.cl-sidebar__item, .cl-sidebar__sub {
    display: flex; align-items: center; gap: 10px;
    color: var(--graphite-800); font-weight: 500;
    border-left: 0; border-top: 0;
    transition: background-color .15s ease, color .15s ease;
}
.cl-sidebar__item { background: #fff; padding: 11px 16px; font-size: 14px; }
.cl-sidebar__subs .cl-sidebar__item { background: var(--graphite-50); }
.cl-sidebar__item--lvl2 { padding-left: 28px; font-size: 13.5px; }
.cl-sidebar__sub { background: var(--graphite-50); padding: 8px 16px 8px 40px; font-size: 13px; }
.cl-sidebar__subs--lvl3 .cl-sidebar__sub { padding-left: 52px; }
.cl-sidebar__item + .cl-sidebar__subs, .cl-sidebar__group + .cl-sidebar__group { border-top: 0; }
.cl-sidebar__nav > .cl-sidebar__group + .cl-sidebar__group > .cl-sidebar__item { border-top: 1px solid var(--graphite-100); }

.cl-sidebar__item-icon { width: 22px; height: 22px; background: none; color: var(--graphite-600); transition: color .15s ease; }
.cl-sidebar__item-icon .cat-ico { width: 22px; height: 22px; }
.cl-sidebar__item--lvl2 .cl-sidebar__item-icon, .cl-sidebar__item--lvl2 .cl-sidebar__item-icon .cat-ico { width: 20px; height: 20px; }
.cl-sidebar__sub .cat-ico { flex-shrink: 0; width: 18px; height: 18px; padding: 0; background: none; color: var(--graphite-500); transition: color .15s ease; }
.cl-sidebar__item-chevron { color: var(--graphite-500); opacity: 1; transition: transform .15s ease; }

/* наведение — серый чуть темнее фона строки */
.cl-sidebar__item:hover, .cl-sidebar__sub:hover { background: var(--graphite-100); color: var(--graphite-900); }
.cl-sidebar__item:hover .cl-sidebar__item-icon, .cl-sidebar__sub:hover .cat-ico { color: var(--graphite-900); }

/* путь до текущей страницы — тёмный, иконка жёлтая */
.cl-sidebar__group:has(.cl-sidebar__subs .is-active) > .cl-sidebar__item.is-active {
    background: var(--graphite-900); color: #fff; font-weight: 700;
}
.cl-sidebar__group:has(.cl-sidebar__subs .is-active) > .cl-sidebar__item--lvl2.is-active { background: var(--graphite-800); }
.cl-sidebar__group:has(.cl-sidebar__subs .is-active) > .cl-sidebar__item.is-active .cl-sidebar__item-icon { color: var(--yellow-500); }
.cl-sidebar__group:has(.cl-sidebar__subs .is-active) > .cl-sidebar__item.is-active .cl-sidebar__item-chevron { color: #fff; transform: rotate(90deg); }
.cl-sidebar__group:has(.cl-sidebar__subs .is-active) > .cl-sidebar__item.is-active:hover { background: var(--graphite-700); }

/* вы здесь — жёлтый, на любом уровне */
.cl-sidebar__group:not(:has(.cl-sidebar__subs .is-active)) > .cl-sidebar__item.is-active,
.cl-sidebar__sub.is-active,
.cl-sidebar__group:not(:has(.cl-sidebar__subs .is-active)) > .cl-sidebar__item.is-active:hover,
.cl-sidebar__sub.is-active:hover {
    background: var(--yellow-500); color: var(--graphite-900); font-weight: 700;
}
.cl-sidebar__group:not(:has(.cl-sidebar__subs .is-active)) > .cl-sidebar__item.is-active .cl-sidebar__item-icon,
.cl-sidebar__group:not(:has(.cl-sidebar__subs .is-active)) > .cl-sidebar__item.is-active .cl-sidebar__item-chevron,
.cl-sidebar__sub.is-active .cat-ico { color: var(--graphite-900); }
.cl-sidebar__group:not(:has(.cl-sidebar__subs .is-active)) > .cl-sidebar__item.is-active .cl-sidebar__item-chevron { transform: rotate(90deg); }

/* фокус с клавиатуры */
.cl-sidebar__item:focus:not(:focus-visible), .cl-sidebar__sub:focus:not(:focus-visible) { outline: none; }
.cl-sidebar__item:focus-visible, .cl-sidebar__sub:focus-visible { outline: 2px solid var(--graphite-900); outline-offset: -4px; }
.cl-sidebar__group:has(.cl-sidebar__subs .is-active) > .cl-sidebar__item.is-active:focus-visible { outline-color: var(--yellow-500); }
/* наведение: жёлтая полоска слева (тенью внутрь — без сдвига текста); у текущей жёлтой строки не нужна */
.cl-sidebar__item:hover, .cl-sidebar__sub:hover { box-shadow: inset 4px 0 0 var(--yellow-500); }
.cl-sidebar__group:not(:has(.cl-sidebar__subs .is-active)) > .cl-sidebar__item.is-active:hover,
.cl-sidebar__sub.is-active:hover { box-shadow: none; }

/* ═══ Мобильное меню — та же логика цветов, что в боковом меню каталога ═══
   тёмный — путь до текущей страницы, жёлтый — текущая страница, светлый — остальное,
   нажатие/наведение — серый фон и жёлтая полоска слева */
.mobile-menu__body { padding: 8px 0; }
.mobile-menu__link, .mobile-menu__sub {
    display: flex; align-items: center; gap: 10px;
    transition: background-color .15s ease, color .15s ease;
}
.mobile-menu__link { background: #fff; color: var(--graphite-900); font-weight: 600; border-bottom: 1px solid var(--graphite-100); }
.mobile-menu__subs { background: var(--graphite-50); padding: 0; }
.mobile-menu__sub { background: var(--graphite-50); color: var(--graphite-700); font-weight: 500; padding: 11px 24px 11px 32px; }
.mobile-menu__sub .cat-ico { flex-shrink: 0; color: var(--graphite-500); }
.mobile-menu__sub--nested { padding-left: 44px; }
.mobile-menu__sub--head { color: var(--graphite-900); margin-top: 0; }

.mobile-menu__link:hover, .mobile-menu__sub:hover,
.mobile-menu__link:active, .mobile-menu__sub:active {
    background: var(--graphite-100); color: var(--graphite-900);
    box-shadow: inset 4px 0 0 var(--yellow-500);
}
.mobile-menu__sub:hover .cat-ico, .mobile-menu__sub:active .cat-ico { color: var(--graphite-900); }

.mobile-menu__link.is-path, .mobile-menu__sub.is-path { background: var(--graphite-900); color: #fff; font-weight: 700; }
.mobile-menu__sub.is-path { background: var(--graphite-800); }
.mobile-menu__link.is-path .cat-ico, .mobile-menu__sub.is-path .cat-ico, .mobile-menu__sub.is-path .mobile-menu__sub-icon { color: var(--yellow-500); }
.mobile-menu__link.is-path:hover, .mobile-menu__sub.is-path:hover,
.mobile-menu__link.is-path:active, .mobile-menu__sub.is-path:active { background: var(--graphite-700); color: #fff; }

.mobile-menu__link.is-current, .mobile-menu__sub.is-current,
.mobile-menu__link.is-current:hover, .mobile-menu__sub.is-current:hover,
.mobile-menu__link.is-current:active, .mobile-menu__sub.is-current:active {
    background: var(--yellow-500); color: var(--graphite-900); font-weight: 700; box-shadow: none;
}
.mobile-menu__sub.is-current .cat-ico, .mobile-menu__sub.is-current .mobile-menu__sub-icon { color: var(--graphite-900); }

/* ═══ Мобильное меню: раскрывающиеся подразделы ═══ */
.mm-row { display: flex; align-items: stretch; background: var(--graphite-50); transition: background-color .15s ease; }
.mm-row .mobile-menu__sub { flex: 1; min-width: 0; background: transparent; }
.mm-row .mobile-menu__sub:hover, .mm-row .mobile-menu__sub:active { background: transparent; box-shadow: none; }
.mm-row:hover, .mm-row:active { background: var(--graphite-100); box-shadow: inset 4px 0 0 var(--yellow-500); }
.mm-row.is-path { background: var(--graphite-800); box-shadow: none; }
.mm-row.is-path:hover { background: var(--graphite-700); }
.mm-row.is-current, .mm-row.is-current:hover { background: var(--yellow-500); box-shadow: none; }
.mm-row .mobile-menu__sub.is-path, .mm-row .mobile-menu__sub.is-current { background: transparent; }
.mm-toggle {
    flex-shrink: 0; width: 48px; border: 0; background: transparent; cursor: pointer;
    display: flex; align-items: center; justify-content: center; color: var(--graphite-500);
}
.mm-toggle svg { transition: transform .2s ease; }
.mm-group.is-open .mm-toggle svg { transform: rotate(180deg); }
.mm-row.is-path .mm-toggle { color: #fff; }
.mm-row.is-current .mm-toggle { color: var(--graphite-900); }
.mm-toggle:focus-visible { outline: 2px solid var(--yellow-500); outline-offset: -4px; }
.mm-children { background: #fff; border-left: 0; }
.mm-children[hidden] { display: none; }
.mobile-menu__sub--lvl3 { background: #fff; padding: 9px 20px 9px 46px; font-size: 13px; color: var(--graphite-700); }
.mobile-menu__sub--lvl3 .cat-ico { color: var(--graphite-400); }

/* ═══ Мобильная вёрстка карточек: колонка не шире экрана ═══
   В колонке (flex-direction: column) с align-items:flex-start основная часть брала ширину содержимого,
   а лента миниатюр галереи растягивала её шире экрана. */
@media (max-width: 1024px) {
    .cl-layout { align-items: stretch; }
    .cl-main { width: 100%; min-width: 0; }
    .pd-top { grid-template-columns: minmax(0, 1fr); }
    .pd-gallery, .pd-info, .pd-gallery__main { min-width: 0; max-width: 100%; }
    .pd-gallery__thumbs { max-width: 100%; }
}

/* ═══ Описания со старого сайта: ничего не шире экрана ═══ */
.pd-description, .news-article .prose { overflow-wrap: anywhere; }
.pd-description img, .pd-description video, .news-article .prose img { max-width: 100% !important; height: auto !important; }
.pd-description iframe, .news-article .prose iframe {
    display: block; width: 100% !important; max-width: 100%; height: auto !important; aspect-ratio: 16 / 9; border: 0;
}
.pd-description table, .news-article .prose table {
    display: block; max-width: 100%; width: auto !important; overflow-x: auto; -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
}
.pd-description table td, .pd-description table th { white-space: normal; }
.pd-description [style*="width"] { max-width: 100% !important; }

/* таблица характеристик: длинные значения переносятся */
.pd-specs { table-layout: fixed; }
.pd-specs__value, .pd-specs__label { overflow-wrap: anywhere; }
@media (max-width: 420px) {
    .pd-specs__label, .pd-specs__value { padding: 10px 10px; font-size: 13px; }
}

/* видео-сетка: на самых узких экранах — одна колонка во всю ширину */
.video-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.video-page .video-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

/* ═══ Мобильное меню: «Главная» вместо логотипа, без белой полосы, верхний уровень в одном стиле ═══ */
.mobile-menu__head { border-bottom: 0; }
.mobile-menu__home {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 18px; font-weight: 700; color: #fff; text-decoration: none;
}
.mobile-menu__home svg { color: var(--yellow-500); }
.mobile-menu__home:hover, .mobile-menu__home:active { color: var(--yellow-500); }
.mobile-menu__body { padding: 0 0 8px; }
/* пункты верхнего уровня всегда выглядят одинаково; раздел, внутри которого вы находитесь,
   отмечен жёлтой полоской слева и жирным текстом, без тёмной заливки */
.mobile-menu__link.is-path, .mobile-menu__link.is-path:hover, .mobile-menu__link.is-path:active {
    background: #fff; color: var(--graphite-900); font-weight: 700;
    box-shadow: inset 4px 0 0 var(--yellow-500);
}

/* ═══ Частые вопросы на страницах разделов ═══ */
.cat-faq { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--graphite-200); }
.cat-faq .pd-faq { max-width: none; }

/* скрытый для глаз, но доступный для поисковиков и экранных дикторов текст (hCard и т. п.) */
.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Поиск: исправленный запрос и найденные разделы ── */
.sr-fix{margin:0 0 14px;padding:10px 14px;border-radius:10px;background:#fff6d6;color:#3a3f44;font-size:14px}
.sr-sections{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.sr-sections__item{display:inline-flex;align-items:baseline;gap:6px;padding:10px 14px;min-height:44px;border:1px solid #e6e2d8;border-radius:10px;background:#fff;color:#1c1f22;font-weight:600;text-decoration:none}
.sr-sections__item small{font-weight:400;color:#6b7177}
.sr-sections__item:hover{border-color:var(--yellow-500,#FFC20E);box-shadow:inset 4px 0 0 var(--yellow-500,#FFC20E)}
.sr-empty__text a{color:inherit;font-weight:600;white-space:nowrap}

/* ── Юридические страницы (политика) ── */
.legal-page{padding:40px 0 64px;background:#fff}
.legal-page__body{color:#2b3035;font-size:16px;line-height:1.65}
/* text starts on the container edge (aligned with the page title); line length is limited per block */
.legal-page__body > *{max-width:860px}
/* privacy/consent were missing from the default.css list of pages whose hero sits under the absolute header:
   same top offset and background as the catalog/spare-parts pages */
.page-privacy .cp-hero,.page-consent .cp-hero{padding-top:calc(var(--topbar-h) + var(--header-h));background:linear-gradient(135deg,var(--graphite-950) 0%,var(--graphite-800) 60%,var(--graphite-900) 100%)}
@media (max-width: 768px){.page-privacy .cp-hero,.page-consent .cp-hero{padding-top:100px}}
.legal-page__body h2{font-size:20px;margin:28px 0 10px;color:#1c1f22}
.legal-page__body ul{padding-left:22px;margin:0 0 12px}
.legal-page__body li{margin:4px 0}
.legal-page__body a{color:#8a5d00}
.legal-page__date{margin-top:28px;color:#6b7177;font-size:14px}
.footer__legal{color:inherit;text-decoration:underline;text-underline-offset:3px}
.footer__legal:hover{color:var(--yellow-500,#FFC20E)}

/* ── Формы заявок: обязательные поля, тема заявки, ошибка, экран «Спасибо» ── */
.req{color:#d9822b;font-weight:700}
.contact-modal__subject{margin:-6px 0 10px;padding:8px 12px;border-radius:8px;background:#fff6d6;color:#1c1f22;font-weight:600;font-size:14px}
.contact-modal__error{margin:4px 0 0;padding:10px 12px;border-radius:8px;background:#fdecea;color:#b42318;font-size:14px}
.contact-modal__done{text-align:center;padding:12px 0 4px}
.contact-modal__done-icon{width:56px;height:56px;margin:0 auto 12px;border-radius:50%;background:var(--yellow-500,#FFC20E);color:#1c1f22;display:flex;align-items:center;justify-content:center}
.contact-modal__done-btn{margin-top:16px;min-width:160px}
.contact-modal__lead a{color:inherit;font-weight:700;white-space:nowrap}
input:invalid:not(:placeholder-shown):not(:focus){border-color:#e5a3a3}
/* iOS увеличивает страницу при фокусе на поле мельче 16px — на телефонах поля 16px */
@media (max-width: 768px){
  input[type="text"],input[type="tel"],input[type="email"],input[type="search"],input:not([type]),textarea,select{font-size:16px !important}
}

/* ── Мобильная панель контактов: главный номер первым, WhatsApp ── */
.mob-contacts-panel__item--main .mob-contacts-panel__phone{font-size:22px;font-weight:700}
.mob-contacts-panel__phone--sm{font-size:17px}
.mob-contacts-panel__wa{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;margin:4px 0 8px;border-radius:10px;background:#25D366;color:#fff !important;font-weight:600;text-decoration:none}

/* ── Горизонтальная прокрутка на телефонах ── */
/* длинное название товара в «хлебных крошках» переносится, а не растягивает страницу */
.cp-hero__inner{min-width:0}
.cc-breadcrumb{max-width:100%;min-width:0}
.cc-breadcrumb__current{min-width:0;overflow-wrap:anywhere}
/* тексты со старого сайта: блоки и таблицы с фиксированной шириной не шире экрана */
.prose,.pd-description,.cl-desc,.sub-desc{overflow-wrap:anywhere}
.prose *,.pd-description *{max-width:100%;box-sizing:border-box}
.prose [style*="width"],.pd-description [style*="width"],.prose .wrapper,.prose div{width:auto !important;max-width:100% !important}
.prose img,.pd-description img{height:auto !important}
.prose table,.pd-description table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
/* длинные ссылки и строки без пробелов переносятся, блоки <pre> из старых статей не растягивают экран */
.pd-info__desc,.cc-prod__name,.news-article,.legal-page__body{overflow-wrap:anywhere}
.prose pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}

/* ── Зоны нажатия на телефонах — не меньше 44 px (рекомендации Apple/Google) ── */
@media (max-width: 768px){
  .header__burger{width:44px !important;height:44px !important;display:inline-flex;align-items:center;justify-content:center;padding:8px !important;margin-right:-8px}
  .header__logo{padding:8px 0}
  .mob-contacts-btn{min-width:44px;min-height:44px}
  .cc-breadcrumb a,.bd-breadcrumb a{display:inline-block;padding:12px 0}
  .footer a{display:inline-block;padding:10px 0}
  .footer li{margin:0}
  .hero__quick-link,.section-head__link,.cat-tile__all,.bento__label,.pl-hub__section-link,.bd-catalog__section-link,.bd-hero__meta-link,.bp-card__sub{display:inline-flex;align-items:center;min-height:44px}
  .bento__tag{min-height:40px;display:inline-flex;align-items:center;font-size:13px}
  .news-tabs__item{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center}
  .search-chip{min-height:40px}
  .cl-sidebar__sub,.mobile-menu__sub{min-height:44px}
}
@media (max-width: 768px){
  .topbar-filter__btn,.bd-catalog__nav-item{min-height:44px}
  .vp__btn{min-width:44px;min-height:44px}
  .cnt-office__detail a,.regions__office a,.cnt-bar__links a{display:inline-block;padding:10px 0}
  .news-row__title a,.news-row__meta a{display:inline-block;padding:4px 0}
}
/* ── Мелкий текст: не меньше 12 px ── */
.cc-prod__spec-lbl,.regions__office-label,.cnt-office__badge,.bento__tag,.svc-request__contact small,.hero__quick-link span{font-size:12px !important}

/* ── Закреплённая панель заявки на карточке (телефоны) ── */
.sticky-cta{position:fixed;left:0;right:0;bottom:0;z-index:900;display:flex;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#1c1f22;box-shadow:0 -6px 20px rgba(0,0,0,.25)}
.sticky-cta[hidden]{display:none}
.sticky-cta__main{flex:1;min-height:48px;border:0;border-radius:10px;background:var(--yellow-500,#FFC20E);color:#1c1f22;font-weight:700;font-size:16px}
.sticky-cta__icon{flex:0 0 48px;height:48px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:#2b3035;color:#fff}
.sticky-cta__icon--wa{background:#25D366}
body.has-sticky-cta{padding-bottom:72px}
body.has-sticky-cta .video-widget{bottom:84px !important}
@media (min-width: 769px){.sticky-cta{display:none !important}}
@media (max-width: 768px){
  .header__burger{flex-direction:column;justify-content:center;gap:5px}
  .header__burger span{width:24px !important;flex:0 0 2px}
}
.pl-pager-note{margin:8px 0 0;text-align:center;color:#6b7177;font-size:14px}

/* ── Логотипы брендов в мега-меню: в цвете (в сером фильтре светлые логотипы DIGGA, Heizomat пропадали) ── */
.mega__brand img{filter:none !important;opacity:1 !important;max-height:32px}
.mega__brand span{font-size:12px}

/* ── «Контакты»: карта офисов и маршрут ── */
.cnt-map{margin:40px 0 0}
.cnt-map__tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.cnt-map__tab{min-height:44px;padding:8px 16px;border:1px solid #e6e2d8;border-radius:10px;background:#fff;color:#1c1f22;font-weight:600;cursor:pointer}
.cnt-map__tab.is-active{background:var(--yellow-500,#FFC20E);border-color:var(--yellow-500,#FFC20E)}
.cnt-map__frame{position:relative;border-radius:14px;overflow:hidden;background:#eceae4;aspect-ratio:16/7;min-height:320px}
.cnt-map__frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.cnt-office__sep{margin:0 6px;opacity:.5}
@media (max-width: 768px){.cnt-map__frame{aspect-ratio:auto;height:360px}}
.regions__no-office-tel{display:inline-block;padding:8px 0;font-size:18px;font-weight:700;color:var(--yellow-500,#FFC20E);text-decoration:none}

/* ── Логотип: над «Й» была обрезана кратка — область SVG расширена вверх, сдвигаем, чтобы буквы остались на месте ── */
.header__logo-img{margin-top:-6px}
.footer__logo-img{height:49px !important;margin-top:-13px}
@media (max-width: 768px){
  .cat-tile__title a,.cp-brands__link{display:inline-block;padding:10px 0}
  .sr-form__input{min-height:44px}
}
@media (max-width: 768px){
  /* «…» нужно только когда крошки сокращены; перед «Главной» его не ставим */
  .cc-breadcrumb > a:first-child::before,.bd-breadcrumb > a:first-child::before{content:none !important}
}
.footer__heading{margin-top:0;line-height:1.3}
/* «Купить в лизинг/рассрочку» — теперь кнопки, а не ссылки href="#": сохраняем прежний вид */
button.pd-purchase__item{width:100%;background:none;border:0;border-bottom:1px dashed rgba(0,0,0,.15);font-family:inherit;line-height:inherit;text-align:left;cursor:pointer}
address.footer__address,address.cnt-office__contacts{font-style:normal}

/* ── Согласие на обработку ПДн в формах (152-ФЗ): отдельная галочка, по умолчанию не отмечена ── */
.pd-consent{position:relative;display:flex;gap:10px;align-items:flex-start;margin:6px 0 14px;font-size:13px;line-height:1.45;color:inherit;cursor:pointer;text-align:left}
.pd-consent input{position:absolute;opacity:0;width:22px;height:22px;margin:0;cursor:pointer}
.pd-consent__box{flex:0 0 22px;height:22px;border:2px solid #b9b4a8;border-radius:6px;background:#fff;display:flex;align-items:center;justify-content:center;transition:background .15s,border-color .15s}
.pd-consent input:checked + .pd-consent__box{background:var(--yellow-500,#FFC20E);border-color:var(--yellow-500,#FFC20E)}
.pd-consent input:checked + .pd-consent__box::after{content:"";width:6px;height:11px;border:solid #1c1f22;border-width:0 2.5px 2.5px 0;transform:rotate(45deg) translate(-1px,-1px)}
.pd-consent input:focus-visible + .pd-consent__box{outline:2px solid #1c1f22;outline-offset:2px}
.pd-consent input.is-invalid + .pd-consent__box{border-color:#d92d20}
.pd-consent a{color:inherit;text-decoration:underline;text-underline-offset:2px}

/* ── Плашка о cookie (152-ФЗ) ── */
.cookie-banner{position:fixed;left:16px;right:16px;bottom:16px;z-index:1500;display:flex;justify-content:center;opacity:0;transform:translateY(12px);transition:opacity .25s,transform .25s;pointer-events:none}
.cookie-banner.is-visible{opacity:1;transform:none;pointer-events:auto}
.cookie-banner[hidden]{display:none}
.cookie-banner__inner{max-width:960px;width:100%;display:flex;gap:16px;align-items:center;padding:16px 20px;border-radius:14px;background:#1c1f22;color:#e4e6e8;box-shadow:0 12px 40px rgba(0,0,0,.35)}
.cookie-banner__text{margin:0;font-size:14px;line-height:1.5}
.cookie-banner__text a{color:var(--yellow-500,#FFC20E)}
.cookie-banner__actions{display:flex;gap:8px;flex-shrink:0}
.cookie-banner__btn{min-height:44px;padding:0 18px;border:0;border-radius:10px;background:var(--yellow-500,#FFC20E);color:#1c1f22;font-weight:700;cursor:pointer;white-space:nowrap}
.cookie-banner__btn--ghost{background:transparent;color:#fff;border:1px solid #50565c}
@media (max-width: 768px){
  .cookie-banner{left:8px;right:8px;bottom:8px}
  .cookie-banner__inner{flex-direction:column;align-items:stretch;padding:14px}
  .cookie-banner__actions .cookie-banner__btn{flex:1}
  body.has-sticky-cta .cookie-banner{bottom:80px}
}
/* в белых карточках форм на тёмном фоне текст согласия — тёмный */
.svc-request__form .pd-consent,.pd-docs-form .pd-consent,.pd-modal .pd-consent{color:#3a3f44}

/* ── Шапка на узких телефонах: логотип (160px, не сжимается) упирался в кнопки, на 320px кнопки уходили за край ── */
@media (max-width: 400px) {
    .header__mobile-actions { gap: 8px; }
    .header__logo-wrap { width: 140px; }
}
@media (max-width: 359px) {
    .header__logo-wrap { width: 116px; }
}

/* ── Поиск, блок разделов на телефонах: вместо плашек с «плавающей» подписью — список с линейками
   (название, под ним раздел, стрелка справа), как список разделов на главной ── */
@media (max-width: 600px) {
    .sr-sections { display: block; margin: 0 0 20px; border-top: 1px solid var(--graphite-200); }
    .sr-sections__item {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 16px;
        column-gap: 12px;
        align-items: center;
        min-height: 56px;
        padding: 10px 0;
        line-height: 1.3;
        background: none;
        border: 0;
        border-bottom: 1px solid var(--graphite-200);
        border-radius: 0;
        -webkit-tap-highlight-color: transparent;
    }
    .sr-sections__item small {
        grid-column: 1;
        margin-top: 2px;
        font-size: 13px;
        line-height: 1.35;
    }
    .sr-sections__item::after {
        content: '';
        grid-column: 2;
        grid-row: 1 / span 2;
        width: 16px;
        height: 16px;
        background: var(--graphite-400);
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
                mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    }
    .sr-sections__item:hover { box-shadow: none; border-color: var(--graphite-200); }
    .sr-sections__item:active { background: var(--graphite-50); }
    .sr-sections__item:active::after { background: var(--graphite-900); }
}

/* ── Форма на странице поиска: поле сжимается (на 320px кнопка «Найти» уходила за край),
   на телефонах 16px — иначе iPhone увеличивает страницу при нажатии на поле ── */
.sr-form__input { min-width: 0; }
@media (max-width: 768px) {
    .sr-form__input { font-size: 16px; }
}

/* ── Подвал на телефонах. Правило «.footer a {display:inline-block; padding:10px 0}» (зона нажатия 44px)
   сдвигало текст ссылок ниже их иконок, раздувало строки филиалов и ломало центрирование иконок в кнопках соцсетей ── */
@media (max-width: 768px) {
    .footer .footer__social {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
    }
    .footer__socials { gap: 10px; }

    /* зона нажатия остаётся 44px, но не двигает текст: паддинг компенсирован отрицательным отступом */
    .footer .footer__contact-item a,
    .footer .footer__branch-phone,
    .footer .footer__legal { padding: 10px 0; margin: -10px 0; }
    .footer__copy { line-height: 1.7; }

    .footer__branches { padding: 24px 0; }
    .footer__branches-grid { flex-direction: column; align-items: flex-start; gap: 16px; }
    .footer__branch { flex-direction: column; align-items: flex-start; gap: 2px; }
    .footer__branch-city { font-size: 13px; line-height: 1.35; }
    .footer .footer__branch-phone { font-size: 15px; line-height: 1.35; }

    .footer__bottom-inner { align-items: flex-start; text-align: left; }
}

/* ── Крестик мобильного меню: svg был строчным и садился на базовую линию (кнопка 32×39, иконка выше центра) ── */
.mobile-menu__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin-right: -6px;
}
.mobile-menu__close svg { display: block; }

/* ── Карта «Работаем по всей России» на телефонах: контейнер был min-height 340px при высоте карты ~190px,
   отсюда по ~80px пустоты сверху и снизу. Отступы над и под картой уменьшены вдвое (112 → 56px) ── */
@media (max-width: 768px) {
    .regions__map { min-height: 0; margin: 24px 0; }
}

/* ── Хлебные крошки: всегда полная цепочка. На экранах до 768px default.css прятал начало («… / ») и обрезал
   текущую страницу многоточием; теперь крошки переносятся на следующую строку ── */
@media (max-width: 768px) {
    .cc-breadcrumb,
    .bd-breadcrumb { flex-wrap: wrap; overflow: visible; white-space: normal; row-gap: 2px; line-height: 1.45; }
    .cc-breadcrumb > a:not(:nth-last-child(-n+3)),
    .bd-breadcrumb > a:not(:nth-last-child(-n+3)) { display: inline-block; }
    .cc-breadcrumb > span:not(:nth-last-child(-n+2)):not(.cc-breadcrumb__current),
    .bd-breadcrumb > span:not(:nth-last-child(-n+2)):not(.bd-breadcrumb__current) { display: inline; }
    .cc-breadcrumb > a:nth-last-child(3)::before,
    .bd-breadcrumb > a:nth-last-child(3)::before { content: none; }
    .cc-breadcrumb__current,
    .bd-breadcrumb__current { flex: 0 1 auto; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
    /* зона нажатия 44px остаётся, но не раздвигает строки при переносе */
    .cc-breadcrumb a,
    .bd-breadcrumb a { padding: 12px 0; margin: -12px 0; }
}


/* ═══ iOS Safari ═══ */
/* не увеличивать шрифт при повороте телефона в альбомную ориентацию */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* iOS не отправляет click по «некликабельному» месту до document — выпадающие списки, панель контактов,
   окно «Написать нам» не закрывались нажатием мимо. cursor:pointer делает элементы кликабельными для Safari.
   Только для сенсорных iOS-устройств; серую вспышку при нажатии оставляем только у ссылок и кнопок */
@supports (-webkit-touch-callout: none) {
    @media (hover: none) {
        body { cursor: pointer; -webkit-tap-highlight-color: transparent; }
        a, button, [role="button"], label, summary, select { -webkit-tap-highlight-color: rgba(18, 20, 23, .12); }
    }
}

/* 100vh в Safari на iPhone — высота с убранной панелью, низ панелей уходил под панель браузера; dvh — видимая высота */
@supports (height: 100dvh) {
    .mob-contacts-panel { max-height: calc(100dvh - 64px); }
    .cl-sidebar { max-height: calc(100dvh - var(--header-h) - 32px); }
    @media (max-width: 768px) {
        .search-suggest { max-height: calc(100dvh - 160px); }
    }
}

/* Safari до 18 понимает размытие фона и сброс вида полей только с префиксом -webkit- */
.bp-hero__trust { -webkit-backdrop-filter: blur(10px); }
.bd-hero__logo-wrap { -webkit-backdrop-filter: blur(8px); }
.cc-prod__brand-label, .pd-gallery__brand { -webkit-backdrop-filter: blur(4px); }
.topbar-filter__opt input[type="checkbox"] { -webkit-appearance: none; }

/* поле type=search: iOS рисует своё скругление и внутренние отступы */
.hero-search__input { -webkit-appearance: none; appearance: none; border-radius: 0; }
.hero-search__input::-webkit-search-decoration,
.hero-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
