/* ========== RESET ========== */
body, h1, h2, h3, p, ul, li, a, div, section, footer, header, nav {
    margin: 0;
    padding: 2px;
    box-sizing: border-box;
}

body {
    line-height: 1.5;
    color: #333;
}

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

/* ========== БЕГУЩАЯ СТРОКА ========== */
.top-strip {
    background: #fbbf24;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee {
    display: inline-block;
    animation: scroll 30s linear infinite;
}

.marquee span {
    margin-right: 800px;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ========== НАВИГАЦИЯ ========== */
.navbar {
    background: #fff; /* fallback */
    background: rgba(255, 255, 255, 0.35);
    border-bottom: 1px solid #ddd;
    position: -webkit-sticky;
    position: sticky;
    top: 38px;
    z-index: 1000;
}

.nav-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    height: 70px;
    gap: 40px;
}

/* Логотип */
.logo a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
}

.logo img {
    height: 50px;
}

.logo a div {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    line-height: 1.2;
}

.logo span {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.logo small {
    font-size: 12px;
    color: #34686b;
}

/* Бургер */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
}

/* Основное меню (десктоп) */
.nav-menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 500;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    border-radius: 8px;
}

/* Подсветка каталога */
.nav-menu li:first-child a {
    background: #34686b;
    color: white;
}

.nav-menu li:first-child a:hover {
    background: #2a5355;
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}

/* Остальные пункты */
.nav-menu li:not(:first-child) a:hover {
    background: #f0f7f7; /* fallback */
    background: rgba(52, 104, 107, 0.1);
    color: #34686b;
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}

/* Контакты в шапке */
.nav-contacts {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 5px;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    margin-left: auto;
}

.nav-contacts a {
    text-decoration: none;
    color: #333;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    -webkit-transition: color 0.2s;
    transition: color 0.2s;
}

.nav-contacts a:hover {
    color: #34686b;
}

.nav-contacts i {
    color: #34686b;
    width: 16px;
    text-align: center;
}

/* ========== ГЕРОЙ (HERO) ========== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

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

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* ========== КНОПКИ ========== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #34686b;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    -webkit-transition: background 0.2s;
    transition: background 0.2s;
}

.btn:hover {
    background: #2a5355;
}

.btn-outline {
    border: 2px solid white;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ========== ОБЩИЕ СТИЛИ ДЛЯ СЕКЦИЙ ========== */
.section-padding {
    padding: 60px 0;
}

.bg-light {
    background: #f8fafc;
}

.text-center {
    text-align: center;
}

/* ========== СЕТКИ ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #eee;
}

.feature-icon {
    font-size: 40px;
    color: #34686b;
    margin-bottom: 15px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.product-card img {
    width: 100%;
    height: 200px;
    -o-object-fit: cover;
    object-fit: cover;
}

.product-card h3 {
    padding: 15px;
}

.product-card .btn {
    display: block;
    margin: 15px;
    text-align: center;
}

.production-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}

.production-grid img {
    width: 100%;
    border-radius: 10px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.news-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.news-card img {
    width: 100%;
    height: 350px;
    -o-object-fit: cover;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-date {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}

.about-grid img {
    width: 100%;
    border-radius: 16px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.review-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.review-card .fa-star {
    color: #ffc107;
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
}

.faq-grid > div {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.faq-grid h3 {
    margin-bottom: 10px;
}

/* ========== ДЕТАЛЬНОЕ ОПИСАНИЕ ТОВАРОВ ========== */
.product-description {
    margin-top: 60px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 20px;
    border: 1px solid #eee;
}

.product-description h2 {
    color: #34686b;
    margin-bottom: 25px;
    font-size: 24px;
}

.product-description h3 {
    color: #333;
    margin: 30px 0 15px;
    font-size: 20px;
}

.product-description ul {
    margin: 15px 0 15px 30px;
    list-style: disc;
}

.product-description li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* ========== МОБИЛЬНОЕ МЕНЮ (ТОЛЬКО КАТАЛОГ) ========== */
.mobile-menu-catalog {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 0;
    margin: 0;
    list-style: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.mobile-menu-catalog.active {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.mobile-menu-catalog li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-catalog a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    background: white;
}

.mobile-menu-catalog a:hover {
    background: #f5f5f5;
    color: #34686b;
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s;
}

.close:hover {
    color: #34686b;
}

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

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border 0.2s;
}

