/* ==========================================================================
   0. ШРИФТЫ
   ========================================================================== */

@font-face {
    font-family: "Calibri";
    src: url("../fonts/calibri.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Calibri";
    src: url("../fonts/calibri-bold.ttf") format("truetype");
    font-weight: bold;
    font-display: swap;
}

@font-face {
    font-family: "Calibri";
    src: url("../fonts/calibri-bold-italic.ttf") format("truetype");
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Calibri";
    src: url("../fonts/calibri-italic.ttf") format("truetype");
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "CentroSlab";
    src: url("../fonts/CentroSlab.otf") format("opentype");
    font-display: swap;
}

@font-face {
    font-family: "CentroSlab";
    src: url("../fonts/CentroSlab-bold.otf") format("opentype");
    font-weight: bold;
    font-display: swap;
}

@font-face {
    font-family: "CentroSlab";
    src: url("../fonts/CentroSlab-bold-italic.otf") format("opentype");
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}
/* ==========================================================================
   1. ПЕРЕМЕННЫЕ
   ========================================================================== */

:root {
    /* Брендовые цвета */
    --brand: #1a82c3; /* основной синий — ссылки, заголовки */
    --brand-dark: #1b83c4; /* синий темнее — hover */
    --brand-light: #33acf8; /* синий светлый — крупные заголовки */
    --accent: #ff9c00; /* оранжевый — кнопки, акценты */
    --accent-dark: #e58a00; /* оранжевый темнее — hover кнопок */

    /* Приглушённый текст — три уровня */
    --muted-soft: #9bafbb; /* светлый: метки, плейсхолдеры, разделители, disabled */
    --muted: #7a93a3; /* основной: подписи, метаданные, второстепенный текст */
    --muted-strong: #5f7a8a; /* тёмный: примечания, пояснения, читаемые сноски */

    /* Фоновые оттенки */
    --soft: #d4eff6; /* мягкий голубой — разделители, карточки */
    --soft-2: #eaf7fc; /* ещё светлее — фоны секций */

    /* Текст */
    --text: #3d5c70; /* основной цвет текста */

    --border-light-blue: #cfe9f8;
    /* Геометрия и тени */
    --radius: 18px;
    --shadow-sm: 0 6px 24px rgba(26, 130, 195, 0.08);
    --shadow-lg: 0 18px 44px rgba(26, 130, 195, 0.18);
    --bs-heading-color: #33acf8;
}

/* ==========================================================================
   2. БАЗА
   ========================================================================== */

body {
    margin: 0;
    font-family:
        "Calibri",
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        sans-serif;
    font-size: 17px;
    line-height: 1.55;
    color: var(--text);
    background: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}
img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
.font-slab {
    font-family: "CentroSlab", "Calibri", Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
}

/* ==========================================================================
   3. ОБЩИЕ БЛОКИ И УТИЛИТЫ
   ========================================================================== */

/* Заголовок секции — крупный, по центру, светлый синий */
.section-title {
    font-size: clamp(1.65rem, 3.4vw, 2.5rem);
    color: var(--brand-light);
    text-align: center;
    margin: 0 0 2.2rem;
}

/* Мягкий фон секции с тонкой рамкой сверху/снизу */
.section-soft {
    background: linear-gradient(180deg, rgba(212, 239, 246, 0.35) 0%, rgba(212, 239, 246, 0) 60px), var(--soft-2);
    border-top: 1px solid rgba(26, 130, 195, 0.1);
    border-bottom: 1px solid rgba(26, 130, 195, 0.1);
}

/* Кнопка-акцент (оранжевая, скруглённая) */
.btn-accent {
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-hover-bg: var(--accent-dark);
    --bs-btn-hover-border-color: var(--accent-dark);
    --bs-btn-active-bg: var(--accent-dark);
    --bs-btn-active-border-color: var(--accent-dark);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
    padding: 0.8rem 1.9rem;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(255, 156, 0, 0.3);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(255, 156, 0, 0.42);
}

/* ==========================================================================
   4. ШАПКА (верхний блок)
   ========================================================================== */

.top-header {
    padding: 14px 0 14px;
    background: #fff;
}

/* Логотип */
.logo-link {
    display: inline-block;
    color: var(--brand);
}
.logo-link img {
    width: 250px;
}
.logo-link .logo-text {
    margin-top: 0.45rem;
    font-size: 0.81rem;
    line-height: 1.3;
    color: var(--brand);
    max-width: 260px;
    text-align: justify;
}

/* Блок «строгий контроль / собственное производство / ...» */
.advantages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
}
.advantages span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: calc(50% - 0.5rem);
    color: var(--brand);
    font-weight: 600;
    font-size: 0.95rem;
}
.advantages i {
    font-size: 1.6rem;
    line-height: 1;
    color: var(--brand);
    flex: 0 0 auto;
    margin-right: 0.5rem;
}

/* Кнопка «Поделиться» */
.share-label {
    font-weight: 700;
    color: var(--brand);
    font-size: 0.9rem;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--soft-2);
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}
.share-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.share-btn:hover {
    background: var(--brand);
    transform: translateY(-2px);
}

/* Телефонный блок */
.phone-block {
    font-family: "CentroSlab", "Calibri", serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 2vw, 1.15rem);
    color: var(--brand);
    line-height: 1.25;
    white-space: nowrap;
}
.phone-block .phone-label {
    display: block;
    font-family: "Calibri", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 0.15rem;
}
.phone-block a {
    color: inherit;
}
.phone-block a:hover {
    color: var(--accent);
}

/* ==========================================================================
   5. НАВИГАЦИЯ
   ========================================================================== */

