:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f4f6f8;
    --bg-card: #ffffff;
    --bg-dark-top: #fefefe;
    --accent: #0056b3;
    --accent-hover: #004494;
    --text-main: #333333;
    --text-muted: #000000;
    --text-light: #999999;
    --border: #808080;
    --header-bg: #ffffff;
}

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

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

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

/* =========================================
   HEADER
   ========================================= */
.header {
    background-color: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}

    .header.header-hidden .header-top {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        padding-top: 0;
        padding-bottom: 0;
        border-bottom: none;
        transform: translateY(-100%);
        transition: all 0.2s ease-in-out;
    }

    .header .header-top {
        max-height: 200px;
        opacity: 1;
        transform: translateY(0);
        transition: all 0.2s ease-in-out;
    }

    .header.header-hidden .header-bottom {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

.header-top {
    background-color: var(--bg-dark-top);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transform-origin: top;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo-box img {
    height: 90px;
    width: auto;
    object-fit: contain;
    display: block;
}

.contact-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.contact-link {
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    background-color: #fff;
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

    .contact-link:hover {
        color: #fff;
        background-color: var(--accent);
        border-color: var(--accent);
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 86, 179, 0.2);
    }

    .contact-link .icon {
        font-size: 1.1rem;
    }

    .contact-link.phone {
        font-size: 1rem;
    }

.social-links {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

    .social-btn:hover {
        background-color: var(--accent);
        color: #fff;
        border-color: var(--accent);
        transform: translateY(-2px);
    }

.header-bottom {
    padding: 0;
    background-color: var(--bg-primary);
    border-top: 1px solid #f0f0f0;
    transition: box-shadow 0.3s ease;
}

.header-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px;
}

.main-nav {
    display: flex;
    gap: 35px;
}

.nav-item {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    padding: 10px 0;
}

    .nav-item::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 3px;
        background-color: var(--accent);
        transition: width 0.3s;
        border-radius: 2px 2px 0 0;
    }

    .nav-item:hover::after,
    .nav-item.active::after {
        width: 100%;
    }

    .nav-item:hover {
        color: var(--accent);
    }

.header-search form {
    display: flex;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    width: 450px;
    transition: all 0.3s;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

    .header-search form:focus-within {
        border-color: var(--accent);
        background-color: #fff;
        box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
    }

.header-search input {
    flex-grow: 1;
    background: transparent;
    border: none;
    padding: 10px 15px;
    color: var(--text-main);
    outline: none;
    font-size: 1rem;
}

.header-search button {
    background-color: transparent;
    border: none;
    border-left: 1px solid var(--border);
    padding: 0 18px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: 0.3s;
    background-color: #fff;
}

    .header-search button:hover {
        background-color: var(--accent);
        color: #fff;
    }

/* =========================================
   БЛОК БРЕНДА
   ========================================= */
.brand-card {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
    border: 1px solid var(--accent);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

    .brand-card:last-of-type {
        margin-bottom: 0;
    }

.brand-card-row {
    display: flex;
    gap: 20px;
    padding: 24px 20px;
    flex-wrap: wrap;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.brand-header {
    flex: none;
    margin-top: 20px;
    height: 100px;
    width: 300px;
    border-radius: 10px;
    background: #E6E6FA;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    padding: 0 12px;
    white-space: nowrap;
}

.brand-description {
    flex: 0 0 400px;
    height: auto;
    min-height: 220px;
    border-radius: 10px;
    background: #E6E6FA;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    padding: 20px 20px;
    line-height: 1.6;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

.brand-extra {
    flex: 0 0 400px;
    height: 200px;
    border-radius: 10px;
    background: #E6E6FA;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

/* =========================================
   КАРТОЧКИ НА ГЛАВНОЙ
   ========================================= */
.brand-photos {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
}

    .brand-photos::after {
        content: '';
        flex: auto;
    }

.brand-product-card {
    width: 200px;
    min-width: 200px;
    height: auto;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    flex: 0 0 auto;
}

    .brand-product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 15px rgba(0, 86, 179, 0.1);
        border-color: var(--accent);
    }

    .brand-product-card .product-img {
        width: 100%;
        height: 150px;
        object-fit: contain;
        background-color: #f9f9f9;
        border-bottom: 1px solid var(--border);
        padding: 5px;
    }

    .brand-product-card .product-info {
        padding: 12px 10px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .brand-product-card .product-brand {
        font-size: 0.75rem;
        color: var(--accent);
        text-transform: uppercase;
        font-weight: 700;
        margin-bottom: 4px;
        text-align: center;
    }

    .brand-product-card .product-title {
        font-size: 0.95rem;
        font-weight: 600;
        margin: 6px 0;
        color: var(--text-main);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-align: center;
    }

    .brand-product-card .product-desc {
        font-size: 0.75rem;
        color: var(--text-muted);
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-align: center;
    }

    .brand-product-card .product-card-category {
        font-size: 0.7rem;
        color: var(--text-muted);
        margin-top: -4px;
        margin-bottom: 4px;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: center;
    }

    .brand-product-card .product-price {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--text-main);
        margin-top: auto;
        text-align: center;
    }

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #eef2f5 0%, #dbe4ea 100%);
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(0, 86, 179, 0.05) 0%, transparent 60%);
        z-index: 1;
        animation: pulse 10s infinite alternate;
    }

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 20px;
}

.main-brand {
    font-size: 5.5rem;
    font-weight: 900;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 86, 179, 0.15);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 50px;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.brands-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.brand-item {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    border: 2px solid var(--border);
    padding: 15px 35px;
    border-radius: 8px;
    text-transform: uppercase;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    transition: 0.3s;
    cursor: default;
}

    .brand-item:hover {
        border-color: var(--accent);
        color: var(--accent);
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0, 86, 179, 0.1);
    }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.2);
}

    .btn-primary:hover {
        background-color: var(--accent-hover);
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0, 86, 179, 0.3);
    }

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

    .btn-outline:hover {
        background: var(--accent);
        color: #fff;
    }

