/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B6914;
    --secondary-color: #D4A574;
    --accent-color: #CD853F;
    --amber-dark: #B8860B;
    --amber-medium: #DAA520;
    --amber-light: #F4A460;
    --amber-pale: #FFF8E7;
    --amber-clean: #FFD700;
    --text-color: #2C2416;
    --text-light: #5C4A3A;
    --bg-light: #FFF8E7;
    --white: #FFF9E6;
    --border-color: #E8D5C4;
    --shadow: 0 2px 10px rgba(139, 105, 20, 0.15);
    --shadow-hover: 0 5px 20px rgba(139, 105, 20, 0.25);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', 'Roboto', 'Segoe UI', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.header-contacts-top {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    white-space: nowrap;
}

.phone-link:hover {
    color: var(--primary-color);
}

/* Desktop Search */
.desktop-only {
    display: flex;
}

/* Modern Mobile Header Layout */
@media (max-width: 768px) {
    .header-top {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 15px !important;
        position: relative !important;
        height: 60px;
        gap: 10px;
    }

    /* Меню бургер - слева в углу */
    .menu-toggle {
        order: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
        align-items: center;
        justify-content: center;
        background: none !important;
        border: none !important;
        cursor: pointer;
        padding: 5px !important;
        width: 40px !important;
        height: 40px !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }

    .menu-toggle span {
        width: 25px !important;
        height: 2px !important;
        background: var(--primary-color) !important;
        transition: var(--transition) !important;
        display: block !important;
    }

    .logo {
        order: 1 !important;
        flex: 1;
        min-width: 0;
        margin-right: 10px;
        margin-left: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
    }

    .logo-text {
        font-size: 18px !important;
        line-height: 1.2 !important;
    }

    .logo-subtitle {
        font-size: 10px !important;
        display: block !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Контейнер для правых элементов (Только корзина и телефон) */
    .header-actions {
        order: 2 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        gap: 4px !important;
        height: 100%;
        flex: 0 0 auto;
        justify-content: center;
    }
    
    /* Подконтейнер для кнопок - теперь только для корзины */
    .header-contacts-top {
        display: flex !important;
        align-items: center;
        gap: 0;
        margin: 0;
        padding: 0;
    }

    /* Корзина справа вверху */
    .cart-button {
        position: static !important;
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: var(--primary-color) !important;
        border-radius: 4px !important;
        font-size: 0 !important;
        flex-shrink: 0;
    }

    .cart-button::before {
        content: '🛒' !important;
        font-size: 18px !important;
        color: white !important;
        line-height: 1 !important;
    }

    .cart-button .cart-badge {
        top: -4px !important;
        right: -4px !important;
        width: 16px !important;
        height: 16px !important;
        font-size: 10px !important;
        line-height: 16px !important;
    }

    /* Телефон справа под корзиной */
    .phone-link {
        display: block !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        color: var(--text-color) !important;
        text-decoration: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background: none !important;
        border: none !important;
        white-space: nowrap;
        line-height: 1.2;
        text-align: right;
    }

    /* Скрываем лишнее */
    .header-contacts a.email {
        display: none !important;
    }

    /* ПОИСК: Скрываем в шапке на мобильных */
    .header-search {
        display: none !important;
    }
}
.logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-contacts {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.header-contacts a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-contacts a:hover {
    color: var(--secondary-color);
}

.header-contacts a.phone::before {
    content: '📞';
    font-size: 16px;
    display: inline-block;
}

.header-contacts a.email::before {
    content: '✉️';
    font-size: 16px;
    display: inline-block;
}

/* Search Form Styles */
.header-search {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.header-search input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
    max-width: 250px;
    transition: var(--transition);
}

.header-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(139, 105, 20, 0.1);
}

.header-search button {
    padding: 8px 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    font-weight: 500;
}

.header-search button:hover {
    background: var(--amber-dark);
    transform: translateY(-1px);
}

.header-search button:active {
    transform: translateY(0);
}

/* Mobile phone improvements */
@media (max-width: 768px) {
    .header-search {
        width: 100%;
        margin-bottom: 8px;
        order: 3;
    }
    
    .header-search input {
        flex: 1;
        min-width: 0;
        max-width: none;
        padding: 10px 12px;
        font-size: 16px; /* Предотвращает зум на iOS */
    }
    
    .header-search button {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .header-contacts {
        flex-direction: row;
        width: auto;
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .header-contacts a.phone {
        font-size: 14px;
        font-weight: 600;
        padding: 8px 12px;
        background: var(--amber-pale);
        border-radius: 6px;
        color: var(--primary-color);
        min-height: 44px; /* Touch-friendly */
        justify-content: center;
        width: 100%;
    }
    
    .header-contacts a.phone::before {
        content: '📞';
        font-size: 18px;
    }
    
    .header-contacts a.phone:active {
        background: var(--amber-medium);
        transform: scale(0.98);
    }
    
    .header-contacts a.email {
        font-size: 14px;
        min-height: 44px;
        padding: 8px;
        width: 100%;
        justify-content: center;
    }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav {
    border-top: 1px solid var(--border-color);
    padding: 15px 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--secondary-color);
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--amber-dark) 0%, var(--amber-medium) 50%, var(--amber-light) 100%);
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--amber-clean);
    color: var(--text-color);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--amber-medium);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--amber-clean);
    border-color: var(--amber-clean);
}

