:root {
    /* Премиальная палитра — розово-фиолетовая гамма */
    --primary: #A00D8E;
    --primary-dark: #6B1E8C;
    --primary-light: #D41BB8;
    --primary-50: rgba(160, 13, 142, 0.08);
    --primary-100: rgba(160, 13, 142, 0.14);
    
    /* Градиенты */
    --gradient-main: linear-gradient(135deg, #C715A8 0%, #8B2EAF 40%, #5A189A 100%);
    --gradient-hero: linear-gradient(160deg, #1a0a24 0%, #2d1b4e 35%, #4a1d6e 70%, #6B2A9E 100%);
    --gradient-accent: linear-gradient(135deg, #C715A8 0%, #9B2DB5 100%);
    --gradient-soft: linear-gradient(180deg, var(--primary-50) 0%, rgba(107, 30, 140, 0.04) 100%);
    --gradient-mesh: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(199, 21, 168, 0.35), transparent),
                     radial-gradient(ellipse 60% 40% at 90% 60%, rgba(139, 46, 175, 0.25), transparent);
    
    /* Нейтральные */
    --text-primary: #0f0f12;
    --text-secondary: #4a4a52;
    --text-muted: #8c8c96;
    --bg-primary: #fefefe;
    --bg-secondary: #f6f5f8;
    --bg-tertiary: #eeecf2;
    --border: #e4e2e8;
    --border-hover: #d0ccd6;
    
    /* Тени — многослойные, мягкие */
    --shadow-sm: 0 1px 2px rgba(15, 15, 18, 0.04), 0 2px 4px rgba(15, 15, 18, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 15, 18, 0.06), 0 8px 24px rgba(160, 13, 142, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 15, 18, 0.08), 0 16px 48px rgba(160, 13, 142, 0.12);
    --shadow-xl: 0 20px 48px rgba(15, 15, 18, 0.1), 0 24px 64px rgba(160, 13, 142, 0.14);
    --shadow-card: 0 2px 8px rgba(15, 15, 18, 0.04), 0 4px 16px rgba(15, 15, 18, 0.04);
    --shadow-card-hover: 0 12px 32px rgba(15, 15, 18, 0.08), 0 0 0 1px rgba(160, 13, 142, 0.06);
    
    /* Рейтинги */
    --star-filled: #f5b800;
    --star-empty: #e4e2e8;
    
    /* Радиусы */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    /* Анимации */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition-normal: 0.35s var(--ease-out);
    --transition-slow: 0.5s var(--ease-out);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: var(--primary-100);
    color: var(--text-primary);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1;
}

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

/* Header — лёгкий стеклянный эффект */
.header {
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(254, 254, 254, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(228, 226, 232, 0.6);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.logo:hover {
    opacity: 0.9;
    transform: scale(1.01);
}

.logo-text-ru {
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: -0.02em;
}

.logo-img {
    height: 46px;
    width: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    gap: 6px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.nav-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Hero Section — премиальный баннер */
.hero {
    background: var(--gradient-hero);
    color: #fff;
    padding: 96px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 56px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
    pointer-events: none;
    opacity: 0.4;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(36px, 5.5vw, 60px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
    animation: heroFadeIn 0.8s var(--ease-out) both;
}

/* Управляемый перенос заголовка на мобильных: первая строка — бренд, вторая — платформа */
.hero-title-br {
    display: none;
}

.hero-title-alt {
    display: inline;
}

.hero-title-ru {
    font-weight: 700;
    opacity: 0.92;
}

@media (max-width: 600px) {
    .hero-title-br {
        display: block;
    }
    .hero-title {
        line-height: 1.15;
        margin-bottom: 16px;
    }
    .hero-title-alt {
        font-weight: 700;
        opacity: 0.95;
        letter-spacing: -0.02em;
    }
}

.hero-subtitle {
    font-size: clamp(18px, 2.2vw, 22px);
    opacity: 0.92;
    font-weight: 500;
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.5;
    letter-spacing: 0.01em;
    animation: heroFadeIn 0.8s var(--ease-out) 0.1s both;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.btn-warranty {
    background: rgba(255, 255, 255, 0.98);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 16px;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.2);
    letter-spacing: 0.02em;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-fast);
    animation: heroFadeIn 0.8s var(--ease-out) 0.2s both;
}

.btn-warranty:hover {
    background: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.hero-warranty-hint {
    margin-top: 16px;
    font-size: 14px;
    font-style: italic;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
    max-width: 420px;
    text-align: center;
}

/* Section Titles */
.section-title {
    font-size: clamp(26px, 3.2vw, 34px);
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 48px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
}

/* Products Carousel */
.hit-products {
    padding: 72px 0;
    background: var(--bg-primary);
}

.carousel-wrap {
    position: relative;
    width: 100%;
}

.products-carousel {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 16px 4px 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
}

.products-carousel::-webkit-scrollbar {
    display: none;
}

.products-carousel .carousel-item {
    flex: 0 0 min(260px, 78vw);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Catalog page */
.catalog-section {
    padding: 56px 0 80px;
}

.catalog-section .section-title {
    margin-bottom: 40px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.catalog-card .product-card-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    width: 100%;
    /* 896×1200 — точное соотношение, чтобы фото влезало без обрезки */
    aspect-ratio: 896 / 1200;
    overflow: hidden;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.catalog-card .product-card-image-link .product-image,
.catalog-card .product-card-image-link .product-image-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.catalog-card .product-card-image-link .product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-card .product-name-link {
    color: inherit;
    text-decoration: none;
}

.catalog-card .product-name-link:hover {
    color: var(--primary);
}

.catalog-empty {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    padding: 48px 24px;
}

.product-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: transparent;
}

.product-card:hover::before {
    opacity: 1;
}

@media (max-width: 768px) {
    .product-card:hover {
        transform: translateY(-2px);
    }
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: var(--bg-tertiary);
    transition: transform var(--transition-slow);
    display: block;
}

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

/* Область фото карточки — 896×1200, фото влезает полностью без обрезки */
.product-card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 896 / 1200;
    overflow: hidden;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.product-card-image-wrap .product-image,
.product-card-image-wrap .product-image-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-card-image-wrap .product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    min-height: 0;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
}

.product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

.star {
    color: var(--star-empty);
    font-size: 15px;
    line-height: 1;
}

.star.filled {
    color: var(--star-filled);
}

.rating-value {
    margin-left: 2px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.product-card .btn-primary {
    padding: 10px 18px;
    font-size: 14px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(160, 13, 142, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(160, 13, 142, 0.4);
}

.btn-buy {
    background: linear-gradient(135deg, #e85d04 0%, #f48c06 100%);
    color: #fff;
    padding: 18px 36px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(232, 93, 4, 0.35);
    border-radius: var(--radius-md);
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(232, 93, 4, 0.45);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Error pages (404, etc.) */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 64px 0;
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
}
.error-page-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    pointer-events: none;
}
.error-page .container {
    position: relative;
    z-index: 1;
}
.error-page-card {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
    padding: 48px 32px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    animation: errorPageIn 0.6s var(--ease-out) both;
}
@keyframes errorPageIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.error-page-code {
    display: block;
    font-size: clamp(80px, 18vw, 120px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 16px rgba(160, 13, 142, 0.25));
}
.error-page-title {
    font-size: clamp(24px, 4.5vw, 30px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.error-page-text {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 28px;
}
.error-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}
.error-page-actions .btn-primary {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
}
.error-page-actions .btn-secondary {
    padding: 14px 28px;
    font-size: 16px;
}
@media (max-width: 600px) {
    .error-page {
        min-height: 60vh;
        padding: 40px 0;
    }
    .error-page-card {
        padding: 36px 24px;
    }
    .error-page-code {
        font-size: clamp(64px, 22vw, 90px);
    }
}

/* Info Blocks */
.info-block {
    padding: 80px 0;
}

.info-block:nth-child(even) {
    background: var(--bg-tertiary);
}

.info-content {
    max-width: 880px;
    margin: 0 auto;
}

.info-title {
    font-size: clamp(30px, 3.8vw, 42px);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.info-subtitle {
    font-size: clamp(20px, 2.4vw, 24px);
    margin-bottom: 28px;
    text-align: center;
    color: var(--text-secondary);
    font-weight: 600;
    line-height: 1.4;
}

.info-text {
    font-size: 17px;
    margin-bottom: 22px;
    line-height: 1.75;
    color: var(--text-secondary);
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.advantages {
    margin: 40px 0;
}

.advantages h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.advantages-list {
    list-style: none;
    padding-left: 0;
}

.advantages-list li {
    padding: 18px 0 18px 44px;
    position: relative;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    transition: color var(--transition-fast);
}

.advantages-list li:last-child {
    border-bottom: none;
}

.advantages-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 18px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(160, 13, 142, 0.3);
}

/* Delivery Section */
.delivery-section {
    padding: 80px 0;
    background: var(--bg-tertiary);
}

.delivery-header {
    text-align: center;
    margin-bottom: 48px;
}

.delivery-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
    padding: 6px 14px;
    background: var(--primary-50);
    border-radius: var(--radius-full);
}

.delivery-title {
    font-size: clamp(28px, 3.2vw, 38px);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.delivery-lead {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

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

.delivery-card {
    background: var(--bg-primary);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition-normal), border-color var(--transition-fast);
}

.delivery-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-hover);
}

.delivery-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    background: var(--gradient-soft);
    color: var(--primary);
}

.delivery-card-icon svg {
    flex-shrink: 0;
    color: currentColor;
}

.delivery-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.delivery-card-text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
}

.delivery-footer {
    text-align: center;
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 900px) {
    .delivery-cards {
        grid-template-columns: 1fr;
    }
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.about-header {
    text-align: center;
    margin-bottom: 48px;
}

.about-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
    padding: 6px 14px;
    background: var(--primary-50);
    border-radius: var(--radius-full);
}

.about-title {
    font-size: clamp(28px, 3.2vw, 38px);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.about-lead {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.about-card {
    background: var(--bg-secondary);
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: box-shadow var(--transition-normal), border-color var(--transition-fast);
}

.about-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-hover);
}

.about-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    background: var(--gradient-soft);
    color: var(--primary);
}

.about-card-icon svg {
    flex-shrink: 0;
    color: currentColor;
}

.about-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.about-card-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.about-footer {
    text-align: center;
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
}

/* Guarantee Section */
.guarantee-section {
    padding: 80px 0;
    background: var(--bg-tertiary);
}

.guarantee-header {
    text-align: center;
    margin-bottom: 48px;
}

.guarantee-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
    padding: 6px 14px;
    background: var(--primary-50);
    border-radius: var(--radius-full);
}

.guarantee-title {
    font-size: clamp(28px, 3.2vw, 38px);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.guarantee-lead {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.guarantee-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.guarantee-card {
    background: var(--bg-primary);
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition-normal), border-color var(--transition-fast);
}

.guarantee-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-hover);
}

.guarantee-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    background: var(--gradient-soft);
    color: var(--primary);
}

.guarantee-card-icon svg {
    flex-shrink: 0;
    color: currentColor;
}

.guarantee-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.guarantee-card-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.guarantee-footer {
    text-align: center;
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .about-section,
    .guarantee-section {
        padding: 48px 0;
    }
    .about-header,
    .guarantee-header {
        margin-bottom: 32px;
    }
    .about-cards,
    .guarantee-cards {
        gap: 20px;
        margin-bottom: 32px;
    }
}

/* Product Detail */
.product-detail-container {
    padding: 48px 0;
    min-width: 0;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    margin-bottom: 56px;
    min-width: 0;
    align-items: start;
}

/* На десктопе мобильный блок скрыт, колонки явно заданы */
@media (min-width: 769px) {
    .product-detail-mobile-header,
    .product-buy-mobile {
        display: none !important;
    }
    .product-detail-image {
        grid-column: 1;
    }
    .product-detail-info {
        grid-column: 2;
    }
}

.product-detail-image {
    position: sticky;
    top: 100px;
    height: fit-content;
    min-width: 0;
}

.product-main-image {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    transition: box-shadow var(--transition-normal);
}

.product-detail-image:hover .product-main-image {
    box-shadow: var(--shadow-xl);
}

/* Product gallery (several photos/videos, main + thumbs) */
.product-gallery {
    width: 100%;
    min-width: 0;
}

.product-gallery-main {
    position: relative;
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 1;
    cursor: pointer;
}
.product-gallery-main:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.product-gallery-main::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background var(--transition-fast);
    pointer-events: none;
}
.product-gallery-main:hover::after {
    background: rgba(0,0,0,0.05);
}

/* Одиночное фото товара (клик — открыть в лайтбоксе) */
.js-product-image-single {
    cursor: pointer;
    display: block;
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.js-product-image-single:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.js-product-image-single .product-main-image {
    display: block;
}

.product-gallery-item {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.product-gallery-item.active {
    display: block;
    z-index: 1;
}

.product-gallery-item .product-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-video-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.product-video-wrap iframe,
.product-video-wrap .product-video-file {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: contain;
}

.product-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.product-gallery-thumb {
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-tertiary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    flex-shrink: 0;
}

.product-gallery-thumb:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.product-gallery-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-gallery-thumb-video {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--primary);
    font-size: 24px;
    line-height: 1;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

/* На мобильном показываются .product-detail-mobile-header и .product-buy-mobile */
.product-detail-mobile-header,
.product-buy-mobile {
    display: none;
}

.product-detail-name {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.25;
    letter-spacing: -0.03em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.product-buy-section {
    padding: 28px;
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.product-section {
    padding: 28px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
    min-width: 0;
}

.product-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.product-section:hover {
    box-shadow: var(--shadow-card);
    border-color: var(--border-hover);
}

.characteristics,
.description {
    line-height: 1.85;
    white-space: pre-line;
    color: var(--text-secondary);
    font-size: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    overflow-x: hidden;
}

/* Раскрываемый блок характеристик */
.product-section-characteristics {
    padding: 0;
    overflow: hidden;
}
.characteristics-details {
    border-radius: var(--radius-lg);
}
.characteristics-summary {
    list-style: none;
    padding: 20px 28px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: background var(--transition-fast);
    user-select: none;
}
.characteristics-summary::-webkit-details-marker {
    display: none;
}
.characteristics-summary:hover {
    background: var(--bg-secondary);
}
.characteristics-summary-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    position: relative;
    color: var(--primary);
    transition: transform var(--transition-normal);
}
.characteristics-summary-icon::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 2px;
    margin: -1px 0 0 -5px;
    background: currentColor;
}
.characteristics-summary-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 10px;
    margin: -5px 0 0 -1px;
    background: currentColor;
    transition: transform var(--transition-normal);
}
.characteristics-details[open] .characteristics-summary-icon::after {
    transform: scaleY(0);
}
.characteristics-inner {
    padding: 0 28px 24px;
}
.characteristics-list {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.characteristics-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 16px 24px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    margin: 0;
    align-items: baseline;
}
.characteristics-row:last-child {
    border-bottom: none;
}
.characteristics-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 0;
}
.characteristics-value {
    font-size: 15px;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.45;
}
.characteristics-plain {
    padding: 8px 0;
    line-height: 1.85;
    white-space: pre-line;
    color: var(--text-secondary);
    font-size: 15px;
}

/* Блок описания под карточкой товара (внутри левой колонки на десктопе) */
.product-description-block {
    margin-bottom: 0;
    margin-top: 32px;
    padding: 0;
    border-top: none;
}
.product-description-block .product-description-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.product-description-content {
    max-width: 720px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* FAQ Section */
.faq-section {
    margin: 56px 0;
    min-width: 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    max-width: 100%;
}

.faq-item {
    background: var(--bg-primary);
    padding: 26px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.faq-item:hover {
    border-color: var(--primary-100);
    box-shadow: var(--shadow-card);
    transform: translateX(4px);
}

.faq-question {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.faq-answer {
    line-height: 1.75;
    color: var(--text-secondary);
    white-space: pre-line;
    overflow-wrap: anywhere;
    word-break: break-all;
    min-width: 0;
    max-width: 100%;
}

.faq-answer p {
    overflow-wrap: anywhere;
    word-break: break-all;
    max-width: 100%;
}

/* Reviews Section — карусель с подгрузкой */
.reviews-section {
    padding: 80px 0;
    background: var(--bg-tertiary);
}

.reviews-carousel-container {
    position: relative;
    padding: 0 52px;
}

.reviews-carousel-wrap {
    position: relative;
    margin: 0 -12px;
}

.reviews-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    padding: 12px 0 24px;
}

.reviews-carousel::-webkit-scrollbar {
    height: 8px;
}

.reviews-carousel::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.reviews-carousel::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.reviews-carousel .review-card {
    flex: 0 0 340px;
    width: 340px;
    max-width: 340px;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

.reviews-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviews-carousel-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-card-hover);
}

.reviews-carousel-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.reviews-carousel-prev {
    left: 0;
}

.reviews-carousel-next {
    right: 0;
}

.reviews-carousel-loading {
    text-align: center;
    padding: 12px 0 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-height: 1.5em;
}

.reviews-carousel-loading.is-loading::after {
    content: 'Загрузка отзывов…';
}

.review-card {
    background: var(--bg-primary);
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid var(--border);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-fast);
}

.review-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
    border-color: transparent;
}

