/* ============================================================
   RaketaRise CMS — базовая тема
   Нейтральная, без внешних шрифтов и зависимостей.
   Под новый сайт обычно достаточно поменять переменные в :root.
   ============================================================ */

:root {
    --bg:        #ffffff;
    --bg-soft:   #f5f6f8;
    --text:      #1b1f24;
    --muted:     #5f6875;
    --line:      #e3e6eb;
    --accent:    #c81e24;
    --accent-hv: #a3161b;
    --accent-bg: #fdecec;
    --ok:        #15803d;
    --warn:      #b45309;
    --radius:    10px;
    --shadow:    0 6px 24px rgba(16, 24, 40, .08);
    --wrap:      1140px;
    --font:      "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --display:   "Unbounded", "Golos Text", system-ui, sans-serif;
    --mono:      ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ── База ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 16px/1.65 var(--font);
    display: flex; flex-direction: column; min-height: 100vh;
}
body.no-scroll { overflow: hidden; }
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hv); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(22px, 3vw, 28px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
main.container { padding-top: 24px; padding-bottom: 56px; }
.text-muted { color: var(--muted); }
[hidden] { display: none !important; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border: 0; border-radius: var(--radius);
    background: var(--accent); color: #fff; font: 600 15px/1.2 var(--font); cursor: pointer;
}
.btn:hover { background: var(--accent-hv); color: #fff; text-decoration: none; }

/* ── Шапка ───────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--bg); border-bottom: 1px solid var(--line);
    /* без backdrop-filter: он делает шапку контейнером для position:fixed и ломает мобильное меню */
}
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.site-logo { font-weight: 800; font-size: 20px; color: var(--text); white-space: nowrap; }
.site-logo:hover { text-decoration: none; color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 18px; flex: 1; justify-content: flex-end; }

/* Меню: поддерживает вложенность (выпадающее на десктопе) */
.site-menu, .site-menu__sub { list-style: none; margin: 0; padding: 0; }
.site-menu { display: flex; gap: 4px; align-items: center; }
.site-menu > li { position: relative; }
.site-menu a, .site-menu span { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); font-weight: 500; }
.site-menu a:hover { background: var(--bg-soft); text-decoration: none; }
.site-menu__has-children > a::after, .site-menu__has-children > span::after { content: " ▾"; font-size: 11px; color: var(--muted); }
.site-menu__sub {
    position: absolute; top: 100%; left: 0; min-width: 220px; padding: 6px;
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(4px); transition: .15s;
}
.site-menu li:hover > .site-menu__sub, .site-menu li:focus-within > .site-menu__sub { opacity: 1; visibility: visible; transform: none; }

.lang-switcher { display: flex; gap: 2px; }
.lang-switcher a { padding: 6px 8px; border-radius: 6px; font: 600 13px/1 var(--font); color: var(--muted); }
.lang-switcher a.active { color: var(--text); background: var(--bg-soft); }
.lang-switcher a:hover { text-decoration: none; color: var(--text); }