.btn-outline:hover {
    background: var(--amber-clean);
    color: var(--text-color);
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

/* Features */
.features {
    padding: 80px 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* Categories */
.categories {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--amber-dark), var(--amber-medium));
    margin: 20px auto 0;
    border-radius: 2px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    text-decoration: none;
    color: var(--text-color);
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--amber-dark) 0%, var(--amber-medium) 100%) !important;
}

/* Переопределяем background-size для квадратных изображений категорий */
.category-image[style*="background-image"] {
    background-size: contain !important;
    background-repeat: no-repeat;
    background-position: center;
}

.category-card h3 {
    padding: 20px 20px 10px;
    font-size: 22px;
    color: var(--primary-color);
}

.category-card p {
    padding: 0 20px 20px;
    color: #4a3a2a;
    font-size: 14px;
    line-height: 1.6;
}

/* About Preview */
.about-preview {
    padding: 80px 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.about-text h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--amber-dark), var(--amber-medium));
    margin-top: 15px;
    border-radius: 2px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.about-image-placeholder {
    height: 400px;
    background: linear-gradient(135deg, var(--amber-dark) 0%, var(--amber-medium) 50%, var(--amber-light) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 48px;
    font-weight: 700;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--amber-dark) 0%, var(--amber-medium) 50%, var(--amber-light) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--amber-dark) 0%, var(--amber-medium) 50%, var(--amber-light) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-header p {
    font-size: 18px;
    opacity: 0.95;
}

/* Компактный page-header на мобильных */
@media (max-width: 768px) {
    .page-header {
        padding: 25px 0; /* Уменьшаем отступы */
    }
    
    .page-header h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .page-header p {
        font-size: 14px;
    }
}

/* Catalog Section */
.catalog-section {
    padding: 60px 0;
}

.catalog-category {
    margin-bottom: 60px;
}

.category-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--primary-color);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.group-card {
    background: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.group-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.group-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.group-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--amber-dark) 0%, var(--amber-medium) 100%);
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Переопределяем background-size для квадратных изображений */
.group-image[style*="background-image"] {
    background-size: contain !important;
    background-repeat: no-repeat;
    background-position: center;
}

.group-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.group-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.6;
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--amber-dark) 0%, var(--amber-medium) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

/* Переопределяем background-size для квадратных изображений */
.product-image[style*="background-image"] {
    background-size: contain !important;
    background-repeat: no-repeat;
    background-position: center;
}

.product-image span {
    position: relative;
    z-index: 1;
}

.product-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-card p {
    color: #4a3a2a;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 60px 0;
}

.about-details {
    max-width: 900px;
    margin: 0 auto;
}

