/* ================= TOKENS ================= */
:root {
    --bg-main: #121212;
    --bg-soft: #1e1e1e;
    --surface: #2a2a2a;

    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;

    --primary: #4f8aff;
    --accent: #00c6a7;

    --radius: 14px;
    --transition: .2s ease;
}

/* ================= RESET ================= */
* {
    box-sizing: border-box;
    font-family: Inter, system-ui, sans-serif;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.6;
}
h1 { font-size: 48px; font-weight: 700; }
h2 { font-size: 36px; font-weight: 600; }
h3 { font-size: 28px; font-weight: 600; }


body {
    margin: 0;
    background: var(--bg-main);
    color: var(--text-main);
}

.container {
    max-width: 1280px;
    margin: auto;
    padding: 0 24px;
}

/* ================= HEADER ================= */
.header {
    background: var(--bg-soft);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

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

.logo {
    display: flex;
    gap: 10px;
    font-weight: 700;
}

/* ================= NAV ================= */
.nav {
    display: flex;
    gap: 24px;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--primary);
}

/* ================= BUTTONS ================= */
.btn-primary {
    background: var(--primary);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 12px 20px;
    border-radius: var(--radius);
}

/* ================= HERO ================= */
.hero {
    padding: 80px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius);
    filter: brightness(.8);
}

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

.bg-soft {
    background: var(--bg-soft);
}

/* ================= PRODUCTS ================= */
.grid-products {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
    gap: 24px;
}

.product-card {
    background: var(--surface);
    padding: 18px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
}

/* ================= NEWS ================= */
.grid-news {
    display: grid;
    gap: 20px;
}

.news-card {
    background: var(--surface);
    padding: 20px;
    border-radius: var(--radius);
}

/* ================= CTA ================= */
.cta {
    padding: 80px 0;
}

.cta-box {
    background: linear-gradient(135deg,#4f8aff,#00c6a7);
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-box .btn-primary {
    padding: 14px 35px;
    font-size: 16px;
    min-width: 180px;
    height: auto;
    white-space: nowrap;
}
@media (min-width: 769px) and (max-width: 1166px){
    .logo {
        width: 20%;
    }
    
}

@media (max-width: 992px) {
    .cta-box {
        padding: 35px 30px;
    }

    .cta-box .btn-primary {
        padding: 13px 30px;
        font-size: 15px;
        min-width: 160px;
    }
}

@media (max-width: 768px) {
    .cta {
        padding: 60px 0;
    }

    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 30px 25px;
        gap: 25px;
    }

    .cta-box h2 {
        margin: 0;
    }

    .cta-box .btn-primary {
        width: 100%;
        max-width: 250px;
        padding: 12px 25px;
        font-size: 15px;
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .cta {
        padding: 50px 0;
    }

    .cta-box {
        padding: 25px 20px;
        gap: 20px;
    }

    .cta-box .btn-primary {
        max-width: 220px;
        padding: 11px 22px;
        font-size: 14px;
    }
}

/* ================= FOOTER ================= */
/* ================= FOOTER ================= */

.footer {
    background: var(--bg-soft);
    padding: 70px 0 0;
    border-top: 1px solid rgba(255,255,255,.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    padding-bottom: 50px;
}

/* BRAND */
.footer-logo {
    font-size: 20px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
    color: var(--text-main);
}

.footer-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 320px;
}

/* TITLES */
.footer h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* LINKS */
.footer a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary);
}

/* CONTACTS */
.footer-contacts .footer-note {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
    opacity: .8;
}

/* BOTTOM */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: var(--text-muted);
    opacity: .8;
}

/* ================= ADAPTIVE ================= */

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }
}

@media (max-width: 576px) {
    .footer {
        padding-top: 50px;
    }

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

    .footer-desc {
        margin: 0 auto;
    }

    .footer a {
        margin-bottom: 8px;
    }
}



/*///form/////*/
/* ================= CONSULT MODAL ================= */

.consult-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.consult-modal.active {
    display: block;
}

.consult-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(6px);
}

.consult-window {
    position: relative;
    max-width: 860px;
    width: min(860px, calc(100% - 32px));
    margin: 5vh auto;
    background: #1E1E1E;
    border-radius: 18px;
    padding: 28px;
    color: #E0E0E0;
    box-shadow: 0 30px 80px rgba(0,0,0,.6);
    max-height: 90vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.consult-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
}

