/* Design Tokens & Reset */
@font-face {
    font-family: 'Antarctic';
    src: url('./fonts/Antarctic.woff2') format('woff2'),
         url('./fonts/Antarctic.woff') format('woff'),
         url('./fonts/Antarctic.otf') format('opentype');
    /* Загружен OTF шрифт */
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-bg: #f5f7fa;        /* Light cool off-white */
    --color-surface: #ffffff;   /* Pure white cards */
    --color-primary: #7f9dd0;   /* Brand Periwinkle Blue */
    --color-primary-hover: #6684b8;
    --color-secondary: #e6edf8; /* Soft blue-gray */
    --color-accent: #111111;    /* Deep charcoal / Black */
    --color-accent-bright: #e07a5f; /* Bright coral/peach */
    --color-text-main: #2b2b2b; /* Dark charcoal */
    --color-text-muted: #4a4c4b; /* Graphite gray for better contrast */
    --color-border: #e6e5e0;
    
    --font-headings: 'Montserrat', sans-serif;
    --font-logo: 'Antarctic', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-medium: 0 10px 30px rgba(127, 157, 208, 0.08);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography & Layout */
h1, h2, h3, h4, h5 {
    font-family: var(--font-headings);
    color: var(--color-primary);
    line-height: 1.25;
}

p {
    font-weight: 300;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Custom Buttons */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(127, 157, 208, 0.2);
}

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

.btn-secondary:hover {
    background-color: rgba(127, 157, 208, 0.05);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: var(--color-accent-bright);
    background-color: var(--color-accent-bright);
    color: #ffffff;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Header & Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(249, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(127, 157, 208, 0.08);
    z-index: 1000;
    transition: all var(--transition-fast);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    border-radius: 0;
}

.logo-text {
    font-family: var(--font-logo);
    font-size: 1.8rem;
    letter-spacing: 2px;
    font-weight: 500;
    color: var(--color-primary);
}

.logo-lya-wrapper {
    position: relative;
    display: inline-block;
}

.logo-butterfly {
    position: absolute;
    top: 0.1em; /* Level with the top of the letter 'Н' */
    left: 50%; /* Centered right over the letters 'ля' */
    transform: translateX(-50%) rotate(5deg);
    width: 0.7em; 
    height: auto;
    pointer-events: none;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .logo-text {
        font-size: 2.2rem;
    }
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.25rem 0;
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-primary);
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align content towards bottom, or center */
    padding-top: 100px;
    background-color: #f7f9fc;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        linear-gradient(110deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.85) 45%, rgba(255,255,255,0) 100%),
        linear-gradient(to top, #ffffff 0%, rgba(255,255,255,0.9) 120px, rgba(255,255,255,0) 250px);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex: 1;
    padding-bottom: 2rem;
}

.hero-content {
    max-width: 650px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    letter-spacing: 4px;
    font-weight: 400;
    text-transform: uppercase;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    display: flex;
    justify-content: flex-end;
}

.hero-badge {
    width: 250px;
    height: 250px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(127, 157, 208, 0.4);
}

.hero-badge-logo {
    width: 80%;
    height: auto;
    filter: brightness(0) invert(1); /* make logo white */
}

/* Features Strip */
.hero-features-strip {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 5rem;
    align-items: center;
    padding: 3rem 0 2rem;
    margin-top: auto; /* push to bottom */
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: left;
}

@media (max-width: 992px) {
    .hero {
        min-height: auto;
        padding-top: 140px; /* Added more padding to ensure title is not under header */
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }
    .hero-title { font-size: 2.2rem; margin-bottom: 0.5rem; }
    
    .hero-buttons { 
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 1rem; 
    }
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-badge {
        width: 140px;
        height: 140px;
        margin: 0 auto;
    }
    
    .hero-overlay { 
        background: linear-gradient(to bottom, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.85) 80%, #ffffff 100%); 
    }
    
    .hero-features-strip {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
        width: fit-content;
        margin: 3rem auto 0;
        border-top: none;
        padding-bottom: 3rem;
    }
}
/* About Section */
.about {
    padding: clamp(4rem, 7vw, 6.5rem) 0 clamp(3.5rem, 6vw, 5.5rem);
    background-color: #ffffff;
}

.about-header {
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

/* Cursive-only main section titles */
.collection-header .section-title,
.packaging-info-content .section-title,
.reviews-header .section-title {
    font-size: 3.6rem;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.faq-header .section-title {
    font-size: 3.9rem;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .collection-header .section-title,
    .packaging-info-content .section-title,
    .reviews-header .section-title {
        font-size: 2.4rem;
    }
    .faq-header .section-title {
        font-size: 2.6rem;
    }
}

.section-tag {
    display: inline-block;
    font-style: italic;
    font-size: 3rem;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: 1px;
    color: var(--color-primary);
    font-weight: normal;
    margin-bottom: 0.5rem;
}

.section-title em {
    font-style: italic;
    color: var(--color-primary);
    font-weight: normal;
}

.custom-order-title {
    font-size: 2rem;
    font-weight: 300;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 0;
    font-weight: 300;
}

.about-text em {
    font-family: inherit;
    font-style: italic;
    color: var(--color-primary);
    font-size: inherit;
    line-height: inherit;
}

.about-text strong {
    font-weight: 600;
    color: var(--color-accent);
}

.about-separator {
    width: 60px;
    height: 1px;
    background-color: var(--color-border);
    margin: 1.2rem 0;
}

.features-list {
    margin-top: 2.5rem;
    display: grid;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.5rem;
    background-color: rgba(127, 157, 208, 0.05);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    color: var(--color-primary);
}

.feature-item h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.about-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

/* Soft brand-color accent behind the photo — makes it part of the composition */
.about-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 115%;
    height: 90%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 40% 35%, rgba(127, 157, 208, 0.28) 0%, rgba(230, 237, 248, 0.15) 45%, rgba(255, 255, 255, 0) 72%);
    filter: blur(10px);
    z-index: 0;
    pointer-events: none;
}

.about-photo-placeholder {
    width: 85%;
    aspect-ratio: 3/4;
    border-radius: 4px;
    background: linear-gradient(160deg, var(--color-secondary) 0%, rgba(230, 237, 248, 0.3) 100%);
    border: 1px dashed rgba(127, 157, 208, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-photo-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 3 / 4;
    z-index: 1;
}

.about-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    border: none;
    /* Fade the edges so the photo dissolves into the page instead of sitting in a card */
    -webkit-mask-image: radial-gradient(ellipse 80% 82% at 50% 45%, #000 55%, rgba(0, 0, 0, 0.4) 78%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 82% at 50% 45%, #000 55%, rgba(0, 0, 0, 0.4) 78%, transparent 100%);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-back {
    transform: rotate(6deg) translate(20px, 15px) scale(0.95);
    z-index: 1;
    opacity: 0.8;
}

.photo-front {
    transform: rotate(-2deg);
    z-index: 2;
}

.about-photo-wrapper:not(.single-photo-wrapper):hover .photo-back {
    transform: rotate(2deg) translate(10px, -5px) scale(1.02);
    opacity: 1;
    z-index: 3;
    box-shadow: 0 15px 35px rgba(127, 157, 208, 0.2);
}

.about-photo-wrapper:not(.single-photo-wrapper):hover .photo-front {
    transform: rotate(-6deg) translate(-20px, 10px) scale(0.95);
    z-index: 2;
    opacity: 0.6;
}

.single-photo-wrapper:hover .about-photo {
    transform: scale(1.02);
}

.about-photo-inner {
    text-align: center;
    color: var(--color-text-muted);
    padding: 2rem;
}

.about-photo-icon {
    margin-bottom: 1rem;
    opacity: 0.4;
    display: flex;
    justify-content: center;
}

.about-photo-inner p {
    font-family: var(--font-headings);
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 0.35rem;
}

.about-photo-inner span {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Collection Section */
.collection {
    padding: clamp(3.5rem, 6vw, 6rem) 0;
    background-color: var(--color-bg);
}

.collection-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto clamp(2.5rem, 4vw, 4rem);
}

.form-note {
    font-size: 0.85rem;
    color: var(--color-primary);
    background-color: var(--color-surface-alt);
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(90, 125, 89, 0.2);
    text-align: center;
    margin-top: 15px;
}

.form-note a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 300;
    margin-top: 1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.pagination-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    color: var(--color-text);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
    font-size: 1rem;
}

.page-btn:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary);
}