.modal-content input:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: #34686b;
}

.success-message {
    text-align: center;
    padding: 20px;
    color: #34686b;
}

.success-message i {
    font-size: 48px;
    margin-bottom: 15px;
}

.success-message .btn {
    margin-top: 15px;
}


/* ========== СТИЛИ ДЛЯ ФУТЕРА ========== */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 0 30px;
    margin-top: 60px;
}

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

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.footer-col p {
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.footer-col i {
    width: 20px;
    color: #34686b;
}

.footer-map {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1e293b;
}

.footer-map iframe {
    width: 100%;
    height: 100%;
}

.review-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.btn-review {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
}

.btn-yandex {
    background: #FC3F1D;
    color: white !important;
}

.btn-yandex:hover {
    background: #e63510;
    transform: translateY(-2px);
}

.btn-google {
    background: #4285F4;
    color: white !important;
}

.btn-google:hover {
    background: #3367d6;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #1e293b;
    font-size: 14px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    background: #34686b;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.btn-small:hover {
    background: #1e4a4d;
}


/* ========== МЕДИА-ЗАПРОСЫ (АДАПТИВНОСТЬ) ========== */

@media (min-width: 769px) {
    .mobile-menu-catalog {
        display: none;
    }
    .nav-container {
        gap: 50px;
    }
    .nav-menu {
        gap: 12px;
    }
    .nav-menu a {
        padding: 8px 12px;
        font-size: 15px;
    }
    .nav-contacts {
        margin-left: 30px;
    }
}
/* ========== СТИЛИ ДЛЯ ФУТЕРА ========== */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 0 30px;
    margin-top: 60px;
}

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

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.footer-col p {
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.footer-col i {
    width: 20px;
    color: #34686b;
}

.review-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.btn-review {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
}

.btn-yandex {
    background: #FC3F1D;
    color: white !important;
}

.btn-yandex:hover {
    background: #e63510;
    transform: translateY(-2px);
}

.btn-google {
    background: #4285F4;
    color: white !important;
}

.btn-google:hover {
    background: #3367d6;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #1e293b;
    font-size: 14px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    background: #34686b;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.btn-small:hover {
    background: #1e4a4d;
}


/* ========== МОБИЛЬНАЯ ВЕРСИЯ (ЕДИНЫЙ БЛОК) ========== */
@media (max-width: 768px) {
    /* Шапка */
    .menu-toggle {
        display: flex !important;
    }
    .nav-menu {
        display: none !important;
    }
    .nav-contacts {
        display: none !important;
    }
    .nav-container {
        gap: 15px;
        flex-wrap: wrap;
    }
    .logo {
        flex: 1;
    }
    .logo span {
        font-size: 18px;
    }
    .logo small {
        font-size: 10px;
    }

    /* Герой */
    .hero h1 {
        font-size: 24px !important;
    }
    .hero p {
        font-size: 16px;
    }
    .hero .btn {
        display: inline-block;
        margin: 5px;
        padding: 10px 20px;
    }

    /* Сетки */
    .features-grid,
    .catalog-grid,
    .news-grid,
    .reviews-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .about-grid,
    .production-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        text-align: center;
    }
    .about-grid img,
    .production-grid img {
        max-width: 100%;
        height: auto;
    }
    .product-card img {
        height: auto;
    }
    .news-card img {
        height: 200px;
    }
    .review-card {
        padding: 20px !important;
    }

    /* FAQ */
    .faq-grid h3 {
        font-size: 18px;
    }
    .faq-grid p {
        font-size: 14px;
    }

    /* Кнопки */
    .btn-outline {
        margin-left: 0 !important;
        margin-top: 10px;
        display: inline-block;
    }

    /* Футер */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .footer-col {
        text-align: center;
    }
    .footer-col p {
        justify-content: center;
    }

    /* Описание товаров */
    .product-description {
        padding: 20px;
    }

    /* Модальное окно */
    .modal-content {
        margin: 20% auto;
        padding: 20px;
        width: 95%;
    }
    .modal-content input,
    .modal-content textarea {
        font-size: 14px;
    }
    .close {
        right: 15px;
        top: 10px;
    }
}