.main-nav {
    background: linear-gradient(180deg, #34aefa 0%, #1b83c4 100%);
    box-shadow: 0 6px 22px rgba(27, 131, 196, 0.28);
    padding: 0;
    z-index: 1030;
}
.main-nav .navbar-brand img {
    height: 38px;
    width: auto;
}

/* Пункты меню */
.main-nav .nav-link {
    color: #fff !important;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    padding: 0.95rem 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.35);
    transition: background-color 0.2s ease;
}
.main-nav .nav-item {
    position: relative;
}

/* Hover / активный пункт — жёлто-оранжевый градиент */
.main-nav .nav-link:hover,
.main-nav .nav-link:focus,
.main-nav .nav-item.show > .nav-link {
    background: linear-gradient(180deg, #ffe34c 0%, #be4a1b 100%);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.45);
}

/* Выпадающие подменю */
.main-nav .dropdown-menu {
    border: 0;
    border-radius: 14px;
    padding: 0.45rem;
    margin-top: 0;
    box-shadow: 0 16px 40px rgba(6, 60, 100, 0.22);
    animation: fadeDown 0.18s ease;
}
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.main-nav .dropdown-item {
    color: var(--brand);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.55rem 0.8rem;
    border-radius: 9px;
    white-space: normal;
    line-height: 1.25;
}
.main-nav .dropdown-item.active {
    background-color: var(--soft);
}
.main-nav .dropdown-item:hover,
.main-nav .dropdown-item:focus {
    background: var(--soft-2);
    color: var(--accent);
}

/* На десктопе подменю открывается по ховеру (см. также JS) */
@media (min-width: 992px) {
    .main-nav .dropdown:hover > .dropdown-menu {
        display: block;
    }
}

/* Гамбургер */
.main-nav .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.35rem 0.55rem;
    border-radius: 10px;
}
.main-nav .navbar-toggler:focus {
    box-shadow: none;
}
.main-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==========================================================================
   6. КОРЗИНА В НАВИГАЦИИ (кнопка + offcanvas)
   ========================================================================== */

/* Мини-кнопка корзины в шапке */
.btn-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}
.btn-cart:hover,
.btn-cart:focus {
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    transform: translateY(-1px);
}
.btn-cart svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: block;
}

/* Бейдж количества (скрыт пока пустой) */
.btn-cart__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.btn-cart__badge:empty {
    display: none;
}

/* Offcanvas корзины */
.cart-offcanvas {
    --bs-offcanvas-width: 420px;
}
@media (max-width: 479.98px) {
    .cart-offcanvas {
        --bs-offcanvas-width: 100%;
    }
}

.cart-offcanvas .offcanvas-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.25rem 1.25rem 1.5rem;
}
.cart-offcanvas .offcanvas-title {
    font-family: "CentroSlab", "Calibri", serif;
    font-size: 1.25rem;
    color: var(--brand);
}

/* Сводка «Товары: N шт. на сумму …» */
.cart-summary {
    --bs-alert-bg: var(--soft-2);
    --bs-alert-border-color: var(--border-light-blue);
    --bs-alert-color: var(--brand);
    border-radius: 12px;
    font-size: 1.25rem;
    padding: 0.7rem 1rem;
    margin-bottom: 1rem;
}
.cart-summary strong {
    color: var(--brand);
    color: var(--accent);
}

/* Список позиций */
.cart-items {
    --bs-list-group-border-color: #e8f3fa;
    border-radius: 14px;
    overflow: hidden;
}
.cart-item {
    padding: 1rem 1.1rem;
    transition: background-color 0.2s ease;
}
.cart-item:hover {
    background: #f7fcff;
}
.cart-item__parent {
    line-height: 110%;
    font-size: 13px;
}
.cart-item__options {
    font-size: 13px;
    color: var(--bs-gray);
}
.cart-item .fs-5 a {
    font-family: "CentroSlab", "Calibri", serif;
    font-size: 1rem;
    color: var(--brand);
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.2s ease;
}
.cart-item .fs-5 a:hover {
    color: var(--accent);
}

.cart-item__price {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--muted-strong);
}
.cart-item__price strong {
    color: var(--brand);
}

.cart-item__count {
    background: var(--brand) !important;
    font-size: 0.78rem;
    padding: 0.35rem 0.6rem;
    flex: 0 0 auto;
}
.cart-item__options .badge {
    font-weight: 500;
    font-size: 0.72rem;
}

/* Счётчик количества */
.cart-qty .btn,
.cart-qty .input-group-text {
    --bs-btn-color: var(--brand);
    --bs-btn-border-color: var(--border-light-blue);
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    background: #fff;
    font-weight: 700;
    min-width: 36px;
}
.cart-qty .input-group-text {
    background: var(--soft-2);
    color: var(--brand);
    font-weight: 700;
}

/* Кнопка удаления позиции */
.cart-item__remove {
    --bs-btn-color: #c9485b;
    --bs-btn-border-color: #f0c8ce;
    --bs-btn-hover-bg: #c9485b;
    --bs-btn-hover-border-color: #c9485b;
    --bs-btn-hover-color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.6rem;
    line-height: 1;
}
.cart-item__remove i {
    font-size: 1rem;
}

/* ==========================================================================
   7. ПОДВАЛ
   ========================================================================== */

.site-footer {
    background: linear-gradient(180deg, #34aefa 0%, #1b83c3 100%);
    color: #fff;
    padding: 52px 0 24px;
    margin-top: 40px;
}
.site-footer .footer-logo img {
    width: 220px;
    margin-bottom: 1.1rem;
}
.site-footer .share-btn {
    background: rgba(255, 255, 255, 0.18);
}
.site-footer .share-btn:hover {
    background: #fff;
}

/* Заголовки колонок в футере */
.footer-heading {
    display: block;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
    text-shadow: 1px 1px 1px rgba(26, 130, 195, 1);
    transition: color 0.2s ease;
}
.footer-heading:hover {
    color: var(--accent);
}

/* Мелкие ссылки под заголовком */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-links li {
    margin-bottom: 0.35rem;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.2s ease;
}
.footer-links a:hover {
    color: var(--accent);
}

.site-footer .phone-block {
    color: #fff;
}
.site-footer .phone-block a:hover {
    color: var(--accent);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    text-align: center;
    font-size: 0.85rem;
}
.footer-bottom a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease;
}
.footer-bottom a:hover {
    color: var(--accent);
}

/* ==========================================================================
   8. HERO (крошки + заголовок внутренних страниц)
   ========================================================================== */

.page-hero {
    padding: 48px 0 24px;
    background: #fff;
}
.page-hero__crumbs {
    --bs-breadcrumb-divider-color: var(--muted-soft);
    --bs-breadcrumb-item-padding-x: 0.35rem;
    margin-bottom: 0.8rem;
    font-size: 0.875rem;
}
.page-hero__crumbs a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
}
.page-hero__crumbs a:hover {
    color: var(--accent);
}
.page-hero__crumbs .breadcrumb-item.active {
    color: var(--muted-soft);
}

.page-hero__title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    color: var(--brand-light);
    text-align: left;
    margin: 0 0 0.8rem;
}
.page-hero__lead {
    max-width: 760px;
    margin: 0;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.55;
}

/* ==========================================================================
   9. ГЛАВНАЯ — секция «Вода оптом и в розницу»
   ========================================================================== */

.goods {
    padding: 64px 0 40px;
}

/* Карточка категории на главной */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e8f3fa;
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem;
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}
.product-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-light-blue);
}
.product-card__img {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 210px;
    margin-bottom: 1.1rem;
}
.product-card__img img {
    max-height: 200px;
    width: auto;
    transition: transform 0.3s ease;
}
.product-card:hover .product-card__img img {
    transform: scale(1.05);
}