.page-btn.active {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--color-surface);
    color: var(--color-text-muted);
}

.product-card {
    background-color: var(--color-surface);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--color-border);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(127, 157, 208, 0.4);
}

.product-img-placeholder {
    height: 280px;
    background: linear-gradient(135deg, #eef1ee 0%, #dbdfdb 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-img-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    100% { left: 200%; }
}

.placeholder-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.placeholder-text {
    font-family: var(--font-headings);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.placeholder-sub {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    font-weight: 500;
}

.product-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-tag {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 2px;
}

.product-material {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.product-title {
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.product-description {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-text-muted);
    font-weight: 300;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-border);
    padding-top: 1.25rem;
    margin-top: auto;
}

.product-price {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* Custom Order Section */
.custom-order {
    padding: clamp(3.5rem, 6vw, 6rem) 0;
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.custom-order-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.custom-order-text {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    font-weight: 300;
    max-width: 600px;
}

.custom-steps {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-num {
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 500;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.25rem;
    line-height: 1;
}

.step-item h5 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.step-item p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.custom-order-visual {
    display: flex;
    justify-content: center;
}

.custom-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 1.5rem 0;
}

.grid-img-wrapper {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--color-border);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.grid-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.grid-img-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.grid-img-wrapper:hover img {
    transform: scale(1.05);
}

/* Staggered offsets for a more artistic look */
.grid-img-wrapper.img-1 {
    transform: translateY(-12px);
}
.grid-img-wrapper.img-1:hover {
    transform: translateY(-16px);
}

.grid-img-wrapper.img-4 {
    transform: translateY(12px);
}
.grid-img-wrapper.img-4:hover {
    transform: translateY(8px);
}

/* Packaging Section */
.packaging {
    padding: 4rem 0;
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.packaging-grid-wrapper {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
    align-items: center;
}

.packaging-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.pack-img-main {
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--color-border);
}

.pack-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 45%; /* Centers the cropped image content perfectly */
    transition: transform var(--transition-smooth);
}

.pack-img-main:hover img {
    transform: scale(1.05); /* Subtle premium zoom on hover */
}

.pack-img-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.pack-img-thumb {
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--color-border);
}

.pack-img-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.pack-img-thumb:hover img {
    transform: scale(1.03);
}

.packaging-info-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: left;
}

.packaging-badge {
    display: inline-block;
    align-self: start;
    padding: 0.4rem 1rem;
    background-color: rgba(127, 157, 208, 0.08);
    color: var(--color-primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(127, 157, 208, 0.2);
    box-shadow: 0 2px 10px rgba(127, 157, 208, 0.03);
}

.packaging-intro-text {
    font-size: 1.05rem;
    color: var(--color-accent);
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.packaging-features-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 0.5rem;
}

.packaging-feature-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: start;
    padding-bottom: 0;
    border-bottom: none;
    border-right: 1px solid var(--color-border);
    padding-right: 1.5rem;
}

.packaging-feature-item:last-child {
    border-right: none;
    padding-right: 0;
    padding-bottom: 0;
}

.feature-item-num {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--color-primary);
    opacity: 0.7;
    line-height: 1;
}

