/* ============================================================
   VARIABLES
   ============================================================ */
:root {
    --color-bg:        #FBF0E8;
    --color-bg-light:  #FFF8F3;
    --color-primary:   #9B1B30;
    --color-primary-dark: #7A1525;
    --color-primary-light: #C4304A;
    --color-text:      #2D1810;
    --color-text-muted:#7A5C52;
    --color-white:     #FFFFFF;
    --color-border:    #E8D5C8;
    --color-success:   #4A7C59;
    --color-error:     #C0392B;

    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Montserrat', Arial, sans-serif;

    --shadow-sm:  0 2px 8px rgba(155, 27, 48, 0.08);
    --shadow-md:  0 6px 24px rgba(155, 27, 48, 0.12);
    --shadow-lg:  0 12px 40px rgba(155, 27, 48, 0.16);

    --radius-sm:  8px;
    --radius-md:  16px;
    --radius-lg:  24px;

    --transition: 0.3s ease;

    --max-width:  1200px;
    --nav-height: 70px;
}

[x-cloak] { display: none !important; }

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    opacity: 0;
    animation: fadeInBody 0.5s ease forwards;
}

@keyframes fadeInBody { to { opacity: 1; } }

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
}

h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h3 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
h4 { font-size: clamp(1.3rem, 3vw, 1.8rem); }

.section-title {
    text-align: center;
    margin-bottom: 0.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section { padding: 5rem 0; }

/* ============================================================
   ANIMATIONS — Intersection Observer targets
   ============================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

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

.btn-cta {
    animation: pulseCta 3s ease-in-out infinite;
}

@keyframes pulseCta {
    0%, 100% { box-shadow: 0 0 0 0 rgba(155, 27, 48, 0.3); }
    50%       { box-shadow: 0 0 0 10px rgba(155, 27, 48, 0); }
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    background: rgba(251, 240, 232, 0.85);
    backdrop-filter: blur(8px);
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    background: rgba(251, 240, 232, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

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

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

.logo-svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text);
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--color-primary); }
.nav-links a.active { color: var(--color-primary); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* Drawer — display:none/flex + @keyframes (works on all browsers) */
.mobile-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1001;
}

.mobile-drawer.open {
    display: block;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 24, 16, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: overlayIn 0.3s ease forwards;
}

.drawer-panel {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(300px, 85vw);
    background: var(--color-bg-light);
    padding: 1.25rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(45, 24, 16, 0.22);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: panelIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    z-index: 1;
}

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

@keyframes panelIn {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0.5rem;
}

.drawer-close {
    background: rgba(155, 27, 48, 0.08);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--color-text);
    line-height: 1;
    transition: background var(--transition), color var(--transition);
    flex-shrink: 0;
}

.drawer-close:hover {
    background: var(--color-primary);
    color: #fff;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-top: 0.5rem;
}

.drawer-links a {
    font-size: 1.35rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text);
    font-style: italic;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: color var(--transition), padding-left var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.drawer-links a:hover, .drawer-links a.active {
    color: var(--color-primary);
    padding-left: 0.4rem;
}

.drawer-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #9B1B30;
    color: rgba(251, 240, 232, 0.9);
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-style: italic;
    font-weight: 700;
    color: #FBF0E8;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 1rem;
    color: rgba(251,240,232,0.65);
    margin-bottom: 1.5rem;
}

