:root {
    --primary-color: #1a4b5f;
    --secondary-color: #2a9d8f;
    --accent-color: #8ecae6;
    --light-color: #f8f9fa;
    --background-color: #ffffff;
    --text-color: #333;
    --border-color: #e0e0e0;
    --border-radius: 27px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

/* Header Top - Темный фон как в старом шаблоне */
.header-top {
    background-color: #2c3e50;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

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

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-info a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--accent-color);
}

.admin-login a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.admin-login a:hover {
    color: var(--accent-color);
}

/* Header Main - Светлый фон с акцентами */
.header-main {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-text span {
    font-size: 14px;
    color: var(--secondary-color);
}




/* Корзина и поиск - ИСПРАВЛЕННАЯ ВЕРСИЯ */
.search-cart {
    display: flex;
    align-items: stretch;
    gap: 15px;
    flex-shrink: 0;
    margin-left: auto;
    height: 44px;
}

.search-box-i {
    display: flex;
    background: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    align-items: stretch;
    height: 100%;
}

.search-box-i form {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.search-box-i input {
    border: none;
    padding: 12px 15px;
    outline: none;
    width: 250px;
    background: transparent;
    height: 100%;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 14px;
}

.search-box-i button {
    border: none;
    background: var(--secondary-color);
    color: white;
    padding: 0 15px;
    cursor: pointer;
    transition: var(--transition);
    height: 100%;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    font-size: 14px;
}

.search-box-i button:hover {
    background: var(--primary-color);
}

.ask-question-btn {
    background: var(--secondary-color);
    color: white;
    padding: 0 10px;
    border-radius: var(--border-radius);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0px;
    transition: all 0.3s ease;
    height: 44px;
    white-space: nowrap;
    font-weight: 500;
    justify-content: center;
    font-size: 12px;
    border: 2px solid transparent;
    flex-shrink: 0;
}





.cart-btn {
    background: var(--secondary-color);
    color: white;
    padding: 0 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    height: 100%;
    white-space: nowrap;
    font-weight: 500;
    min-width: 80px;
    justify-content: center;
    font-size: 14px;
}

.cart-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}






/* Navigation - Исправлено выравнивание */
.navbar {
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: flex-start; /* Изменено с space-between на flex-start */
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    position: relative;
    margin-right: auto; /* Добавлено для выравнивания */
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 15px 16px; /* Немного уменьшил отступы */
    display: block;
    font-weight: 500;
    transition: var(--transition);
    font-size: 15px; /* Немного уменьшил размер шрифта */
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color);
    background-color: var(--light-color);
}

.dropdown-menu {
    position: absolute;
    background-color: white;
    width: 220px;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
    border: 1px solid var(--border-color);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    list-style: none;
}

.dropdown-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    transition: var(--transition);
}

.dropdown-link:hover, .dropdown-link.active {
    background-color: var(--light-color);
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    margin-left: 15px;
}