.packaging-feature-item h4 {
    font-size: 1.05rem;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.packaging-feature-item p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* FAQ Section */
.faq {
    padding: clamp(3.5rem, 6vw, 6rem) 0;
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.faq-header {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 4rem;
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
    border-top: 1px solid var(--color-border);
}

.faq-question {
    list-style: none;
    font-family: var(--font-headings);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-text-main);
    padding: 1.5rem 2rem 1.5rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color var(--transition-fast);
    position: relative;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--color-primary);
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

details[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-answer {
    padding: 0 0 1.5rem;
}

.faq-answer p {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 300;
    line-height: 1.7;
}

.faq-answer a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.faq-answer a:hover {
    color: var(--color-primary-hover);
}

/* Reviews Section */
.reviews {
    padding: clamp(3.5rem, 6vw, 6rem) 0;
    background-color: var(--color-bg);
    overflow: hidden;
}

.reviews-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 5rem;
}

.reviews-slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.reviews-slider {
    width: 100%;
    overflow: hidden;
    padding: 1.5rem 0;
}

.reviews-track {
    display: flex;
    gap: 2.5rem;
    transition: transform var(--transition-smooth);
    will-change: transform;
}

.review-card {
    flex: 0 0 calc(50% - 1.25rem);
    min-width: 280px;
    max-width: 500px;
    aspect-ratio: 3/4;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-smooth);
    background-color: var(--color-surface);
}