.footer-contacts {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-contacts a {
    color: rgba(251, 240, 232, 0.9);
    font-weight: 500;
    font-size: 1.05rem;
}

.footer-contacts a:hover { color: #fff; }

.footer-bottom {
    font-size: 0.85rem;
    color: rgba(251,240,232,0.4);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(251,240,232,0.15);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100svh;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
    background: var(--color-bg);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 60%, rgba(155,27,48,0.06) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

/* Text: left 52% — wide enough so button labels stay single-line */
.hero-text-col {
    flex: 0 0 52%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: calc(var(--nav-height) + 3rem) 3rem 3rem;
    padding-left: max(1.5rem, calc((100vw - var(--max-width)) / 2 + 1.5rem));
}

/* Image: right column.
   img is absolutely positioned so it never drives the flex container height.
   The column stretches to match the text column via align-items:stretch. */
.hero-img-col {
    flex: 1;
    position: relative;
    z-index: 1;
    overflow: hidden;
    min-width: 0;
}

.hero-img-col img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* contain: full cake visible, no cropping; bottom: hand aligns with hero bottom */
    object-fit: contain;
    object-position: bottom center;
}

.hero-star {
    position: absolute;
    pointer-events: none;
    color: rgba(155, 27, 48, 0.22);
    z-index: 2;
}

/* Stars spread across the hero */
.hero-star-1  { width: 52px; top: 8%;    left: 5%;    animation: floatStar 5s ease-in-out 0s   infinite; }
.hero-star-2  { width: 26px; top: 18%;   left: 40%;   animation: floatStar 5s ease-in-out 1s   infinite; }
.hero-star-3  { width: 14px; top: 12%;   left: 22%;   animation: floatStar 6s ease-in-out 0.5s infinite; }
.hero-star-4  { width: 40px; top: 68%;   left: 5%;    animation: floatStar 5s ease-in-out 2s   infinite; }
.hero-star-5  { width: 20px; top: 30%;   left: 9%;    animation: floatStar 5s ease-in-out 3s   infinite; }
.hero-star-6  { width: 16px; top: 50%;   left: 28%;   animation: floatStar 7s ease-in-out 1.5s infinite; }
.hero-star-7  { width: 22px; top: 55%;   left: 43%;   animation: floatStar 5s ease-in-out 2.5s infinite; }
.hero-star-8  { width: 12px; top: 38%;   left: 35%;   animation: floatStar 6s ease-in-out 4.5s infinite; }
.hero-star-9  { width: 28px; top: 75%;   left: 22%;   animation: floatStar 5s ease-in-out 0.8s infinite; }
.hero-star-10 { width: 34px; bottom: 15%; left: 15%;  animation: floatStar 5s ease-in-out 3.5s infinite; }
.hero-star-11 { width: 10px; top: 85%;   left: 38%;   animation: floatStar 6s ease-in-out 2.2s infinite; }
.hero-star-12 { width: 18px; top: 42%;   left: 14%;   animation: floatStar 5s ease-in-out 4s   infinite; }

@keyframes floatStar {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-10px) rotate(20deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.hero-eyebrow {
    font-size: 1.15rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: block;
}

.hero-logo-large {
    width: clamp(220px, 26vw, 360px);
    height: auto;
    display: block;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.hero-desc {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    margin-bottom: 2rem;
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 0.875rem;
    flex-wrap: nowrap;
}

.hero .btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.hero .btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    box-shadow: 0 6px 20px rgba(155,27,48,0.3);
    transform: translateY(-2px);
}
.hero .btn-outline {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: transparent;
}
.hero .btn-outline:hover {
    background: rgba(155,27,48,0.07);
    color: var(--color-primary);
}

/* Scroll-down hint at bottom-center of hero */
.hero-scroll-hint {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(155,27,48,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: border-color 0.2s, background 0.2s;
    animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll-hint:hover {
    background: rgba(155,27,48,0.07);
    border-color: var(--color-primary);
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(5px); }
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-card-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: block;
}

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

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

.product-card-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-style: italic;
    margin-bottom: 0.25rem;
}

.product-card-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.product-card-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.badge {
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    background: rgba(155, 27, 48, 0.08);
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

.product-card-footer {
    margin-top: auto;
}

/* ============================================================
   ADVANTAGES
   ============================================================ */
.advantages {
    background: var(--color-white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.advantage-item {
    padding: 1.5rem;
}

.advantage-icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cpath fill='%239B1B30' d='M40 72C40 72 8 52 8 29C8 17 16 9 27 9C33 9 38 12 40 17C42 12 47 9 53 9C64 9 72 17 72 29C72 52 40 72 40 72Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.advantage-icon {
    width: 30px;
    height: 30px;
    color: #FBF0E8;
    flex-shrink: 0;
}

.advantage-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.advantage-text {
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

/* Two-photo overlapping collage */
.about-images {
    position: relative;
    padding-bottom: 80px;
    padding-right: 60px;
    margin-left: -2rem;
}

.about-img-1 {
    width: 72%;
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-img-2 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 56%;
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(155,27,48,0.18);
    border: 3px solid var(--color-bg-light);
}

.about-img-1 img,
.about-img-2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-eyebrow {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
}

.about-title {
    margin-bottom: 1.25rem;
}

.about-text {
    color: var(--color-text-muted);
    line-height: 1.85;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-signature {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--color-primary);
    margin-top: 1.5rem;
}

/* ============================================================
   GALLERY SWIPER
   ============================================================ */
.gallery-section { background: var(--color-bg-light); }

.gallery-swiper {
    padding-bottom: 3rem !important;
}

/* Coverflow: fixed-width slides so neighbours are visible */
.gallery-swiper .swiper-slide {
    width: 270px;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    flex-shrink: 0;
}

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

.swiper-pagination-bullet-active {
    background: var(--color-primary) !important;
}

/* ============================================================
   CONTACTS SECTION
   ============================================================ */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

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

.contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(155, 27, 48, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-primary);
}

.contact-label {
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.contact-value {
    font-weight: 500;
    font-size: 1.15rem;
}

/* ============================================================
   ORDER FORM
   ============================================================ */
.order-form-wrap {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.form-title {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-style: italic;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
}

.form-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

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

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(155, 27, 48, 0.12);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-error {
    color: var(--color-error);
    font-size: 0.78rem;
    margin-top: 0.3rem;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(74, 124, 89, 0.1);
    border: 1px solid rgba(74, 124, 89, 0.3);
    color: var(--color-success);
}

.alert-error {
    background: rgba(192, 57, 43, 0.08);
    border: 1px solid rgba(192, 57, 43, 0.25);
    color: var(--color-error);
}

/* ============================================================
   PRODUCT PAGE
   ============================================================ */
.product-page { padding-top: calc(var(--nav-height) + 2rem); }

.breadcrumb {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb-sep { color: var(--color-border); }

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.product-swiper .swiper-slide {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
}

.product-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-swiper-thumbs .swiper-slide {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity var(--transition);
}

.product-swiper-thumbs .swiper-slide-thumb-active { opacity: 1; }

.product-info-title { margin-bottom: 0.5rem; }

.product-weight {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.product-description {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
}

.product-note {
    background: rgba(155, 27, 48, 0.06);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

/* ============================================================
   INFO PAGE
   ============================================================ */
.info-page { padding-top: calc(var(--nav-height) + 3rem); }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.info-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    display: flex;
    gap: 1.25rem;
    transition: box-shadow var(--transition);
}

.info-card:hover { box-shadow: var(--shadow-md); }

.info-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-style: italic;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    flex-shrink: 0;
    align-self: center;
}

.info-card-content { flex: 1; }

.info-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-card-text {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ============================================================
   REVIEWS SECTION
   ============================================================ */
.reviews-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.reviews-gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
}

.reviews-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.reviews-gallery-item:hover img { transform: scale(1.04); }

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

.review-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.review-stars {
    color: #D4A43A;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.review-text {
    font-style: italic;
    color: var(--color-text-muted);
    line-height: 1.75;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.review-author {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.9rem;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-light) 100%);
    padding: calc(var(--nav-height) + 3rem) 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(155, 27, 48, 0.05), transparent 70%);
    pointer-events: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Tablet / small desktop ─────────────────────────────── */
@media (max-width: 1024px) {
    .about-grid,
    .contacts-grid,
    .product-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-images { margin-left: 0; padding-bottom: 60px; padding-right: 50px; }
    .about-img-1 { width: 70%; }
    .about-img-2 { width: 54%; }

    /* Hero: text col on tablet */
    .hero-text-col { flex: 0 0 54%; padding: calc(var(--nav-height) + 2rem) 2rem 2rem; }
    .hero-img-col  { flex: 1; }

    /* Reviews */
    .reviews-grid { grid-template-columns: 1fr; }

    /* Gallery coverflow slide width */
    .gallery-swiper .swiper-slide { width: 250px; }
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    html { font-size: 17px; }
    section { padding: 2.5rem 0; }
    .container { padding: 0 1.25rem; }
    .nav-links { display: none; }
    .hamburger { display: flex; }

    /* Logo */
    .logo-img { height: 42px; }

    /* ── Hero: vertical stack on mobile — no min-height (no image to fill space) ── */
    .hero { flex-direction: column; min-height: 0; }
    .hero-text-col {
        flex: 0 0 auto;
        display: block;
        width: 100%;
        padding: calc(var(--nav-height) + 1.75rem) 1.5rem 1.75rem;
        text-align: center;
    }
    .hero-content { text-align: center; }
    .hero-actions { justify-content: center; flex-wrap: nowrap; gap: 0.75rem; }
    .hero-actions .btn { flex: 1; text-align: center; }
    .hero-img-col  { display: none; }
    .hero-scroll-hint { display: none; }
    .hero-logo-large { width: clamp(140px, 55vw, 220px); margin-left: auto; margin-right: auto; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-desc     { font-size: 0.92rem; max-width: 32ch; margin-left: auto; margin-right: auto; }

    /* ── Products ── */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.875rem; }
    .product-card-body { padding: 0.9rem; }
    .product-card-title { font-size: 1.25rem; }

    /* ── Advantages ── */
    .advantages-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .advantage-title { font-size: 1.1rem; }
    .advantage-text  { font-size: 0.95rem; }

    /* ── Info ── */
    .info-grid { grid-template-columns: 1fr; }
    .info-card { padding: 1.25rem; gap: 1rem; }
    .info-number { font-size: 2.6rem; }
    .info-card-title { font-size: 1.2rem; }

    /* ── Contacts ── */
    .contacts-grid { grid-template-columns: 1fr; }

    /* ── Order form ── */
    .order-form-wrap { padding: 1.5rem 1.25rem; border-radius: var(--radius-md); }
    .form-title { font-size: 1.75rem; }
    .product-detail-grid { gap: 1.5rem; }

    /* ── Reviews ── */
    .reviews-gallery { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .reviews-grid { grid-template-columns: 1fr; gap: 1rem; }
    .review-card { padding: 1.25rem; }

    /* ── Gallery coverflow ── */
    .gallery-swiper .swiper-slide { width: 72vw; }

    /* ── Footer ── */
    .footer-contacts { flex-direction: column; align-items: center; gap: 0.75rem; }
    .footer-logo { font-size: 2rem; }

    /* ── Inner pages ── */
    .page-hero { padding-top: calc(var(--nav-height) + 1.5rem); padding-bottom: 1.5rem; }
    .info-page { padding-top: calc(var(--nav-height) + 1.5rem); }
    .product-page { padding-top: calc(var(--nav-height) + 1rem); }
    .product-swiper-thumbs { display: none; }
    .breadcrumb { margin-bottom: 1rem; font-size: 0.85rem; }

    /* ── Section text ── */
    .section-subtitle { font-size: 1.1rem; margin-bottom: 2rem; }
    .about-text { font-size: 1rem; }
}

/* ── Small mobile ─────────────────────────────────────────── */
@media (max-width: 480px) {
    :root { --nav-height: 60px; }
    html { font-size: 16px; }
    .container { padding: 0 1rem; }

    /* Logo */
    .logo-img { height: 36px; }

    /* Hero */
    .hero-text-col { padding-left: 1rem; padding-right: 1rem; padding-top: calc(var(--nav-height) + 1.25rem); padding-bottom: 1.25rem; }
    .hero-actions .btn { padding: 0.7rem 1.1rem; font-size: 0.75rem; }

    /* Products: 1 column */
    .products-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .product-card-image { aspect-ratio: 4/3; }
    .product-card-body { padding: 1rem; }

    /* Advantages: 1 column */
    .advantages-grid { grid-template-columns: 1fr; }
    .advantage-icon-wrap { width: 64px; height: 64px; }
    .advantage-icon { width: 26px; height: 26px; }

    /* Reviews: 1 column */
    .reviews-gallery { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: 1fr; }

    /* Info */
    .info-card { padding: 1rem; gap: 0.875rem; }
    .info-number { font-size: 2.2rem; }

    /* About: single column, reduce collage height */
    .about-images { padding-bottom: 50px; padding-right: 40px; margin-left: 0; }
    .about-img-1 { width: 68%; }
    .about-img-2 { width: 52%; }

    /* Gallery */
    .gallery-swiper .swiper-slide { width: 68vw; }

    /* Buttons */
    .btn { font-size: 0.875rem; padding: 0.75rem 1.4rem; }

    /* Footer */
    .footer-contacts a { font-size: 0.95rem; }
    .footer-bottom { font-size: 0.78rem; }
}