/* ========== ШРИФТЫ ========== */
@font-face {
    src: url('/fonts/Roboto-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    src: url('/fonts/Roboto-Italic-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}
body {
    font-family: 'Roboto', Arial, sans-serif;
}

/* Стили для strong (убираем жирность) */
strong {
    font-weight: normal;
    color: inherit;
}

/* Облагороженные ссылки */
a {
    color: #34686b;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}
a:hover {
    color: #1e4a4d;
    text-decoration: underline;
}

/* Галерея на странице "Производство" */
.production-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}
.production-gallery figure {
    margin: 0;
    text-align: center;
}
.production-gallery img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    transition: transform 0.3s;
    cursor: pointer;
}
.production-gallery img:hover {
    transform: scale(1.02);
}
.production-gallery figcaption {
    margin-top: 12px;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}
@media (max-width: 768px) {
    .production-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Отступы на странице "Производство" */
.production-page h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}
.production-page p {
    margin-bottom: 20px;
}
.production-page .production-gallery {
    margin: 30px 0 40px;
}
.production-page .btn {
    margin-top: 25px;
}

/* Корректировка блока "Наше производство" на главной */
.production-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
    margin-top: 30px;
}
.production-grid > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.production-grid img {
    width: 100%;
    border-radius: 16px;
    display: block;
}
@media (max-width: 768px) {
    .production-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        text-align: center;
    }
    .production-grid > div {
        text-align: center;
        align-items: center;
    }
    .production-grid img {
        margin: 0 auto;
    }
}

/* Выравнивание списка в блоке "Наше производство" на главной */
@media (max-width: 768px) {
    .production-grid ul {
        text-align: left;
        padding-left: 20px;
    }
}

/* Ссылки "Подробнее" на главной */
.more-link {
    display: inline-block;
    color: #34686b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.more-link:hover {
    color: #1e4a4d;
    text-decoration: underline;
}

/* Стили для карточки товара */
.product-card-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
.product-info {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}
/* Стили для блока характеристик (яркий вариант) */
.product-specs {
    background: #ffffff;
    border: 1px solid #e6e9ef;
    border-radius: 24px;
    padding: 28px 32px;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

.product-specs p {
    margin: 16px 0;
    font-size: 16px;
    line-height: 1.5;
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.product-specs strong {
    display: inline-block;
    min-width: 140px;
    color: #1a4a4d;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.3px;
}

/* Иконки перед каждой характеристикой (Font Awesome) */
.product-specs p::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f0a4"; /* иконка «гайка» – можно заменить */
    color: #34686b;
    width: 24px;
    font-size: 16px;
    display: inline-block;
    text-align: center;
}

/* Можно задать разные иконки для каждой строки, если нужно */
.product-specs p:nth-child(1)::before { content: "\f023"; } /* замок – ширина */
.product-specs p:nth-child(2)::before { content: "\f2f2"; } /* рулетка – длина */
.product-specs p:nth-child(3)::before { content: "\f5fc"; } /* палитра – цвет */
.product-specs p:nth-child(4)::before { content: "\f1b3"; } /* слои – тип */
.product-specs p:nth-child(5)::before { content: "\f3c5"; } /* завод – производство */

@media (max-width: 768px) {
    .product-specs {
        padding: 20px;
    }
    .product-specs strong {
        min-width: 120px;
    }
    .product-specs p {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .product-specs p::before {
        display: none; /* на мобилке убираем иконки, чтобы не загромождать */
    }
}
.product-specs p {
    margin: 12px 0;
}
.price-block {
    flex: 1;
    background: white;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.price-block h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
}
.price-table {
    margin-bottom: 25px;
}
.price-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.price-item.highlight {
    background: #f0f7f7;
    margin: 0 -10px;
    padding: 12px 10px;
    border-radius: 8px;
}
.price-item .volume {
    font-weight: 500;
}
.price-item .value {
    font-weight: 700;
    color: #34686b;
}
.quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    justify-content: center;
}
.qty-btn {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
}
.qty-btn:hover {
    background: #e0e0e0;
}
#product-quantity {
    width: 80px;
    text-align: center;
    font-size: 18px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.buy-btn {
    width: 100%;
    padding: 12px;
    font-size: 18px;
}
@media (max-width: 768px) {
    .product-info {
        flex-direction: column;
        gap: 30px;
    }
    .price-block {
        text-align: center;
    }
    .quantity-wrapper {
        justify-content: center;
    }
}

/* Стили для страницы товара */
.product-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
.product-grid {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}
.product-gallery {
    flex: 1;
}

.price-block {
    background: white;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    max-width: 500px;
    margin: 0 auto;
}
.price-block h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
}
.price-table {
    margin-bottom: 25px;
}
.price-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.price-item.highlight {
    background: #f0f7f7;
    margin: 0 -10px;
    padding: 12px 10px;
    border-radius: 8px;
}
.price-item .volume {
    font-weight: 500;
}
.price-item .value {
    font-weight: 700;
    color: #34686b;
}
.quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    justify-content: center;
}
.qty-btn {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
}
.qty-btn:hover {
    background: #e0e0e0;
}
#product-quantity {
    width: 80px;
    text-align: center;
    font-size: 18px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.buy-btn {
    width: 100%;
    padding: 12px;
    font-size: 18px;
}
@media (max-width: 768px) {
    .product-grid {
        flex-direction: column;
        gap: 30px;
    }

    .price-block h3 {
        text-align: center;
    }
    .quantity-wrapper {
        justify-content: center;
    }
}