.layered-review {
    position: relative;
    padding: 0;
    display: block;
}

.review-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.85);
    transition: transform 0.5s ease;
}

.layered-review:hover .review-bg-img {
    transform: scale(1.05);
}

.review-fg-img {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: auto;
    max-height: 55%;
    object-fit: contain;
    object-position: bottom center;
    z-index: 2;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.fg-top {
    bottom: auto;
    top: 15px;
    object-position: top center;
}

.fg-bottom-right {
    left: auto;
    right: 15px;
    transform: none;
    width: 65%;
}

.fg-bottom-left {
    left: 5px;
    transform: none;
    width: 55%;
}

.slider-btn {
    background: #ffffff;
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-subtle);
    transition: all var(--transition-fast);
    flex-shrink: 0;
    z-index: 10;
}

.slider-btn:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-border);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dot.active {
    background-color: var(--color-primary);
    width: 20px;
    border-radius: 4px;
}

/* Catalog Filters */
.catalog-filters {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.filter-select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background-color: var(--color-surface);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-main);
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1em;
    transition: border-color var(--transition-fast);
}

.filter-select:focus, .filter-select:hover {
    border-color: var(--color-primary);
}

/* Cart Section in Form */
.form-cart-section {
    background-color: var(--color-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px dashed var(--color-primary);
}

.form-cart-section h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-surface);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    box-shadow: var(--shadow-subtle);
}

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

.cart-item-title {
    font-weight: 500;
    font-size: 0.95rem;
    display: block;
}

.cart-item-price {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1rem;
}

.cart-btn {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    color: var(--color-text-main);
    transition: all var(--transition-fast);
}

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

.cart-item-qty {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    color: #e57373;
    cursor: pointer;
    font-size: 1.2rem;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
}

.cart-item-remove:hover {
    color: #f44336;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(127, 157, 208, 0.2);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-text-main);
}

.cart-empty-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* Floating Cart Button */
.cart-floating-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(127, 157, 208, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all var(--transition-smooth);
}

.cart-floating-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(127, 157, 208, 0.6);
    background-color: var(--color-primary-hover);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #f44336;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-surface);
}

@keyframes cartBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.cart-badge.bounce {
    animation: cartBounce 0.3s ease-in-out;
}

/* Responsive slider */
@media (max-width: 768px) {
    .review-card {
        flex: 0 0 100%; /* Show 1 card at a time on mobile */
        max-width: 100%;
    }
    .reviews-slider-wrapper {
        gap: 1rem;
    }
    .slider-btn {
        display: flex;
        position: absolute;
        top: 50%; /* Revert back to center */
        transform: translateY(-50%);
        width: 40px; /* Slightly smaller */
        height: 40px;
        z-index: 10;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }
    .prev-btn {
        left: -5px;
    }
    .next-btn {
        right: -5px;
    }
    .reviews-slider {
        padding: 1rem 0;
    }
}