.burger { display: none; margin-left: auto; width: 42px; height: 42px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after {
    position: absolute; left: 11px; width: 20px; height: 2px; background: var(--text); content: ""; transition: .2s;
}
.burger span { top: 20px; }
.burger span::before { left: 0; top: -6px; }
.burger span::after { left: 0; top: 6px; }
.burger.is-active span { background: transparent; }
.burger.is-active span::before { top: 0; transform: rotate(45deg); }
.burger.is-active span::after { top: 0; transform: rotate(-45deg); }

/* ── Живой поиск ─────────────────────────────────────────── */
.site-search { position: relative; width: 240px; }
.site-search__input {
    width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--bg-soft); font: 15px/1.3 var(--font); color: var(--text);
}
.site-search__input:focus { outline: 2px solid var(--accent-bg); border-color: var(--accent); background: var(--bg); }
.site-search__panel {
    position: absolute; top: calc(100% + 6px); right: 0; width: min(420px, 92vw); z-index: 60;
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 8px; max-height: 70vh; overflow-y: auto;
}
.site-search__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 4px 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.site-search__chip { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 4px 10px; font: 13px var(--font); cursor: pointer; }
.site-search__chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.site-search__chip-n { opacity: .7; }
.site-search__group { padding: 8px 8px 4px; font: 700 12px var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.site-search__item { display: block; padding: 7px 8px; border-radius: 6px; color: var(--text); }
.site-search__item:hover, .site-search__item.is-active { background: var(--bg-soft); text-decoration: none; }
.site-search__item mark { background: var(--accent-bg); color: inherit; border-radius: 3px; }
.site-search__empty { padding: 10px 8px; color: var(--muted); }
.site-search__all { display: block; margin-top: 6px; padding: 9px 8px; border-top: 1px solid var(--line); font-weight: 600; }

/* ── Хлебные крошки ──────────────────────────────────────── */
.breadcrumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.category-text { margin-top: 32px; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

/* ── Контент из редактора ────────────────────────────────── */
.content { max-width: 780px; }
.content h2 { margin-top: 1.6em; }
.content h3 { margin-top: 1.4em; }
.content ul, .content ol { padding-left: 1.4em; margin: 0 0 1em; }
.content li { margin: .25em 0; }
.content blockquote { margin: 1.4em 0; padding: 12px 20px; border-left: 4px solid var(--accent); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.content blockquote p { margin: 0; }
.content cite { display: block; margin-top: 6px; color: var(--muted); font-style: normal; font-size: 14px; }
.content pre { overflow-x: auto; padding: 14px 16px; background: #0f172a; color: #e2e8f0; border-radius: var(--radius); font: 14px/1.5 var(--mono); }
.content code { font-family: var(--mono); font-size: .92em; background: var(--bg-soft); padding: .1em .35em; border-radius: 4px; }
.content pre code { background: none; padding: 0; }
.content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; display: block; overflow-x: auto; }
.content th, .content td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.content th { background: var(--bg-soft); }
.content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.content mark { background: #fff3a3; }
.cms-image { margin: 1.6em 0; }
.cms-image img { border-radius: var(--radius); }
.cms-image--border img { border: 1px solid var(--line); }
.cms-image--bg { background: var(--bg-soft); padding: 16px; border-radius: var(--radius); }
.cms-image--bg img { margin: 0 auto; max-width: 70%; }
.cms-image figcaption, .post-cover figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.content .faq { margin: 2em 0; }
.content .faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; margin-bottom: 8px; }
.content .faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.content .faq details p { margin: 0 0 14px; }

/* «Читать далее» */
.content-more > summary { list-style: none; cursor: pointer; color: var(--accent); font-weight: 600; margin: 4px 0 12px; }
.content-more > summary::-webkit-details-marker { display: none; }
.content-more__close, .content-more[open] .content-more__open { display: none; }
.content-more[open] .content-more__close { display: inline; }

/* Оглавление */
.toc { margin: 0 0 24px; padding: 12px 18px; background: var(--bg-soft); border-radius: var(--radius); max-width: 780px; }
.toc summary { cursor: pointer; font-weight: 700; }
.toc ol { margin: 8px 0 0; padding-left: 1.3em; }
.toc li { margin: 3px 0; }

/* ── Списки статей / услуг / товаров (карточки) ─────────── */
.posts-list ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.posts-list a { display: flex; flex-direction: column; height: 100%; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); transition: box-shadow .15s, transform .15s; }
.posts-list a:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-2px); }
.posts-list img, .posts-list i { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-soft); display: block; }
.posts-list h2, .posts-list h3 { font-size: 18px; margin: 14px 16px 6px; }
.posts-list em { font-style: normal; font-size: 13px; color: var(--muted); margin: 0 16px 8px; }
.posts-list p { font-size: 15px; color: var(--muted); margin: 0 16px 16px; }
.posts-block { margin-top: 48px; }