/* Стили для карточки товара */
.product-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
.product-detail-grid {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}
.product-gallery {
    flex: 1;
}


.product-info {
    flex: 1;
}
.product-info h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

.product-specs p {
    margin: 10px 0;
}
.price-block {
    background: white;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.price-block h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
}
.price-table {
    margin-bottom: 25px;
}
.price-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.price-item.highlight {
    background: #f0f7f7;
    margin: 0 -10px;
    padding: 12px 10px;
    border-radius: 8px;
}
.price-item .volume {
    font-weight: 500;
}
.price-item .value {
    font-weight: 700;
    color: #34686b;
}
.quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    justify-content: center;
}
.qty-btn {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
}
.qty-btn:hover {
    background: #e0e0e0;
}
#product-quantity {
    width: 80px;
    text-align: center;
    font-size: 18px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.buy-btn {
    width: 100%;
    padding: 12px;
    font-size: 18px;
}
@media (max-width: 768px) {
    .product-detail-grid {
        flex-direction: column;
        gap: 30px;
    }
    .product-info h1 {
        font-size: 24px;
        text-align: center;
    }
    .price-block h3 {
        text-align: center;
    }
    .quantity-wrapper {
        justify-content: center;
    }
}

/* Стили для карточки товара (обновлённые) */
.product-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
.product-title {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}
.product-detail-grid {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}
.product-gallery {
    flex: 1;
}
.product-gallery img {
  width: 100%;
  border-radius: 16px;
  margin-top: 95px;
}
.product-info {
    flex: 1;
}
.product-description-text {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #444;
}
.product-description-text p {
    margin-bottom: 15px;
}
.product-specs {
    background: #f9f9f9;
    padding: 41px;
    border-radius: 16px;
    margin-bottom: 0px;
}
.product-specs p {
    margin: 10px 0;
}
.price-block {
    background: white;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.price-block h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
}
.price-table {
    margin-bottom: 25px;
}
.price-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.price-item.highlight {
    background: #f0f7f7;
    margin: 0 -10px;
    padding: 12px 10px;
    border-radius: 8px;
}
.price-item .volume {
    font-weight: 500;
}
.price-item .value {
    font-weight: 700;
    color: #34686b;
}
.quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    justify-content: center;
}
.qty-btn {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
}
.qty-btn:hover {
    background: #e0e0e0;
}
#product-quantity {
    width: 80px;
    text-align: center;
    font-size: 18px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.buy-btn {
    width: 100%;
    padding: 12px;
    font-size: 18px;
}
@media (max-width: 768px) {
    .product-title {
        font-size: 24px;
        text-align: center;
    }
    .product-detail-grid {
        flex-direction: column;
        gap: 30px;
    }
    .product-description-text {
        text-align: center;
    }
    .product-specs {
        text-align: center;
    }
    .price-block h3 {
        text-align: center;
    }
    .quantity-wrapper {
        justify-content: center;
    }
}

