﻿/*
Theme Name: Сапфир СТ
Theme URI: http://www.sapfir.biz/
Author: Сапфир СТ
Description: Индустриальный минимализм для витрины промышленной электроники. Каталог без корзины, заявка на счёт.
Version: 1.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: sapfir
*/

:root {
    --blue: #0f4c81;
    --blue-dark: #0a3a63;
    --blue-light: #eaf1f8;
    --graphite: #1c2024;
    --graphite-soft: #3d444b;
    --muted: #6b7480;
    --line: #e2e6ea;
    --bg: #f6f7f9;
    --white: #ffffff;
    --radius: 6px;
    --wrap: 1220px;
    --gap: 24px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--graphite);
    font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color .18s ease;
}

a:hover {
    color: var(--blue-dark);
}

h1, h2, h3, h4 {
    margin: 0 0 .6em;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--graphite);
}

h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Шапка ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    height: 72px;
    flex: 0 0 auto;
    max-width: var(--wrap);
    margin: 0 auto;
    width: 100%;
    padding: 0 24px;
}

.brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    line-height: 1.1;
    color: var(--graphite);
}

.brand-img {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    object-fit: contain;
}

.site-header .brand-img {
    margin-top: -10px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand strong {
    font-size: 1.15rem;
    letter-spacing: .12em;
    font-weight: 800;
    white-space: nowrap;
}

.brand span {
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.site-header .brand span {
    font-size: .58rem;
    white-space: nowrap;
    line-height: 1.2;
}

.main-nav {
    margin-left: 0;
    width: 100%;
    background: var(--blue-dark);
    border-top: 1px solid var(--blue-dark);
    border-bottom: 1px solid var(--blue-dark);
    padding: 0;
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    padding: 14px 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff !important;
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    background: rgba(255, 255, 255, .12);
    color: #fff !important;
}

.header-phone {
    font-weight: 600;
    color: var(--graphite);
    white-space: nowrap;
}

.burger {
    display: none;
}

/* ---------- Кнопки ---------- */

.btn,
.button,
button.button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border: 1px solid var(--blue);
    border-radius: var(--radius);
    background: var(--blue);
    color: #fff;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.btn:hover,
.button:hover,
button.button:hover,
input[type="submit"]:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--graphite);
}

.btn-ghost:hover {
    background: var(--graphite);
    border-color: var(--graphite);
    color: #fff;
}

/* ---------- Хиро ---------- */

.hero {
    padding: 88px 0 72px;
    background: linear-gradient(180deg, var(--bg) 0%, #fff 100%);
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 56px;
    align-items: center;
}

.hero .eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    font-size: .74rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--blue);
    font-weight: 700;
}

.hero h1 {
    margin-bottom: 20px;
}

.hero-lead {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 46ch;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-stats {
    display: grid;
    gap: 18px;
    border-left: 2px solid var(--blue);
    padding-left: 26px;
}

.hero-stats .stat strong {
    display: block;
    font-size: 1.05rem;
    letter-spacing: -.01em;
}

.hero-stats .stat span {
    font-size: .88rem;
    color: var(--muted);
}

/* ---------- Секции ---------- */

.section {
    padding: 72px 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.section-head h2 {
    margin: 0;
}

.section-head .link-more {
    font-size: .92rem;
    font-weight: 600;
    white-space: nowrap;
}

.section-alt {
    background: var(--bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* ---------- Категории ---------- */

.cat-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    grid-auto-rows: 1fr;
    gap: 20px !important;
}

.cat-grid > .cat-card {
    max-width: 100%;
    min-width: 0;
    height: 100%;
}

.cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
    text-decoration: none;
}

.cat-card .thumb {
    aspect-ratio: 4 / 3;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-decoration: none;
    color: inherit;
}

.cat-card:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 76, 129, .08);
}

.cat-card .thumb {
    aspect-ratio: 4 / 3;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.cat-card .thumb img {
    max-height: 100%;
    object-fit: contain;
    width: 100% !important;
}

.cat-card .title {
    margin-top: auto;
    padding: 16px 18px 18px;
    font-weight: 600;
    font-size: .98rem;
    line-height: 1.3;
    color: var(--graphite);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-decoration: none;
}

.cat-card .title > .count,
.cat-card .title .count {
    flex: 0 0 auto;
    width: 100%;
    margin-top: 8px;
    font-size: .8rem;
    font-weight: 400;
    color: var(--muted);
    white-space: nowrap;
}

.cat-card .count {
    display: block;
    margin-top: 4px;
    font-size: .8rem;
    font-weight: 400;
    color: var(--muted);
}

/* ---------- Товары ---------- */

ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    grid-auto-rows: 1fr;
    gap: 20px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

ul.products::before,
ul.products::after {
    display: none !important;
}

ul.products li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease;
}