.product-card__title {
    display: block;
    font-family: "CentroSlab", "Calibri", serif;
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--brand);
    margin-bottom: 0.7rem;
    transition: color 0.2s ease;
}
.product-card__title:hover {
    color: var(--accent);
}

.product-card__desc {
    flex: 1 1 auto;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 1.4rem;
}
.product-card__desc strong {
    color: var(--brand);
}
.product-card .btn-accent {
    align-self: center;
}

/* ==========================================================================
   10. ГЛАВНАЯ — «Как мы производим воду»
   ========================================================================== */

.how-we-do {
    padding: 64px 0 56px;
}
.step {
    height: 100%;
    background: var(--soft);
    border-radius: var(--radius);
    padding: 1.8rem 1.2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}
.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.step img {
    width: 210px;
    height: 210px;
    object-fit: contain;
    margin-bottom: 1rem;
}
.step p {
    margin: 0;
    color: var(--brand);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================================================
   11. ЦИТАТА
   ========================================================================== */

.iq-section {
    padding: 56px 0;
}
.iq {
    max-width: 940px;
    margin: 0 auto;
    font-family: "CentroSlab", "Calibri", serif;
    font-weight: 700;
    font-size: clamp(1.3rem, 3vw, 2.35rem);
    line-height: 1.3;
    text-align: center;
    color: var(--brand);
}
.iq::before {
    content: "";
    display: block;
    width: 78px;
    height: 5px;
    margin: 0 auto 1.5rem;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--brand-light), var(--accent));
}

/* ==========================================================================
   12. ГАРАНТИЯ КАЧЕСТВА + галерея сертификатов
   ========================================================================== */

.quality {
    padding: 64px 0 68px;
}
.quality h3 {
    font-size: 1.25rem;
    color: var(--brand-light);
    margin-bottom: 1.2rem;
}
.quality .quality-text {
    font-weight: 700;
    color: var(--brand);
    margin: 0;
    font-size: 1.02rem;
}

/* Обёртка для галереи + точек */
.quality-gallery-wrap {
    position: relative;
}

/* Карусель на скролл-снэпе */
.quality-gallery {
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.quality-gallery a {
    display: flex;
    background: #ffffff;
    flex: 1;
    justify-content: center;
    align-items: center;
    border: 2px solid #d4eff6;
    padding: 5px;
}
.quality-gallery::-webkit-scrollbar {
    display: none;
}

/* 4 элемента в ряд, схлопываем до 3/2/1 на меньших экранах */
.quality-gallery > li {
    flex: 0 0 calc((100% - 3rem) / 4);
    scroll-snap-align: start;
}
@media (max-width: 1199.98px) {
    .quality-gallery > li {
        flex-basis: calc((100% - 2rem) / 3);
    }
}
@media (max-width: 767.98px) {
    .quality-gallery > li {
        flex-basis: calc((100% - 1rem) / 2);
    }
}
@media (max-width: 479.98px) {
    .quality-gallery > li {
        flex-basis: 100%;
    }
}

.quality-gallery > li a {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 18px rgba(26, 130, 195, 0.14);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}
.quality-gallery > li a:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(26, 130, 195, 0.28);
}
.quality-gallery > li img {
    display: block;
    width: 100%;
    aspect-ratio: 157 / 233;
    object-fit: cover;
    object-fit: scale-down;
    background: #eaf7fc;
}

/* Точки-индикаторы */
.quality-gallery-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.25rem;
}
.quality-gallery-nav button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(26, 130, 195, 0.22);
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}
.quality-gallery-nav button:hover {
    background: rgba(26, 130, 195, 0.45);
}
.quality-gallery-nav button.active {
    background: var(--brand);
    transform: scale(1.3);
}

/* ==========================================================================
   13. О КОМПАНИИ
   ========================================================================== */

.about {
    padding: 64px 0 40px;
}
.about .columns p {
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 1.4rem;
}
@media (min-width: 768px) {
    .about .columns {
        column-count: 2;
        column-gap: 3rem;
    }
    .about .columns p {
        break-inside: avoid;
        display: inline-block;
    }
}

/* ==========================================================================
   14. КАТАЛОГ (/shop/) — секции категорий
   ========================================================================== */

.catalog-section {
    padding: 48px 0 56px;
}

.catalog-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--soft);
}
.catalog-section__title {
    margin: 0;
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
    line-height: 1.25;
}
.catalog-section__title a {
    color: var(--brand);
    transition: color 0.2s ease;
}
.catalog-section__title a:hover {
    color: var(--accent);
}

/* «Смотреть все →» */
.catalog-section__all {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand);
    white-space: nowrap;
    transition:
        color 0.2s ease,
        gap 0.2s ease;
}
.catalog-section__all:hover {
    color: var(--accent);
    gap: 0.6rem;
}
.catalog-section__all i {
    font-size: 1rem;
}

/* ==========================================================================
   15. КАРТОЧКА ТОВАРА (используется в /shop/, категориях, похожих)
   ========================================================================== */

.shop-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e8f3fa;
    border-radius: var(--radius);
    padding: 1.25rem 1.25rem 1rem;
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}
.shop-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-light-blue);
}

.shop-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    margin-bottom: 1rem;
}
.shop-card__image img {
    max-height: 180px;
    width: auto;
    transition: transform 0.3s ease;
}
.shop-card:hover .shop-card__image img {
    transform: scale(1.06);
}

.shop-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.shop-card__title {
    display: block;
    font-family: "CentroSlab", "Calibri", serif;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
    color: var(--brand);
    margin-bottom: 0.55rem;
    transition: color 0.2s ease;
}
.shop-card__title:hover {
    color: var(--accent);
}

.shop-card__min {
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.35;
    margin-bottom: 0.55rem;
}
.shop-card__min span {
    color: var(--muted-soft);
}

.shop-card__price {
    font-family: "CentroSlab", "Calibri", serif;
    font-weight: 700;
    font-size: 1.45rem;
    color: var(--accent);
    line-height: 1.2;
    margin-bottom: 0.35rem;
}
.shop-card__price span {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 400;
    margin-left: 0.15rem;
}

/* Примечание (например, про оборотную тару) */
.shop-card__note {
    margin-top: 0.35rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    background: var(--soft-2);
    color: var(--muted-strong);
    font-size: 0.78rem;
    line-height: 1.4;
}

.shop-card__footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e1eef6;
}

/* ==========================================================================
   16. КНОПКА «В КОРЗИНУ» + дата доставки
   ========================================================================== */

.btn-add {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    text-align: center;
    line-height: 1.15;
    box-shadow: 0 6px 16px rgba(255, 156, 0, 0.28);
    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
    cursor: pointer;
}
.btn-add:hover,
.btn-add:focus {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(255, 156, 0, 0.4);
    color: #fff;
}
.btn-add:active {
    transform: translateY(0);
}