/* Contacts Section */
.contacts {
    padding: clamp(3.5rem, 6vw, 6rem) 0;
    background-color: #ffffff;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* =========================================
   COOKIE BANNER
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: calc(100% - 40px);
    max-width: 600px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text);
}

.cookie-banner a {
    color: var(--color-primary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        bottom: 10px;
        padding: 15px;
    }
    .cookie-banner .btn {
        width: 100%;
    }
}

.contacts-desc {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.contact-methods {
    display: grid;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.contact-icon {
    font-size: 1.5rem;
    background-color: rgba(127, 157, 208, 0.1);
    color: var(--color-accent);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.contact-item h5 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.contact-item a, .contact-item p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-primary);
}

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

.contacts-form-wrapper {
    background-color: var(--color-bg);
    border-radius: 8px;
    padding: 2.25rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-subtle);
}

.contact-form h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.contact-form p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.35rem;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background-color: #ffffff;
    color: var(--color-text-main);
    transition: all var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(127, 157, 208, 0.15);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.checkbox-group-container > label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: 400 !important;
    color: var(--color-text-main) !important;
    margin-bottom: 0 !important;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    accent-color: var(--color-primary);
    margin-right: 0.25rem;
}



.form-group input[readonly] {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    font-weight: 500;
    border-color: rgba(127, 157, 208, 0.3);
}

.form-success {
    display: none;
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #e2ede5;
    color: #275233;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 3rem 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    height: 60px;
    width: 220px;
}

.footer-logo-img {
    position: absolute;
    height: 150px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
}

.footer-logo span {
    font-family: var(--font-logo);
    font-size: 1.35rem;
    letter-spacing: 2px;
}

.footer-copy {
    font-size: 0.85rem;
    font-weight: 300;
    opacity: 0.7;
}

/* Image wrapper for products from Yandex/external */
.img-wrapper {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background-color: #f0f2f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform var(--transition-smooth);
}

.product-card:hover .img-wrapper img {
    transform: scale(1.04);
}