.catalog-cats ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-cats a { display: block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 15px; }
.catalog-cats a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Пагинация */
.pagination ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pagination a, .pagination span { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
.pagination a:hover { border-color: var(--accent); text-decoration: none; }
.pagination .active span { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .gap span { border: 0; }

/* ── Статья ──────────────────────────────────────────────── */
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: -4px 0 20px; font-size: 14px; color: var(--muted); }
.post-meta b { font-weight: 400; }
.post-cover { margin: 0 0 24px; }
.post-cover img { border-radius: var(--radius); width: 100%; }
.author-card { display: flex; gap: 16px; align-items: flex-start; margin-top: 40px; padding: 20px; background: var(--bg-soft); border-radius: var(--radius); max-width: 780px; }
.author-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.author-card span { font-size: 13px; color: var(--muted); display: block; }
.author-card b { font-size: 18px; display: block; margin-bottom: 6px; }
.author-card p { margin: 0 0 8px; font-size: 15px; }
.author-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.author-social a { display: flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.author-social a:hover { color: var(--accent); border-color: var(--accent); }
.author-social svg { width: 16px; height: 16px; }

/* ── Товар ───────────────────────────────────────────────── */
.product-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; margin-bottom: 32px; align-items: start; }
.product-gallery-main img { width: 100%; border-radius: var(--radius); cursor: zoom-in; background: var(--bg-soft); }
.product-gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.product-gallery-thumbs button { padding: 0; width: 72px; height: 72px; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--bg-soft); }
.product-gallery-thumbs button.is-active { border-color: var(--accent); }
.product-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-price { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.product-price .price { font-size: 28px; font-weight: 800; }
.posts-list .price { display: block; padding: 0 16px 12px; font-weight: 700; color: var(--text); }
.stock { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.stock-in { background: #e7f6ec; color: var(--ok); }
.stock-order { background: #fdf2e3; color: var(--warn); }
.product-specs { width: 100%; border-collapse: collapse; }
.product-specs th, .product-specs td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.product-specs th { width: 45%; color: var(--muted); font-weight: 500; padding-right: 12px; }
.page-figure { margin: 0 0 20px; }
.page-figure img { border-radius: var(--radius); }

.pg-lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(10, 12, 16, .92); }
.pg-lightbox.is-open { display: flex; }
.pg-lightbox__img { max-width: 92vw; max-height: 88vh; cursor: zoom-in; transition: transform .2s; }
.pg-lightbox__img.is-zoomed { transform: scale(1.8); cursor: zoom-out; }
.pg-lightbox__close, .pg-lightbox__nav { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 30px; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; }
.pg-lightbox__close { top: 16px; right: 16px; }
.pg-lightbox__nav--prev { left: 16px; }
.pg-lightbox__nav--next { right: 16px; }

/* ── Поиск (страница) ────────────────────────────────────── */
.search-lead { color: var(--muted); max-width: 640px; }
.search-form { display: flex; gap: 8px; max-width: 640px; margin: 0 0 24px; }
.search-form .site-search__input { flex: 1; background: var(--bg); padding: 11px 14px; }
.search-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.search-tab { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 15px; }
.search-tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.search-tab:hover { text-decoration: none; border-color: var(--accent); }
.search-tab__n { opacity: .7; }
.search-group { margin-bottom: 28px; }
.search-group__head { font-weight: 700; margin-bottom: 8px; }
.search-group__head span { color: var(--muted); font-weight: 400; }
.search-list { list-style: none; margin: 0 0 12px; padding: 0; }
.search-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.search-more { font-weight: 600; }
.search-empty { padding: 20px; background: var(--bg-soft); border-radius: var(--radius); }

/* ── Блоки (админка → Блоки; вывод renderBlock / [[block:…]]) ── */
.cms-block { margin: 40px 0; }
.cms-block__title { margin: 0 0 16px; }
.cms-block--cta { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.cms-block--cta .content > :last-child { margin-bottom: 0; }
.cms-block__action { margin: 18px 0 0; }

/* ── Главная ─────────────────────────────────────────────── */
.home-hero { padding: 32px 0 12px; max-width: 780px; }
.home-hero__lead { font-size: 19px; color: var(--muted); }

/* ── 404 ─────────────────────────────────────────────────── */
.error-page { flex: 1 0 auto; text-align: center; padding: 80px 16px; }
.error-page h1 { font-size: 72px; margin-bottom: 8px; }

/* ── Подвал ──────────────────────────────────────────────── */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.site-footer__copy { margin: 0; }
.footer-menu, .footer-menu .site-menu__sub { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-menu a { color: var(--muted); }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); box-shadow: var(--shadow); font-size: 18px; cursor: pointer; }

/* ── Адаптив ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .burger { display: block; }
    .site-nav {
        position: fixed; inset: 64px 0 0; z-index: 49; flex-direction: column; align-items: stretch; justify-content: flex-start;
        gap: 16px; padding: 16px; background: var(--bg); overflow-y: auto;
        transform: translateX(100%); transition: transform .2s; visibility: hidden;
    }
    .site-nav.is-open { transform: none; visibility: visible; }
    .site-menu { flex-direction: column; align-items: stretch; }
    .site-menu a, .site-menu span { padding: 12px; font-size: 17px; }
    .site-menu__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; }
    .site-search { width: 100%; }
    .site-search__panel { position: static; width: 100%; margin-top: 6px; }
    .product-top { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .posts-list ul { grid-template-columns: 1fr; }
    .author-card { flex-direction: column; }
    .search-form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   Sary — шрифты, шапка, подвал, кнопки (общие для всех страниц)
   Палитра: графит, асфальт, сталь (серебро логотипа), сигнальный красный.
   ============================================================ */
@font-face { font-family: "Unbounded"; font-weight: 200 900; font-display: swap; src: url(../fonts/unbounded-latin-wght-normal.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-weight: 200 900; font-display: swap; src: url(../fonts/unbounded-ro-wght-normal.woff2) format("woff2");
    unicode-range: U+0102-0103, U+015E-015F, U+0162-0163, U+0218-021B; }
@font-face { font-family: "Unbounded"; font-weight: 200 900; font-display: swap; src: url(../fonts/unbounded-cyrillic-wght-normal.woff2) format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400 900; font-display: swap; src: url(../fonts/golos-text-latin-wght-normal.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 400 900; font-display: swap; src: url(../fonts/golos-text-ro-wght-normal.woff2) format("woff2");
    unicode-range: U+0102-0103, U+015E-015F, U+0162-0163, U+0218-021B; }
@font-face { font-family: "Golos Text"; font-weight: 400 900; font-display: swap; src: url(../fonts/golos-text-cyrillic-wght-normal.woff2) format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
    --graphite: #16181b;
    --asphalt:  #202328;
    --rule:     #30343b;
    --steel:    #aeb5bf;
    --chalk:    #f3f4f6;
    --paper:    #eeefe9;
    --ink:      #1a1c20;
    --signal:   #e2272c;
    --signal-hv:#c71d22;
    --header-h: 80px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.015em; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--signal); color: #fff; border-radius: 6px; }
.skip-link:focus { top: 12px; color: #fff; }

/* Шапка — тёмная на всех страницах */
.site-header { background: var(--graphite); border-bottom-color: var(--rule); }
.site-header__inner { min-height: var(--header-h); }
.site-logo img { height: 64px; width: auto; }
.site-menu a, .site-menu span { color: var(--chalk); font-size: 15px; }
.site-menu a:hover { background: var(--asphalt); color: #fff; }
.site-menu__sub { background: var(--asphalt); border-color: var(--rule); }
.lang-switcher a { color: var(--steel); }
.lang-switcher a.active { color: #fff; background: var(--asphalt); }
.lang-switcher a:hover { color: #fff; }
.burger span, .burger span::before, .burger span::after { background: var(--chalk); }
.burger.is-active span { background: transparent; }
.header-phone {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
    background: var(--signal); color: #fff; font: 600 15px/1 var(--font); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.header-phone:hover { background: var(--signal-hv); color: #fff; text-decoration: none; }

/* Мессенджеры */
.messengers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.messengers a {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 10px 10px; border-radius: 999px;
    border: 1px solid var(--rule); background: rgba(22, 24, 27, .55); color: var(--chalk); font-weight: 500; font-size: 15px;
}
.messengers a:hover { border-color: var(--steel); color: #fff; text-decoration: none; }
.messengers img { width: 24px; height: 24px; }

/* Подвал */
.site-footer { background: var(--graphite); border-top: 1px solid var(--rule); color: var(--steel); padding: 36px 0; }
.site-footer__inner { align-items: flex-start; }
.site-footer__brand { display: flex; gap: 16px; align-items: center; }
.site-footer__brand img { width: 110px; height: auto; }
.site-footer__brand p { margin: 0; line-height: 1.5; }
.site-footer__contact { display: flex; flex-direction: column; gap: 4px; }
.site-footer__contact a { color: var(--chalk); }
.site-footer__contact a:first-child { font-family: var(--display); font-size: 17px; }
.site-footer__bottom {
    width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
    padding-top: 18px; border-top: 1px solid var(--rule); font-size: 13px;
}
.rr-credit { display: inline-flex; align-items: center; gap: 10px; color: var(--steel); }
.rr-credit:hover { color: #fff; text-decoration: none; }
.rr-credit img { width: 32px; height: auto; }
.footer-menu a { color: var(--steel); }
.to-top { background: var(--asphalt); color: var(--chalk); border-color: var(--rule); }

/* Нижняя панель звонка — только на телефонах */
.callbar { display: none; }

@media (max-width: 900px) {
    .site-nav { inset: var(--header-h) 0 0; background: var(--graphite); }
    .site-menu a { font-size: 18px; }
    .lang-switcher a { font-size: 15px; padding: 10px 12px; }
    .header-phone { align-self: flex-start; padding: 13px 20px; font-size: 17px; }
}
@media (max-width: 700px) {
    :root { --header-h: 64px; }
    .site-logo img { height: 52px; }
    .callbar {
        display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(22, 24, 27, .96); border-top: 1px solid var(--rule);
    }
    .callbar a {
        display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 10px;
        font-weight: 600; color: #fff; text-decoration: none;
    }
    .callbar__call { background: var(--signal); }
    .callbar__wa { background: var(--asphalt); border: 1px solid var(--rule); }
    body { padding-bottom: 72px; }
    .to-top { bottom: 84px; }
    .site-footer__brand { flex-direction: column; align-items: flex-start; }
}