/* Текст «В корзину» / лейбл */
.btn-add__label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.88rem;
    letter-spacing: 0.05em;
}

/* Дата доставки  */
.btn-add__date {
    display: block;
    margin-top: 0;
    margin-left: 0.4em;
    font-size: 0.8rem;
    font-weight: 100;
    opacity: 0.92;
    letter-spacing: 0.02em;
}

/* Если даты нет — показываем «В корзину», а точку-разделитель скрываем */
.btn-add__date:empty::before {
    content: "В корзину";
}
.btn-add__date:empty {
    margin-top: 0;
}

/* Состояние «товар уже в корзине» */
.btn-add.is-in-cart {
    background: var(--brand);
    box-shadow: 0 6px 16px rgba(26, 130, 195, 0.3);
}
.btn-add.is-in-cart:hover {
    background: var(--brand-dark);
}

/* ==========================================================================
   17. КАТЕГОРИЯ (/shop/water1/ и т.п.) — блок «О воде»
   ========================================================================== */

.water-about {
    padding: 56px 0 64px;
}
.water-about__media {
    text-align: center;
}

.water-about__image {
    display: block;
    max-height: 360px;
    width: auto;
    margin: 0 auto 1.25rem;
    transition: transform 0.3s ease;
}
.water-about__image:hover {
    transform: scale(1.03);
}

.water-about__eac {
    display: block;
    height: 48px;
    width: auto;
    margin: 0 auto 1.25rem;
    opacity: 0.9;
}

.water-about__medals {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.water-about__medals img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    transition: transform 0.25s ease;
}
.water-about__medals img:hover {
    transform: scale(1.08);
}

.water-about__title {
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    color: var(--brand-light);
    margin: 0 0 1.2rem;
}
.water-about__subtitle {
    font-size: 1.1rem;
    color: var(--brand);
    margin: 2rem 0 1rem;
    letter-spacing: 0.02em;
}
.water-about__text p {
    margin: 0 0 1rem;
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.6;
}
.water-about__text p:last-child {
    margin-bottom: 0;
}
.water-about__text strong {
    color: var(--brand);
}

.water-about__text table,
.water-about__text table td {
    border: 1px solid var(--bs-border-color);
}
/* Документы раздела — тот же паттерн, что и у quality-gallery, но с другими пропорциями */
.water-about__docs > li img {
    aspect-ratio: 250 / 380;
}

/* ==========================================================================
   18. СТРАНИЦА ТОВАРА (/shop/water1/pet-19l/)
   ========================================================================== */

.product-page {
    padding: 24px 0 64px;
}
.product-page__inner {
    margin-top: 1.25rem;
}

/* Левая колонка — изображение */
.product-page__media {
    position: sticky;
    top: 90px;
    background: #fff;
    border: 1px solid #e8f3fa;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.product-page__image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
}
.product-page__image {
    max-height: 340px;
    width: auto;
    transition: transform 0.3s ease;
}
.product-page__image-link:hover .product-page__image {
    transform: scale(1.04);
}

@media (max-width: 991.98px) {
    .product-page__media {
        position: static;
        padding: 1rem;
    }
    .product-page__image-link {
        min-height: 220px;
    }
    .product-page__image {
        max-height: 220px;
    }
}

/* Правая колонка — информация */
.product-page__info {
    padding-top: 0.25rem;
}

/* Ссылка «← назад к категории» */
.product-page__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand);
    transition:
        color 0.2s ease,
        gap 0.2s ease;
}
.product-page__back:hover {
    color: var(--accent);
    gap: 0.55rem;
}

.product-page__title {
    font-size: clamp(1.6rem, 3.2vw, 2.35rem);
    color: var(--brand-light);
    margin: 0 0 0.8rem;
    line-height: 1.2;
}

/* Артикул + наличие */
.product-page__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
    margin-bottom: 1.1rem;
    font-size: 0.875rem;
    color: var(--muted);
}
.product-page__sku span {
    color: var(--text);
}
.product-page__avail {
    color: #2e9b53;
    font-weight: 600;
}
.product-page__avail i {
    margin-right: 0.3rem;
}

.product-page__lead {
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 1rem;
}

.product-page__brand {
    margin-bottom: 1.1rem;
    font-size: 0.92rem;
    color: var(--muted);
}
.product-page__brand span {
    color: var(--brand);
    font-weight: 600;
}
.product-page__brand-label {
    margin-right: 0.35rem;
}

/* Блок с ценой */
.product-page__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 1rem;
    padding: 1.1rem 0;
    margin-bottom: 0.5rem;
    border-top: 1px solid #e8f3fa;
    border-bottom: 1px solid #e8f3fa;
}
.product-page__price-value {
    font-family: "CentroSlab", "Calibri", serif;
    font-weight: 700;
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    color: var(--accent);
    line-height: 1;
}
.product-page__price-unit {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--muted);
    margin-left: 0.2rem;
}
.product-page__min {
    font-size: 0.875rem;
    color: var(--muted);
    flex: 1 1 100%;
}

/* Действия: счётчик + кнопка */
.product-page__actions {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 1.4rem;
}
.product-qty {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--border-light-blue);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    flex: 0 0 auto;
}
.product-qty__btn {
    width: 46px;
    background: #fff;
    border: none;
    color: var(--brand);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.product-qty__btn:hover {
    background: var(--soft-2);
}
.product-qty__btn:active {
    background: #d8ecf6;
}
.product-qty__input {
    width: 58px;
    border: none;
    border-left: 1px solid #e8f3fa;
    border-right: 1px solid #e8f3fa;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--brand);
    background: #fff;
    outline: none;
}
.product-page__add {
    flex: 1 1 auto;
    width: auto;
    padding: 0.8rem 1.5rem;
}
@media (max-width: 479.98px) {
    .product-page__actions {
        flex-direction: column;
    }
    .product-qty {
        align-self: flex-start;
    }
    .product-page__add {
        width: 100%;
    }
}

/* Преимущества товара */
.product-page__benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}
.product-page__benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.4;
}
.product-page__benefits i {
    color: var(--brand);
    font-size: 1.1rem;
    line-height: 1.2;
    flex: 0 0 auto;
    margin-top: 0.05rem;
}

/* Описание и характеристики */
.product-page__details {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e8f3fa;
}
.product-page__subtitle {
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    color: var(--brand-light);
    margin: 0 0 1.1rem;
}
.product-page__text p {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
}
.product-page__text p:last-child {
    margin-bottom: 0;
}
.product-page__note {
    padding: 0.85rem 1.1rem;
    background: var(--soft-2);
    border-left: 3px solid var(--accent);
    border-radius: 0 10px 10px 0;
    color: var(--muted-strong);
    font-size: 0.92rem;
}

