/* ===== ОСНОВНЫЕ СТИЛИ ===== */
:root {
    --header-bg: #E8E6E6;  /* Цвет шапки и подвала */
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --light-gray: #ecf0f1;
    --dark-gray: #34495e;
    --text-color: #333;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 8px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --border-radius-small: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #FFFFFF;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.recently-viewed {
    margin-top: 2rem;
    padding: 1.2rem 1.25rem;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.recently-viewed__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.recently-viewed__title {
    margin: 0;
    font-size: 1.15rem;
    color: #2c3e50;
}

.recently-viewed__toggle {
    border: none;
    background: #edf2f7;
    color: #425466;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.recently-viewed__toggle:hover {
    background: #dfe7ef;
}

.recently-viewed__grid {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, auto));
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 220px);
    gap: 0.8rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.35rem;
    align-items: start;
    scrollbar-width: thin;
}

.recently-viewed__card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0.75rem;
    padding: 0.7rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    align-items: center;
}

.recently-viewed__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    border-color: #cfd9e3;
}

.recently-viewed__image-wrap {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.recently-viewed__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.recently-viewed__image--empty {
    color: #94a3b8;
    font-size: 0.72rem;
}

.recently-viewed__content {
    min-width: 0;
}

.recently-viewed__meta {
    display: grid;
    gap: 0.15rem;
    color: #70808f;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}

.recently-viewed__brand {
    font-size: 0.96rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.2;
}

.recently-viewed__price {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.1;
}

.recently-viewed__price--hidden {
    color: #8a97a4;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

@media (max-width: 768px) {
    .recently-viewed {
        padding: 1rem;
    }

    .recently-viewed__grid {
        grid-template-rows: auto;
        grid-auto-columns: minmax(210px, 210px);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ===== ШАПКА ===== */
header {
    background: var(--header-bg);
    color: var(--text-color);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    overflow: visible;
}

.header-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    overflow: visible;
    --header-bottom-left: 334px;
    --header-bottom-right: 325px;
}

@media (min-width: 1280px) {
    .header-wide--with-aphorism {
        position: relative;
    }

    .header-wide--with-aphorism .header-middle,
    .header-wide--with-aphorism > .header-divider:last-of-type {
        padding-right: 325px;
    }

    /* При включенном облачке держим меню в безопасной зоне справа. */
    .header-wide--with-aphorism .header-middle {
        gap: 84px;
    }

    /* Поиск+корзина выравниваем по оси навигации (учитываем ширину логотипа). */
    .header-wide--with-aphorism .header-bottom {
        display: grid;
        grid-template-columns: 430px max-content;
        justify-content: space-between;
        justify-items: start;
        align-items: center;
        padding-left: var(--header-bottom-left);
        padding-right: var(--header-bottom-right);
        gap: 0;
        flex-wrap: nowrap;
    }

    .header-wide--with-aphorism .search-container-wide {
        width: 430px;
        flex: 0 0 430px;
        min-width: 430px;
        max-width: 430px;
    }

    .header-wide--with-aphorism .cart-wide {
        flex: 0 0 auto;
    }

    .header-wide--with-aphorism .main-nav ul {
        gap: 22px;
    }

    .header-wide--with-aphorism .main-nav a {
        font-size: 1.06rem;
    }
}

.header-aphorism-widget {
    display: none;
}

@media (min-width: 1280px) {
    .header-aphorism-widget {
        display: block;
        position: absolute;
        top: 42px;
        right: 30px;
        width: 295px;
        z-index: 20;
    }

    .header-aphorism-card {
        position: relative;
        background: #ffffff;
        border: 1px solid #d7e0e8;
        border-top: 4px solid #3498db;
        border-radius: 14px;
        box-shadow: 0 10px 24px rgba(52, 73, 94, 0.12);
        padding: 0.95rem 1rem 0.95rem 1.05rem;
        min-height: 132px;
    }

    .header-aphorism-close {
        position: absolute;
        top: 8px;
        right: 10px;
        border: none;
        background: transparent;
        color: #7b8a97;
        font-size: 1.15rem;
        line-height: 1;
        cursor: pointer;
        transition: color 0.18s ease;
    }

    .header-aphorism-close:hover {
        color: #34495e;
    }

    .header-aphorism-quote-mark {
        color: #b7c4cf;
        font-size: 2.45rem;
        line-height: 1;
        font-weight: 700;
        margin-bottom: 0.1rem;
    }

    .header-aphorism-text {
        margin: 0;
        color: #4c5966;
        font-size: 0.95rem;
        line-height: 1.5;
        font-style: italic;
        padding-right: 1.2rem;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .header-aphorism-author {
        margin-top: 0.65rem;
        color: #2f80c2;
        font-size: 0.9rem;
        line-height: 1.4;
        font-weight: 500;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .header-aphorism-reopen {
        width: 100%;
        border: none;
        background: #ffffff;
        color: #2f80c2;
        border-radius: 999px;
        box-shadow: 0 8px 18px rgba(52, 73, 94, 0.12);
        padding: 0.7rem 1rem;
        font-size: 0.92rem;
        font-weight: 600;
        cursor: pointer;
        border: 1px solid #d7e0e8;
    }

    .header-aphorism-reopen:hover {
        background: #ffffff;
        color: #1e6ea8;
    }
}

/* Верхняя строка */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.header-contacts {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.contact-link:hover {
    color: var(--secondary-color);
}

.contact-icon {
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 1.35rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.contact-icon--phone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg transform='rotate(-12 12 12)'%3E%3Cpath d='M7.2 4.4c.34-.34.87-.42 1.29-.18l2.23 1.24c.48.26.68.84.47 1.34l-.96 2.27a1 1 0 0 0 .2 1.09l3.4 3.4a1 1 0 0 0 1.09.2l2.27-.96c.5-.21 1.08-.01 1.34.47l1.24 2.23c.24.42.16.95-.18 1.29l-1.52 1.52c-.55.55-1.39.75-2.13.49-1.87-.64-4.75-2.18-7.4-4.83S4.5 8.45 3.86 6.58c-.26-.74-.06-1.58.49-2.13L5.87 2.93z' fill='%23cf3f2c'/%3E%3Cpath d='M7.2 4.4c.34-.34.87-.42 1.29-.18l2.23 1.24c.48.26.68.84.47 1.34l-.96 2.27a1 1 0 0 0 .2 1.09l3.4 3.4a1 1 0 0 0 1.09.2l2.27-.96c.5-.21 1.08-.01 1.34.47l1.24 2.23c.24.42.16.95-.18 1.29l-1.52 1.52c-.55.55-1.39.75-2.13.49-1.87-.64-4.75-2.18-7.4-4.83S4.5 8.45 3.86 6.58c-.26-.74-.06-1.58.49-2.13L5.87 2.93z' fill='none' stroke='%2326272b' stroke-width='1.15' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E");
}

.contact-icon--email {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3.25' y='5.25' width='17.5' height='13.5' rx='1.8' fill='%23f8f8f6' stroke='%23747577' stroke-width='1.2'/%3E%3Cpath d='M4.8 7.1 12 12.3 19.2 7.1' fill='none' stroke='%23b9bcc1' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4.8 16.9 9.7 12.7M19.2 16.9l-4.9-4.2' fill='none' stroke='%23e7e9ec' stroke-width='.9' stroke-linecap='round'/%3E%3C/svg%3E");
}

.ui-icon {
    display: inline-flex;
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 1.05rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
}

.ui-icon--search {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='5.8' fill='%23f8fafc' stroke='%2367798d' stroke-width='1.6'/%3E%3Cpath d='M15.2 15.2 20 20' stroke='%2367798d' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.ui-icon--cart {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='19' r='1.7' fill='%238da0b3'/%3E%3Ccircle cx='17' cy='19' r='1.7' fill='%238da0b3'/%3E%3Cpath d='M4 5.5h2.2l1.3 7.2a1 1 0 0 0 .98.82h8.4a1 1 0 0 0 .96-.73l1.5-5.29a1 1 0 0 0-.96-1.27H7.1' fill='none' stroke='%238da0b3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.ui-icon--location {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20s5.5-5.44 5.5-9.5A5.5 5.5 0 1 0 6.5 10.5C6.5 14.56 12 20 12 20Z' fill='%23ef4b4b'/%3E%3Ccircle cx='12' cy='10.5' r='2.2' fill='%23fff'/%3E%3Cpath d='M12 20s5.5-5.44 5.5-9.5A5.5 5.5 0 1 0 6.5 10.5C6.5 14.56 12 20 12 20Z' fill='none' stroke='%23863a3a' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.ui-icon--clock {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8.2' fill='%23f7f9fb' stroke='%23748491' stroke-width='1.4'/%3E%3Cpath d='M12 7.6v4.8l3 1.8' fill='none' stroke='%23748491' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.ui-icon--success {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='%23eaf8ef' stroke='%2327ae60' stroke-width='1.4'/%3E%3Cpath d='M7.7 12.4 10.5 15.2 16.4 9.3' fill='none' stroke='%2327ae60' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.ui-icon--warning {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.2 20 18a1.2 1.2 0 0 1-1.04 1.8H5.04A1.2 1.2 0 0 1 4 18L12 4.2Z' fill='%23fff4db' stroke='%23f39c12' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M12 8.9v4.8' stroke='%23c58110' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='16.7' r='1' fill='%23c58110'/%3E%3C/svg%3E");
}

.ui-icon--danger {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='%23fdeeee' stroke='%23e74c3c' stroke-width='1.4'/%3E%3Cpath d='m8.7 8.7 6.6 6.6M15.3 8.7l-6.6 6.6' stroke='%23e74c3c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.ui-icon--pickup {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 10.5 12 4l7.5 6.5V19a1 1 0 0 1-1 1H5.5a1 1 0 0 1-1-1v-8.5Z' fill='%23eef4fa' stroke='%23677b8f' stroke-width='1.3' stroke-linejoin='round'/%3E%3Cpath d='M9.2 20v-5.4a1 1 0 0 1 1-1h3.6a1 1 0 0 1 1 1V20' fill='none' stroke='%23677b8f' stroke-width='1.3'/%3E%3C/svg%3E");
}

.ui-icon--delivery {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='7' width='11' height='8' rx='1.2' fill='%23eef4fa' stroke='%23677b8f' stroke-width='1.3'/%3E%3Cpath d='M14 9h3.5l2 2.3V15H14Z' fill='%23d7e6f5' stroke='%23677b8f' stroke-width='1.3' stroke-linejoin='round'/%3E%3Ccircle cx='8' cy='17.4' r='1.7' fill='%23677b8f'/%3E%3Ccircle cx='17.5' cy='17.4' r='1.7' fill='%23677b8f'/%3E%3C/svg%3E");
}

.ui-icon--idea {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.3a6 6 0 0 0-3.95 10.5c.64.57 1.07 1.3 1.22 2.13h5.46c.15-.83.58-1.56 1.22-2.13A6 6 0 0 0 12 4.3Z' fill='%23fff3c8' stroke='%23c89010' stroke-width='1.3' stroke-linejoin='round'/%3E%3Cpath d='M9.5 19h5M10 21h4' stroke='%23c89010' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.ui-icon--folder {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.5 7.5A1.5 1.5 0 0 1 5 6h4.1l1.6 1.8H19A1.5 1.5 0 0 1 20.5 9.3v7.2A1.5 1.5 0 0 1 19 18H5A1.5 1.5 0 0 1 3.5 16.5Z' fill='%23f5e7b8' stroke='%23977a27' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.ui-icon--shield {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.8 18.3 6v5.4c0 4.2-2.6 7.2-6.3 8.8-3.7-1.6-6.3-4.6-6.3-8.8V6Z' fill='%23eaf3ff' stroke='%23436c9a' stroke-width='1.3' stroke-linejoin='round'/%3E%3Cpath d='m9.3 12.2 1.8 1.8 3.6-3.9' fill='none' stroke='%23436c9a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.ui-icon--money {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3.5' y='6.5' width='17' height='11' rx='1.6' fill='%23eaf8ef' stroke='%232b8a57' stroke-width='1.3'/%3E%3Ccircle cx='12' cy='12' r='2.5' fill='none' stroke='%232b8a57' stroke-width='1.3'/%3E%3Cpath d='M7 9h.01M17 15h.01' stroke='%232b8a57' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.ui-icon--support {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 13.5V11a5.5 5.5 0 0 1 11 0v2.5' fill='none' stroke='%2354688a' stroke-width='1.4' stroke-linecap='round'/%3E%3Crect x='4.3' y='12.6' width='3.2' height='5.2' rx='1.2' fill='%23e8eef8' stroke='%2354688a' stroke-width='1.2'/%3E%3Crect x='16.5' y='12.6' width='3.2' height='5.2' rx='1.2' fill='%23e8eef8' stroke='%2354688a' stroke-width='1.2'/%3E%3Cpath d='M17.6 18a2.6 2.6 0 0 1-2.6 2.6h-2.2' fill='none' stroke='%2354688a' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.ui-icon--sad {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='%23f7f9fb' stroke='%2390a0b0' stroke-width='1.3'/%3E%3Ccircle cx='8.7' cy='10' r='1' fill='%23748491'/%3E%3Ccircle cx='15.3' cy='10' r='1' fill='%23748491'/%3E%3Cpath d='M8.2 16c1-1 2.3-1.5 3.8-1.5s2.8.5 3.8 1.5' fill='none' stroke='%23748491' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.feature-icon {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.inline-icon-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Черта-разделитель */
.header-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
    width: 100%;
    margin: 5px 0;
}

/* Средняя строка с логотипом и меню */
.header-middle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1px 0;
    gap: 120px;
    margin-left: 40px;
}

.logo {
    display: flex;
    align-items: center;
    flex: 0 0 220px;
    width: 220px;
    min-width: 220px;
    height: 100px;
    flex-shrink: 0;  /* Логотип не сжимается */
}

.logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.logo-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    position: relative;
    top: 16px;
    transform: scale(2);
    transform-origin: center center;
}

.logo-image--placeholder {
    top: 0;
    transform: none;
}

.mobile-menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(52, 73, 94, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 22px rgba(52, 73, 94, 0.08);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    margin-left: auto;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #34495e;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Меню навигации */
.main-nav {
    display: flex;
    align-items: center;  /* Выравнивание по центру вертикали */
    flex-grow: 0;  /* Меню не растягивается */
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav li {
    display: flex;
    align-items: center;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 8px 0;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    line-height: 1.2;  /* Нормальная высота строки */
    display: inline-block;
}

.main-nav a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.main-nav a.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* Нижняя строка с поиском и корзиной */
.header-bottom {
    display: flex;
    align-items: center;
    justify-content: center;  /* Центрируем всю группу */
    gap: 30px;
    padding: 1px 0;
    flex-wrap: wrap;
}

.search-container-wide {
    width: 500px;  /* Фиксированная ширина */
    position: relative;
}

.search-form-wide {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    padding: 6px;
    border: 1px solid rgba(52, 73, 94, 0.12);
    box-shadow: 0 8px 22px rgba(52, 73, 94, 0.08);
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.search-form-wide:focus-within {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(52, 152, 219, 0.24);
    box-shadow: 0 12px 28px rgba(52, 73, 94, 0.14);
    transform: translateY(-1px);
}

.search-input-wide {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    outline: none;
    background: transparent;
    color: var(--dark-gray);
}

.search-input-wide::placeholder {
    color: rgba(52, 73, 94, 0.58);
}

.search-input-wide:focus {
    box-shadow: none;
}

.search-button-wide {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.14), rgba(52, 152, 219, 0.04));
    color: var(--dark-gray);
    border: none;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.search-button-wide:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.22), rgba(52, 152, 219, 0.08));
    color: var(--secondary-color);
}

.cart-wide {
    flex-shrink: 0;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--dark-gray);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 18px;
    border: 1px solid rgba(52, 73, 94, 0.12);
    box-shadow: 0 8px 22px rgba(52, 73, 94, 0.08);
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.cart-link:hover {
    background: rgba(255, 255, 255, 0.92);
    color: var(--secondary-color);
    border-color: rgba(52, 152, 219, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(52, 73, 94, 0.14);
}

.cart-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='19' r='1.7' fill='%235b87ad'/%3E%3Ccircle cx='17' cy='19' r='1.7' fill='%235b87ad'/%3E%3Cpath d='M4 5.5h2.2l1.3 7.2a1 1 0 0 0 .98.82h8.4a1 1 0 0 0 .96-.73l1.5-5.29a1 1 0 0 0-.96-1.27H7.1' fill='none' stroke='%235b87ad' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
        linear-gradient(135deg, rgba(52, 152, 219, 0.14), rgba(52, 152, 219, 0.04));
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    background-size: 18px 18px, auto;
}

.cart-text {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.cart-badge {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    background: #d64545;
    color: white;
    box-shadow: 0 4px 12px rgba(214, 69, 69, 0.28);
}

/* ===== ПОДСКАЗКИ ПОИСКА ===== */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    margin-top: 0.5rem;
    z-index: 100;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--light-gray);
    transition: background 0.2s;
    color: #000000;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--light-gray);
}

.suggestion-item strong {
    color: #000000;
    font-weight: 600;
}

.suggestion-item small {
    color: #000000;
    opacity: 0.8;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #219a52;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-danger {
    background: var(--accent-color);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: #bdc3c7;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== КАРТОЧКИ ТОВАРОВ ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.product-card {
    background: #F8F9FA;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.product-card .badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-small);
    font-size: 0.8rem;
}

.product-image-container {
    position: relative;
    margin-bottom: 1rem;
    text-align: center;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius-small);
}

.product-code {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-light);
    background: var(--light-gray);
    padding: 0.2rem 0.5rem;
    border-radius: var(--border-radius-small);
    display: inline-block;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0.5rem 0;
    line-height: 1.5;
    flex-grow: 1;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--success-color);
    margin: 1rem 0;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.product-actions .btn {
    flex: 1;
    text-align: center;
}

/* ===== КАТЕГОРИИ ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.category-card {
    background: #F8F9FA;
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.category-image {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: var(--border-radius-small);
    margin-bottom: 0.5rem;
}

.category-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.category-count {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ===== СТРАНИЦА ТОВАРА ===== */
.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.product-gallery {
    position: relative;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: opacity 0.2s;
}

.main-image:hover {
    opacity: 0.9;
}

.thumbnail-list {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: var(--secondary-color);
}

.product-info {
    padding: 1rem;
}

.product-info h1 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.product-meta {
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
}

.product-stock {
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.in-stock {
    color: var(--success-color);
    font-weight: 600;
}

.low-stock {
    color: var(--warning-color);
    font-weight: 600;
}

.out-of-stock {
    color: var(--accent-color);
    font-weight: 600;
}

.in-stock::before,
.low-stock::before,
.out-of-stock::before {
    content: "";
    display: inline-block;
    width: 0.95rem;
    height: 0.95rem;
    margin-right: 0.4rem;
    vertical-align: -0.12rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.in-stock::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='%23eaf8ef' stroke='%2327ae60' stroke-width='1.4'/%3E%3Cpath d='M7.7 12.4 10.5 15.2 16.4 9.3' fill='none' stroke='%2327ae60' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.low-stock::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.2 20 18a1.2 1.2 0 0 1-1.04 1.8H5.04A1.2 1.2 0 0 1 4 18L12 4.2Z' fill='%23fff4db' stroke='%23f39c12' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M12 8.9v4.8' stroke='%23c58110' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='16.7' r='1' fill='%23c58110'/%3E%3C/svg%3E");
}

.out-of-stock::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='%23fdeeee' stroke='%23e74c3c' stroke-width='1.4'/%3E%3Cpath d='m8.7 8.7 6.6 6.6M15.3 8.7l-6.6 6.6' stroke='%23e74c3c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 3rem;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    padding: 0 1rem;
    border-radius: var(--border-radius-small);
    user-select: none;
}

.modal-nav:hover {
    background: rgba(0,0,0,0.8);
}

.modal-nav.prev {
    left: -60px;
}

.modal-nav.next {
    right: -60px;
}

/* ===== КОРЗИНА ===== */
.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.cart-items {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-summary {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 1rem;
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.breadcrumbs a {
    color: var(--secondary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .separator {
    color: var(--text-light);
}

.breadcrumbs .current {
    color: var(--text-light);
}

/* ===== ФОРМЫ ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* ===== ПОДСКАЗКИ ===== */
.comment-hint {
    font-size: 0.9rem;
    color: var(--text-light);
    background: #f0f7ff;
    padding: 1rem;
    border-radius: var(--border-radius-small);
    margin: 1rem 0;
    border-left: 4px solid var(--secondary-color);
}

/* ===== ПОДВАЛ ===== */
footer {
    background: var(--header-bg);
    color: var(--text-color);
    padding: 2rem 0;
    margin-top: auto;
}

footer h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

footer p {
    color: var(--text-color);
    opacity: 0.8;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* ===== СЛАЙДЕР ===== */
.slider {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 910 / 300;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    margin: 2rem 0;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.slide-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}

.slide-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.slide-description {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0,0,0,0.8);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255,255,255,0.8);
}

@media (max-width: 768px) {
    .slider {
        height: auto;
        aspect-ratio: 3.55 / 1;
        margin: 0.9rem 0 1.15rem;
        background: transparent;
        border-radius: 16px;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
    }

    .slide {
        background-size: cover;
        background-color: transparent;
    }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .header-wide {
        padding: 0 20px;
    }

    .header-top {
        gap: 10px;
    }

    .header-contacts {
        gap: 16px;
    }

    .contact-link {
        font-size: 0.98rem;
    }

    .header-middle {
        margin-left: 0;
        gap: 20px;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    .logo {
        flex: 0 1 170px;
        width: 170px;
        min-width: 150px;
        height: 84px;
    }

    .logo-image {
        top: 10px;
        transform: scale(1.55);
    }

    .logo-image--placeholder {
        top: 0;
        transform: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
        background: rgba(255, 255, 255, 0.86);
        border: 1px solid rgba(52, 73, 94, 0.12);
        border-radius: 18px;
        box-shadow: 0 10px 26px rgba(52, 73, 94, 0.12);
        padding: 12px 14px;
    }

    .main-nav.main-nav--open {
        display: flex;
    }

    .main-nav ul {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        width: 100%;
        padding: 10px 12px;
        border-bottom: none;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.58);
    }

    .main-nav a:hover,
    .main-nav a.active {
        background: rgba(52, 152, 219, 0.1);
        border-bottom: none;
    }

    .header-bottom {
        justify-content: stretch;
        gap: 16px;
    }

    .search-container-wide {
        width: 100%;
        min-width: 0;
    }

    .cart-wide {
        width: 100%;
    }

    .cart-link {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
    }

    main h1,
    main .page-header h1,
    main .catalog-page-title,
    main .documents-title,
    main .demo-title {
        font-size: clamp(1.55rem, 7vw, 2rem) !important;
        line-height: 1.14 !important;
        letter-spacing: -0.025em;
        margin-top: 0.25rem !important;
        margin-bottom: 1rem !important;
    }

    main > h2,
    main .home-section-title,
    main .products-section-title,
    main .documents-section h2,
    main .news-content h2,
    main .demo-section-title {
        font-size: clamp(1.28rem, 5.8vw, 1.7rem) !important;
        line-height: 1.18 !important;
        letter-spacing: -0.02em;
        margin-top: 1.35rem !important;
        margin-bottom: 0.85rem !important;
    }

    main .news-card-title,
    main .category-name,
    main .product-card h3,
    main .demo-section-title {
        letter-spacing: normal;
    }

    .container {
        padding: 0 14px;
    }

    header {
        padding: 0.75rem 0;
    }

    .header-top {
        flex-direction: column;
        text-align: center;
        align-items: stretch;
    }
    
    .header-info {
        width: 100%;
    }

    .header-contacts {
        justify-content: center;
        gap: 10px 16px;
    }
    
    .header-middle {
        align-items: center;
    }

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

    .container,
    main,
    section,
    article,
    aside {
        min-width: 0;
    }

    .search-form-wide {
        gap: 8px;
        padding: 5px;
    }

    .search-input-wide {
        min-width: 0;
        padding: 11px 14px;
        font-size: 0.96rem;
    }

    .search-button-wide {
        padding: 11px 14px;
    }

    .cart-link {
        padding: 10px 14px;
    }

    .breadcrumbs {
        font-size: 0.82rem;
        gap: 0.28rem;
    }

    .breadcrumbs a,
    .breadcrumbs .current {
        overflow-wrap: anywhere;
    }
    
    .product-page {
        grid-template-columns: 1fr;
    }
    
    .cart-container {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
    
    .modal-nav.prev {
        left: 10px;
    }
    
    .modal-nav.next {
        right: 10px;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
    }
    
    .slide-title {
        font-size: 1.5rem;
    }

    .slide-description {
        font-size: 0.92rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .header-wide {
        padding: 0 14px;
    }

    .header-contacts {
        flex-direction: column;
        gap: 10px;
    }

    .logo {
        flex-basis: 138px;
        width: 138px;
        min-width: 138px;
        height: 72px;
    }

    .logo-image {
        top: 7px;
        transform: scale(1.3);
    }

    .mobile-menu-toggle {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .search-button-wide span:last-child {
        display: none;
    }

    .search-button-wide {
        min-width: 48px;
        justify-content: center;
        padding: 11px 12px;
    }

    .breadcrumbs {
        padding: 0.8rem 0;
        font-size: 0.78rem;
    }

    main h1,
    main .page-header h1,
    main .catalog-page-title,
    main .documents-title,
    main .demo-title {
        font-size: clamp(1.35rem, 7.4vw, 1.7rem) !important;
    }

    main > h2,
    main .home-section-title,
    main .products-section-title,
    main .documents-section h2,
    main .news-content h2,
    main .demo-section-title {
        font-size: clamp(1.14rem, 6.2vw, 1.45rem) !important;
    }

    .scroll-to-top {
        right: 1rem;
        bottom: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cart-item-image {
        margin: 0 auto;
    }
    
    .slider {
        height: auto;
        aspect-ratio: 3.65 / 1;
        margin: 0.75rem 0 1rem;
        border-radius: 14px;
    }

    .slider-prev,
    .slider-next {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .slider-prev {
        left: 12px;
    }

    .slider-next {
        right: 12px;
    }

    .slider-dots {
        bottom: 12px;
        gap: 7px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }
    
    .slide-content {
        padding: 1rem;
    }
    
    .slide-title {
        font-size: 1.2rem;
    }
    
    .slide-description {
        font-size: 0.9rem;
    }
}
.cookie-notice {
    position: fixed;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1200;
}

.cookie-notice__content {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(19, 74, 83, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 40px rgba(16, 24, 40, 0.12);
    backdrop-filter: blur(10px);
}

.cookie-notice__text {
    margin: 0;
    color: #17353d;
    font-size: 0.96rem;
    line-height: 1.55;
}

.cookie-notice__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-notice__link {
    color: #1f6b78;
    font-weight: 600;
    text-decoration: none;
}

.cookie-notice__link:hover {
    text-decoration: underline;
}

.cookie-notice__button {
    border: 0;
    border-radius: 999px;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, #1f6b78, #2da36f);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    box-shadow: 0 12px 24px rgba(31, 107, 120, 0.24);
}

.cookie-notice__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(31, 107, 120, 0.3);
}

.cookie-notice__button:active {
    transform: translateY(0);
}

.scroll-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 999px;
    background: rgba(44, 62, 80, 0.92);
    color: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
    cursor: pointer;
    z-index: 1190;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    line-height: 1;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.scroll-to-top:hover {
    background: rgba(31, 45, 58, 0.96);
}

.scroll-to-top--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 768px) {
    .cookie-notice {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .cookie-notice__content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-notice__actions {
        width: 100%;
        justify-content: space-between;
    }
}