.consult-subtitle {
    font-size: 14px;
    color: #A0A0A0;
    margin-bottom: 20px;
}

.consult-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 22px;
    color: #aaa;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
}

.consult-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.consult-field.full {
    grid-column: span 2;
}

.consult-field input,
.consult-field textarea {
    width: 100%;
    background: #2A2A2A;
    border: 1px solid #3A3A3A;
    padding: 12px 14px;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
}

.consult-field textarea {
    min-height: 140px;
    resize: vertical;
}

.consult-field input:focus,
.consult-field textarea:focus {
    outline: none;
    border-color: #4F8AFF;
}

.captcha {
    display: grid;
    grid-template-columns: auto 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.captcha-img {
    height: 52px;
    border-radius: 8px;
    background: black;
    width: 100%;
    object-fit: cover;
}

.captcha-refresh {
    background: #2A2A2A;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    height: 52px;
}

.consult-submit {
    margin-top: 18px;
    width: 100%;
    background: #4F8AFF;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
}

.consult-submit:hover {
    background: #3C7CF0;
}

@media (max-width: 768px) {
    .consult-window {
        width: calc(100% - 24px);
        margin: 12px auto;
        padding: 18px;
        border-radius: 16px;
        max-height: calc(100vh - 24px);
    }

    .consult-title {
        font-size: 22px;
    }

    .consult-subtitle {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .consult-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .consult-field.full {
        grid-column: auto;
    }

    .consult-field input,
    .consult-field textarea {
        font-size: 16px;
        padding: 14px 14px;
    }

    .consult-field textarea {
        min-height: 120px;
    }

    .captcha {
        grid-template-columns: 1fr 44px;
        grid-auto-rows: 52px;
    }

    .captcha-img {
        height: 52px;
    }
}

@media (max-width: 420px) {
    .consult-window {
        width: calc(100% - 16px);
        padding: 16px;
        border-radius: 14px;
    }

    .consult-title {
        font-size: 20px;
    }
}
/* ================= CONSULT MODAL ================= */
/* ================= slider ================= */
.hero-with-menu {
    padding: 0;
    min-height: 100vh;
    max-height: none;
    position: relative;
    background: #1a1a1a;
}


.container.hero-menu-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.hero-carousel-wrapper {
    width: 100%;
    position: relative;
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    margin-bottom: 50px;
}


.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}


.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}


.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    max-width: 800px;
    width: 90%;
    padding: 0;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 4px 8px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
    opacity: 0.95;
}


.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}


.btn-primary {
    background: #007bff;
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: white;
    color: #000;
    transform: translateY(-2px);
}


.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(0,0,0,0.6);
}


.menu-cards-container {
    width: 100%;
    margin-top: 30px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 20px;
}


.menu-card-item {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    border: 1px solid #404040;
}

.menu-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    border-color: #007bff;
    background: #333333;
}

.menu-card-icon {
    font-size: 32px;
    color: #007bff;
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.menu-card-content {
    flex: 1;
}

.menu-card-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 600;
}

.menu-card-description {
    font-size: 14px;
    color: #b0b0b0;
    line-height: 1.5;
    margin-bottom: 15px;
}

.menu-card-link {
    color: #007bff;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.menu-card-item:hover .menu-card-link {
    color: #4da3ff;
}

.menu-card-link::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.menu-card-item:hover .menu-card-link::after {
    transform: translateX(5px);
}

.promo-card {
    background: #2d2d2d;
    color: #fff;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 25px;
    border: 1px solid #404040;
    position: relative;
    overflow: hidden;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #00d4ff);
}