/* Таблица характеристик */
.product-specs {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.product-specs tr {
    border-bottom: 1px solid #e8f3fa;
}
.product-specs tr:last-child {
    border-bottom: none;
}
.product-specs th,
.product-specs td {
    padding: 0.65rem 0.5rem;
    text-align: left;
    vertical-align: top;
}
.product-specs th {
    width: 45%;
    font-weight: 600;
    color: var(--muted);
    padding-left: 0;
}
.product-specs td {
    color: var(--brand);
    font-weight: 600;
    padding-right: 0;
}

@media (max-width: 991.98px) {
    .product-page {
        padding: 16px 0 48px;
    }
    .product-page__details {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    .product-page__title {
        margin-top: 0.5rem;
    }
}

/* ==========================================================================
   19. ТЕКСТОВАЯ СТРАНИЦА (Контакты, Доставка, О компании)
   ========================================================================== */

.text-page {
    padding: 24px 0 64px;
}
.text-page__body {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
}
.text-page__body h2 {
    font-family: "CentroSlab", "Calibri", serif;
    font-size: 1.35rem;
    color: var(--brand-light);
    margin: 2rem 0 1rem;
}
.text-page__body h2:first-child {
    margin-top: 0;
}
.text-page__body h3 {
    font-size: 1.1rem;
    color: var(--brand);
    margin: 1.5rem 0 0.75rem;
}
.text-page__body p {
    margin: 0 0 1rem;
}
.text-page__body a {
    color: var(--brand);
    border-bottom: 1px dashed rgba(26, 130, 195, 0.4);
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}
.text-page__body a:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.text-page__body ul,
.text-page__body ol {
    margin: 0 0 1.25rem;
    padding-left: 1.25rem;
}
.text-page__body li {
    margin-bottom: 0.5rem;
}
.text-page__body strong {
    color: var(--brand);
}
.text-page__lead {
    font-size: 1.1rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

/* Таблица минимальных заказов на странице доставки */
.delivery-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1rem 0 1.5rem;
    font-size: 0.95rem;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e8f3fa;
}
.delivery-table th,
.delivery-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #e8f3fa;
}
.delivery-table tr:last-child td {
    border-bottom: none;
}
.delivery-table thead th {
    background: var(--soft-2);
    color: var(--brand);
    font-family: "CentroSlab", "Calibri", serif;
    font-weight: 700;
    white-space: nowrap;
}
.delivery-table tbody tr:hover td {
    background: #f7fcff;
}
.delivery-table td:first-child {
    color: var(--brand);
    font-weight: 600;
}

/* CTA-карточка «Перейти в каталог» справа */
.cta-card {
    position: sticky;
    top: 90px;
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius);
    background: linear-gradient(160deg, var(--soft-2) 0%, #ffffff 100%);
    border: 1px solid #e0eef6;
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.cta-card__link {
    display: block;
    color: var(--brand);
    text-decoration: none;
}
.cta-card__image {
    display: block;
    max-height: 200px;
    width: auto;
    margin: 0 auto 1rem;
    transition: transform 0.3s ease;
}
.cta-card:hover .cta-card__image {
    transform: scale(1.06);
}
.cta-card__label {
    display: block;
    font-family: "CentroSlab", "Calibri", serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--brand);
    line-height: 1.3;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}
.cta-card:hover .cta-card__label {
    color: var(--accent);
}
.cta-card__link i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 1.15rem;
    transition:
        transform 0.25s ease,
        background-color 0.2s ease;
}
.cta-card:hover .cta-card__link i {
    background: var(--accent-dark);
    transform: translateX(4px);
}

/* Карта */
.text-page__map {
    margin-top: 3rem;
}
.map-embed {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #e8f3fa;
    box-shadow: var(--shadow-sm);
    min-height: 400px;
    background: var(--soft-2);
}
.map-embed > * {
    display: block;
    width: 100%;
    border: none;
}

@media (max-width: 991.98px) {
    .text-page {
        padding: 16px 0 48px;
    }
    .cta-card {
        position: static;
        margin-top: 1.5rem;
    }
    .text-page__map {
        margin-top: 2rem;
    }
    .map-embed {
        min-height: 300px;
    }
    .delivery-table th,
    .delivery-table td {
        padding: 0.6rem 0.75rem;
    }
}

/* ==========================================================================
   20. СПИСОК СТАТЕЙ (/articles/)
   ========================================================================== */

.articles-page {
    padding: 24px 0 64px;
}

.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e8f3fa;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}
.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-light-blue);
}

.article-card__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--soft-2);
}
.article-card__image img {
    width: 100%;
    /*height: 100%;*/
    object-fit: cover;
    transition: transform 0.4s ease;
}
.article-card:hover .article-card__image img {
    transform: scale(1.06);
}

.article-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.25rem 1.35rem 1.35rem;
}
.article-card__title {
    font-family: "CentroSlab", "Calibri", serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.75rem;
}
.article-card__title a {
    color: var(--brand);
    transition: color 0.2s ease;
}
.article-card__title a:hover {
    color: var(--accent);
}

.article-card__excerpt {
    flex: 1 1 auto;
    margin: 0 0 1rem;
    font-size: 0.925rem;
    line-height: 1.55;
    color: var(--text);
}
.article-card__meta {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px dashed #e1eef6;
    font-size: 0.8rem;
    color: var(--muted-soft);
    letter-spacing: 0.01em;
}

/* Пагинация */
.articles-page__pager {
    margin-top: 3rem;
}
.articles-page__pager .pagination {
    --bs-pagination-color: var(--brand);
    --bs-pagination-hover-color: var(--accent);
    --bs-pagination-hover-bg: var(--soft-2);
    --bs-pagination-hover-border-color: var(--border-light-blue);
    --bs-pagination-active-bg: var(--brand);
    --bs-pagination-active-border-color: var(--brand);
    --bs-pagination-border-color: #e0eef6;
    --bs-pagination-disabled-color: var(--muted-soft);
    gap: 0.35rem;
}
.articles-page__pager .page-link {
    border-radius: 10px;
    font-weight: 600;
    min-width: 42px;
    text-align: center;
}

/* ==========================================================================
   21. ОДНА СТАТЬЯ (/articles/…)
   ========================================================================== */

.article-page {
    padding: 24px 0 40px;
}

.article-page__header {
    margin-bottom: 2rem;
    text-align: center;
}
.article-page__title {
    font-family: "CentroSlab", "Calibri", serif;
    font-size: clamp(1.55rem, 3.4vw, 2.35rem);
    line-height: 1.2;
    color: var(--brand);
    margin: 0 0 1rem;
}
.article-page__meta {
    font-size: 0.9rem;
    color: var(--muted-soft);
}
.article-page__meta time {
    font-weight: 600;
}