/* =========================================
   SECTIONS
   ========================================= */
.section {
    padding: 100px 0;
}

.section-white {
    background-color: var(--bg-primary);
}

.section-gray {
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--text-main);
    border-left: 6px solid var(--accent);
    padding-left: 20px;
    font-weight: 800;
}

.text-block {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 900px;
    line-height: 1.8;
}

.subsection-title {
    font-size: 1.9rem;
    margin: 60px 0 30px;
    color: var(--text-main);
    font-weight: 700;
    text-align: center;
}

.brand-desc {
    color: var(--text-main);
    margin-bottom: 50px;
    max-width: 800px;
    font-style: italic;
    font-size: 1.15rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
    position: relative;
}

    .brand-desc::before {
        content: '"';
        position: absolute;
        top: -10px;
        left: 20px;
        font-size: 4rem;
        color: var(--accent);
        opacity: 0.2;
        font-family: serif;
        line-height: 1;
    }

.center-btn {
    text-align: center;
    margin-top: 60px;
}

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

.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    min-height: 420px;
    height: auto;
}

    .product-card:hover {
        transform: translateY(-8px);
        border-color: var(--accent);
        box-shadow: 0 15px 30px rgba(0, 86, 179, 0.12);
    }

.product-img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    background-color: #f9f9f9;
    border-bottom: 1px solid var(--border);
    padding: 8px;
}

.product-info {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-brand {
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.product-card-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: -6px;
    margin-bottom: 8px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: auto;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: auto;
    padding-top: 10px;
}

/* =========================================
   CATALOG PAGE
   ========================================= */
.catalog-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

    .catalog-controls input,
    .catalog-controls select {
        padding: 14px;
        background: #fff;
        border: 1px solid var(--border);
        color: var(--text-main);
        border-radius: 6px;
        font-size: 1rem;
        outline: none;
        transition: 0.3s;
    }

        .catalog-controls input:focus,
        .catalog-controls select:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
        }

    .catalog-controls input {
        flex-grow: 1;
    }

#no-results {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: #ADD8E6;
    padding: 70px 0 30px;
    border-top: 1px solid var(--border);
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}

.contacts-info h3 {
    color: var(--accent);
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 700;
}

.contacts-info p {
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.contacts-info a {
    font-weight: 600;
    color: var(--text-main);
}

    .contacts-info a:hover {
        color: var(--accent);
        text-decoration: underline;
    }

.map-box {
    width: 100%;
    max-width: 450px;
    height: 250px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-weight: 600;
}

.copyright {
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    position: relative;
}

/* =========================================
   ADMIN PANEL STYLES
   ========================================= */
.hidden-admin-link {
    margin-right: 0%;
}

.admin-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: var(--text-main);
        font-weight: 600;
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        padding: 12px;
        background: #f9f9f9;
        border: 1px solid var(--border);
        color: var(--text-main);
        border-radius: 6px;
        font-size: 1rem;
        transition: 0.3s;
    }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            border-color: var(--accent);
            background: #fff;
            outline: none;
        }

    .form-group textarea {
        height: 120px;
        resize: vertical;
    }

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

    .checkbox-group input {
        width: auto;
    }

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: #fff;
}