ul.products li.product:hover {
    border-color: var(--blue);
    box-shadow: 0 10px 24px rgba(15, 76, 129, .08);
}

ul.products li.product a img {
    margin: 0;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    width: 100% !important;
    padding: 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

ul.products li.product .woocommerce-loop-product__title {
    padding: 16px 18px 6px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--graphite);
}

ul.products li.product .price {
    padding: 0 18px;
    margin: 0 0 14px !important;
    color: var(--graphite) !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
}

ul.products li.product .price del {
    color: var(--muted);
    font-weight: 400;
}

ul.products li.product .button,
ul.products li.product .sapfir-request-btn {
    margin: auto 18px 18px !important;
    text-align: center;
    justify-content: center;
    background: #fff;
    color: var(--blue);
    border: 1px solid var(--blue);
    font-size: .9rem;
    padding: 11px 16px;
}

ul.products li.product:hover .sapfir-request-btn {
    background: var(--blue);
    color: #fff;
}

.woocommerce-result-count,
.woocommerce-ordering {
    margin: 0 0 24px !important;
    font-size: .9rem;
    color: var(--muted);
}

.woocommerce-ordering select {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: inherit;
}

/* ---------- Карточка товара ---------- */

.single-product div.product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.single-product div.product .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
}

.single-product div.product .summary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.single-product div.product .summary h1 {
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

.single-product .price {
    display: block;
    margin: 0 0 22px !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: var(--graphite) !important;
}

.single-product .sapfir-request-btn {
    padding: 15px 30px;
    font-size: 1rem;
}

.sapfir-price-request {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 100px;
    background: var(--blue-light);
    color: var(--blue);
    font-size: .95rem;
    font-weight: 600;
}

.woocommerce-tabs,
.related.products,
.up-sells,
.upsells.products,
.woocommerce-product-details__short-description {
    grid-column: 1 / -1;
    margin-top: 56px;
}

.woocommerce-tabs ul.tabs {
    display: flex;
    gap: 24px;
    margin: 0 0 24px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--line);
    list-style: none;
}

.woocommerce-tabs ul.tabs::before,
.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

.woocommerce-tabs ul.tabs li {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
}

.woocommerce-tabs ul.tabs li a {
    font-weight: 600;
    color: var(--muted);
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--graphite);
}

/* Таблицы характеристик в описании */

.single-product .woocommerce-Tabs-panel table,
.page-content table,
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 32px;
    font-size: .95rem;
    font-variant-numeric: tabular-nums;
}

.single-product .woocommerce-Tabs-panel th,
.single-product .woocommerce-Tabs-panel td,
.page-content th,
.page-content td,
.entry-content th,
.entry-content td {
    padding: 12px 18px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    line-height: 1.55;
}

.single-product .woocommerce-Tabs-panel tbody tr:nth-child(even),
.page-content tbody tr:nth-child(even),
.entry-content tbody tr:nth-child(even) {
    background: #fafbfc;
}

.single-product .woocommerce-Tabs-panel th,
.page-content th,
.entry-content th {
    background: var(--bg);
    font-weight: 600;
    width: 40%;
    white-space: normal;
}

.single-product .woocommerce-Tabs-panel td,
.page-content td,
.entry-content td {
    font-variant-numeric: tabular-nums;
}

.single-product .woocommerce-Tabs-panel caption,
.single-product .woocommerce-Tabs-panel table caption {
    caption-side: top;
    text-align: left;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .78rem;
    color: var(--muted);
    padding-bottom: 10px;
    font-variant-numeric: normal;
}