.article-page__figure {
    margin: 0 0 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.article-page__image {
    display: block;
    width: 100%;
    height: auto;
}

/* Типографика тела статьи */
.article-page__body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
}
.article-page__body p {
    margin: 0 0 1.15rem;
}
.article-page__body h2 {
    font-family: "CentroSlab", "Calibri", serif;
    font-size: 1.35rem;
    color: var(--brand-light);
    margin: 2.25rem 0 1rem;
    line-height: 1.3;
}
.article-page__body h3 {
    font-family: "CentroSlab", "Calibri", serif;
    font-size: 1.15rem;
    color: var(--brand);
    margin: 1.75rem 0 0.75rem;
}
.article-page__body a {
    color: var(--brand);
    border-bottom: 1px dashed rgba(26, 130, 195, 0.4);
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}
.article-page__body a:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.article-page__body ul,
.article-page__body ol {
    margin: 0 0 1.25rem;
    padding-left: 1.35rem;
}
.article-page__body li {
    margin-bottom: 0.5rem;
}
.article-page__body strong {
    color: var(--brand);
}

/* Цитата в статье */
.article-page__body blockquote {
    margin: 1.75rem 0;
    padding: 1rem 1.25rem 1rem 1.35rem;
    background: var(--soft-2);
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    font-size: 1.02rem;
    line-height: 1.6;
    color: #4a6b7f;
}
.article-page__body blockquote p:last-child {
    margin-bottom: 0;
}

/* Картинки в тексте */
.article-page__body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1rem 0;
}

/* Таблицы в тексте */
.article-page__body table {
    width: 100%;
    margin: 1rem 0 1.5rem;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.article-page__body table th,
.article-page__body table td {
    padding: 0.65rem 0.85rem;
    border: 1px solid #e1eef6;
    text-align: left;
}
.article-page__body table th {
    background: var(--soft-2);
    color: var(--brand);
    font-weight: 600;
}

/* Автор статьи */
.article-page__footer {
    margin-top: 3rem;
    padding-top: 1.75rem;
    border-top: 1px solid #e8f3fa;
}
.article-page__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.article-page__author-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--soft-2);
    padding: 0.35rem;
}
.article-page__author-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.article-page__author-name {
    font-family: "CentroSlab", "Calibri", serif;
    font-weight: 700;
    color: var(--brand);
    font-size: 1.05rem;
}
.article-page__author-role {
    font-size: 0.85rem;
    color: var(--muted-soft);
}

@media (max-width: 991.98px) {
    .articles-page {
        padding: 16px 0 48px;
    }
    .article-page {
        padding: 16px 0 32px;
    }
    .article-page__header {
        margin-bottom: 1.5rem;
    }
    .article-page__figure {
        margin-bottom: 1.5rem;
    }
    .article-page__body {
        font-size: 1rem;
    }
}

/* ==========================================================================
   22. ОБЩИЕ АДАПТИВЫ (сборка медиа в одном месте)
   ========================================================================== */

@media (max-width: 991.98px) {
    /* Главная */
    .goods {
        padding-top: 44px;
    }
    .product-card__img {
        min-height: 170px;
    }
    .product-card__img img {
        max-height: 160px;
    }
    .step img {
        width: 180px;
        height: 180px;
        object-fit: contain;
        margin-bottom: 1rem;
    }

    /* Каталог / карточки товаров */
    .catalog-section {
        padding: 36px 0 42px;
    }
    .shop-card__image {
        min-height: 150px;
    }
    .shop-card__image img {
        max-height: 140px;
    }

    /* HERO */
    .page-hero {
        padding: 32px 0 16px;
    }

    /* О воде */
    .water-about {
        padding: 40px 0 48px;
    }
    .water-about__image {
        max-height: 280px;
    }
    .water-about__title {
        margin-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 16px;
    }
    .section-title {
        margin-bottom: 1.6rem;
    }
    .goods,
    .how-we-do,
    .quality,
    .about {
        padding-top: 44px;
        padding-bottom: 40px;
    }
}

@media (max-width: 375px) {
    .main-nav .navbar-brand img {
        height: 30px;
        width: auto;
    }
}

/* ==========================================================================
   23. СТРАНИЦА КОРЗИНЫ (/cart)
   ========================================================================== */

.cart-page {
    padding: 24px 0 64px;
}

/* ===== Панель со списком товаров ===== */
.cart-panel {
    background: #fff;
    border: 1px solid #e8f3fa;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.cart-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e8f3fa;
}
.cart-panel__title {
    margin: 0;
    font-family: "CentroSlab", "Calibri", serif;
    font-size: 1.35rem;
    color: var(--brand-light);
}
.cart-panel__continue {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand);
    transition:
        color 0.2s ease,
        gap 0.2s ease;
}
.cart-panel__continue:hover {
    color: var(--accent);
    gap: 0.55rem;
}

/* Список позиций */
.cart-full-items {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cart-full-item {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e8f3fa;
    transition: background-color 0.2s ease;
}
.cart-full-item:last-child {
    border-bottom: none;
}
.cart-full-item:hover {
    background: #f7fcff;
}

.cart-full-item__image {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: var(--soft-2);
    padding: 0.35rem;
}
.cart-full-item__image img {
    display: block;
    width: 100%;
    max-height: 90px;
    object-fit: contain;
}

.cart-full-item__title {
    display: inline-block;
    font-family: "CentroSlab", "Calibri", serif;
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.3;
    color: var(--brand);
    margin-bottom: 0.3rem;
    transition: color 0.2s ease;
}
.cart-full-item__title:hover {
    color: var(--accent);
}

.cart-full-subtotal__title {
    display: inline-block;
    font-family: "CentroSlab", "Calibri", serif;
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.3;
    color: var(--brand);
    margin-bottom: 0;
}
.cart-full-subtotal__total {
    font-family: "CentroSlab", "Calibri", serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
    white-space: nowrap;
}

.cart-full-item__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0.35rem 0 0.4rem;
}
.cart-full-item__options .badge {
    font-weight: 500;
    font-size: 0.72rem;
}

.cart-full-item__unit {
    font-size: 0.875rem;
    color: var(--muted);
}
.cart-full-item__unit span {
    margin: 0 0.15rem;
}

.cart-full-item__total {
    font-family: "CentroSlab", "Calibri", serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
    white-space: nowrap;
}