/* Hero Section - Updated Styles */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.hero.gradient-bg {
    background: linear-gradient(135deg, #2a9d8f, #1a4b5f);
    color: white;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Blur effects */
.hero-background.blur-2 {
    filter: blur(2px);
    transform: scale(1.02);
}

.hero-background.blur-4 {
    filter: blur(4px);
    transform: scale(1.04);
}

.hero-background.blur-6 {
    filter: blur(6px);
    transform: scale(1.06);
}

.hero-background.blur-8 {
    filter: blur(8px);
    transform: scale(1.08);
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #2d2d2d;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Section HTML Content Styles */
.hero-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #2d2d2d;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.hero-description h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin: 25px 0 15px 0;
    font-weight: 700;
}

.hero-description h3 {
    font-size: 22px;
    color: var(--secondary-color);
    margin: 20px 0 12px 0;
    font-weight: 600;
}

.hero-description p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.hero-description ul,
.hero-description ol {
    margin: 15px 0 15px 25px;
    padding-left: 10px;
}

.hero-description li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.hero-description strong {
    color: var(--primary-color);
    font-weight: 700;
}

.hero-description em {
    font-style: italic;
    color: var(--secondary-color);
}

.hero-description u {
    text-decoration: underline;
    color: #e76f51;
}

.hero-description a {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.hero-description a:hover {
    color: var(--primary-color);
    text-decoration: none;
}


.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    border: none;
}

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

.empty-cart .btn {
    margin-top: 40px;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

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

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

.btn-small {
    padding: 8px 15px;
    font-size: 14px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-color);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(42, 157, 143, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(26, 75, 95, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
}

.page-header p {
    font-size: 18px;
    color: #666;
    position: relative;
    z-index: 2;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 32px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 10px auto;
    border-radius: 2px;
}

.section-footer {
    text-align: center;
    margin-top: 30px;
}



/* News Section - Improved Styles */
.news-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 15px;
}

.news-date {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-preview {
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-actions {
    margin-top: auto;
    padding-top: 15px;
    border-top: 2px solid var(--light-color);
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    justify-content: center;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.news-read-more:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 75, 95, 0.2);
}

.news-read-more i {
    transition: transform 0.3s ease;
}

.news-read-more:hover i {
    transform: translateX(3px);
}

/* Responsive News */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .news-image {
        height: 180px;
    }
    
    .news-content {
        padding: 15px;
    }
    
    .news-title {
        font-size: 18px;
    }
    
    .news-read-more {
        padding: 10px 20px;
        font-size: 13px;
    }
}


/* ===== UPDATED PHARMACIES SLIDER CONTROLS ===== */
.slider-controls-with-button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    gap: 30px;
}

.slider-controls-with-button .slider-arrow {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

.slider-controls-with-button .slider-arrow:hover {
    background: var(--secondary-color);
}

.all-pharmacies-btn-wrapper {
    margin: 0 30px;
}

/* Скрываем старый блок section-footer в секции аптек */
.pharmacies-section .section-footer {
    display: none;
}

/* Адаптивность для нового блока управления */
@media (max-width: 768px) {
    .slider-controls-with-button {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .all-pharmacies-btn-wrapper {
        margin: 0;
        order: -1;
        width: 100%;
        text-align: center;
    }
    
    .slider-controls-with-button .slider-arrow {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .slider-controls-with-button {
        gap: 15px;
    }
    
    .slider-controls-with-button .slider-arrow {
        width: 40px;
        height: 40px;
    }
}

/* Стили для точек навигации (если нужны) */
.slick-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    list-style: none;
}

.slick-dots li {
    margin: 0 5px;
}

.slick-dots button {
    font-size: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
}

.slick-dots .slick-active button {
    background: #1a4b5f;
}

/* Адаптивность для слайдера */
@media (max-width: 768px) {
    .slider-container {
        margin: 0 -10px;
    }
    
    .pharmacy-slide {
        padding: 0 10px;
    }
}

/* Pharmacies Section */
.pharmacies-section {
    padding: 60px 0;
    background-color: var(--light-color);
}

.pharmacies-slider {
    position: relative;
}

.slider-container {
    margin: 0 -15px;
}

.pharmacy-slide {
    padding: 0 15px;
    height: auto;
}

.slick-list {
    overflow: hidden;
}

.slick-track {
    display: flex;
    align-items: stretch;
}

.pharmacy-slide .pharmacy-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 450px; /* Фиксированная высота для всех карточек */
    display: flex;
    flex-direction: column;
}

.pharmacy-slide:hover .pharmacy-card {
    transform: translateY(-5px);
}

.pharmacy-image {
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.pharmacy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pharmacy-slide:hover .pharmacy-image img {
    transform: scale(1.05);
}

.pharmacy-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Скрываем всё, что не помещается */
}

.pharmacy-details .pharmacy-info {
    padding: 0px;

}

.pharmacy-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.3;
}

.pharmacy-address {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Ограничиваем адрес 2 строками */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pharmacy-phone {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    color: var(--secondary-color);
    flex-shrink: 0;
    min-height: 20px; /* Фиксированная высота для телефона */
}

.pharmacy-schedule {
    margin-bottom: 15px;
    flex-shrink: 0;
}

.pharmacy-schedule p {
    margin-bottom: 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Ограничиваем график работы 2 строками */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pharmacy-info .btn {
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: auto;
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 15px;
}

.slider-arrow {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 10;
}

.slider-arrow:hover {
    background: var(--secondary-color);
}

/* Адаптивность для слайдера */
@media (max-width: 1024px) {
    .slider-container {
        margin: 0 -10px;
    }
    
    .pharmacy-slide {
        padding: 0 10px;
    }
    
    .pharmacy-slide .pharmacy-card {
        height: 460px;
    }
}

@media (max-width: 768px) {
    .pharmacy-image {
        height: 160px;
    }
    
    .pharmacy-info {
        padding: 15px;
    }
    
    .pharmacy-slide .pharmacy-card {
        height: 440px;
    }
}

@media (max-width: 480px) {
    .pharmacy-image {
        height: 140px;
    }
    
    .pharmacy-info h3 {
        font-size: 16px;
    }
    
    .pharmacy-slide .pharmacy-card {
        height: 420px;
    }
    
    .pharmacy-address,
    .pharmacy-schedule p {
        -webkit-line-clamp: 1; /* На мобильных ограничиваем 1 строкой */
    }
}




/* Staff Section */
.staff-section {
    padding: 60px 0;
}

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

.staff-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.staff-card:hover {
    transform: translateY(-5px);
}

.staff-image {
    height: 250px;
    overflow: hidden;
}

.staff-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.staff-card:hover .staff-image img {
    transform: scale(1.05);
}

.staff-info {
    padding: 20px;
}

.staff-name {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.staff-position {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.staff-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #666;
}

/* Products Section */
.products-section {
    padding: 60px 0;
    background-color: var(--light-color);
}


/* Products Grid - Адаптивные стили с настраиваемыми колонками */
.products-grid {
    display: grid;
    gap: 25px;
    margin-top: 20px;
}

/* УДАЛИТЕ этот блок - он переопределяет наши классы */
/*
.products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
*/

/* Классы для разного количества колонок - ДОБАВЬТЕ !important */
.products-columns-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}

.products-columns-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

.products-columns-5 {
    grid-template-columns: repeat(5, 1fr) !important;
}

.products-columns-6 {
    grid-template-columns: repeat(6, 1fr) !important;
}

/* Адаптивность для разных количеств колонок */
@media (max-width: 1200px) {
    .products-columns-6 {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    .products-columns-5 {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .products-columns-6,
    .products-columns-5,
    .products-columns-4 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .products-columns-6,
    .products-columns-5,
    .products-columns-4,
    .products-columns-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr !important;
    }
}


/*
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.product-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}
*/
.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.wishlist-btn:hover {
    color: #e74c3c;
}

.product-info {
    padding: 15px;
    text-align: center;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.product-price {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.add-to-cart-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
    
}

.add-to-cart-btn:hover {
    background-color: var(--secondary-color);
}

/* Footer - Темный фон как в старом шаблоне */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: white;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.footer-logo a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.footer-logo svg {
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #ccc;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Стили для формы подписки в футере */

.subscribe-form {
    display: flex;
    margin-top: 10px;
}

.subscribe-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.subscribe-form input::placeholder {
    color: #ccc;
}

.subscribe-form button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.subscribe-form button:hover {
    background: var(--primary-color);
}





.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer-bottom-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 1200px) {
    .nav-link {
        padding: 15px 14px;
        font-size: 14px;
    }
}

@media (max-width: 1100px) {
    .nav-link {
        padding: 15px 12px;
        font-size: 13.5px;
    }
}

@media (max-width: 992px) {
    .pharmacy-slide {
        flex: 0 0 calc(50% - 20px);
    }
    
    .search-box input {
        width: 200px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        padding: 80px 20px 20px;
        transition: 0.5s;
        z-index: 999;
        box-shadow: var(--box-shadow);
        flex-direction: column;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        box-shadow: none;
        display: none;
        margin-left: 20px;
        border: none;
    }
    
    .nav-item:hover .dropdown-menu {
        display: block;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-link {
        padding: 12px 15px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .header-top-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .header-main-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .pharmacy-slide {
        flex: 0 0 100%;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .contact-info {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .news-grid, .staff-grid, .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo-text h1 {
        font-size: 24px;
    }
}

/* Все аптеки */ 
 .pharmacies-accordion {
            margin-top: 30px;
        }
        
        .accordion-item {
            background: white;
            border-radius: var(--border-radius);
            margin-bottom: 15px;
            box-shadow: var(--box-shadow);
            border: 1px solid var(--border-color);
            overflow: hidden;
        }
        
        .accordion-header {
            padding: 20px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: var(--light-color);
            transition: var(--transition);
        }
        
        .accordion-header:hover {
            background-color: #e9ecef;
        }
        
        .accordion-header h3 {
            margin: 0;
            color: var(--primary-color);
            font-size: 18px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .accordion-icon {
            transition: transform 0.3s ease;
        }
        
        .accordion-item.active .accordion-icon {
            transform: rotate(180deg);
        }
        
        .accordion-content {
            padding: 0;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }
        
        .accordion-item.active .accordion-content {
            max-height: 1000px;
        }
        
        .pharmacy-details {
            padding: 20px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }
        
        .pharmacy-info {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .pharmacy-map {
            height: 300px;
            border-radius: var(--border-radius);
            overflow: hidden;
        }
        
        .pharmacy-map iframe {
            width: 100%;
            height: 100%;
            border: none;
        }
        
        .info-item {
            display: flex;
            gap: 10px;
        }
        
        .info-item i {
            color: var(--secondary-color);
            margin-top: 3px;
        }
        
        .info-content {
            flex: 1;
        }
        
        .info-content h4 {
            margin: 0 0 5px 0;
            color: var(--primary-color);
        }
        
        .info-content p {
            margin: 0;
            color: #666;
        }
        
        .search-box {
            max-width: 500px;
            margin: 0 auto 30px;
            display: flex;
            background: white;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--box-shadow);
            border: 1px solid var(--border-color);
        }
        
        .search-box input {
            flex: 1;
            border: none;
            padding: 12px 15px;
            outline: none;
        }
        
        .search-box button {
            border: none;
            background: var(--secondary-color);
            color: white;
            padding: 12px 20px;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .search-box button:hover {
            background: var(--primary-color);
        }
        
        @media (max-width: 768px) {
            .pharmacy-details {
                grid-template-columns: 1fr;
            }
            
            .pharmacy-map {
                height: 250px;
            }
        }

        /* Стили для слайдера аптек */
        .pharmacies-slider {
            position: relative;
        }

        .slider-container {
            margin: 0 -15px;
        }

        .pharmacy-slide {
            padding: 0 15px;
        }

        .slick-list {
            overflow: hidden;
        }

        .slick-track {
            display: flex;
        }

        .slider-controls {
            display: flex;
            justify-content: center;
            margin-top: 20px;
        }

        .slider-arrow {
            background: #1a4b5f;
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            margin: 0 10px;
            transition: background-color 0.3s;
        }

        .slider-arrow:hover {
            background: #14394a;
        }

        /* Адаптивность для слайдера */
        @media (max-width: 768px) {
            .slider-container {
                margin: 0 -10px;
            }
            
            .pharmacy-slide {
                padding: 0 10px;
            }
        }


  /* Products Page - Улучшенные стили */
/* Updated Search & Filter Styles */
.products-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 80vh;
}

.products-filters {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.filter-form {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    flex: 1;
    align-items: flex-end;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-family: 'Inter', sans-serif;
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.category-select-wrapper {
    position: relative;
    min-width: 250px;
}

.category-select {
    width: 100%;
    padding: 15px 60px 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    font-size: 16px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.category-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

.select-arrow {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.category-select:focus + .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.category-reset-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #6c757d;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0.7;
}

.category-reset-btn:hover {
    background: #dc3545;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.filter-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-btn {
    background: linear-gradient(135deg, var(--secondary-color), #239f8a);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(42, 157, 143, 0.3);
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), #1a4b5f);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 75, 95, 0.4);
}

/* Style the dropdown options */
.category-select option {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 10px;
    background: white;
    color: var(--text-color);
}

.category-select option:hover {
    background: var(--secondary-color);
    color: white;
}

/* Custom scrollbar for select */
.category-select::-webkit-scrollbar {
    width: 8px;
}

.category-select::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.category-select::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.category-select::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Products Grid - Улучшенные стили */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.popular-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    color: #6c757d;
}

.wishlist-btn:hover {
    background: white;
    color: #e74c3c;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-short-desc {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.product-price {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 20px;
    margin: 5px 0;
}

.product-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.add-to-cart-btn {
    flex: 2;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 5px 5px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    
}

.add-to-cart-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 75, 95, 0.3);
}

.details-btn {
    flex: 1;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 12px 15px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    height: 41px;
    
}

.details-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Product Detail Page - Улучшенные стили */
.product-detail-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 80vh;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.product-image-large {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.product-image-large img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-image-large:hover img {
    transform: scale(1.05);
}

.product-info-large {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-info-large h2 {
    color: var(--primary-color);
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
}

.product-short-desc {
    color: #6c757d;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

.product-price-large {
    font-size: 36px;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 10px 0;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

.stock-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.in-stock {
    background: #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

.out-of-stock {
    background: #dc3545;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
}

.product-actions-large {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.add-to-cart-btn-large {
    flex: 2;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-to-cart-btn-large:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 75, 95, 0.3);
}

.add-to-cart-btn-large:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.wishlist-btn-large {
    flex: 1;
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    width: 60px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.wishlist-btn-large:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-description {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid var(--light-color);
}

.product-description h3 {
    color: var(--primary-color);
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 700;
}

.product-description p {
    line-height: 1.8;
    color: #555;
    font-size: 16px;
    margin: 0;
}

/* Стили для кнопки "В корзину" на главной странице */
.products-section .add-to-cart-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
    height: 41px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.products-section .add-to-cart-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 157, 143, 0.3);
}

.products-section .add-to-cart-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.products-section .add-to-cart-btn:hover i {
    transform: scale(1.1);
}

/* No Products State */
.no-products {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
}

.no-products p {
    font-size: 20px;
    margin: 0 0 20px 0;
}

.no-products .btn {
    margin-top: 20px;
}




/* Современные хлебные крошки - ИСПРАВЛЕННЫЕ */
.breadcrumb-modern {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

/* Гарантируем кликабельность ссылок */
.breadcrumb-link-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    background: white;
    border: 1px solid transparent;
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 11;
}



.breadcrumb-link-modern:hover {
    background-color: var(--secondary-color);
    color: white !important;
    box-shadow: 0 4px 12px rgba(42, 157, 143, 0.2);
    transform: translateY(-2px);
    border-color: var(--secondary-color);
}

.breadcrumb-link-modern:active {
    transform: translateY(0);
}



.breadcrumb-separator {
    color: #adb5bd;
    margin: 0 10px;
    font-size: 12px;
    user-select: none;
}

.breadcrumb-current-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    padding: 8px 12px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border-left: 3px solid var(--secondary-color);
    user-select: none;
}

.breadcrumb-current-modern i {
    color: var(--secondary-color);
}

/* Убираем ненужный сепаратор | в начале */
.breadcrumb-modern .breadcrumb-separator:first-child {
    display: none;
}

/* Заголовок товара */
.product-detail-title {
    margin: 0 0 30px 0;
    font-size: 32px;
    color: var(--primary-color);
    line-height: 1.3;
    font-weight: 700;
    padding-top: 20px;
    text-align: center;
}

/* Адаптивность современного варианта */
@media (max-width: 768px) {
    .breadcrumb-modern {
        padding: 12px 15px;
        border-radius: 10px;
    }
    
    .breadcrumb-link-modern {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .breadcrumb-current-modern {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .product-detail-title {
        font-size: 26px;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .breadcrumb-item {
        width: 100%;
    }
    
    .breadcrumb-link-modern,
    .breadcrumb-current-modern {
        width: 100%;
        justify-content: flex-start;
    }
    
    .breadcrumb-separator {
        display: none;
    }
    
    .product-detail-title {
        font-size: 22px;
        text-align: left;
    }
}

.breadcrumb-link-modern i {
    font-size: 14px;
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: #adb5bd;
    margin: 0 10px;
    font-size: 12px;
}




/* Современные хлебные крошки 
.breadcrumb-modern {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}



.breadcrumb-link-modern i {
    font-size: 14px;
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: #adb5bd;
    margin: 0 10px;
    font-size: 12px;
}

.breadcrumb-current-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    padding: 8px 12px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.breadcrumb-current-modern i {
    color: var(--secondary-color);
}

/* Заголовок страницы современный 
.page-header-actions-modern {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.page-title-wrapper {
    flex: 1;
}

.page-title-wrapper h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: var(--primary-color);
    line-height: 1.3;
}

.product-meta-header {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.product-price-header {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    background: rgba(42, 157, 143, 0.1);
    padding: 5px 15px;
    border-radius: 8px;
}

.popular-badge-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #333;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.3);
}

.popular-badge-header i {
    color: #333;
    font-size: 12px;
}

/* Адаптивность современного варианта 
@media (max-width: 768px) {
    .breadcrumb-modern {
        padding: 10px 15px;
        border-radius: 8px;
    }
    
    .breadcrumb-link-modern {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .breadcrumb-current-modern {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .page-header-actions-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .page-title-wrapper h1 {
        font-size: 24px;
    }
    
    .product-price-header {
        font-size: 20px;
    }
    
    .btn-back-modern {
        align-self: flex-start;
    }
}






/* Responsive Design */
@media (max-width: 1024px) {
    .product-detail {
        gap: 30px;
        padding: 30px;
    }
    
    .product-image-large img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px;
    }
    
    .product-image-large img {
        height: 350px;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .filter-group {
        flex-direction: column;
        width: 100%;
    }
    
    .search-input-wrapper,
    .category-select-wrapper {
        min-width: 100%;
    }
    
    .filter-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .add-to-cart-btn,
    .details-btn {
        width: 100%;
    }
    
    .product-info-large h2 {
        font-size: 26px;
    }
    
    .product-price-large {
        font-size: 28px;
    }
    
    .product-actions-large {
        flex-direction: column;
    }
    
    .wishlist-btn-large {
        width: 100%;
        height: 50px;
    }
}

/* Кликабельные карточки товаров */
.product-card {
    position: relative;
    cursor: pointer;
}

.product-card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    text-decoration: none;
}

.product-actions {
    position: relative;
    z-index: 2;
}

/* Отключаем кликабельность для действий внутри карточки */
.product-actions * {
    pointer-events: auto;
}

/* Эффект при наведении на карточку */
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Анимация для кликабельных элементов */
.product-card {
    transition: all 0.3s ease;
}

/* Секция Новости - горизонтально новый дизайн */
/* ===== NEWS SECTION - HOME PAGE STYLE ===== */
.news-section-home {
    padding: 60px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), 
                var(--news-section-bg, url('../images/news-bg-default.jpg')) center/cover no-repeat;
    position: relative;
}

.news-section-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.9);
    z-index: 1;
}

.news-section-home .container {
    position: relative;
    z-index: 2;
}

.news-list-home {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-item-home {
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.news-item-content-home {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.news-image-home {
    width: 150px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.news-image-home img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item-home:hover .news-image-home img {
    transform: scale(1.05);
}

.news-date-home {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.news-text-content-home {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-title-home {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.3;
}

.news-preview-home {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}

.news-actions-home {
    text-align: right;
}

.news-actions-home .btn-small {
    padding: 6px 15px;
    font-size: 13px;
}

/* Responsive News Home */
@media (max-width: 768px) {
    .news-item-content-home {
        flex-direction: column;
        gap: 15px;
    }
    
    .news-image-home {
        width: 100%;
        height: 180px;
    }
    
    .news-actions-home {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .news-section-home {
        padding: 40px 0;
    }
    
    .news-title-home {
        font-size: 16px;
    }
    
    .news-preview-home {
        font-size: 13px;
    }
}

/* Логотип - LOGO STYLES */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo-img {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo-image {
    max-height: 60px;
    max-width: 200px;
    height: auto;
    width: auto;
    object-fit: contain;
}

.logo-svg {
    flex-shrink: 0;
}

.logo-text {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text h1 {
    margin: 0;
    font-size: 28px;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-text span {
    font-size: 14px;
    color: var(--secondary-color);
    line-height: 1.2;
}

/* Header main content - исправленное выравнивание 
.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.search-cart {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    margin-left: auto;
}

.search-box {
    min-width: 300px;
    flex-shrink: 0; 
} */




/* Адаптивность для логотипа */
@media (max-width: 992px) {
    .header-main-content {
        flex-wrap: wrap;
    }
    
    .logo {
        order: 1;
    }
    
    .search-cart {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        margin-left: 0;
    }
    
    .search-box {
        min-width: auto;
        flex: 1;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .logo-text h1 {
        font-size: 24px;
    }
    
    .logo-text span {
        font-size: 12px;
    }
    
    .logo-image {
        max-height: 50px;
        max-width: 150px;
    }
    
    .search-box {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo {
        gap: 10px;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    .logo-image {
        max-height: 40px;
        max-width: 120px;
    }
}


/* Выравнивание для поиска и корзины */
.search-box,
.search-box form,
.search-box input,
.search-box button,
.cart-btn {
    box-sizing: border-box;
}

/* КОРЗИНА - Cart Styles */
.cart-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 70vh;
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.cart-items {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-color);
}

.cart-header h2 {
    color: var(--primary-color);
    margin: 0;
}

.items-count {
    color: #6c757d;
    font-weight: 500;
}

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

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

.item-select {
    display: flex;
    align-items: center;
}

.item-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 16px;
}

.item-desc {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

.item-price {
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 5px;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.quantity-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.quantity-input {
    width: 60px;
    height: 35px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.item-total {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
    min-width: 100px;
    text-align: right;
}

.remove-btn {
    color: #dc3545;
    text-decoration: none;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #dc3545;
    color: white;
}

/* Cart Sidebar */
.cart-sidebar {
    position: sticky;
    top: 20px;
}

.order-summary {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.order-summary h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: none;
}

.summary-divider {
    height: 2px;
    background: var(--secondary-color);
    margin: 20px 0;
}

.btn-order {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-update {
    width: 100%;
}

.continue-shopping {
    text-align: center;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.continue-shopping:hover {
    color: var(--primary-color);
}


/* Контейнер для кнопок на десктопе */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* Скрываем текст на кнопках на десктопе */
.ask-question-btn .button-text,
.cart-btn .button-text {
    display: none;
}




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

.confirmation-icon {
    font-size: 64px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.order-confirmation h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.order-confirmation p {
    color: #6c757d;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

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

.selected-items-preview {
    background: var(--light-color);
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
    text-align: left;
}

.selected-items-preview h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.preview-item-info {
    flex: 1;
}

.preview-item-name {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}

.preview-item-qty {
    color: #6c757d;
    font-size: 14px;
}

.preview-item-total {
    font-weight: 600;
    color: var(--secondary-color);
}

.preview-total {
    text-align: right;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--border-color);
    color: var(--primary-color);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-submit-order {
    flex: 2;
}

/* Order Success Styles */
.order-success-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 70vh;
}

.success-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.success-icon {
    font-size: 80px;
    color: #28a745;
    margin-bottom: 30px;
}

.success-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.order-number {
    font-size: 18px;
    margin-bottom: 25px;
    padding: 15px;
    background: var(--light-color);
    border-radius: 10px;
}

.success-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
    padding: 20px;
    background: var(--light-color);
    border-radius: 10px;
}

.info-item i {
    font-size: 24px;
    color: var(--secondary-color);
    margin-top: 5px;
}

.info-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 992px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: auto 80px 1fr;
        gap: 15px;
        padding: 15px 0;
    }
    
    .item-quantity,
    .item-total,
    .item-actions {
        grid-column: 1 / -1;
        justify-self: start;
        margin-top: 10px;
    }
    
    .success-info {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .cart-items,
    .order-summary {
        padding: 20px;
    }
    
    .success-content {
        padding: 30px 20px;
    }
    
    .success-actions {
        flex-direction: column;
    }
}

/* Уведомления - Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #28a745;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 10000;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left-color: #28a745;
}

.notification-error {
    border-left-color: #dc3545;
}

.notification-info {
    border-left-color: #17a2b8;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    font-size: 18px;
}

.notification-success .notification-content i {
    color: #28a745;
}

.notification-error .notification-content i {
    color: #dc3545;
}

.notification-info .notification-content i {
    color: #17a2b8;
}



/* Стили для кнопки очистки корзины */
.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    display: inline-block;
    width: auto;
    min-width: 160px;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-danger:active {
    transform: translateY(0);
}

/* Контейнер для кнопок в корзине */
.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-top: 20px;
}

/* Ссылка "Продолжить покупки" */
.continue-shopping {
    text-align: center;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 10px 15px;
}

.continue-shopping:hover {
    color: var(--primary-color);
}

/* Адаптивность для кнопок в корзине */
@media (max-width: 768px) {
    .cart-actions {
        flex-direction: column;
    }
    
    .btn-danger {
        width: 100%;
        max-width: 200px;
    }
    
    .continue-shopping {
        width: 100%;
        text-align: center;
    }
}


/* Стили для заголовка корзины */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-color);
}

.cart-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-header-left h2 {
    color: var(--primary-color);
    margin: 0;
}

.items-count {
    color: #6c757d;
    font-weight: 500;
    background: var(--light-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
}

/* Стили для кнопки очистки корзины (иконка) */
.btn-clear-cart-icon {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #6c757d;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.btn-clear-cart-icon:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
    transform: scale(1.1);
}

.btn-clear-cart-icon:active {
    transform: scale(1);
}

/* Подсказка при наведении */
.btn-clear-cart-icon::after {
    content: 'Очистить корзину';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.btn-clear-cart-icon::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.btn-clear-cart-icon:hover::after,
.btn-clear-cart-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Анимация для иконки корзины */
.btn-clear-cart-icon i {
    transition: transform 0.3s ease;
}

.btn-clear-cart-icon:hover i {
    transform: scale(1.1) rotate(-5deg);
}

/* Контейнер для кнопок в корзине (обновленный) */
.cart-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Ссылка "Продолжить покупки" */
.continue-shopping {
    text-align: center;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
}

.continue-shopping:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--light-color);
}

/* Адаптивность */
@media (max-width: 768px) {
    .cart-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .cart-header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cart-header-right {
        align-self: flex-end;
    }
    
    .cart-actions {
        justify-content: stretch;
    }
    
    .continue-shopping {
        width: 100%;
        justify-content: center;
    }
}


/* Невалидное поле - форма заказа */
.form-group input:invalid {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.1);
}

.form-group input:valid {
    border-color: #2a9d8f;
}

.phone-hint {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

/* Стили для блока копирайта автора - Andrej YouRich*/
.footer-copyright {
    background: rgba(245, 245, 220, 0.15); /* Светло-бежевый фон с прозрачностью */
    padding: 10px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin: 20px auto 0 auto;
    text-align: center;
    backdrop-filter: blur(5px);
    width: fit-content;
    max-width: 300px;
}

.copyright-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.copyright-content p {
    margin: 0;
    font-size: 13px;
    color: #e8e8e8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.author-link {
    color: #f8f9fa;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 3px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: 5px;
}

.author-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    .footer-copyright {
        padding: 8px 16px;
        margin-top: 15px;
        max-width: 280px;
    }
    
    .copyright-content p {
        font-size: 12px;
    }
    
    .author-link {
        padding: 2px 10px;
        font-size: 12px;
        margin-left: 4px;
    }
}

@media (max-width: 480px) {
    .footer-copyright {
        max-width: 250px;
        padding: 6px 12px;
    }
    
    .copyright-content p {
        font-size: 11px;
        white-space: normal;
        line-height: 1.3;
    }
    
    .author-link {
        display: inline-block;
        margin: 2px 0 0 0;
        padding: 2px 8px;
    }
}

/* Footer Logo Styles */
.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-image {
    max-height: 60px;
    max-width: 150px;
    height: auto;
    width: auto;
    object-fit: contain;
    float: left;
}

.footer-logo-svg {
    flex-shrink: 0;
    float: left;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.footer-logo-text h3 {
    font-size: 24px;
    color: white;
    line-height: 1.2;
    font-weight: 700;
}

.footer-logo-text span {
    color: var(--secondary-color);
}

/* Очистка float */
.footer-logo::after {
    content: '';
    display: table;
    clear: both;
}

/* Адаптивность для логотипа в футере */
@media (max-width: 768px) {
    .footer-logo-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-logo-image,
    .footer-logo-svg {
        float: none;
        margin: 0 auto;
    }
    
    .footer-logo-text h3 {
        font-size: 20px;
    }
    
    .footer-logo-text span {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .footer-logo-text h3 {
        font-size: 18px;
    }
    
    .footer-logo-image {
        max-height: 50px;
        max-width: 120px;
    }
}



/* Стили для кнопки "Задать вопрос" */
.ask-question-btn {
    background: var(--secondary-color);
    color: white;
    padding: 0 10px;
    border-radius: var(--border-radius);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0px;
    transition: all 0.3s ease;
    height: 44px;
    white-space: nowrap;
    font-weight: 500;
    justify-content: center;
    font-size: 12px;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.ask-question-btn:hover {
    background: var(--primary-color);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.ask-question-btn:active {
    transform: translateY(0);
}

.ask-question-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.ask-question-btn:hover i {
    transform: scale(1.1);
}

/* Адаптивность для кнопки "Задать вопрос" */
@media (max-width: 1200px) {
    .ask-question-btn {
        min-width: 140px;
        padding: 0 15px;
        font-size: 13px;
    }
    
    .ask-question-btn span {
        display: inline-block;
    }
}

@media (max-width: 992px) {
    .header-main-content {
        flex-wrap: wrap;
    }
    
    .logo {
        order: 1;
        margin-bottom: 15px;
    }
    
    .search-cart {
        order: 2;
        width: 100%;
        justify-content: center;
        margin-left: 0;
        height: 44px;
    }
    
    .search-box-i {
        min-width: auto;
        flex: 1;
        max-width: 500px;
    }
    
    .ask-question-btn {
        order: 1;
        min-width: 140px;
    }
    
    .cart-btn {
        order: 3;
    }
}

@media (max-width: 768px) {
    .search-cart {
        flex-direction: row;
        height: 44px;
        gap: 10px;
    }
    
    .ask-question-btn {
        min-width: 130px;
        padding: 0 12px;
        font-size: 13px;
        height: 40px;
    }
    
    .ask-question-btn i {
        font-size: 14px;
    }
    
    .ask-question-btn span {
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .ask-question-btn {
        min-width: 120px;
        padding: 0 10px;
        font-size: 12px;
        height: 38px;
        gap: 6px;
    }
    
    .ask-question-btn i {
        font-size: 13px;
    }
    
    .ask-question-btn span {
        font-size: 12px;
    }
}

/* Для очень маленьких экранов скрываем текст, оставляем только иконку */
@media (max-width: 360px) {
    .ask-question-btn span {
        display: none;
    }
    
    .ask-question-btn {
        min-width: 44px;
        width: 44px;
        padding: 0;
    }
    
    .ask-question-btn i {
        margin: 0;
    }
}







/* Стили для кнопок с иконками в hero секции */
.hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
}

.hero-buttons .btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.hero-buttons .btn:hover i {
    transform: scale(1.1);
}

/* Специфичные стили для кнопки онлайн-консультации */
.hero-buttons .btn-secondary {
    background: linear-gradient(135deg, transparent, transparent);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.hero-buttons .btn-secondary:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 75, 95, 0.3);
}

.hero-buttons .btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.hero-buttons .btn-secondary:hover::before {
    left: 100%;
}



/* ===== МОДАЛЬНЫЕ ОКНА ===== */

/* 1. МОДАЛЬНОЕ ОКНО ПОДПИСКИ (ФУТЕР) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalAppear 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid var(--light-color);
}

.modal-header h2 {
    color: var(--primary-color);
    margin: 0;
    font-size: 24px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.modal-body {
    padding: 30px;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 2. МОДАЛЬНОЕ ОКНО КОРЗИНЫ */
.modal-overlay-cart {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
    backdrop-filter: blur(3px);
}

.modal-content-cart {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    max-width: 550px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: modalAppearCart 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-header-cart {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px 30px;
    border-bottom: 3px solid var(--secondary-color);
    background: linear-gradient(135deg, var(--primary-color), #1a4b5f);
    border-radius: 25px 25px 0 0;
    color: white;
}

.modal-header-cart h2 {
    color: white;
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-close-cart {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close-cart:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
    color: white;
}

.modal-body-cart {
    padding: 30px;
}

@keyframes modalAppearCart {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 3. ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ФОРМЫ В КОРЗИНЕ (внутри modal-body-cart) */
.modal-body-cart .order-confirmation {
    text-align: center;
    padding: 10px;
}

.modal-body-cart .confirmation-icon {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    background: rgba(42, 157, 143, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-body-cart .order-confirmation h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 20px;
}

.modal-body-cart .order-confirmation p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
    font-size: 15px;
}

.modal-body-cart .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.modal-body-cart .form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.modal-body-cart .form-group input,
.modal-body-cart .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-family: 'Inter', sans-serif;
}

.modal-body-cart .form-group input:focus,
.modal-body-cart .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

.modal-body-cart .form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.modal-body-cart .selected-items-preview {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin: 25px 0;
    border: 2px solid #e9ecef;
}

.modal-body-cart .selected-items-preview h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 700;
}

.modal-body-cart .preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.modal-body-cart .preview-item-info {
    flex: 1;
}

.modal-body-cart .preview-item-name {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    color: #333;
}

.modal-body-cart .preview-item-qty {
    color: #6c757d;
    font-size: 13px;
}

.modal-body-cart .preview-item-total {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 15px;
}

.modal-body-cart .preview-total {
    text-align: right;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--border-color);
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
}

.modal-body-cart .form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.modal-body-cart .btn-submit-order {
    background: linear-gradient(135deg, var(--secondary-color), #239f8a);
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 2;
    box-shadow: 0 4px 15px rgba(42, 157, 143, 0.3);
}

.modal-body-cart .btn-submit-order:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-color), #1a4b5f);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 75, 95, 0.4);
}

.modal-body-cart .btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 16px 25px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.modal-body-cart .btn-outline:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background: rgba(42, 157, 143, 0.05);
}

/* Адаптивность для корзины */
@media (max-width: 768px) {
    .modal-overlay-cart {
        padding: 10px;
    }
    
    .modal-content-cart {
        margin: 10px;
        max-width: calc(100% - 20px);
        border-radius: 20px;
    }
    
    .modal-header-cart {
        padding: 20px 25px 15px 25px;
    }
    
    .modal-header-cart h2 {
        font-size: 22px;
    }
    
    .modal-body-cart {
        padding: 25px;
    }
    
    .modal-body-cart .form-actions {
        flex-direction: column;
    }
    
    .modal-body-cart .btn-submit-order,
    .modal-body-cart .btn-outline {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-header-cart h2 {
        font-size: 20px;
    }
    
    .modal-body-cart {
        padding: 20px;
    }
    
    .modal-body-cart .confirmation-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }
    
    .modal-body-cart .order-confirmation h3 {
        font-size: 18px;
    }
    
    .modal-body-cart .selected-items-preview {
        padding: 15px;
    }
}





.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid var(--light-color);
}

.modal-header h2 {
    color: var(--primary-color);
    margin: 0;
    font-size: 24px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.modal-body {
    padding: 30px;
}

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

.confirmation-icon {
    font-size: 64px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.confirmation-icon i {
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.order-confirmation h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 22px;
}

.order-confirmation p {
    color: #6c757d;
    margin-bottom: 30px;
    line-height: 1.6;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .confirmation-icon {
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 10px;
    }
    
    .modal-content {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .order-confirmation h3 {
        font-size: 18px;
    }
}

/* Добавим стили для бейджа "Нет в наличии" */
.out-of-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.product-card .add-to-cart-btn:disabled {
    background: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.product-actions-large .add-to-cart-btn-large:disabled {
    background: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}


/* ===== 404 PAGE STYLES ===== */
.page-404 {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
}

.page-404 .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.error-code {
    font-size: 120px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 0 10px 20px rgba(26, 75, 95, 0.2);
    display: flex;
    justify-content: center;
    gap: 10px;
}

.error-code span {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: digitAppear 0.5s forwards;
}

.error-code span:nth-child(1) { animation-delay: 0.1s; }
.error-code span:nth-child(2) { animation-delay: 0.3s; }
.error-code span:nth-child(3) { animation-delay: 0.5s; }

@keyframes digitAppear {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    70% {
        opacity: 1;
        transform: translateY(-10px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.page-404 h1 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    animation: fadeIn 0.8s 0.8s both;
}

.page-404 p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 0.8s 1s both;
}

.error-image {
    max-width: 300px;
    margin: 30px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.8s 1.2s both;
}

.error-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.error-image:hover img {
    transform: scale(1.05);
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
    animation: fadeIn 0.8s 1.4s both;
}

.error-actions .btn {
    min-width: 180px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: fadeInUp 0.5s both;
}

.error-actions .btn:nth-child(1) { animation-delay: 1.4s; }
.error-actions .btn:nth-child(2) { animation-delay: 1.6s; }
.error-actions .btn:nth-child(3) { animation-delay: 1.8s; }

.error-actions .btn i {
    transition: transform 0.3s ease;
}

.error-actions .btn:hover i {
    transform: translateX(5px);
}

.error-search {
    max-width: 500px;
    margin: 40px auto 0;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #e9ecef;
    animation: fadeIn 0.8s 2s both;
}

.error-search h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность для 404 страницы */
@media (max-width: 768px) {
    .page-404 {
        padding: 40px 20px;
    }
    
    .page-404 .container {
        padding: 30px 20px;
    }
    
    .error-code {
        font-size: 80px;
    }
    
    .page-404 h1 {
        font-size: 28px;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .error-image {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 60px;
    }
    
    .page-404 h1 {
        font-size: 24px;
    }
    
    .page-404 p {
        font-size: 16px;
    }
}




/* Общие улучшения для мобильных */
@media (max-width: 768px) {
    /* Улучшаем читаемость текста */
    body {
        font-size: 15px;
    }
    
    /* Улучшаем секции */
    .recipe-section {
        padding: 20px;
        margin-bottom: 40px;
    }
    
    .recipe-hero {
        padding: 60px 0 40px;
    }
    
    .recipe-hero h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .recipe-hero p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    /* Улучшаем карточки информации */
    .info-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Улучшаем FAQ */
    .faq-question {
        padding: 15px;
        font-size: 15px;
    }
    
    /* Улучшаем чат */
    .chat-messages {
        height: 250px;
    }
    
    .message-content {
        max-width: 90%;
    }
    
    /* Улучшаем таблицу сравнения льгот */
    .benefits-comparison {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    /* Дополнительные улучшения для маленьких экранов */
    .recipe-hero h1 {
        font-size: 24px;
    }
    
    .recipe-section h2 {
        font-size: 20px;
        padding-bottom: 10px;
    }
    
    .step-content h4 {
        font-size: 16px;
    }
    
    /* Улучшаем кнопки в чате */
    .chat-send-btn {
        min-width: 44px;
        padding: 0 15px;
    }
    
    /* Улучшаем форму в чате */
    .user-info-form {
        padding: 15px;
    }
}







/* ===== ОБНОВЛЕННОЕ МЕНЮ ===== */

/* Контейнер навигации */
.nav-wrapper {
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-color);
}

/* ===== КНОПКА МЕНЮ В ПРАВОМ ВЕРХНЕМ УГЛУ ===== */

/* Кнопка мобильного меню - скрыта на десктопе */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(26, 75, 95, 0.2);
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1001;
    height: 40px;
}

.mobile-menu-toggle:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.mobile-menu-toggle.active {
    background: var(--secondary-color);
}

.mobile-menu-toggle i {
    font-size: 16px;
}

/* Десктопное меню */
.desktop-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Мобильное меню - контейнер - ИСПРАВЛЕНО */
.mobile-menu-container {
    display: none;
    position: fixed; /* Меняем absolute на fixed */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 9999; /* Увеличиваем z-index */
    overflow-y: auto; /* Добавляем скролл */
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    padding-top: 60px; /* Отступ сверху для кнопки закрытия */
}

.mobile-menu-container.active {
    transform: translateY(0);
}

/* Кнопка закрытия меню вверху */
.mobile-menu-close {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    border: none;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Контейнер для содержимого меню */
.mobile-menu-content {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 20px 0;
}

/* Список мобильного меню */
.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0 0 20px 0; /* Добавляем отступ снизу */
}

.mobile-menu-list .nav-item {
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.mobile-menu-list .nav-item:last-child {
    border-bottom: none;
}

.mobile-menu-list .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    background: white;
    font-size: 16px;
    white-space: normal;
}

.mobile-menu-list .nav-link:hover {
    background: var(--light-color);
    color: var(--primary-color);
    padding-left: 25px;
}

.mobile-menu-list .nav-link.active {
    background: var(--primary-color);
    color: white;
}

/* ===== ИСПРАВЛЕННЫЙ CSS ДЛЯ СТРЕЛОК ===== */

/* Полностью убираем ВСЕ иконки из ссылок */
.mobile-menu-list .nav-link > i {
    display: none !important;
}

/* Показываем ТОЛЬКО наши кнопки-стрелки */
.mobile-submenu-toggle {
    display: flex !important;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-left: 10px;
    flex-shrink: 0;
    background: none;
    border: none;
}

.mobile-submenu-toggle:hover {
    background: rgba(26, 75, 95, 0.1);
}

.mobile-submenu-toggle i {
    font-size: 14px;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

/* Для анимации стрелки */
.mobile-submenu-toggle i {
    display: inline-block !important;
}

/* Анимация при открытии */
.mobile-submenu-toggle i[style*="rotate(90deg)"] {
    transform: rotate(90deg) !important;
}

/* Также добавьте это для подменю */
.mobile-dropdown {
    display: none;
    background: var(--light-color);
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-dropdown[style*="display: block"] {
    display: block !important;
}

.mobile-dropdown .dropdown-link {
    display: block;
    padding: 12px 20px 12px 35px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
}




/* УБИРАЕМ СТРЕЛКИ ИЗ ТЕКСТА ССЫЛОК */
.mobile-menu-list .nav-link i.fa-chevron-down,
.mobile-menu-list .nav-link i.fa-chevron-right {
    display: none !important;
}

/* Показываем наши кнопки-стрелки */
.mobile-submenu-toggle {
    display: flex !important;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-left: 10px;
    flex-shrink: 0;
    background: none;
    border: none;
}

.mobile-submenu-toggle:hover {
    background: rgba(26, 75, 95, 0.1);
}

.mobile-submenu-toggle i {
    font-size: 14px;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

/* Анимация стрелки при открытии */
.mobile-submenu-toggle i[style*="transform: rotate(90deg)"] {
    transform: rotate(90deg) !important;
}



/* Десктопные стили (оставляем существующие) */
.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 15px 16px;
    display: block;
    font-weight: 500;
    transition: var(--transition);
    font-size: 15px;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color);
    background-color: var(--light-color);
}

.dropdown-menu {
    position: absolute;
    background-color: white;
    width: 220px;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
    border: 1px solid var(--border-color);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* Адаптивность для кнопки меню */
@media (max-width: 992px) {
    /* Показываем кнопку меню */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Делаем header относительным для позиционирования кнопки */
    .header-main {
        position: relative;
    }
    
    /* Возвращаем нормальное позиционирование для остальных элементов */
    .header-main-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding-top: 10px; /* Добавляем отступ сверху для кнопки */
    }
    
    /* Логотип по центру */
    .logo {
        width: 100%;
        text-align: center;
        justify-content: center;
        margin: 0 auto;
        order: 1;
    }
    
    /* Поиск и кнопки по центру как было */
    .search-cart {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        order: 2;
    }
    
    /* Мобильное меню */
    .mobile-menu-container {
        display: block;
    }
    
    /* Десктопное меню скрываем */
    .desktop-menu {
        display: none;
    }
}



@media (max-width: 768px) {
    .mobile-menu-toggle {
        top: 12px;
        right: 12px;
        padding: 6px 12px;
        font-size: 13px;
        height: 36px;
    }
    
    .mobile-menu-toggle span {
        display: inline;
    }
    
    .mobile-menu-list .nav-link {
        padding: 14px 18px;
    }
    
    .mobile-dropdown .dropdown-link {
        padding: 12px 18px 12px 30px;
    }
}

@media (max-width: 576px) {
    .mobile-menu-toggle {
        top: 10px;
        right: 10px;
        padding: 5px 10px;
        font-size: 12px;
        height: 34px;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .mobile-menu-toggle {
        padding: 4px 8px;
        min-width: 40px;
    }
    
    .mobile-menu-toggle span {
        display: none;
    }
    
    .mobile-menu-toggle i {
        margin: 0;
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .mobile-menu-toggle {
        min-width: 50px;
        width: 50px;
        padding: 0;
    }
    
    .mobile-menu-toggle span {
        display: none;
    }
    
    .mobile-menu-toggle i {
        margin: 0;
        font-size: 16px;
    }
}

/* Анимация для плавного открытия/закрытия */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* СИЛЬНОЕ ПРАВИЛО ДЛЯ ПОКАЗА СТРЕЛОК */
.mobile-menu-list .nav-link .mobile-submenu-toggle,
.mobile-menu-list .nav-link .mobile-submenu-toggle i {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Скрываем все остальные иконки */
.mobile-menu-list .nav-link i:not(.mobile-submenu-toggle i) {
    display: none !important;
}


/* Кнопка закрытия меню */
.mobile-menu-close {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    border: none;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}