/* ---------- Преимущества ---------- */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.feature {
    padding: 26px 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.feature h3 {
    font-size: 1.02rem;
    margin-bottom: 8px;
}

.feature p {
    margin: 0;
    font-size: .93rem;
    color: var(--muted);
}

/* ---------- Полоса призыва ---------- */

.cta-band {
    background: var(--bg);
    color: var(--graphite);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 64px 0;
}

.cta-band h2 {
    color: var(--graphite);
    margin-bottom: 12px;
}

.cta-band p {
    color: var(--graphite-soft);
    max-width: 60ch;
    margin-bottom: 26px;
}

.cta-band .btn {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.cta-band .btn:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: #fff;
}

/* ---------- Подвал ---------- */

.site-footer {
    background: var(--blue-dark);
    color: #cfd9e3;
    border-top: 1px solid var(--blue-dark);
    padding: 56px 0 32px;
    font-size: .93rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.site-footer a {
    color: #cfd9e3;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer .brand {
    width: fit-content;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.site-footer .brand strong {
    color: #fff;
}

.site-footer .brand span {
    color: #9db1c4;
    font-size: .58rem;
    white-space: nowrap;
    line-height: 1.2;
}

.footer-col h4 {
    color: #fff;
    font-size: .82rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-col li {
    margin-bottom: 9px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
    font-size: .83rem;
    color: #9db1c4;
}

/* ---------- Формы ---------- */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: .95rem;
    background: #fff;
    color: var(--graphite);
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(15, 76, 129, .25);
    border-color: var(--blue);
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: .88rem;
    font-weight: 600;
}

.form-row {
    margin-bottom: 18px;
}

/* ---------- Контент страниц ---------- */

.page-hero {
    padding: 56px 0 40px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    margin: 0;
}

.page-content {
    padding: 56px 0 72px;
    max-width: 820px;
}

.page-content p,
.page-content li {
    line-height: 1.7;
    color: #33383d;
}

.page-content p,
.entry-content p {
    text-align: justify;
    text-indent: 32px;
    hyphens: auto;
}

.page-content p a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-content p a:hover {
    text-decoration: none;
}

.page-content h2 {
    margin-top: 1.6em;
}

.entry-content ul {
    padding-left: 20px;
}

/* ---------- Адаптив ---------- */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-stats {
        border-left: 0;
        border-top: 2px solid var(--blue);
        padding: 20px 0 0;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .single-product div.product {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .main-nav,
    .header-email {
        display: none;
    }

.header-top {
        justify-content: space-between;
        min-height: 64px;
    }

    .burger {
        display: inline-flex;
        flex-direction: column;
        gap: 5px;
        padding: 8px;
        background: none;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        cursor: pointer;
    }

    .burger span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--graphite);
    }

    .section {
        padding: 52px 0;
    }

    .hero {
        padding: 56px 0 44px;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

/* ---------- Форма заявки ---------- */

.form-page {
    padding: 48px 0 80px;
}

.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr);
    gap: 48px;
    align-items: start;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.req {
    color: #c0392b;
}

.form-note {
    font-size: .85rem;
    color: var(--muted);
    margin: 4px 0 20px;
}

.form-side {
    padding: 28px 26px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.form-side h3 {
    font-size: 1rem;
    margin-bottom: 14px;
}

.form-side p {
    margin-bottom: 10px;
    font-size: 1.02rem;
    font-weight: 600;
}

.form-side .form-side-note {
    margin-top: 16px;
    font-size: .88rem;
    font-weight: 400;
    color: var(--muted);
    line-height: 1.55;
}

.notice {
    padding: 20px 24px;
    border-radius: var(--radius);
    margin-bottom: 28px;
    border: 1px solid var(--line);
}

.notice h2 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.notice p {
    margin: 0;
}

.notice-ok {
    background: #eef7ef;
    border-color: #cfe6d2;
}

.notice-error {
    background: #fdf0ee;
    border-color: #f0cfc8;
    color: #8c2c1c;
}

/* ---------- Мобильное меню ---------- */

@media (max-width: 860px) {
    .form-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

.main-nav.open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 12px 24px 20px;
        background: var(--blue-dark);
        border-bottom: 1px solid var(--blue-dark);
        box-shadow: 0 12px 24px rgba(10, 30, 50, .3);
    }

    .main-nav.open ul {
        flex-direction: column;
        gap: 0;
    }

.main-nav.open li a {
        display: flex;
        justify-content: center;
        padding: 13px 18px;
        border: 0;
        background: transparent;
        color: #fff !important;
        margin-bottom: 6px;
    }

    .main-nav.open li a:hover,
    .main-nav.open li.current-menu-item a {
        background: rgba(255, 255, 255, .14);
    }

    .site-header {
        position: relative;
    }
}

/* ---------- Шапка на средних экранах ---------- */

@media (max-width: 1339px) {
    .main-nav ul {
        gap: 16px;
    }

    .main-nav a {
        font-size: .9rem;
    }
}

/* ---------- Галерея на страницах ---------- */

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 28px 0 32px;
}

.media-grid figure {
    margin: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.media-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--blue-light);
}

.media-grid figcaption {
    padding: 12px 16px;
    font-size: .86rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.entry-content img {
    height: auto;
}

.entry-content .full-img {
    border-radius: var(--radius);
}

/* ---------- Карточки в содержимом страниц ---------- */

.cat-grid {
    align-items: stretch;
}

.page-content .cat-card,
.entry-content .cat-card {
    height: 100%;
}

.page-content .cat-card .thumb,
.entry-content .cat-card .thumb {
    display: block;
}

.page-content .cat-card .title,
.entry-content .cat-card .title {
    display: block;
    color: var(--graphite);
}

.page-content .cat-card .title:hover,
.entry-content .cat-card .title:hover {
    color: var(--blue);
}

/* ---------- Сертификаты ---------- */

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin: 28px 0 0;
}

.cert-grid figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.cert-grid figure:hover {
    border-color: var(--blue);
    box-shadow: 0 10px 24px rgba(15, 76, 129, .08);
}

.cert-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    flex: 1;
}