.promo-content h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.promo-content p {
    font-size: 14px;
    color: #b0b0b0;
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-promo {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-promo {
    background: var(--primary);
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0,123,255,0.3) !important;
}
.custom_button {
    color: white !important;
    background-color: var(--primary) !important;
}
.custom_button:hover {
    background: #0056b3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3) !important;
}


@media (max-width: 1200px) {
    .container.hero-menu-container {
        max-width: 1140px;
    }

    .hero-carousel-wrapper {
        height: 550px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.3rem;
    }
}

@media (max-width: 992px) {
    .hero-carousel-wrapper {
        height: 500px;
        margin-bottom: 40px;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .hero-with-menu {
        min-height: auto;
    }

    .hero-carousel-wrapper {
        height: 450px;
        border-radius: 12px;
    }

    .container.hero-menu-container {
        padding: 30px 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        max-width: 300px;
        padding: 14px 30px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .menu-card-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-carousel-wrapper {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .menu-card-icon {
        font-size: 28px;
        width: 45px;
        height: 45px;
    }

    .menu-card-content h3 {
        font-size: 15px;
    }

    .promo-content h3 {
        font-size: 15px;
    }
}
/* ================= slider ================= */
/* ================= slider products ================= */
.product-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.product-slider {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
}

.product-slide {
    flex: 0 0 300px;
    background: #2d2d2d;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 450px;
    border: 1px solid #404040;
    transition: all 0.3s ease;
}

.product-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    border-color: #007bff;
}

.product-slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.product-slide:hover img {
    transform: scale(1.03);
}

.product-slide h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 600;
    line-height: 1.4;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-slide p {
    font-size: 0.95rem;
    color: #b0b0b0;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 20px;
    padding: 12px 0;
    border-top: 1px solid #404040;
    border-bottom: 1px solid #404040;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Стиль кнопки в темной теме */
.product-slide .btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: auto;
}

.product-slide .btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

.product-link {
    color: #007bff;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.product-slide:hover .product-link {
    color: #4da3ff;
}

.product-link::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.product-slide:hover .product-link::after {
    transform: translateX(5px);
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.slider-prev {
    left: 1px;
}

.slider-next {
    right: 1px;
}

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

/* Адаптив */
@media (max-width: 992px) {
    .product-slider {
        gap: 25px;
    }

    .product-slide {
        flex: 0 0 80%;
        min-height: 420px;
        padding: 20px;
    }

    .product-slide img {
        height: 160px;
    }

    .product-slide h3 {
        font-size: 1.2rem;
        min-height: 52px;
    }

    .product-slide p {
        font-size: 0.9rem;
        min-height: 68px;
    }

    .slider-prev,
    .slider-next {
        left: 10px;
        right: 10px;
    }
}

@media (max-width: 768px) {
    .product-slider {
        gap: 20px;
    }

    .product-slide {
        min-height: 400px;
    }

    .product-slide img {
        height: 150px;
    }

    .product-slide h3 {
        font-size: 1.1rem;
        min-height: 48px;
    }

    .product-slide p {
        font-size: 0.85rem;
        min-height: 64px;
    }
}

@media (max-width: 576px) {
    .product-slider {
        gap: 15px;
    }

    .product-slide {
        min-height: 380px;
        padding: 15px;
    }

    .product-slide img {
        height: 140px;
    }

    .product-slide h3 {
        font-size: 1rem;
        min-height: 44px;
    }

    .product-slide p {
        font-size: 0.8rem;
        min-height: 60px;
    }

    .product-slide .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }
}
/* Стили для сообщения "Товары не найдены" */
.no-products {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 40px !important;
    text-align: center;
    grid-column: 1 / -1;
}

.no-products h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.no-products p {
    color: var(--text-secondary);
}

/* Стили для кнопки сброса фильтров */
.btn-secondary {
    background: var(--bg-secondary);
    border: none;
    padding: 10px 14px;
    border-radius: var(--radius);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: 10px;
}

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

/* Стили для полей фильтров */
.filters input:focus,
.filters select:focus {
    outline: 2px solid var(--primary);
    outline-offset: -1px;
}

/* Адаптивность для фильтров */
@media (max-width: 992px) {
    .catalog-layout {
        display: flex;
        flex-direction: column;
    }

    .filters {
        order: -1;
        margin-bottom: 20px;
    }
}
/* ================= slider products ================= */
/* ================= catalog ================= */
.breadcrumbs {
    font-size: 14px;
    color: var(--text-muted);
}

/* ================= LAYOUT ================= */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 20px 0 60px;
}

/* ================= FILTERS ================= */
.filters {
    background: var(--surface);
    padding: 20px;
    border-radius: var(--radius);
}

.filters h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.filter-group {
    margin-bottom: 18px;
}

.filter-group label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius);
    /*background: var(--bg-secondary);*/
    border: none;
    /*color: white;*/
}

