* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #0a0a0a;
    --secondary-black: #1a1a1a;
    --accent-red: #e63946;
    --light-red: #ff4757;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --gradient-primary: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    --gradient-accent: linear-gradient(135deg, #e63946 0%, #ff4757 100%);
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.2);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--primary-black);
    overflow-x: hidden;
}

/* Header Component - ОБНОВЛЕНО С ДИНАМИЧНОСТЬЮ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                background 0.3s ease,
                box-shadow 0.3s ease;
    border-bottom: 1px solid rgba(230, 57, 70, 0.2);
    transform: translateY(0);
}

/* Динамичные состояния хедера */
.header--hidden {
    transform: translateY(-100%);
}

.header--visible {
    transform: translateY(0);
}

/* Дополнительные стили при скролле */
.header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: var(--shadow-medium);
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.header__logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: white;
    font-size: 1.2rem;
}

.header__logo-text {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
span.l {
    color: #ec3c4a;
    font-size: 26px;
    font-weight: bold;
}

.header__logo-plus {
    color: var(--accent-red);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.header__nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.header__nav-link:hover {
    color: var(--accent-red);
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.header__nav-link:hover::after {
    width: 100%;
}

.header__cta {
    background: var(--gradient-accent);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.header__cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Mobile Menu - ИСПРАВЛЕНО */
.header__mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.header__mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Вариант 1: Плавное переливание градиента */
a.header__nav-link.mag {
    background: linear-gradient(
        45deg,
        #29dbff,
        #5ce8ff,
        #1ac5e8,
        #29dbff,
        #e75c7c,
        #29dbff
    );
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
    font-weight: 600;
    position: relative;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Вариант 2: Мерцающий эффект с дополнительным свечением */
a.header__nav-link.mag-glow {
    background: linear-gradient(
        90deg,
        #29dbff,
        #5ce8ff,
        #29dbff,
        #1ac5e8,
        #29dbff
    );
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 2.5s linear infinite;
    font-weight: 600;
    position: relative;
    filter: drop-shadow(0 0 8px rgba(41, 219, 255, 0.4));
}

@keyframes gradientFlow {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Вариант 3: Радужное переливание на основе вашего цвета */
a.header__nav-link.mag-rainbow {
    background: linear-gradient(
        45deg,
        #29dbff,
        #4ecdc4,
        #44d1a0,
        #95e1d3,
        #29dbff,
        #d1455f,
        #ff295f
    );
    background-size: 400% 400%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowShift 4s ease-in-out infinite;
    font-weight: 600;
}

@keyframes rainbowShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
}

/* Вариант 4: Волновой эффект */
a.header__nav-link.mag-wave {
    background: linear-gradient(
        90deg,
        #1ac5e8,
        #29dbff,
        #5ce8ff,
        #29dbff,
        #1ac5e8
    );
    background-size: 300% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: waveMotion 2s ease-in-out infinite alternate;
    font-weight: 600;
    position: relative;
}

@keyframes waveMotion {
    0% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    100% {
        background-position: 100% 50%;
        filter: hue-rotate(20deg);
    }
}

/* Вариант 5: Пульсирующий эффект с изменением яркости */
a.header__nav-link.mag-pulse {
    background: linear-gradient(
        135deg,
        #29dbff,
        #5ce8ff,
        #29dbff,
        #1ac5e8,
        #29dbff
    );
    background-size: 250% 250%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulseGradient 2s ease-in-out infinite;
    font-weight: 600;
}

@keyframes pulseGradient {
    0%, 100% {
        background-position: 0% 50%;
        filter: brightness(1) saturate(1);
    }
    50% {
        background-position: 100% 50%;
        filter: brightness(1.2) saturate(1.3);
    }
}

/* Дополнительный эффект при наведении */
a.header__nav-link.mag:hover,
a.header__nav-link.mag-glow:hover,
a.header__nav-link.mag-rainbow:hover,
a.header__nav-link.mag-wave:hover,
a.header__nav-link.mag-pulse:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Fallback для браузеров, не поддерживающих background-clip: text */
@supports not (-webkit-background-clip: text) {
    a.header__nav-link.mag,
    a.header__nav-link.mag-glow,
    a.header__nav-link.mag-rainbow,
    a.header__nav-link.mag-wave,
    a.header__nav-link.mag-pulse {
        color: #29dbff;
        background: none;
        -webkit-text-fill-color: unset;
    }
}

/* Оптимизация для устройств с ограниченной производительностью */
@media (prefers-reduced-motion: reduce) {
    .header {
        transition: transform 0.1s ease, background 0.1s ease, box-shadow 0.1s ease;
    }
    
    a.header__nav-link.mag,
    a.header__nav-link.mag-glow,
    a.header__nav-link.mag-rainbow,
    a.header__nav-link.mag-wave,
    a.header__nav-link.mag-pulse {
        animation: none;
        color: #29dbff;
        background: none;
        -webkit-text-fill-color: unset;
    }
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    background: var(--primary-black);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    padding: 2rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    max-height: calc(100vh - 80px - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    transform: translateY(0);
}

/* СПЕЦИАЛЬНОЕ ИСПРАВЛЕНИЕ ДЛЯ МОБИЛЬНОГО МЕНЮ ПРИ СКРЫТОМ ХЕДЕРЕ */
.header--hidden .mobile-menu {
    top: 0; /* Когда хедер скрыт, мобильное меню должно начинаться сверху */
    max-height: 100vh;
}

/* Mobile Search Styles */
.mobile-search {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-search__container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.mobile-search__label {
    display: block;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.mobile-search__input-container {
    position: relative;
}

.mobile-search__input {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.mobile-search__input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.mobile-search__input:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.mobile-search__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary-black);
    border: 2px solid var(--accent-red);
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
    box-shadow: var(--shadow-medium);
}

.mobile-search__dropdown.show {
    display: block;
}

.mobile-search__dropdown-item {
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 0.95rem;
}

.mobile-search__dropdown-item:hover {
    background: var(--accent-red);
    color: white;
}

.mobile-search__dropdown-item:last-child {
    border-bottom: none;
}

/* Mobile Menu List */
.mobile-menu__list {
    list-style: none;
    text-align: center;
}

.mobile-menu__item {
    margin-bottom: 1rem;
}

.mobile-menu__link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    padding: 0.35rem;
    transition: color 0.3s ease;
}

.mobile-menu__link:hover {
    color: var(--accent-red);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--gradient-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px; /* Compensation for fixed header */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(230, 57, 70, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 71, 87, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(230, 57, 70, 0.05) 0%, transparent 50%);
    animation: backgroundShift 10s ease-in-out infinite alternate;
}

@keyframes backgroundShift {
    0% { opacity: 1; }
    100% { opacity: 0.7; }
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

/* Hero Breadcrumb for FAQ pages */
.hero__breadcrumb {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.hero__breadcrumb a {
    color: var(--accent-red);
    text-decoration: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__subtitle {
    color: var(--accent-red);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero__title {
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero__title-highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero__cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero__cta {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.hero__cta--primary {
    background: var(--gradient-accent);
    color: white;
}

.hero__cta--primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.hero__cta--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero__cta--secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-red);
}

/* SHOP STYLES */

/* Shop Section */
.shop {
    padding: 5rem 2rem;
    background: var(--white);
    min-height: 100vh;
}

.shop__container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Controls */
.shop__controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.shop__filters-toggle {
    display: none;
}

.filter-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 2px solid var(--gray-medium);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: var(--gray-medium);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-button:hover,
.filter-button:focus {
    border-color: var(--accent-red);
    color: var(--accent-red);
    background: rgba(230, 57, 70, 0.05);
}

.shop__results-info {
    font-size: 0.9rem;
    color: var(--gray-medium);
    font-weight: 500;
}

.shop__sort {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-select {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.sort-select:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.view-toggle {
    display: flex;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.view-btn {
    background: white;
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--gray-medium);
    font-size: 1rem;
}

.view-btn.active,
.view-btn:hover {
    background: var(--accent-red);
    color: white;
}

/* Shop Content */
.shop__content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* Sidebar Filters */
.shop__sidebar {
    background: var(--gray-light);
    border-radius: 20px;
    padding: 2rem;
    height: fit-content;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

.filters__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-red);
}

.filter-group {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.filter-group:last-of-type {
    border-bottom: none;
}

.filter-group__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.filter-group__content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Custom Checkbox */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: var(--transition-smooth);
    padding: 0.5rem;
    border-radius: 8px;
}

.filter-checkbox:hover {
    background: rgba(230, 57, 70, 0.05);
}

.filter-checkbox input {
    opacity: 0;
    position: absolute;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-medium);
    border-radius: 6px;
    background: white;
    transition: var(--transition-smooth);
    flex-shrink: 0;
    position: relative;
}

.filter-checkbox input:checked + .checkmark {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.filter-checkbox input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.filter-checkbox:hover .checkmark {
    border-color: var(--accent-red);
}

/* Price Range */
.price-range {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-inputs input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.price-inputs input:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.price-separator {
    color: var(--gray-medium);
    font-weight: 500;
}

.price-display {
    text-align: center;
    color: var(--accent-red);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-apply, .btn-reset {
    flex: 1;
    padding: 0.875rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-apply {
    background: var(--gradient-accent);
    color: white;
    border: none;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-reset {
    background: white;
    color: var(--gray-medium);
    border: 2px solid var(--gray-medium);
}

.btn-reset:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
    background: rgba(230, 57, 70, 0.05);
}

/* Products Grid */
.shop__products {
    min-height: 500px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    transition: var(--transition-smooth);
}

.products-grid--list {
    grid-template-columns: 1fr;
}

.products-grid--list .product-card {
    display: flex;
    flex-direction: row;
    height: auto;
    max-height: 200px;
}

.products-grid--list .product-card__image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
}

.products-grid--list .product-card__content {
    flex: 1;
    padding: 1.5rem;
}

.products-grid--list .product-card__footer {
    border-top: none;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    flex-direction: column;
    justify-content: center;
    width: 200px;
    flex-shrink: 0;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.product-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-red);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: var(--shadow-light);
}

.product-card__badge.badge--new {
    background: #28a745;
}

.product-card__badge.badge--sale {
    background: #fd7e14;
}

.product-card__image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: var(--gray-light);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.08);
}

.product-card__content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-card__description {
    color: var(--gray-medium);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.product-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature {
    background: rgba(230, 57, 70, 0.1);
    color: var(--accent-red);
    padding: 0.25rem 0.625rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(230, 57, 70, 0.2);
}

.product-card__footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.02);
}

.product-card__price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-red);
}

.price-old {
    font-size: 1rem;
    color: var(--gray-medium);
    text-decoration: line-through;
}

.product-card__button {
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    box-shadow: var(--shadow-light);
}

.product-card__button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-medium);
}

.empty-state__icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.empty-state__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-black);
}

.empty-state__description {
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* ORDER POPUP STYLES */
.order-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: var(--transition-smooth);
}

.order-popup.show {
    display: flex;
    opacity: 1;
}

.order-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.order-popup__content {
    position: relative;
    background: white;
    border-radius: 25px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    margin: auto;
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.order-popup.show .order-popup__content {
    transform: scale(1);
}

.order-popup__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 10;
}

.order-popup__close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.order-popup__product {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--gray-light);
}

.order-popup__product-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    flex-shrink: 0;
}

.order-popup__product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-popup__product-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 0.25rem;
}

