/* improvements.css - улучшения без изменения основной структуры */

/* Визуально скрытые элементы для скринридеров */
.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;
}

/* ============================================ */
/* ХЛЕБНЫЕ КРОШКИ */
/* ============================================ */

.breadcrumbs-modern {
    background: #f8f9fa;
    padding: 12px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    margin-right: 10px;
}

.breadcrumb-item:not(:last-child)::after {
    content: "›";
    margin-left: 10px;
    color: #999;
}

.breadcrumb-item a {
    color: #1e3a8a;
    text-decoration: none;
}

.breadcrumb-item:last-child {
    color: #666;
}

/* ============================================ */
/* ЗАГОЛОВОК СТРАНИЦЫ */
/* ============================================ */

.page-header-modern {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    padding: 50px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #cbd5e1;
    text-align: center;
}

.page-header-modern h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-header-modern .lead {
    font-size: 1.2rem;
    color: #334155;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .page-header-modern {
        padding: 30px 0;
    }
    .page-header-modern h1 {
        font-size: 1.8rem;
    }
    .page-header-modern .lead {
        font-size: 1rem;
    }
}

/* ============================================ */
/* СЕКЦИИ ПРОДУКТА */
/* ============================================ */

.product-section {
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-section h2 {
    color: #1e3a8a;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1cd69;
}

/* ============================================ */
/* СЕТКА ДЛЯ ДЕТАЛЕЙ ТОВАРА */
/* ============================================ */

.product-detail__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .product-detail__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ============================================ */
/* ГАЛЕРЕЯ */
/* ============================================ */

.product-detail__gallery .main-image {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
}

.product-detail__gallery .main-image img {
    max-height: 400px;
    width: auto;
    margin: 0 auto;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    padding: 5px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.thumbnail.active {
    border-color: #f1cd69;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================ */
/* ИНФОРМАЦИЯ О ТОВАРЕ */
/* ============================================ */

.product-detail__info {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 16px;
}

.product-status {
    display: inline-block;
    padding: 5px 12px;
    background: #d4edda;
    color: #155724;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.product-price {
    margin-bottom: 20px;
}

.price-label {
    font-size: 14px;
    color: #666;
}

.price-value {
    font-size: 28px;
    font-weight: 700;
    color: #1e3a8a;
}

.product-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.product-features-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

/* ============================================ */
/* СПЕЦИФИКАЦИИ */
/* ============================================ */

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.spec-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #f1cd69;
}

.spec-title {
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 10px;
}

/* ============================================ */
/* ПРЕИМУЩЕСТВА */
/* ============================================ */

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.advantage-item {
    text-align: center;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

/* ============================================ */
/* ТАБЛИЦЫ */
/* ============================================ */

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.specs-table th {
    background: #1e3a8a;
    color: white;
    padding: 12px 15px;
    text-align: left;
}

.specs-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
}

/* ============================================ */
/* ИЗОБРАЖЕНИЯ В СЕКЦИЯХ */
/* ============================================ */

.section-image {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ============================================ */
/* CTA БЛОК */
/* ============================================ */

.cta-block {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin: 40px 0;
}

.cta-block h3 {
    color: white;
    margin-bottom: 15px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

/* ============================================ */
/* КНОПКИ */
/* ============================================ */

.btn1 {
    display: inline-block;
    padding: 12px 24px;
    background: #1e40af;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn1:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-8c {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

.btn-8b {
    background: #334155;
}

.btn-8b:hover {
    background: #1e293b;
}

/* ============================================ */
/* ДОКУМЕНТЫ (НОРМАТИВНЫЕ ДОКУМЕНТЫ) */
/* ============================================ */

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #1e3a8a;
    transition: all 0.3s;
}

.doc-item:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.doc-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.doc-content {
    flex: 1;
}

.doc-title {
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 5px;
}

.doc-description {
    font-size: 14px;
    color: #666;
}

.doc-description a {
    color: #1e3a8a;
    text-decoration: none;
    border-bottom: 1px dashed #1e3a8a;
}

.doc-description a:hover {
    color: #dc2626;
    border-bottom-color: #dc2626;
}

.download-link {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: #1e3a8a !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    color: white !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: all 0.3s !important;
}

.download-link:hover {
    background: #dc2626 !important;
    color: white !important;
    transform: translateY(-2px);
}

.download-link:before {
    content: "📎";
    margin-right: 6px;
}

@media (max-width: 768px) {
    .doc-item {
        flex-direction: column;
        text-align: center;
    }
    .download-link {
        margin-top: 10px;
        display: inline-block;
    }
}

/* ============================================ */
/* КНОПКА "НАВЕРХ" */
/* ============================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #1e3a8a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #dc2626;
    transform: translateY(-3px);
}

/* ============================================ */
/* АДАПТИВНОСТЬ */
/* ============================================ */

@media (max-width: 768px) {
    .product-section {
        padding: 20px;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .cta-block {
        padding: 25px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .product-section h2 {
        font-size: 20px;
    }

    .price-value {
        font-size: 22px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }
}
/* ============================================ */
/* СОВРЕМЕННОЕ МОБИЛЬНОЕ МЕНЮ (САЙДБАР) */
/* ============================================ */

/* HAMBURGER КНОПКА С АНИМАЦИЕЙ */
.mobile-menu-btn {
    display: none !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    z-index: 1001 !important;
    transition: all 0.3s ease !important;
    margin-left: auto !important;
}

.hamburger-line {
    display: block !important;
    width: 24px !important;
    height: 2.5px !important;
    background: #1e3a8a !important;
    margin: 4px 0 !important;
    border-radius: 2px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Анимация hamburger при открытии */
.mobile-menu-btn--active .hamburger-line--1 {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn--active .hamburger-line--2 {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-btn--active .hamburger-line--3 {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ТЕМНАЯ ПОДЛОЖКА МЕНЮ */
.mobile-menu-overlay {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0) !important;
    z-index: 999 !important;
    transition: background 0.3s ease !important;
}

.mobile-menu-overlay--active {
    display: block !important;
    background: rgba(0, 0, 0, 0.5) !important;
}

/* САЙДБАР МЕНЮ */
.mobile-menu-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 80% !important;
    max-width: 320px !important;
    height: 100vh !important;
    background: #ffffff !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1) !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow-y: auto !important;
}

.mobile-menu-sidebar--open {
    transform: translateX(0) !important;
}

/* ШАПКА МЕНЮ */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    border-bottom: 2px solid #e0e0e0;
}

.mobile-menu-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e3a8a;
}

/* КНОПКА ЗАКРЫТИЯ МЕНЮ */
.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f0f4f8;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.mobile-menu-close:active {
    background: #dc2626;
}

.close-icon {
    display: block;
    position: absolute;
    width: 20px;
    height: 2px;
    background: #1e3a8a;
    border-radius: 2px;
}

.close-icon--1 {
    transform: rotate(45deg);
}

.close-icon--2 {
    transform: rotate(-45deg);
}

/* ОСНОВНОЕ СОДЕРЖИМОЕ МЕНЮ */
.mobile-nav-content {
    flex: 1;
    overflow-y: auto;
    padding-top: 10px;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-nav-link i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #1e3a8a;
    font-size: 16px;
}

.mobile-nav-link:active,
.mobile-nav-link:hover {
    background: #f5f5f5;
    padding-left: 28px;
    color: #1e3a8a;
}

/* ПОДВАЛ МЕНЮ С КОНТАКТАМИ */
.mobile-menu-footer {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;
}

.mobile-menu-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border: 1px solid #e0e0e0;
}

.mobile-contact-link:active {
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
}

.mobile-contact-link i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 14px;
    color: #1e3a8a;
}

.mobile-contact-link:active i {
    color: white;
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex !important;
    }
    
    #desktopNav,
    .site-nav {
        display: none !important;
    }
    
    .site-header__top {
        display: none !important;
    }
    
    /* Убеждаемся, что мобильное меню скрыто по умолчанию */
    .mobile-menu-sidebar {
        display: flex !important;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .mobile-menu-sidebar {
        width: 85%;
    }
    
    .mobile-nav-link {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .mobile-menu-title {
        font-size: 18px;
    }
}

@media (min-width: 993px) {
    .mobile-menu-btn,
    .mobile-menu-overlay,
    .mobile-menu-sidebar {
        display: none !important;
    }
    
    .site-nav {
        display: flex !important;
    }
}