/* Review photos carousel */
.review-photos-carousel {
    position: relative;
    width: 100%;
    max-height: 220px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
}

.review-photos-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    height: 100%;
}

.review-photos-track::-webkit-scrollbar {
    display: none;
}

.review-photo-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 200px;
    scroll-snap-align: start;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.review-photos-track .review-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-photo-video {
    object-fit: contain;
}

/* Кнопки карусели: только при наведении и только если медиа больше одного */
.review-photo-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.2s, background 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

.review-photos-carousel.has-multiple:hover .review-photo-btn {
    opacity: 1;
    pointer-events: auto;
}

.review-photo-btn:hover {
    background: rgba(0, 0, 0, 0.75);
}

.review-photo-btn:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.review-photo-prev { left: 8px; }
.review-photo-next { right: 8px; }

.review-photos-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.review-photo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s;
}

.review-photo-dot:hover,
.review-photo-dot.active {
    background: white;
}

.review-product-link {
    color: var(--primary);
    text-decoration: none;
    font-style: normal;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.review-product-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.review-photo {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* Лайтбокс медиа отзывов */
.review-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.review-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.review-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.review-lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-lightbox-content {
    max-width: 100%;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-lightbox-content img,
.review-lightbox-content video {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.review-lightbox-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.review-lightbox-prev,
.review-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
}

.review-lightbox.has-multiple .review-lightbox-prev,
.review-lightbox.has-multiple .review-lightbox-next {
    display: flex;
}

.review-lightbox-prev { left: -52px; }
.review-lightbox-next { right: -52px; }

.review-lightbox-prev:hover,
.review-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.35);
}

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

.review-author {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.review-product {
    font-size: 14px;
    color: var(--text-muted);
}

.review-comment {
    line-height: 1.75;
    color: var(--text-secondary);
    flex: 1;
    font-size: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.review-date {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Legal Pages */
.legal-page {
    padding: 56px 0;
    max-width: 880px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: -0.03em;
}

.legal-content {
    background: var(--bg-primary);
    padding: 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}

.legal-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.legal-content p {
    margin-bottom: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.legal-content ul {
    margin-left: 24px;
    margin-bottom: 18px;
}

.legal-content li {
    margin-bottom: 10px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Footer — тёмный с градиентным акцентом */
.footer {
    background: linear-gradient(180deg, #0f0f14 0%, #1a1a22 100%);
    color: #fff;
    padding: 56px 0 28px;
    margin-top: 80px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(199, 21, 168, 0.4), transparent);
    opacity: 0.6;
}

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

.footer-section h3 {
    margin-bottom: 22px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.95;
}

.footer-section p {
    margin-bottom: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: inline-block;
    padding: 2px 0;
    min-height: 1.5em;
}

.footer-section a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(254, 254, 254, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 24px 28px;
    z-index: 10000;
    box-shadow: 0 -8px 32px rgba(15, 15, 18, 0.12);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

.cookie-consent-content p {
    margin: 0;
    flex: 1;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

.cookie-button {
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cookie-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(160, 13, 142, 0.35);
}

/* Responsive Design — планшеты и телефоны */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
        min-width: 0;
    }

    .header {
        padding: 12px 0;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 12px;
    }

    .logo {
        font-size: 1.2rem;
        gap: 10px;
        min-width: 0;
    }

    .logo-img {
        height: 38px;
    }

    .nav {
        flex-wrap: wrap;
        gap: 4px;
        justify-content: flex-end;
    }

    .nav-link {
        padding: 10px 12px;
        font-size: 13px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .hero {
        padding: 48px 0 56px;
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: clamp(26px, 7vw, 38px);
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
        max-width: 100%;
    }

    .btn-warranty {
        padding: 14px 24px;
        font-size: 15px;
        width: 100%;
        max-width: 280px;
    }

    .hero-warranty-hint {
        margin-top: 12px;
        font-size: 13px;
        max-width: 100%;
    }

    .section-title {
        margin-bottom: 28px;
        font-size: clamp(22px, 5vw, 28px);
        display: block;
        max-width: 100%;
    }

    .section-title::after {
        width: 36px;
        bottom: -6px;
    }

    .hit-products {
        padding: 40px 0;
    }

    .products-carousel {
        padding: 12px 0 20px;
        gap: 16px;
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .products-carousel .carousel-item {
        flex: 0 0 min(220px, 52vw);
    }

    .product-info {
        padding: 12px 14px;
        gap: 8px;
    }

    .product-name {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }

    .product-card .btn-primary {
        padding: 8px 14px;
        font-size: 13px;
        min-height: 40px;
    }

    .star {
        font-size: 13px;
    }

    .rating-value {
        font-size: 12px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
    }

    .btn-buy {
        padding: 14px 24px;
        font-size: 15px;
        width: 100%;
    }

    .catalog-section {
        padding: 40px 0 56px;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .catalog-card .product-card-image-link {
        aspect-ratio: 3 / 4;
    }

    .catalog-card .product-info {
        padding: 10px 12px;
        gap: 6px;
    }

    .catalog-card .product-name-link,
    .catalog-card .product-name {
        font-size: 13px;
        line-height: 1.3;
        -webkit-line-clamp: 2;
    }

    .catalog-card .product-rating .star {
        font-size: 12px;
    }

    .catalog-card .product-rating .rating-value {
        font-size: 11px;
    }

    .catalog-card .btn-primary {
        padding: 8px 12px;
        font-size: 12px;
        min-height: 36px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .product-detail-image {
        position: static;
    }

    /* Мобильный порядок: название над фото, кнопка «Купить» под фото */
    .product-detail-mobile-header {
        display: block;
        order: -1;
        margin-bottom: 4px;
    }
    .product-detail-mobile-header .product-detail-name {
        margin-bottom: 8px;
    }
    .product-buy-mobile {
        display: block;
        margin-top: 16px;
        margin-bottom: 0;
        padding: 0;
    }
    .product-buy-mobile .btn-buy {
        width: 100%;
        padding: 14px 24px;
        font-size: 15px;
    }
    .product-detail-info .product-detail-name,
    .product-detail-info .product-buy-section {
        display: none !important;
    }
    .product-detail-info .product-rating {
        display: none;
    }

    .product-description-block {
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .product-detail-container {
        padding: 24px 0;
    }

    .product-detail-name {
        font-size: clamp(22px, 6vw, 28px);
    }

    .product-buy-section,
    .product-section {
        padding: 20px;
    }

    .characteristics-summary {
        padding: 16px 20px;
        font-size: 18px;
    }
    .characteristics-inner {
        padding: 0 20px 20px;
    }
    .characteristics-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 12px 0;
    }

    .product-gallery-thumbs {
        gap: 8px;
        margin-top: 12px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .product-gallery-thumb {
        width: 56px;
        height: 56px;
        flex-shrink: 0;
    }

    .info-block {
        padding: 40px 0;
    }

    .info-content {
        padding: 0;
    }

    .info-title {
        font-size: clamp(22px, 6vw, 28px);
        margin-bottom: 16px;
    }

    .info-subtitle {
        font-size: 17px;
        margin-bottom: 20px;
    }

    .info-text {
        font-size: 15px;
        margin-bottom: 16px;
        text-align: left;
    }

    .advantages {
        margin: 24px 0;
    }

    .advantages h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .advantages-list li {
        padding: 14px 0 14px 40px;
        font-size: 15px;
    }

    .advantages-list li::before {
        width: 24px;
        height: 24px;
        font-size: 12px;
        top: 14px;
    }

    .reviews-section {
        padding: 40px 0;
    }

    .reviews-carousel-container {
        padding: 0 40px;
    }

    .reviews-carousel .review-card {
        flex: 0 0 300px;
        width: 300px;
        max-width: 300px;
    }

    .reviews-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .reviews-carousel-prev { left: 4px; }
    .reviews-carousel-next { right: 4px; }

    .review-card {
        padding: 20px;
    }

    .review-photos-carousel {
        max-height: 200px;
    }

    .review-photo-slide {
        height: 180px;
    }

    .review-author {
        font-size: 16px;
    }

    .review-comment {
        font-size: 14px;
    }

    .legal-page {
        padding: 32px 0;
    }

    .legal-content {
        padding: 20px 16px;
    }

    .legal-content h2 {
        font-size: 20px;
    }

    .cookie-consent {
        padding: 16px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0));
        left: 0;
        right: 0;
    }

    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .cookie-consent-content p {
        font-size: 14px;
    }

    .cookie-button {
        padding: 14px 28px;
        min-height: 48px;
        width: 100%;
        max-width: 200px;
    }

    .footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-section h3 {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 14px;
    }

    .footer-bottom {
        padding-top: 24px;
        font-size: 13px;
    }
}

/* Маленькие телефоны */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .logo-text-ru {
        display: none;
    }

    .logo-img {
        height: 34px;
    }

    .nav-link {
        padding: 8px 10px;
        font-size: 12px;
    }

    .hero {
        padding: 36px 0 44px;
        margin-bottom: 32px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .products-carousel .carousel-item {
        flex: 0 0 min(200px, 48vw);
    }

    .product-info {
        padding: 10px 12px;
    }

    .product-name {
        font-size: 13px;
    }

    .product-card .btn-primary {
        padding: 8px 12px;
        font-size: 12px;
        min-height: 36px;
    }

    .catalog-grid {
        gap: 10px;
    }

    .catalog-card .product-info {
        padding: 8px 10px;
    }

    .catalog-card .product-name-link,
    .catalog-card .product-name {
        font-size: 12px;
    }

    .catalog-card .btn-primary {
        padding: 6px 10px;
        font-size: 11px;
        min-height: 32px;
    }

    .product-detail-name {
        font-size: 20px;
    }

    .product-buy-section,
    .product-section {
        padding: 16px;
    }

    .product-gallery-thumb {
        width: 48px;
        height: 48px;
    }

    .info-title {
        font-size: 20px;
    }

    .advantages-list li {
        padding-left: 36px;
    }

    .advantages-list li::before {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
}

/* Очень узкие экраны (320px) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .header-content {
        flex-direction: column;
        align-items: stretch;
    }

    .logo {
        justify-content: center;
    }

    .nav {
        justify-content: center;
    }

    .hero-title {
        font-size: 22px;
    }

    .products-carousel .carousel-item {
        flex: 0 0 min(168px, 46vw);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