th,
td {
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    background: #ADD8E6;
}

tr:hover {
    background-color: #fcfcfc;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: 0.3s;
}

    .btn-danger:hover {
        background-color: #c82333;
    }

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 10px 20px;
    font-weight: 600;
    transition: 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

    .tab-btn.active {
        color: var(--accent);
        border-bottom-color: var(--accent);
    }

.tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

    .tab-content.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   ADAPTIVE / RESPONSIVE
   ========================================= */
@media (max-width: 1100px) {
    .header-search form {
        width: 300px;
    }

    .main-brand {
        font-size: 4rem;
    }
}

@media (max-width: 992px) {
    .header-top-content {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 20px;
    }

    .logo-box img {
        height: 80px;
    }

    .contact-info {
        order: 3;
        width: 100%;
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .contact-link {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .social-links {
        order: 2;
    }

    .header-bottom-content {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
        gap: 20px;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .header-search form {
        width: 100%;
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .product-page-card {
        grid-template-columns: 1fr;
        grid-template-areas: "gallery" "info" "desc";
        padding: 16px;
    }

    .product-page-gallery {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    .product-page-image {
        margin: 0 auto;
        max-height: 460px;
    }

    .product-thumbs {
        justify-content: center;
    }

    .product-page-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .product-page-brand-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .product-page-brand,
    .product-page-title,
    .product-page-price {
        text-align: center;
    }

    .product-page-title {
        font-size: 1.5rem;
    }

    .product-page-price {
        font-size: 1.4rem;
    }

    .product-page-description-wrap {
        margin-top: 4px;
    }

    .product-page-description {
        text-align: left;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .logo-box img {
        height: 60px;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .contact-link {
        width: 100%;
        max-width: 320px;
        min-height: 44px;
        padding: 10px 14px;
        justify-content: center;
        gap: 10px;
    }

        .contact-link .icon {
            width: 1.2em;
            display: inline-flex;
            justify-content: center;
            line-height: 1;
        }

    .main-brand {
        font-size: 2.8rem;
    }

    .brands-row {
        gap: 10px;
    }

    .brand-item {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    .section-title {
        font-size: 1.8rem;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Адаптивность для главной */
@media (max-width: 1200px) {
    .brand-photos {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .brand-product-card {
        width: 180px;
        min-width: 180px;
    }

        .brand-product-card .product-img {
            height: 140px;
        }
}

@media (max-width: 600px) {
    .brand-photos {
        justify-content: space-around;
    }

    .brand-product-card {
        width: calc(50% - 10px);
        min-width: auto;
        max-width: 200px;
    }

        .brand-product-card .product-img {
            height: 130px;
        }
}

/* --- О КОМПАНИИ (about.html) --- */
.about-requisites-block {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.about-requisites-table {
    width: 100%;
    max-width: 1000px;
    border-collapse: collapse;
    margin-bottom: 30px;
    text-align: left;
}

.requisite-label {
    padding: 12px 15px;
    border: 1px solid var(--border);
    font-weight: 600;
    background-color: var(--bg-secondary);
}

.requisite-value {
    padding: 12px 15px;
    border: 1px solid var(--border);
}

.about-brand-title {
    text-align: center;
    margin-bottom: 20px;
}

.about-main-text {
    margin-bottom: 40px;
    text-align: center;
    margin: auto;
}

.about-brands-list {
    margin: 20px auto 20px auto;
    padding-left: 0;
    text-align: left;
    max-width: fit-content;
}

    .about-brands-list li {
        margin-bottom: 8px;
    }

.about-tech-block {
    margin-bottom: 50px;
    margin: auto;
}

.about-tech-title {
    text-align: center;
}

.about-tech-logos-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin-top: 30px;
}

.about-tech-logo-item {
    text-align: center;
    max-width: 250px;
}

.about-tech-logo-icon {
    width: 120px;
    height: 120px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.4rem;
    color: var(--accent);
    font-weight: bold;
}

.about-tech-logo-name {
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 8px;
}

.about-tech-logo-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.about-eco-block {
    margin: auto;
    margin-top: 100px;
}

.about-eco-title {
    text-align: center;
}

.about-eco-text {
    margin-top: 20px;
    text-align: center;
}

    .about-eco-text:first-of-type {
        margin-top: 20px;
    }

.about-contacts-inside-block {
    margin: auto;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.about-contacts-inside-title {
    text-align: center;
}

.about-contacts-inside-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
}

.about-contact-method {
    text-align: center;
}

.about-contact-icon {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.about-contact-link {
    color: var(--accent);
}

    .about-contact-link:hover {
        text-decoration: underline;
    }

.review-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
}

    .review-card h4 {
        margin-bottom: 6px;
        color: var(--text-main);
    }

    .review-card p {
        color: var(--text-muted);
    }

    .review-card small {
        display: block;
        margin-top: 8px;
        color: var(--text-light);
    }

.product-page-card {
    display: grid;
    grid-template-columns: minmax(380px, 1200px);
    grid-template-areas: "gallery" "info" "desc";
    gap: 28px;
    justify-content: center;
    align-items: start;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.product-page-gallery {
    grid-area: gallery;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-page-image {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #f7f7f7;
}

.product-slider-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.product-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
    justify-content: center;
}

.product-thumb {
    width: 62px;
    height: 48px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
}

    .product-thumb.active {
        border-color: var(--accent);
    }

.product-page-info {
    grid-area: info;
    width: 100%;
    max-width: 900px;
}

.product-page-brand-logo {
    max-height: 44px;
    width: auto;
    margin-bottom: 10px;
}

.product-page-brand {
    font-size: 0.9rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-page-category {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.35;
}

.product-page-title {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 12px;
}

.product-page-price {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.product-page-description {
    color: var(--text-muted);
    margin-bottom: 20px;
    white-space: pre-line;
}

.product-page-description-wrap {
    grid-area: desc;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 769px) {
    .product-page-brand,
    .product-page-category,
    .product-page-title,
    .product-page-price,
    .product-page-description {
        text-align: left;
    }
}

/* --- БЛОКИ СТАТИСТИКИ --- */
.about-stats-block {
    padding: 60px 0;
    background-color: var(--bg-primary);
}

.about-stats-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-stat-item {
    text-align: center;
    max-width: 280px;
}

.about-stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1;
}

.about-stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.brand-product-cards {
    width: 450px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    background: #E6E6FA;
    border: 1px solid var(--border);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

    .brand-product-cards:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 15px rgba(0, 86, 179, 0.1);
        border-color: var(--accent);
    }

/* --- ВСПЛЫВАЮЩИЙ ЧАТ --- */
.chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    max-height: 500px;
}

.chat-header {
    background-color: var(--accent);
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.chat-header-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.chat-toggle-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

    .chat-toggle-btn:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

.chat-window {
    display: none;
    flex-direction: column;
    height: 350px;
}

    .chat-window.open {
        display: flex;
    }

.chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    word-wrap: break-word;
    line-height: 1.4;
}

    .message.user {
        align-self: flex-end;
        background-color: var(--accent);
        color: white;
        border-bottom-right-radius: 2px;
    }

    .message.manager {
        align-self: flex-start;
        background-color: #e9ecef;
        color: var(--text-main);
        border-bottom-left-radius: 2px;
    }

.chat-input-area {
    display: flex;
    padding: 10px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border);
}

.chat-input {
    flex-grow: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    background-color: var(--bg-secondary);
}

    .chat-input:focus {
        border-color: var(--accent);
    }

.chat-send-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0 15px;
    margin-left: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

    .chat-send-btn:hover {
        background-color: var(--accent-hover);
    }

/* =========================================
   ССЫЛКА-ОБЕРТКА ДЛЯ ЛОГОТИПА БРЕНДА
   ========================================= */
.brand-header-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.3s ease;
    flex: none;
}

    .brand-header-link:hover {
        transform: scale(1.02);
    }

        .brand-header-link:hover .brand-header {
            box-shadow: 0 8px 20px rgba(0, 86, 179, 0.15);
            border: 1px solid var(--accent);
        }

    .brand-header-link .brand-header {
        transition: box-shadow 0.3s ease, border 0.3s ease;
        border: 1px solid transparent;
        margin-top: 20px;
        height: 100px;
        width: 300px;
        border-radius: 10px;
        background: #E6E6FA;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        font-weight: bold;
        padding: 0 12px;
        white-space: nowrap;
    }

/* =========================================
   ССЫЛКА В ТЕКСТЕ — КНОПКА SCAFORD
   ========================================= */
.brand-text-link {
    display: inline-block;
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none;
    background-color: var(--accent);
    padding: 3px 12px;
    border-radius: 5px;
    transition: 0.3s;
    white-space: nowrap;
}

    .brand-text-link:hover {
        background-color: var(--accent-hover);
        color: #ffffff !important;
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(0, 86, 179, 0.3);
    }

/* --- КОНЕЦ --- */