.about-block {
    margin-bottom: 50px;
}

.about-block h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-block p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-block a {
    color: var(--secondary-color);
    text-decoration: none;
}

.about-block a:hover {
    text-decoration: underline;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.advantage-item {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
}

.advantage-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.advantage-item p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* Cooperation Section */
.cooperation-section {
    padding: 60px 0;
}

.cooperation-content {
    max-width: 1000px;
    margin: 0 auto;
}

.cooperation-block {
    margin-bottom: 50px;
}

.cooperation-block h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.cooperation-list {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

.cooperation-item {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
}

.cooperation-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.cooperation-item ul {
    list-style: none;
    padding-left: 0;
}

.cooperation-item li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
}

.cooperation-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.benefit-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.benefit-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.benefit-card p {
    color: var(--text-light);
    font-size: 14px;
}

.steps {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--amber-dark) 0%, var(--amber-medium) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Contacts Section */
.contacts-section {
    padding: 60px 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.8;
}

.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form-wrapper h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 35px;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.contact-form-wrapper h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--amber-dark), var(--amber-medium));
    margin-top: 15px;
    border-radius: 2px;
}

.contact-form {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 15px;
    letter-spacing: 0.2px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    background-color: #fff;
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--amber-dark);
    box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.15);
    background-color: #fff;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--amber-medium);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Form Loading Indicator */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

.btn-primary.btn-loading::after {
    border-color: rgba(44, 36, 22, 0.3);
    border-top-color: var(--text-color);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error messages styling */
.error-message {
    display: block;
    color: #d32f2f;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
    min-height: 20px;
}

.hint {
    display: block;
    color: var(--text-light);
    font-size: 12px;
    margin-top: 6px;
    font-style: italic;
}

/* Improved contrast for text */
.text-light {
    color: #4a3a2a !important;
}

/* Better focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--amber-dark);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Improved card hover states */
.product-card,
.category-card,
.advantage-item,
.benefit-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:focus-visible,
.category-card:focus-visible {
    outline: 3px solid var(--amber-dark);
    outline-offset: 4px;
}

/* Footer Modernization */
.footer {
    background: #f8f9fa; /* Светлый фон */
    color: var(--text-color);
    padding: 40px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

/* Footer Search (Mobile) */
.footer-search {
    display: none; /* Скрыт на десктопе */
    margin-bottom: 30px;
}

.footer-search input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background: #fff;
}

.footer-search button {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

/* Mobile Footer Adjustments */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr; /* Одна колонка */
        gap: 30px;
    }

    .footer-search {
        display: block; /* Показываем поиск в подвале */
    }

    .footer-column {
        border-bottom: 1px solid rgba(0,0,0,0.05);
        padding-bottom: 20px;
    }

    .footer-column:last-child {
        border-bottom: none;
    }
}

/* Mobile floating call button */
.floating-call-button {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--amber-dark), var(--amber-medium));
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(139, 105, 20, 0.4);
    z-index: 999;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--white);
    font-size: 28px;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-call-button:hover,
.floating-call-button:active {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 105, 20, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(139, 105, 20, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(139, 105, 20, 0.6);
    }
}