/* Счётчик в расширенной карточке — крупнее, чем в оффканвасе */
.cart-qty--full .btn,
.cart-qty--full .input-group-text {
    min-width: 40px;
    font-size: 0.95rem;
}
.cart-qty--full .btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}
/* ===== Итоги под списком ===== */
.cart-panel__summary {
    padding: 1.25rem 1.5rem;
    background: transparent;
    border-top: 1px solid var(--accent);
}
.cart-panel__summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.cart-panel__summary-row strong {
    color: var(--brand);
}
.cart-panel__summary-row--total {
    font-size: 1.25rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-light-blue);
}
.cart-panel__summary-row--total strong {
    font-family: "CentroSlab", "Calibri", serif;
    font-size: 1.5rem;
    color: var(--accent);
}
.cart-panel__summary-note {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}
/* Кнопка удаления на странице корзины — крупнее, круглая */
.cart-full-item .cart-item__remove {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    margin-left: auto;
}
.cart-full-item .cart-item__remove i {
    display: block;
    font-size: 1.05rem;
    line-height: 1;
}

/* ===== Панель с формой заказа ===== */
.order-panel {
    position: sticky;
    top: 90px;
    padding: 1.5rem 1.5rem 1.75rem;
    background: linear-gradient(160deg, var(--soft-2) 0%, #ffffff 60%);
    border: 1px solid #e0eef6;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.order-panel__title {
    margin: 0 0 0.75rem;
    font-family: "CentroSlab", "Calibri", serif;
    font-size: 1.35rem;
    color: var(--brand-light);
}
.order-panel__note {
    margin: 0 0 1.25rem;
    font-size: 0.875rem;
    color: var(--muted);
}

/* Поля формы */
.order-form .form-control {
    border-radius: 10px;
    border: 1px solid var(--border-light-blue);
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}
.order-form .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.2rem rgba(26, 130, 195, 0.15);
}
.order-form .form-control::placeholder {
    color: var(--muted-soft);
}

/* Пустые блоки, которые заполнит CMS */
.order-form__block:not(:empty) {
    margin-bottom: 1.25rem;
}

/* Согласие на обработку данных */
.order-form__consent {
    font-size: 0.82rem;
    color: var(--muted-strong);
    line-height: 1.45;
}
.order-form__consent .form-check-input {
    margin-top: 0.2rem;
}
.order-form__consent a {
    color: var(--brand);
    text-decoration: underline dashed;
    text-underline-offset: 3px;
}
.order-form__consent a:hover {
    color: var(--accent);
}

/* Кнопка отправки */
.order-form__submit {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
}

/* ===== Адаптив ===== */
@media (max-width: 991.98px) {
    .cart-page {
        padding: 16px 0 48px;
    }
    .order-panel {
        position: static;
        margin-top: 1.5rem;
    }
    .cart-panel__head {
        padding: 1rem 1.1rem;
    }
    .cart-full-item {
        padding: 1rem 1.1rem;
    }
    .cart-full-item__image img {
        max-height: 70px;
    }
    .cart-full-item__total {
        font-size: 1rem;
    }
    .cart-panel__summary {
        padding: 1rem 1.1rem;
    }
}

@media (max-width: 575.98px) {
    .cart-full-item__unit {
        font-size: 0.8rem;
    }
    .cart-qty--full .btn,
    .cart-qty--full .input-group-text {
        min-width: 32px;
        font-size: 0.85rem;
    }
    .cart-panel__summary-row--total strong {
        font-size: 1.25rem;
    }
    .cart-full-item .cart-item__remove {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
    .cart-full-item .cart-item__remove i {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   24. СЛУЖЕБНЫЕ СТРАНИЦЫ (Спасибо за заказ / 404)
   ========================================================================== */

.status-page {
    padding: 56px 0 72px;
}

.status-page__inner {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

/* Иконка успеха */
.status-page__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    font-size: 3rem;
    line-height: 1;
}
.status-page__icon--success {
    background: linear-gradient(160deg, #d7f5e2 0%, #ecfaf1 100%);
    color: #2e9b53;
    box-shadow: 0 10px 30px rgba(46, 155, 83, 0.18);
}

/* Крупный «404» */
.status-page__code {
    font-family: "CentroSlab", "Calibri", serif;
    font-weight: 700;
    font-size: clamp(5rem, 14vw, 9rem);
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--brand-light);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--brand-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status-page__title {
    font-family: "CentroSlab", "Calibri", serif;
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    line-height: 1.2;
    color: var(--brand-light);
    margin: 0 0 1rem;
}

.status-page__lead {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text);
    margin: 0 0 2rem;
}

/* Блок с номером заказа и суммой */
.status-page__meta {
    display: inline-block;
    min-width: 280px;
    margin: 0 0 1.75rem;
    padding: 1.1rem 1.5rem;
    background: var(--soft-2);
    border: 1px dashed var(--border-light-blue);
    border-radius: 14px;
    text-align: left;
}
.status-page__meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.35rem;
}
.status-page__meta-row:last-child {
    margin-bottom: 0;
}
.status-page__meta-row strong {
    font-family: "CentroSlab", "Calibri", serif;
    color: var(--brand);
    white-space: nowrap;
}

.status-page__note {
    font-size: 0.95rem;
    color: var(--muted-strong);
    margin: 0 0 2rem;
}
.status-page__note a {
    color: var(--brand);
    font-weight: 600;
    transition: color 0.2s ease;
}
.status-page__note a:hover {
    color: var(--accent);
}

/* Кнопки */
.status-page__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.status-page__btn-outline {
    --bs-btn-color: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--brand-dark);
    --bs-btn-active-border-color: var(--brand-dark);
    --bs-btn-active-color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
    padding: 0.8rem 1.9rem;
    border-radius: 999px;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}
.status-page__btn-outline:hover {
    transform: translateY(-2px);
}

/* Ссылки на популярные разделы (для 404) */
.status-page__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0.35rem 0.9rem;
    font-size: 0.9rem;
    color: var(--muted);
}
.status-page__links a {
    color: var(--brand);
    font-weight: 600;
    transition: color 0.2s ease;
}
.status-page__links a:hover {
    color: var(--accent);
}

@media (max-width: 575.98px) {
    .status-page {
        padding: 40px 0 56px;
    }
    .status-page__icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    .status-page__meta {
        min-width: 0;
        width: 100%;
    }
    .status-page__actions {
        flex-direction: column;
    }
    .status-page__actions .btn {
        width: 100%;
    }
}