.order-popup__product-info p {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-red);
}

.order-popup__form {
    padding: 2rem;
}

.order-popup__form h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.order-popup__description {
    color: var(--gray-medium);
    margin-bottom: 2rem;
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    background: var(--white);
}

.features__container {
    max-width: 1200px;
    margin: 0 auto;
}

.features__header {
    text-align: center;
    margin-bottom: 4rem;
}

.features__subtitle {
    color: var(--accent-red);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.features__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--primary-black);
    margin-bottom: 1.5rem;
}

.features__description {
    color: var(--gray-medium);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-card__icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.feature-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.feature-card__description {
    color: var(--gray-medium);
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 2rem;
    background: var(--white);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--gray-light);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-light);
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    padding: 2rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-black);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(230, 57, 70, 0.05);
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--accent-red);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 0 2rem 2rem;
    max-height: 500px;
}

.faq-answer-content {
    color: var(--gray-medium);
    line-height: 1.7;
}

/* City Selection Section - УЛУЧШЕНО */
.city-selection {
    padding: 5rem 2rem;
    background: var(--gray-light);
}

.city-selection__container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.city-selection__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-black);
    margin-bottom: 1.5rem;
}

.city-selection__description {
    color: var(--gray-medium);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.city-selector {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
}

.city-selector__search-container {
    position: relative;
    margin-bottom: 2rem;
}

.city-selector__label {
    display: block;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
    text-align: left;
}

.city-selector__search {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.city-selector__search:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.city-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--accent-red);
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.city-dropdown.show {
    display: block;
}

.city-dropdown__item {
    padding: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.city-dropdown__item:hover {
    background: var(--gray-light);
}

.city-dropdown__item:last-child {
    border-bottom: none;
}

.city-selector__select {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.city-selector__select:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.city-selector__button {
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    width: 100%;
}

.city-selector__button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.city-selector__button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Contact Form Section */
.contact-form {
    padding: 5rem 2rem;
    background: var(--primary-black);
    color: var(--white);
}

.contact-form__container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-form__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.contact-form__title-highlight {
    color: var(--accent-red);
}

.contact-form__description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.form-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 2rem;
    text-align: left;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

option {
    color: #000;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    width: 100%;
}

.form-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Contact CTA Section */
.contact-cta {
    background: var(--primary-black);
    padding: 4rem 2rem;
    text-align: center;
    color: var(--white);
}

.contact-cta__container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-cta__title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.contact-cta__description {
    opacity: 0.8;
    margin-bottom: 2rem;
}

.contact-cta__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-cta__btn {
    background: var(--gradient-accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.contact-cta__btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Success/Error Messages */
.success-message {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid rgba(40, 167, 69, 0.2);
    display: none;
}

.error-message {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid rgba(220, 53, 69, 0.2);
    display: none;
}

.black{
    color: #000 !important;
}
input#orderUserName,input#orderUserPhone,input#orderUserCity,textarea#orderUserMessage {
    color: #fff;
    background-color: #000;
}

/* Footer Component */
.footer {
    background: var(--primary-black);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-red);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer__logo-icon {
    width: 35px;
    height: 35px;
    background: var(--gradient-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: white;
    font-size: 1rem;
}

.footer__logo-text {
    font-size: 1.3rem;
    font-weight: 700;
}

.footer__description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer__contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer__contact-icon {
    color: var(--accent-red);
    margin-right: 0.5rem;
}

.footer__map {
    margin-top: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer__brand-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-red);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

a {
    color: #fff;
}

/* RESPONSIVE DESIGN */

/* Tablets */
@media (max-width: 1024px) {
    .shop__content {
        grid-template-columns: 280px 1fr;
        gap: 2rem;
    }

    .shop__sidebar {
        padding: 1.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header__nav {
        display: none;
    }
    
    .header__mobile-toggle {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
        position: fixed;
        top: 75px;
        left: 0;
        right: 0;
        background: var(--primary-black);
        transform: translateY(-150%);
        transition: transform 0.4s ease, opacity 0.3s ease;
        z-index: 999;
        padding: 2rem;
        padding-bottom: calc(2rem + env(safe-area-inset-bottom, 20px));
        opacity: 0;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        border-top: 1px solid rgba(230, 57, 70, 0.2);
        max-height: calc(100vh - 80px - env(safe-area-inset-bottom, 20px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .mobile-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .mobile-menu__cta {
        background: var(--gradient-accent);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
        margin-bottom: env(safe-area-inset-bottom, 10px);
        display: block;
        width: 100%;
    }
    
    .header__mobile-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .header__mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .header__mobile-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    body.no-scroll {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    .hero__cta-group {
        flex-direction: column;
        align-items: center;
    }

    .hero__cta {
        width: 100%;
        max-width: 300px;
    }

    .features__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .city-selection__title,
    .contact-form__title {
        font-size: 2rem;
    }

    .form-card {
        padding: 1.5rem;
    }

    .header__logo-text {
        display: none;
    }

    .faq-section {
        padding: 3rem 1rem;
    }

    .faq-question {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .faq-answer.active {
        padding: 0 1.5rem 1.5rem;
    }

    .contact-cta {
        padding: 3rem 1rem;
    }

    .contact-cta__buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-cta__btn {
        width: 100%;
        max-width: 300px;
    }

    .footer__contact {
        flex-direction: column;
        gap: 1rem;
    }

    /* SHOP MOBILE STYLES */
    .shop {
        padding: 3rem 1rem;
    }

    .shop__controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .shop__filters-toggle {
        display: block;
    }

    .shop__results-info {
        text-align: center;
        order: -1;
    }

    .shop__sort {
        justify-content: space-between;
    }

    .view-toggle {
        display: none;
    }

    .shop__content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .shop__sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 90%;
        max-width: 350px;
        height: 100vh;
        z-index: 1500;
        overflow-y: auto;
        transition: left 0.3s ease;
        margin: 0;
        border-radius: 0;
        padding: 2rem 1.5rem;
    }

    .shop__sidebar.show-mobile {
        left: 0;
    }

    .shop__sidebar.show-mobile::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-card__content {
        padding: 1.25rem;
    }

    .product-card__footer {
        padding: 1.25rem;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .product-card__button {
        width: 100%;
        justify-content: center;
    }

    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-state__icon {
        font-size: 3rem;
    }

    /* ORDER POPUP MOBILE */
    .order-popup__content {
        width: 95%;
        max-height: 95vh;
        margin: 2.5vh auto;
        border-radius: 20px;
    }

    .order-popup__product {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .order-popup__product-image {
        width: 100px;
        height: 100px;
    }

    .order-popup__form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .shop__sidebar {
        width: 100%;
        max-width: none;
    }

    .filter-actions {
        flex-direction: column;
    }

    .product-card__image {
        height: 180px;
    }

    .order-popup__content {
        width: 98%;
        margin: 1vh auto;
        border-radius: 15px;
    }

    .order-popup__product {
        padding: 1rem;
    }

    .order-popup__form {
        padding: 1rem;
    }
}

/* Desktop specific styles */
@media (min-width: 769px) {
    .header__nav {
        display: flex !important;
    }
    
    .header__nav-list {
        display: flex !important;
    }
    
    .header__mobile-toggle {
        display: none !important;
    }
    
    .header__logo-icon {
        display: none;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }

    .product-card__image {
        height: 240px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-card__image img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.hidden { display: none; }
.visible { display: block; }

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .product-card {
        border: 2px solid var(--primary-black);
    }
    
    .filter-checkbox .checkmark {
        border-width: 3px;
    }
}

/* Print styles */
@media print {
    .header, .footer, .scroll-to-top, .order-popup {
        display: none !important;
    }
    
    .shop__sidebar {
        display: none !important;
    }
    
    .shop__content {
        grid-template-columns: 1fr !important;
    }
}

@media (max-height: 720px) {
    div[data-live-chat-id="65d729d43bd155a1a605f167"] .widget-wrapper .widget.widget-open {
      height: 50% !important;
      max-height: 50% !important;
    }
}

/* Исправление для iOS Safari - мобильные фильтры */

/* Основные стили для мобильного сайдбара */
@media (max-width: 768px) {
    .shop__sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 90%;
        max-width: 350px;
        height: 100vh;
        height: 100dvh; /* Новая единица для лучшей поддержки */
        z-index: 1500;
        overflow: hidden; /* Убираем скролл с контейнера */
        transition: left 0.3s ease;
        margin: 0;
        border-radius: 0;
        padding: 0; /* Убираем padding с контейнера */
        display: flex;
        flex-direction: column;
    }

    .shop__sidebar.show-mobile {
        left: 0;
    }

    /* Контейнер фильтров с правильной прокруткой */
    .shop__sidebar .filters {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 2rem 1.5rem 0; /* Padding только сверху и по бокам */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Плавная прокрутка на iOS */
    }

    /* Заголовок фильтров */
    .shop__sidebar .filters__title {
        margin-bottom: 1.5rem;
        flex-shrink: 0; /* Не сжимается */
    }

    /* Контент фильтров */
    .shop__sidebar .filter-group {
        margin-bottom: 1.5rem;
        flex-shrink: 0;
    }

    /* Кнопки действий - фиксированные внизу */
    .shop__sidebar .filter-actions {
        flex-shrink: 0; /* Не сжимается */
        padding: 1.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        background: var(--gray-light);
        margin-top: auto; /* Прижимаем к низу */
        
        /* Отступ для iOS Safari */
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 20px));
        
        /* Fallback для старых iOS */
        padding-bottom: calc(1.5rem + constant(safe-area-inset-bottom, 20px));
    }

    /* Дополнительная область прокрутки для контента фильтров */
    .shop__sidebar .filter-group:last-of-type {
        margin-bottom: 2rem; /* Дополнительный отступ перед кнопками */
    }

    /* Backdrop overlay */
    .shop__sidebar.show-mobile::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}

/* Дополнительные исправления для маленьких экранов */
@media (max-width: 480px) {
    .shop__sidebar {
        width: 100%;
        max-width: none;
    }

    .shop__sidebar .filter-actions {
        padding-left: 1rem;
        padding-right: 1rem;
        
        /* Увеличенный отступ для очень маленьких экранов */
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 30px));
        padding-bottom: calc(1.5rem + constant(safe-area-inset-bottom, 30px));
    }

    .shop__sidebar .filters {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Исправление для ландшафтной ориентации */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
    .shop__sidebar {
        height: 100vh;
        height: 100dvh;
    }

    .shop__sidebar .filter-actions {
        padding-top: 1rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 10px));
        padding-bottom: calc(1rem + constant(safe-area-inset-bottom, 10px));
    }

    .shop__sidebar .filter-group {
        margin-bottom: 1rem;
    }
}

/* Блокировка скролла body при открытых фильтрах */
body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    
    /* Исправление для iOS Safari viewport jumping */
    -webkit-overflow-scrolling: touch;
}

/* Дополнительные стили для лучшей работы на iOS */
.shop__sidebar .filters {
    /* Предотвращение "резинового" скролла в Safari */
    overscroll-behavior: contain;
    
    /* Улучшенная производительность прокрутки */
    will-change: scroll-position;
}

/* Индикатор прокрутки для iOS */
.shop__sidebar .filters::-webkit-scrollbar {
    width: 2px;
}

.shop__sidebar .filters::-webkit-scrollbar-track {
    background: transparent;
}

.shop__sidebar .filters::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1px;
}

/* Анимация появления для лучшего UX */
.shop__sidebar.show-mobile .filters {
    animation: slideInFilters 0.3s ease-out;
}

@keyframes slideInFilters {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Дополнительное исправление для очень новых iPhone */
@supports (height: 100dvh) {
    @media (max-width: 768px) {
        .shop__sidebar {
            height: 100dvh;
        }
    }
}

/* Исправление для старых браузеров */
@supports not (padding: env(safe-area-inset-bottom)) {
    @media (max-width: 768px) {
        .shop__sidebar .filter-actions {
            padding-bottom: 2.5rem; /* Фиксированный отступ для старых браузеров */
        }
    }
}

/* ===== Account Access Modal (единственная версия) ===== */
.account-access-modal{position:fixed;inset:0;z-index:9999;display:none;opacity:0;transition:all .25s ease}
.account-access-modal.show{display:flex;opacity:1}

.account-access-modal__overlay{
  position:absolute;inset:0;
  background:rgba(0,0,0,.5);
  backdrop-filter:saturate(120%) blur(2px)
}

.account-access-modal__content {
    position: relative;
    max-width: 520px;
    margin: 10vh auto 0;
    background: #111;
    color: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.08);
    outline: none;
    transform: scale(.98);
    transition: transform .25s ease;
    height: 67%;
}
.account-access-modal.show .account-access-modal__content{transform:scale(1)}

.account-access-modal__close{
  position:absolute;top:8px;right:12px;width:36px;height:36px;border:0;border-radius:10px;
  background:#1e1e1e;color:#fff;font-size:22px;cursor:pointer
}
.account-access-modal__close:hover{background:#262626}

.account-access-modal__header{display:grid;gap:6px;margin-bottom:12px}
.account-access-modal__icon{font-size:28px}
.account-access-modal__title{margin:0;font-size:22px;font-weight:700}
.account-access-modal__subtitle{margin:0;opacity:.8}
.account-access-modal__body{margin-top:10px}

.access-options{display:grid;gap:12px}
.access-option{
  display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;
  text-decoration:none;color:#fff;background:#1f2937;border:1px solid rgba(255,255,255,.06);
  border-radius:12px;padding:12px 14px
}
.access-option:hover{background:#243042}
.access-option--recommended{background:#1f2a44;border-color:rgba(59,130,246,.35)}
.access-option__icon{font-size:22px}
.access-option__title{margin:0 0 4px 0;font-weight:700}
.access-option__description{margin:0;opacity:.8;font-size:.95rem}
.access-option__badge{font-size:.85rem;opacity:.85}

/* Блокировка прокрутки (не конфликтует с .no-scroll мобильного меню) */
body.modal-open{overflow:hidden}

/* Мобилки */
@media (max-width: 768px){
  .account-access-modal__content{margin:6vh auto 0;border-radius:14px;padding:20px}
}


/* === Telegram Hero Promo (Pro) === */
.tg-hero.pro{
  --tg-bg: rgba(255,255,255,0.06);
  --tg-border: rgba(255,255,255,0.12);
  --tg-text: #ffffff;
  --tg-hint: rgba(255,255,255,0.78);
  --tg-shadow: 0 18px 50px rgba(0,0,0,.35);

  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;

  background: var(--tg-bg);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--tg-border);
  border-radius: 18px;
  padding: clamp(16px, 2vw, 24px);
  margin: clamp(16px, 2vw, 24px) auto 0;
  box-shadow: var(--tg-shadow);
  max-width: 1100px;
  color: var(--tg-text);
  overflow: hidden;
  isolation: isolate;
  animation: fadeInUp 0.8s ease-out .6s both;
}

.tg-hero__glow{
  position:absolute; inset:-40% -10% auto -10%;
  height: 90%;
  background: radial-gradient(60% 60% at 30% 40%, rgba(230,57,70,.25), transparent 60%),
              radial-gradient(50% 50% at 80% 60%, rgba(255,71,87,.18), transparent 60%);
  filter: blur(22px);
  z-index:-1;
  animation: tgFloat 8s ease-in-out infinite alternate;
}
.tg-hero__ring{
  position:absolute; inset:auto -20% -50% auto;
  width: 520px; height: 520px; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.12);
  transform: rotate(8deg);
  animation: tgSpin 22s linear infinite;
  z-index:-1;
}

.tg-hero__eyebrow{
  display:inline-block;
  font-size:.78rem; font-weight:800;
  letter-spacing:.08em; text-transform:uppercase;
  color: var(--accent-red);
  background: rgba(230,57,70,.12);
  border:1px solid rgba(230,57,70,.25);
  padding:.28rem .55rem; border-radius:999px;
  margin-bottom:.55rem;
}

.tg-hero__title{
  margin:0 0 .35rem 0;
  font-size: clamp(1.28rem, 2.3vw, 1.9rem);
  line-height:1.25; color:#fff; font-weight:900;
  letter-spacing:-.01em;
}

.tg-hero__subtitle{
  margin:0 0 1rem 0;
  color: var(--tg-hint);
  font-size: clamp(.98rem, 1.5vw, 1.08rem);
  line-height:1.6;
}

.tg-hero__actions{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
}

.tg-hero__btn{
  position: relative;
  display:inline-flex; align-items:center; gap:10px;
  background: var(--gradient-accent);
  color:#fff; text-decoration:none;
  font-weight:800; letter-spacing:.02em;
  padding:.9rem 1.2rem; border-radius:14px; border:0;
  box-shadow: var(--shadow-medium);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  will-change: transform;
  overflow:hidden;
}
.tg-hero__btn:hover{ transform: translateY(-2px); box-shadow: var(--shadow-heavy); }
.tg-hero__btn:active{ transform: translateY(-1px); filter: brightness(.96); }

.tg-hero__btn-ico{ width:20px; height:20px; display:block; opacity:.95; }

.tg-hero__btn-shimmer{
  position:absolute; inset:0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.18) 20%, transparent 40%);
  transform: translateX(-120%);
  animation: tgShimmer 2.2s ease-in-out .6s infinite;
  pointer-events:none;
}

.tg-hero__hint{ font-size:.92rem; color:var(--tg-hint); }

/* QR — только десктоп */
.tg-hero__qr{ display:none; justify-self:end; text-align:center; }
.tg-hero__qr img{
  width:180px; height:180px; border-radius:14px;
  border:1px solid var(--tg-border); box-shadow: var(--tg-shadow);
  object-fit: cover; background: var(--gray-light);
  transform: translateZ(0);
  animation: tgPulse 4.5s ease-in-out infinite;
}
.tg-hero__qr-caption{ margin-top:8px; font-size:.85rem; color:var(--tg-hint); }

/* Desktop layout */
@media (min-width: 992px){
  .tg-hero.pro{ grid-template-columns: 1fr auto; gap: 22px; }
  .tg-hero__qr{ display:block; }
}

/* Вписываемся в твой hero-анимации/сетки */
.hero .tg-hero.pro{ margin-top: clamp(10px, 1.2vw, 16px); }

/* Мини- анімації */
@keyframes tgShimmer{
  0%{ transform: translateX(-120%); }
  50%{ transform: translateX(20%); }
  100%{ transform: translateX(120%); }
}
@keyframes tgFloat{
  0%{ transform: translateY(0); opacity:.9; }
  100%{ transform: translateY(10px); opacity:1; }
}
@keyframes tgSpin{
  0%{ transform: rotate(0deg); }
  100%{ transform: rotate(360deg); }
}
@keyframes tgPulse{
  0%,100%{ box-shadow: 0 18px 50px rgba(0,0,0,.35); }
  50%{ box-shadow: 0 18px 60px rgba(230,57,70,.25); }
}

@media (max-width: 768px){
  .tg-hero__title{ font-size: clamp(1.18rem, 6vw, 1.5rem); }
  .tg-hero__subtitle{ font-size: .98rem; }
  .tg-hero__btn{ width: 100%; justify-content:center; }
  .tg-hero__hint{ width: 100%; text-align:center; }
}

.hero .tg-hero.pro.tg-hero--align{
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;         
  text-align: left;
}


@media (min-width: 992px){
  .tg-hero.pro.tg-hero--align{
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;    
  }
  .tg-hero__qr{ align-self: center; } 
}

.tg-hero__toprow {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: .35rem;
}

.tg-hero__badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:.82rem;
  font-weight:700;
  color:#fff;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  padding:.28rem .6rem;
}
.tg-hero__badge-dot{
  width:8px; height:8px; border-radius:50%;
  background:#2ecc71;
  box-shadow: 0 0 10px rgba(46,204,113,.7);
}


.tg-hero__bullets{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  list-style:none;
  margin: .35rem 0 1rem 0;
  padding:0;
  color: var(--tg-hint);
  font-size:.95rem;
}
.tg-hero__bullets li{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:.35rem .6rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  white-space: nowrap;
}
.tg-hero__bullets li::before{
  content: "●";
  font-size:.7rem;
  line-height:1;
  color: var(--accent-red);
}

.hero .tg-hero.pro{
  margin-top: clamp(12px, 1.2vw, 18px);
}
.tg-hero__actions{ margin-top:.25rem; }

@media (max-width: 768px){
  .tg-hero__toprow{ justify-content:center; }
  .tg-hero__title, .tg-hero__subtitle{ text-align:center; }
  .tg-hero__bullets{ justify-content:center; }
  .tg-hero__actions{ justify-content:center; }
}