.cert-grid img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    background: #fff;
}

.cert-grid figcaption {
    padding: 12px 16px;
    font-size: .86rem;
    font-weight: 600;
    color: var(--graphite);
    border-top: 1px solid var(--line);
    text-align: center;
}

/* ---------- Заглушка вместо фото в карточке ---------- */

.cat-card .thumb.thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: .1em;
    text-transform: uppercase;
    font-size: .82rem;
    text-align: center;
    padding: 20px;
}

/* ---------- Плашка о cookie ---------- */

.cookie-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(20, 24, 28, .08);
    padding: 16px 0;
}

.cookie-bar[hidden] {
    display: none;
}

.cookie-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-bar p {
    margin: 0;
    font-size: .9rem;
    color: var(--graphite-soft);
    max-width: 70ch;
}

.cookie-bar .btn {
    padding: 10px 22px;
    font-size: .9rem;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .cookie-bar {
        padding: 14px 0;
    }

    .cookie-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cookie-bar .btn {
        width: 100%;
    }
}

/* ---------- Кнопка загрузки руководства ---------- */

.product-manual {
    margin: 26px 0 6px;
}

.btn-manual {
    background: #fff;
    border-color: var(--blue);
    color: var(--blue);
}

.btn-manual:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

/* ---------- Вкладка «Документация» ---------- */

.sapfir-docs-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sapfir-docs-list li {
    margin: 0 0 10px;
}

.sapfir-docs-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--blue);
}

.sapfir-docs-list a:hover {
    color: var(--blue-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- SEO-текст на главной ---------- */

.seo-text {
    background: #fff;
    border-top: 1px solid var(--line);
}

.seo-text-inner {
    max-width: 86ch;
}

.seo-text h2 {
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    margin-bottom: 18px;
}

.seo-text p {
    color: var(--graphite-soft);
    line-height: 1.7;
    margin-bottom: 1.1em;
}

.seo-text strong {
    color: var(--graphite);
    font-weight: 600;
}

/* ---------- Калькулятор монтажа ---------- */

.mcalc-page .page-content {
    max-width: 920px;
}

.mcalc {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 8px;
}

.mcalc-params .form-row {
    margin-bottom: 14px;
}

.mcalc input[type="number"],
.mcalc select {
    max-width: 220px;
}

.mcalc-line {
    padding: 12px 0;
    font-weight: 600;
    color: var(--graphite);
}

.mcalc-total {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--blue);
}

.mcalc-cta,
.entry-content .mcalc-cta {
    text-align: center !important;
    text-indent: 0 !important;
    margin: 32px 0 8px;
}

.btn-mcalc {
    margin-top: 8px;
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    display: inline-block;
}

/* ---------- Контакты в шапке ---------- */

.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.header-email {
    font-weight: 500;
    color: var(--graphite-soft);
    white-space: nowrap;
}

.header-email:hover {
    color: var(--blue);
}