/* ============ ПУСТАЯ КОРЗИНА ============ */
.cart-panel__empty {
    padding: 3rem 2rem;
    text-align: center;
}
.cart-panel__empty-icon {
    display: block;
    font-size: 3rem;
    color: var(--muted-soft);
    margin-bottom: 1rem;
}
.cart-panel__empty-text {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   25. ВСПЛЫВАЮЩИЕ УВЕДОМЛЕНИЯ (TOAST)
   ========================================================================== */

.toast-container {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    z-index: 1090; /* выше навбара (1030) и offcanvas (1045) */
    pointer-events: none; /* контейнер не блокирует клики */
}

.toast-container > .toast {
    pointer-events: auto; /* но сами тосты кликабельны */
}

/* Сам тост */
.toast {
    --bs-toast-bg: #fff;
    --bs-toast-border-color: #e0eef6;
    --bs-toast-border-radius: 14px;
    --bs-toast-box-shadow: 0 10px 30px rgba(26, 130, 195, 0.18);
    min-width: 300px;
    max-width: 380px;
    border: 1px solid #e0eef6;
    border-radius: 14px;
    overflow: hidden;
    font-family:
        "Calibri",
        system-ui,
        -apple-system,
        sans-serif;
}

/* Шапка — как навбар, брендовый синий градиент */
.toast .toast-header {
    background: linear-gradient(180deg, #34aefa 0%, #1b83c4 100%);
    color: #fff;
    border-bottom: none;
    padding: 0.7rem 1rem;
    font-family: "CentroSlab", "Calibri", serif;
}

.toast .toast-header strong {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15);
}

/* Крестик закрытия — белый на синем */
.toast .toast-header .btn-close {
    filter: invert(1) brightness(2);
    opacity: 0.8;
    padding: 0.35rem;
    background-size: 0.65em;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.toast .toast-header .btn-close:hover {
    opacity: 1;
    transform: scale(1.15);
}

.toast .toast-header .btn-close:focus {
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.35);
}

/* Тело сообщения */
.toast .toast-body {
    padding: 0.9rem 1rem;
    background: #fff;
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Тонкая цветная полоса слева — брендовый акцент */
.toast .toast-body::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
}

.toast .toast-body {
    position: relative;
}

/* Анимация появления — мягче, чем у Bootstrap по умолчанию */
.toast.fade {
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}
.toast.fade:not(.show) {
    opacity: 0;
    transform: translateX(20px);
}
.toast.fade.show {
    opacity: 1;
    transform: translateX(0);
}

/* Мобильный — тост на всю ширину контейнера, чуть ниже */
@media (max-width: 575.98px) {
    .toast {
        min-width: 0;
        max-width: calc(100vw - 2rem);
    }

    .toast .toast-header {
        padding: 0.6rem 0.85rem;
    }

    .toast .toast-body {
        padding: 0.75rem 0.85rem;
        font-size: 0.88rem;
    }
}

/* ==========================================================================
   26. СПОСОБ ДОСТАВКИ (radio в корзине)
   ========================================================================== */

.delivery-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid var(--border-light-blue);
    border-radius: 12px;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
    margin-bottom: 0.6rem;
}

.delivery-option:hover {
    border-color: var(--brand);
    background: #f9fcfe;
}

/* Активное состояние — когда внутри инпут checked */
.delivery-option:has(.form-check-input:checked) {
    /*
    border-color: var(--brand);
    background: var(--soft-2);
    box-shadow: 0 0 0 0.2rem rgba(26, 130, 195, 0.12);
    */
}

/* Сам radio */
.delivery-option .form-check-input {
    flex: 0 0 auto;
    margin: 0.2rem 0 0 0;
    width: 1.1em;
    height: 1.1em;
    cursor: pointer;
    border-color: #b8d6e6;
}

.delivery-option .form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

.delivery-option .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(26, 130, 195, 0.25);
    border-color: var(--brand);
}

/* Контент справа от radio */
.delivery-option__content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1 1 auto;
    line-height: 1.35;
}

.delivery-option__label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    font-size: 0.95rem;
}

/* Иконка-подсказка */
.delivery-option__hint {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1;
    cursor: help;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.delivery-option__hint:hover,
.delivery-option__hint:focus {
    color: var(--brand);
    transform: scale(1.15);
    outline: none;
}

.delivery-option__hint:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 50%;
}

/* Вторая строка — цена, статус */
.delivery-option__note {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 500;
}
.order-form__section-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: "CentroSlab", "Calibri", serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: 0.02em;
    margin-bottom: 0.9rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--soft);
}

.order-form__section-title::before {
    content: "";
    flex: 0 0 3px;
    width: 3px;
    height: 1em;
    background: var(--accent);
    border-radius: 2px;
}
/* Если бесплатно — зелёный акцент */
.delivery-option__note--free {
    color: #2e9b53;
    font-weight: 600;
}

/* Мобильный */
@media (max-width: 575.98px) {
    .delivery-option {
        padding: 0.75rem 0.85rem;
    }
    .delivery-option__label {
        font-size: 0.92rem;
    }
    .delivery-option__note {
        font-size: 0.78rem;
    }
}
/* ============ ЧЕКБОКС «СОГЛАСИЕ НА ОБРАБОТКУ ПД» ============ */

.order-form__consent .form-check-input {
    width: 1.15em;
    height: 1.15em;
    margin-top: 0.15em;
    border: 1px solid #b8d6e6;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.order-form__consent .form-check-input:hover {
    border-color: var(--brand);
}

.order-form__consent .form-check-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.2rem rgba(26, 130, 195, 0.25);
    outline: none;
}

.order-form__consent .form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

.order-form__consent .form-check-input:checked:focus {
    box-shadow: 0 0 0 0.2rem rgba(26, 130, 195, 0.35);
}

/* Галочка внутри — чуть крупнее стандартной */
.order-form__consent .form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
    background-size: 0.85em;
    background-position: center;
    background-repeat: no-repeat;
}

/* Ссылки внутри label — в брендовом цвете */
.order-form__consent .form-check-label {
    cursor: pointer;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--muted-strong);
}

.order-form__consent .form-check-label a {
    color: var(--brand);
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.order-form__consent .form-check-label a:hover {
    color: var(--accent);
}

/* Когда чекбокс выбран — текст становится чуть темнее */
.order-form__consent .form-check-input:checked ~ .form-check-label {
    color: var(--text);
}

/* Мобильный */
@media (max-width: 575.98px) {
    .order-form__consent .form-check-input {
        width: 1.1em;
        height: 1.1em;
    }
    .order-form__consent .form-check-label {
        font-size: 0.78rem;
    }
}
.tooltip {
    --bs-tooltip-bg: var(--brand);
    --bs-tooltip-color: #fff;
    --bs-tooltip-font-size: 0.82rem;
    --bs-tooltip-padding-y: 0.4rem;
    --bs-tooltip-padding-x: 0.7rem;
    --bs-tooltip-border-radius: 8px;
}
.lightbox-carousel .ratio {
    background-color: var(--border-light-blue) !important; 
}