/* Описание товара */
.product-description-text {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.product-description-text p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Исправление расположения блоков в карточке товара */
.product-info {
    display: block !important;
}
.product-specs, .price-block {
    display: block !important;
    width: 100%;
}

/* Принудительная адаптация карточки товара на мобилке */
@media (max-width: 768px) {
    body .product-detail-grid {
        flex-direction: column !important;
        gap: 0px !important;
    }
    body .product-gallery img {
        width: 100% !important;
        margin-top: 0 !important;
    }
    body .product-info h1 {
        font-size: 24px !important;
        text-align: center !important;
        margin-top: 0 !important;
    }
    body .product-specs {
        padding: 0px !important;
        margin-bottom: 0px !important;
    }
    body .product-specs p {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }
    body .product-specs strong {
        min-width: auto !important;
    }
    body .product-specs p::before {
        display: none !important;
    }
    body .price-block {
        padding: 1px !important;
    }
    body .price-block h3 {
        font-size: 18px !important;
    }
    body .price-item {
        flex-wrap: wrap !important;
        justify-content: space-between !important;
    }
    body .quantity-wrapper {
        gap: 12px !important;
    }
    body .qty-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 18px !important;
    }
    body #product-quantity {
        width: 70px !important;
        font-size: 16px !important;
    }
    body .buy-btn {
        font-size: 16px !important;
        padding: 10px !important;
    }
}
* Мобильная версия: блок цен на всю ширину */
@media (max-width: 768px) {
    .price-block {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }
}

/* Общие стили для заголовков */
h1 {
    font-size: 25px;
    margin-top: 0;
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.2;
}
h2 {
    font-size: 20px;
    margin-top: 1em;
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.3;
}
h3 {
    font-size: 18px;
    margin-top: 0.8em;
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.4;
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ КАРТОЧЕК ТОВАРОВ ========== */
@media (max-width: 768px) {
    /* Основной контейнер */
    .product-detail {
        padding: 20px 15px;
    }

    /* Заголовок */
    .product-detail h1 {
        font-size: 22px;
        text-align: center;
        margin-bottom: 20px;
    }

    /* Сетка: картинка сверху, информация снизу */
    .product-detail-grid {
        flex-direction: column !important;
        gap: 20px !important;
    }

    /* Картинка */
    .product-gallery img {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }

    /* Блок характеристик */
    .product-specs {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }

    .product-specs p {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
        font-size: 14px;
    }

    .product-specs strong {
        min-width: auto !important;
    }

    /* Иконки на мобилке не показываем */
    .product-specs p::before {
        display: none !important;
    }

    /* Блок цен */
    .price-block {
        padding: 15px !important;
        margin: 0 auto !important;
        width: 100% !important;
    }

    .price-block h3 {
        font-size: 18px;
        text-align: center;
    }

    /* Таблица цен */
    .price-item {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 5px;
        font-size: 14px;
    }

    /* Переключатель цены */
    .price-switch {
        justify-content: center;
        margin-bottom: 15px;
    }

    .price-unit {
        padding: 6px 12px;
        font-size: 14px;
    }

    /* Блок количества */
    .quantity-wrapper {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .qty-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    #product-quantity {
        width: 70px;
        font-size: 16px;
        text-align: center;
    }

    .quantity-unit {
        font-size: 14px;
        margin-left: 5px;
    }

    /* Кнопка оформления */
    .buy-btn {
        width: 100%;
        font-size: 16px;
        padding: 12px;
        margin-top: 10px;
    }

    /* Описание товара */
    .product-description-full {
        padding: 0 10px;
    }

    .product-description-full h2 {
        font-size: 18px;
        text-align: center;
    }

    .product-description-full p {
        font-size: 14px;
        text-align: justify;
    }
}