@media (max-width: 768px) {
    .floating-call-button {
        display: flex;
    }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .nav-list a {
        min-height: 44px;
        padding: 15px 20px;
    }
    
    input[type="text"],
    input[type="tel"],
    input[type="email"],
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(44, 36, 22, 0.1);
    color: rgba(44, 36, 22, 0.6);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        display: none;
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-list li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-list a {
        display: block;
        padding: 15px 0;
    }


    .logo {
        width: 100%;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 24px;
    }

    .features,
    .categories,
    .about-preview,
    .cta {
        padding: 50px 0;
    }

    .container {
        padding: 0 15px;
    }
    
    .header-top {
        padding: 6px 12px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo-subtitle {
        font-size: 8px;
    }
    
    .cart-button {
        width: 36px;
        height: 36px;
        top: 6px;
        right: 12px;
        font-size: 0;
    }
    
    .cart-button::before {
        font-size: 18px;
    }
    
    .header-contacts {
        right: 55px;
        top: 6px;
    }
    
    .header-contacts a.phone {
        font-size: 11px;
        padding: 5px 8px;
    }
    
    .header-search {
        margin-top: 40px;
    }

    .logo-subtitle {
        font-size: 10px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .page-header p {
        font-size: 16px;
    }

    .category-title {
        font-size: 24px;
    }

    .contact-form {
        padding: 20px;
    }
}

/* Дополнительные медиа-запросы для различных размеров экранов */
@media (max-width: 375px) {
    .hero-title {
        font-size: 20px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .header-contacts {
        font-size: 11px;
        gap: 6px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .logo-subtitle {
        font-size: 9px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Product Detail Page Styles */
.product-detail-section {
    padding: 60px 0;
    background-color: var(--white);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.product-detail-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--bg-light);
}

.product-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-detail-info {
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.product-detail-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
    font-style: italic;
}

.product-detail-description {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.6;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
}

.meta-item {
    font-size: 16px;
    color: var(--text-color);
}

.meta-item strong {
    color: var(--primary-color);
    margin-right: 5px;
}

.product-features,
.product-properties,
.product-composition {
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.product-features h2,
.product-properties h2,
.product-composition h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-features p {
    color: var(--text-color);
    line-height: 1.6;
}

.product-properties ul,
.product-composition ul {
    list-style: disc;
    margin-left: 20px;
    color: var(--text-color);
    line-height: 1.8;
}

.product-properties ul li,
.product-composition ul li {
    margin-bottom: 8px;
}

.product-description-full {
    margin-top: 40px;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.product-description-full h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.description-content {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 16px;
}

.product-usage {
    margin-top: 30px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 8px;
}

.product-usage h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-usage p {
    color: var(--text-color);
    line-height: 1.8;
}

.breadcrumbs {
    background: var(--bg-light);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-light);
    flex-wrap: wrap;
}

/* Компактные breadcrumbs на мобильных */
@media (max-width: 768px) {
    .breadcrumbs {
        padding: 5px 0 !important;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        background: #f9f9f9 !important; /* Чуть темнее фон для контраста */
    }
    
    .breadcrumb-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        padding: 0 10px !important;
        font-size: 13px !important; /* Увеличил шрифт */
        line-height: 30px !important; /* Увеличил высоту строки */
    }
    
    .breadcrumb-nav a,
    .breadcrumb-nav span {
        display: inline-block !important;
        padding: 5px 2px !important; /* Увеличил область нажатия */
    }

    /* Убираем скрытие элементов, даем скроллить */
    .breadcrumb-nav > * {
        display: inline-block !important;
    }
    
    /* Скрываем "Главная / ... /" псевдоэлементы, если они мешают */
    .breadcrumb-nav::before {
        display: none !important;
    }
}

.breadcrumb-nav a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.breadcrumb-nav span {
    color: var(--text-light);
}

.product-detail {
    padding: 40px 0;
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-main-image {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.gallery-thumb:hover {
    border-color: var(--primary-color);
}

.product-info h1 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.product-specs {
    margin-bottom: 30px;
}

.spec-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 8px;
}

.spec-value {
    color: var(--text-color);
    display: block;
}

.spec-list {
    list-style: none;
    padding-left: 0;
}

.spec-list li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-color);
}

.spec-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.product-volumes {
    margin-bottom: 30px;
}

.volume-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    color: var(--text-color);
}

.volume-btn:hover {
    border-color: var(--primary-color);
    background: var(--amber-pale);
}

.volume-btn.active {
    border-color: var(--primary-color);
    background: var(--amber-pale);
    color: var(--primary-color);
    font-weight: 600;
}

.product-description {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.product-description h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.product-description h2:first-of-type {
    margin-top: 0;
}

.product-description h2.description-section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.product-description h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.description-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.description-content p {
    margin-bottom: 15px;
}

.description-content ul {
    margin: 15px 0;
    padding-left: 25px;
    list-style-type: disc;
}

.description-content ul li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--text-color);
}

.description-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.description-content h2:first-of-type {
    margin-top: 0;
}

.description-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 12px;
}

.description-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.description-content h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 15px;
    margin-bottom: 8px;
}