/* ── Tablet (≤992px) ── */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-visual {
        order: -1;
        display: flex;
        justify-content: center;
    }

    .about-photo-placeholder {
        width: 65%;
    }

    .about-photo {
        width: 100%;
    }

    .custom-order-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .custom-order-visual {
        display: block;
        width: 100%;
        margin-top: 2rem;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .packaging-grid-wrapper {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .packaging-info-content {
        display: contents;
    }

    .packaging-info-content .packaging-badge {
        order: 1;
        margin-bottom: 1rem;
    }

    .packaging-info-content .section-title {
        order: 2;
        margin-bottom: 2rem;
    }

    .packaging-gallery {
        order: 3;
        margin-bottom: 2rem;
        width: 100%;
    }

    .packaging-info-content .packaging-intro-text {
        order: 4;
        margin-bottom: 1.5rem;
    }

    .packaging-info-content .packaging-features-list {
        order: 5;
    }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {

    /* iOS Input Zoom Prevention & Form Fixes */
    input, select, textarea {
        font-size: 16px !important;
    }

    /* Tap Targets */
    .btn, .form-control, select, input {
        min-height: 48px;
    }

    /* Filters Adaptation */
    .catalog-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .catalog-filters .filter-group {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .catalog-filters select {
        width: 100%;
    }

    /* Floating Cart adjustments */
    .cart-floating-btn {
        bottom: 20px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    .nav-actions {
        display: none;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(249, 248, 245, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        border-top: 1px solid var(--color-border);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        transform: rotate(-45deg) translate(0px, 0px);
    }

    /* Hero */
    .section-tag {
        font-size: 2.2rem;
    }

    .about,
    .collection,
    .custom-order,
    .packaging,
    .reviews,
    .contacts,
    .faq {
        padding: 3rem 0;
    }

    .packaging-features-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1rem;
    }

    .packaging-feature-item {
        flex-direction: row;
        gap: 1.2rem;
        padding-bottom: 1.2rem;
        border-bottom: 1px solid var(--color-border);
        border-right: none;
        padding-right: 0;
    }

    .packaging-feature-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .about-header {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* About */
    .about-photo-placeholder {
        width: 100%;
    }

    .about-photo {
        width: 100%;
        max-width: 380px;
    }

    /* Collection */
    .collection-header {
        margin-bottom: 2.5rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .img-wrapper {
        aspect-ratio: 1 / 1;
        height: auto;
    }

    .product-img-placeholder {
        aspect-ratio: 1 / 1;
        height: auto;
    }

    /* Product Button Full Width on Mobile */
    .product-order-btn {
        width: 100%;
        margin-top: 10px;
    }
    
    .product-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Custom Order */
    .custom-order-text {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .step-item {
        gap: 1rem;
    }

    /* Reviews */
    .reviews-header {
        margin-bottom: 2.5rem;
    }

    .reviews-slider-wrapper {
        gap: 0.5rem;
    }



    .review-card {
        flex: 0 0 100%;
        max-width: 380px;
        aspect-ratio: 3/4; /* Use standard height but allow text to be smaller */
        margin: 0 auto;
    }

    .review-fg-img {
        width: 50%; /* Made even smaller as requested */
        height: auto;
        max-height: 70%;
        bottom: 15px;
    }

    .review-fg-img.fg-top {
        bottom: auto;
    }

    /* Contacts */
    .contacts-form-wrapper {
        padding: 1.75rem;
    }

    .contact-item {
        gap: 1rem;
    }

    /* Footer */
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .footer-logo-img {
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .footer-copy {
        font-size: 0.8rem;
    }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.0rem;
    }

    .hero-tag {
        font-size: 0.7rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-tag {
        font-size: 1.8rem;
    }

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

    .product-info {
        padding: 1.25rem;
    }

    .contacts-form-wrapper {
        padding: 1.25rem;
    }

    .contact-form h3 {
        font-size: 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .cart-item-info {
        flex: 0 0 100%;
    }
    
    .cart-item-controls {
        margin: 0;
    }
}

/* ==========================================
   PRODUCT DETAIL MODAL
   ========================================== */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 1.5rem;
    box-sizing: border-box;
}

.product-modal.show {
    display: flex;
}

.product-modal-content {
    background-color: var(--color-surface);
    width: 100%;
    max-width: 860px;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    position: relative;
    overflow-y: auto;
    padding: 2.5rem;
    box-sizing: border-box;
    animation: modalFadeIn var(--transition-fast) ease-out;
}

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

.product-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.product-modal-close:hover {
    color: var(--color-accent);
}

.product-modal-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
}

.product-modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.main-image-container {
    aspect-ratio: 3/4;
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    max-height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.thumbnail-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.modal-thumb {
    width: 60px;
    aspect-ratio: 3/4;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition-fast);
    flex-shrink: 0;
}

.modal-thumb.active {
    border-color: var(--color-primary);
}

.modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-modal-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.modal-product-title {
    font-size: 1.5rem;
    color: var(--color-accent);
    line-height: 1.2;
}

.modal-product-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
}

.modal-product-materials {
    font-size: 0.85rem;
    color: var(--color-text-main);
    background-color: var(--color-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
}

.product-modal-info h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-modal-info p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

/* Responsive modal rules */
@media (max-width: 768px) {
    .product-modal {
        padding: 1rem;
    }
    
    .product-modal-content {
        padding: 2.5rem 1.5rem 1.5rem;
        max-height: 95vh;
    }
    
    .product-modal-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .modal-product-title {
        font-size: 1.6rem;
    }
}

/* ==========================================
   LIGHTBOX MODAL FOR IMAGES
   ========================================== */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-modal.show {
    display: flex;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    animation: lightboxZoom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxZoom {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 200;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

/* Clickable image pointer & hover states */
.about-photo,
.grid-img-wrapper img,
.pack-img-main img,
.pack-img-thumb img,
.review-bg-img,
#modalMainImg {
    cursor: pointer;
    transition: transform var(--transition-smooth), opacity var(--transition-fast);
}

/* Текст отзыва не открывается в лайтбоксе и пропускает клик к фото изделия */
.review-fg-img {
    pointer-events: none;
}

.about-photo:hover,
.review-bg-img:hover,
#modalMainImg:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

/* =========================================
   SIMPLIFIED CONTACTS SECTION
   ========================================= */
.contacts-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 2rem;
}

@media (min-width: 992px) {
    .contacts-wrapper {
        flex-direction: row;
        text-align: left;
        max-width: 1200px;
        align-items: flex-end; /* Align bottom */
        justify-content: space-between;
        padding-bottom: 0;
    }
}

.contacts-content {
    flex: 1;
    z-index: 2;
    padding: 2rem;
}

.contacts-content .section-title {
    margin-bottom: 1.5rem;
}

.contacts-content .contacts-desc {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 3.5rem;
    font-weight: 300;
}

.contacts-image-wrapper {
    position: relative;
    flex: 1;
    width: 100%;
    max-width: 500px;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

@media (min-width: 992px) {
    .contacts-image-wrapper {
        margin-top: 0;
        max-width: 400px;
        position: relative;
    }
}

.contacts-photo {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    object-fit: cover;
    z-index: 1;
}

.contacts-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #ffffff 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,0) 80%, #ffffff 100%);
    pointer-events: none;
    z-index: 2;
}

@media (min-width: 992px) {
    .contacts-gradient-overlay {
        background: linear-gradient(to right, #ffffff 0%, rgba(255,255,255,0.3) 20%, rgba(255,255,255,0) 50%);
    }
}

.contact-links-container {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.contact-link-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-subtle);
    transition: transform var(--transition-smooth),
                box-shadow var(--transition-smooth),
                border-color var(--transition-smooth);
    text-decoration: none;
    min-width: 260px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Мягкий цветной отблеск, проходящий по карточке при наведении */
.contact-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(127,157,208,0.12) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-18deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.contact-link-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(127, 157, 208, 0.18);
    border-color: var(--color-primary);
}

.contact-link-card:hover::before {
    left: 130%;
}

.contact-card-icon {
    font-size: 1.8rem;
    background-color: rgba(127, 157, 208, 0.1);
    color: var(--color-primary);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: transform var(--transition-smooth),
                background-color var(--transition-smooth),
                color var(--transition-smooth),
                box-shadow var(--transition-smooth);
}

.contact-card-icon svg {
    width: 24px;
    height: 24px;
    transition: transform var(--transition-smooth);
}

.contact-link-card:hover .contact-card-icon {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 8px 18px rgba(127, 157, 208, 0.35);
}

.contact-link-card:hover .contact-card-icon svg {
    transform: scale(1.06);
}

.contact-card-info {
    text-align: left;
}

.contact-card-info h5 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.contact-card-info span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.contact-link-card:hover .contact-card-info span {
    color: var(--color-accent);
}

/* Cart Modal custom sizing */
.cart-modal-content {
    max-width: 500px !important;
}

/* Custom Order Modal custom sizing */
.custom-order-modal-content {
    max-width: 600px !important;
}


.cart-modal-title {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--color-accent);
    font-weight: 400;
    padding: 0 2.5rem; /* отступ под кнопку закрытия, чтобы заголовок не заходил под крестик */
}

@media (max-width: 480px) {
    .cart-modal-title {
        font-size: 1.4rem;
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .contacts-content .contacts-desc {
        margin-bottom: 2.5rem;
        font-size: 1.1rem;
    }
    .contact-links-container {
        gap: 1.5rem;
    }
    .contact-link-card {
        width: 100%;
        min-width: 100%;
    }
}