/* ================= TOOLBAR ================= */
.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sort select {
    padding: 10px;
    border-radius: var(--radius);
    background: var(--bg-secondary);
    color: white;
    border: none;
}

/* ================= GRID ================= */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* ================= PRODUCT CARD ================= */
.product-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    background: var(--surface-hover);
}

.product-image {
    height: 200px;
    /*background: #000;*/
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.img_product {
    width: 100%;
}

.product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.product-sku {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.product-attrs {
    font-size: 13px;
    color: var(--text-secondary);
    flex: 1;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    margin: 12px 0;
}

.btn-primary {
    background: var(--primary);
    border: none;
    padding: 10px 14px;
    border-radius: var(--radius);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* ================= PAGINATION ================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-secondary);
}

.pagination a.active {
    background: var(--primary);
    color: white;
}

/* ================= MOBILE ================= */
@media (max-width: 992px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .product-card {
        align-items: center;
        text-align: center;
    }

    .product-card img {
        margin-left: auto;
        margin-right: auto;
    }

    .product-card h3,
    .product-card p,
    .product-card .product-price {
        text-align: center;
        justify-content: center;
    }

    .product-card .btn-primary {
        align-self: center;
    }
}
/* ================= catalog ================= */
/* ================= news ================= */
/* ================= YEAR FILTER ================= */
.year-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0 30px;
}

.year-filter a {
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--surface);
    color: var(--text-secondary);
    transition: var(--transition);
}

.year-filter a.active,
.year-filter a:hover {
    background: var(--primary);
    color: white;
}

/* ================= NEWS GRID ================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 22px;
    align-items: stretch;
}

/* ================= CARD ================= */
.news-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    min-width: 0;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-6px);
    background: var(--surface-hover);
}

.news-image {
    height: 220px;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.news-desc {
    font-size: 14px;
    color: var(--text-secondary);
    flex: 1;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.news-link {
    margin-top: 12px;
    font-weight: 600;
    color: var(--primary);
}

/* ================= ADAPTIVE ================= */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .news-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .news-image {
        height: 180px;
    }

    .news-body {
        padding: 16px;
    }
}
/* ================= news ================= */
/* ================= news_detail ================= */
.page-grid {
    display: grid;
    grid-template-columns: 3fr 1.3fr;
    gap: 36px;
    margin-top: 30px;
}

/* ================= ARTICLE ================= */
.article-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 26px;
}

.article-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 14px;
}