.description-content h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 12px;
    margin-bottom: 6px;
}

.description-content ul,
.description-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.description-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.usage-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.usage-content p {
    margin-bottom: 15px;
}

/* Responsive Product Detail */
@media (max-width: 768px) {
    .product-detail-section {
        padding: 20px 0;
    }

    /* Исправлено с .product-detail-wrapper на .product-detail-grid */
    .product-detail-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .product-detail-image {
        margin-bottom: 10px;
    }

    .product-main-image {
        height: 300px; /* Уменьшаем высоту картинки на мобильном */
    }

    .product-detail-title {
        font-size: 24px; /* Уменьшаем шрифт заголовка (было 36px) */
        line-height: 1.2;
        word-wrap: break-word;
    }
    
    .product-subtitle {
        font-size: 16px;
    }

    /* Этот класс тоже обновился в HTML */
    .product-info h1 {
        font-size: 24px;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions .btn {
        width: 100%;
    }
    
    .product-detail-info {
        padding: 15px; /* Компактные отступы внутри карточки */
    }
    
    .product-description-full {
        padding: 15px !important;
        margin-top: 30px !important;
    }
    
    .description-content h2 {
        font-size: 20px !important;
        margin-top: 20px !important;
        margin-bottom: 12px !important;
    }
    
    .description-content h3 {
        font-size: 16px !important;
        margin-top: 18px !important;
        margin-bottom: 10px !important;
    }
    
    .description-content h4 {
        font-size: 15px !important;
        margin-top: 15px !important;
        margin-bottom: 8px !important;
    }
    
    .description-content h5,
    .description-content h6 {
        font-size: 14px !important;
        margin-top: 12px !important;
        margin-bottom: 6px !important;
    }
    
    .description-content ul,
    .description-content ol {
        padding-left: 20px !important;
        margin: 12px 0 !important;
    }
    
    .description-content li {
        margin-bottom: 6px !important;
    }
}

/* Privacy Policy Page Styles */
.page-section {
    padding: 40px 0;
    background: var(--white);
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    line-height: 1.8;
}

.privacy-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.privacy-content h2:first-of-type {
    margin-top: 0;
}

.privacy-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 25px;
    margin-bottom: 12px;
}

.privacy-content p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.privacy-content ul,
.privacy-content ol {
    margin: 15px 0 15px 30px;
    color: var(--text-light);
}

.privacy-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.privacy-content strong {
    color: var(--text-color);
    font-weight: 600;
}

.privacy-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}

.privacy-content a:hover {
    color: var(--amber-dark);
}

.last-updated {
    font-size: 14px;
    color: #888;
    font-style: italic;
    margin-bottom: 30px;
    text-align: right;
}

.operator-info,
.contact-box {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

.operator-info p,
.contact-box p {
    margin-bottom: 10px;
}

.operator-info p:last-child,
.contact-box p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }
    
    .privacy-content {
        padding: 20px;
        margin: 0 10px;
    }
    
    .privacy-content h2 {
        font-size: 20px;
        margin-top: 25px;
    }
    
    .privacy-content h3 {
        font-size: 18px;
    }
    
    .privacy-content ul,
    .privacy-content ol {
        margin-left: 20px;
    }
}

/* Search Page Styles */
.search-form {
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-form input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    font-size: 16px;
    transition: var(--transition);
}

.search-form input:focus {
    outline: none;
    border-color: var(--amber-dark);
    box-shadow: 0 0 0 3px rgba(139, 105, 20, 0.1);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-results p {
    margin-bottom: 15px;
    font-size: 16px;
}

.no-results strong {
    color: var(--primary-color);
}

#search-results-section {
    margin-top: 30px;
}

#search-initial {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

#search-initial p {
    margin-bottom: 15px;
    font-size: 18px;
}