.article-meta {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.article-image {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 20px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content p {
    margin-bottom: 18px;
    color: var(--text-secondary);
    font-size: 16px;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.gallery img {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.gallery img:hover {
    transform: scale(1.03);
}

/* ================= BACK BUTTON ================= */
.back-link {
    display: inline-block;
    margin-top: 22px;
    color: var(--primary);
    font-weight: 600;
}
/* ================= news_detail ================= */
/* ================= product_detail ================= */
.thumb {
    height: 80px;
    width: 80px;
    background: #111;
    border-radius: 10px;
    cursor: pointer;
    opacity: .7;
}

.thumb:hover {
    opacity: 1;
}

/* ================= PRODUCT INFO ================= */
.product-info h1 {
    margin: 0 0 10px;
}

.sku {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.price {
    font-size: 26px;
    font-weight: 700;
    margin: 14px 0;
}

.stock {
    color: var(--accent);
    margin-bottom: 16px;
}

/* ================= CTA ================= */
.actions {
    display: flex;
    gap: 14px;
    margin-top: 16px;
}

.btn-primary {
    background: var(--primary);
    border: none;
    padding: 12px 18px;
    border-radius: var(--radius);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.btn-outline {
    border: 1px solid var(--primary);
    background: transparent;
    padding: 12px 18px;
    border-radius: var(--radius);
    color: var(--primary);
    cursor: pointer;
}

/* ================= ATTRIBUTES ================= */
.attributes {
    background: var(--surface);
    padding: 16px;
    border-radius: var(--radius);
    margin-top: 20px;
}

.attr-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px solid #333;
}
.nav-cta {
    text-decoration: none;
}

/* ================= product_detail ================= */

/* ========================= */
/* ====== ADAPTIVE ========= */
/* ========================= */

@media (max-width: 768px) {
    .header__nav {
        display: none;
    }

    .header__nav.is-open {
        display: flex;
        flex-direction: column;
    }
}
.burger {
    display: none;
}

@media (max-width: 768px) {
    .burger {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
    }

    .burger span {
        width: 24px;
        height: 2px;
        background: currentColor;
    }
}
@media (max-width: 1024px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cards {
        grid-template-columns: 1fr;
    }
    }
@media (max-width: 480px) {
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    p  { font-size: 14px; }
}
@media (max-width: 480px) {
    section {
        padding: 24px 16px;
    }
}

/* ================= MOBILE NAV ================= */

.burger {
    display: none;
}

/* overlay */
.nav-overlay {
    display: none;
}

@media (max-width: 768px) {

    /* показываем бургер */
    .burger {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

    .burger span {
        width: 24px;
        height: 2px;
        background: #fff;
        transition: .3s;
    }

    /* NAV превращается в off-canvas */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-soft);
        display: flex;
        flex-direction: column;
        padding: 100px 24px 24px;
        gap: 20px;
        transition: right .3s ease;
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav a {
        font-size: 18px;
        color: var(--text-main);
    }

    /* overlay */
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.6);
        opacity: 0;
        pointer-events: none;
        transition: .3s;
        z-index: 999;
    }

    .nav-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
}
.nav-close {
    display: none;
}

@media (max-width: 768px) {

    .nav-close {
        display: block;
        position: absolute;
        top: 24px;
        right: 20px;
        width: 32px;
        height: 32px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .nav-close span {
        position: absolute;
        top: 50%;
        left: 4px;
        right: 4px;
        height: 2px;
        background: #fff;
    }

    .nav-close span:first-child {
        transform: rotate(45deg);
    }

    .nav-close span:last-child {
        transform: rotate(-45deg);
    }
}
/* ================= MOBILE CTA IN NAV ================= */

@media (max-width: 768px) {

    /* nav становится flex-контейнером */
    .nav {
        display: flex;
        flex-direction: column;
    }

    /* прячем кнопку в хедере */
    .header__actions .nav-cta {
        display: none;
    }

    /* показываем кнопку внутри меню */
    .nav .nav-cta {
        display: block;
        margin-top: auto;
        width: 100%;
        text-align: center;
        padding: 14px 0;
        font-size: 16px;
        border-radius: 14px;
            text-decoration: none;
    }
}
@media (max-width: 768px) {

    .nav-cta {
        margin-top: 12px;
        padding: 14px 16px;
        text-align: center;
        border-radius: 14px;
        font-size: 16px;
    }
    .reg_button,.login_button {
        display: block;
    }
}
@media(min-width: 768px) {
    .reg_button,.login_button {
         display: none;
    }
}



/*slider product*/
/* ================= PRODUCT SLIDER ADAPTIVE ================= */

@media (max-width: 1024px) {
    .product-slider {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px;
    }

    .product-slide {
        scroll-snap-align: start;
    }

    .product-slider::-webkit-scrollbar {
        display: none;
    }
}

/* Планшеты */
@media (max-width: 992px) {
    .product-slide {
        flex: 0 0 75%;
    }

    .slider-prev,
    .slider-next {
        top: auto;
        bottom: -12px;
        transform: none;
    }

    .slider-prev {
        left: 40%;
    }

    .slider-next {
        right: 40%;
    }
}

/* Мобильные */
@media (max-width: 768px) {
    .product-slide {
        flex: 0 0 90%;
    }

    .slider-prev,
    .slider-next {
        display: none;
    }
}

/* Маленькие телефоны */
@media (max-width: 480px) {
    .product-slide {
        flex: 0 0 100%;
    }
}
@media (max-width: 1024px) {
    .product-slide {
        align-items: center;
        text-align: center;
    }

    .product-slide img {
        margin-left: auto;
        margin-right: auto;
    }

    .product-slide h3,
    .product-slide p,
    .product-price {
        text-align: center;
        justify-content: center;
    }

    .product-slide .btn-primary {
        align-self: center;
    }
}
/*slider product*/

/*breadcrumb*/
.page-header {
    padding: 18px 0 10px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.4;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--text-main);
    border-color: rgba(79,138,255,.5);
    background: rgba(79,138,255,.12);
}

.breadcrumbs .crumb-sep {
    color: rgba(255,255,255,.25);
    user-select: none;
}

@media (max-width: 768px) {
    .page-header {
        padding: 14px 0 6px;
    }

    .breadcrumbs {
        font-size: 13px;
        gap: 6px;
    }

    .breadcrumbs a {
        padding: 6px 9px;
    }
}

@media (max-width: 480px) {
    .breadcrumbs a {
        padding: 5px 8px;
    }
}

/*breadcrumb*/
/*окно калькулятора*/
.promo-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.promo-modal.active {
    display: block;
}

.promo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.75);
}

.promo-window {
    background: #1E1E1E;
    width: min(900px, calc(100% - 32px));
    margin: 5vh auto;
    padding: 24px;
    border-radius: 18px;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    max-height: 90vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.promo-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
}

.promo-title {
    font-size: 26px;
    margin-bottom: 6px;
    color: #fff;
}

.promo-subtitle {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.promo-form,
.promo-calc {
    background: var(--surface);
    padding: 18px;
    border-radius: var(--radius);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    min-width: 0;
}

.promo-form input,
.promo-form textarea,
.promo-calc input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 1px solid #333;
    background: #2A2A2A;
    color: #fff;
}

.promo-form textarea {
    min-height: 110px;
    resize: vertical;
}

.promo-calc-result {
    margin-top: 10px;
    font-size: 14px;
}

.nav-item.has-submenu {
    position: relative;
    display: inline-flex;
    align-items: center;
}


.nav-parent {
    display: inline-block;
}


.nav-submenu {
    display: none;
}

/* ========== DESKTOP (hover) ========== */
@media (min-width: 769px) {


    .nav-item.has-submenu:hover .nav-submenu,
    .nav-item.has-submenu:focus-within .nav-submenu {
        display: block;
    }

    .nav-submenu {
        position: absolute;
        top: 100%;
        left: 0;
        margin-top: 10px;
        min-width: 220px;
        background: var(--bg-soft);
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 14px;
        padding: 10px;
        box-shadow: 0 20px 60px rgba(0,0,0,.55);
        z-index: 2000;
    }


    .nav-submenu::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -10px;
        height: 10px;
    }

    .nav-submenu__link {
        display: block;
        padding: 10px 12px;
        border-radius: 12px;
        color: var(--text-muted);
        text-decoration: none;
        transition: var(--transition);
        white-space: nowrap;
    }

    .nav-submenu__link:hover {
        background: rgba(79,138,255,.12);
        color: var(--text-main);
    }
}

@media (max-width: 768px) {

    .nav-item.has-submenu {
        display: block;
    }

    .nav-submenu {
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s ease;
        padding-left: 10px;
        margin-top: 6px;
    }

    .nav-item.has-submenu.is-open .nav-submenu {
        max-height: 360px;
    }


    .nav-submenu__link {
        display: block;
        width: 100%;
        margin-top: 10px;
        padding: 12px 12px;
        border-radius: 14px;
        text-decoration: none;
        color: var(--text-main);
        background: rgba(255,255,255,.04);
        border: 1px solid rgba(255,255,255,.08);
        transition: var(--transition);
        font-size: 16px;
    }

    .nav-submenu__link:hover,
    .nav-submenu__link:active {
        background: rgba(79,138,255,.12);
        border-color: rgba(79,138,255,.35);
    }
}



@media (max-width: 768px) {
    .promo-window {
        width: calc(100% - 24px);
        margin: 12px auto;
        padding: 18px;
        border-radius: 16px;
        max-height: calc(100vh - 24px);
    }

    .promo-title {
        font-size: 22px;
        padding-right: 36px;
    }

    .promo-subtitle {
        margin-bottom: 14px;
        font-size: 13px;
    }

    .promo-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .promo-form,
    .promo-calc {
        padding: 16px;
    }

    .promo-form input,
    .promo-form textarea,
    .promo-calc input {
        font-size: 16px;
        padding: 14px 12px;
    }
}

@media (max-width: 420px) {
    .promo-window {
        width: calc(100% - 16px);
        padding: 16px;
        border-radius: 14px;
    }

    .promo-title {
        font-size: 20px;
    }
}

/*окно калькулятора*/