/*
Theme Name: Молоко Осетии
Description: Тема «Молоко Осетии».
Author: Серж Пироев (t.me/el_segundo)
Version: 1.4.0
Text Domain: moloko-osetii
*/

/* 
 * 1. CSS Reset & Variables
 */

:root {
    /* Brand Colors (Extracted from Brandbook) */
    --color-primary-green: #28598D;
    --color-primary-green-hover: #193D64;
    --color-milky-white: #F4F8FC;
    --color-text-dark: #193D64;
    --color-text-muted: #3D5270;
    --color-accent-gold: #457AC1;
    --color-secondary-blue: #7FB5E5;
    --bg-light: #F3F7FB;
    --bg-card: rgba(255, 255, 255, 0.85);
    --color-footer: #193D64;
    --gradient-brand: linear-gradient(135deg, #193D64 0%, #457AC1 100%);
    --gradient-icon: linear-gradient(160deg, rgba(40, 89, 141, 0.16), rgba(127, 181, 229, 0.38));

    /* UI Elements */
    --radius-card: 16px;
    --radius-lg: 20px;
    --border-radius-card: var(--radius-card);
    --border-radius-button: 30px;
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.06);
    --shadow-lift: 0 18px 40px rgba(0, 0, 0, 0.12);
    --box-shadow-soft: var(--shadow-soft);
    --header-inset-top: 28px;
    --header-inset-x: 32px;
    --header-clearance: 196px;
    --space-section: 100px;

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 200ms;
    --duration-mid: 400ms;
    --duration-slow: 700ms;

    /* Typography */
    --font-family-display: 'Lora', Georgia, 'Times New Roman', serif;
    --font-family-primary: 'Manrope', 'Segoe UI', sans-serif;
}

body.admin-bar {
    --header-inset-top: 64px;
    --header-clearance: 232px;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-primary);
    font-size: 1.0625rem;
    background-color: var(--bg-light);
    color: var(--color-text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-family: var(--font-family-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--color-text-dark);
}

h1 {
    font-size: clamp(3.2rem, 5vw, 4.4rem);
}

h2 {
    font-size: clamp(2.05rem, 3vw, 2.5rem);
}

h3 {
    font-size: 1.6rem;
}

a,
button,
.btn-primary {
    cursor: pointer;
}

a {
    color: var(--color-primary-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:focus-visible,
button:focus-visible,
.btn-primary:focus-visible {
    outline: 2px solid var(--color-primary-green);
    outline-offset: 3px;
}

a:hover {
    color: var(--color-primary-green-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 
 * 2. Layout Utility Classes
 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 
 * 3. Glassmorphism Utilities
 */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-card);
    box-shadow: var(--box-shadow-soft);
}

/* ==========================================================================
   4. NATIVE THEME HEADER (Bypasses Elementor completely)
   ========================================================================== */

.native-header-glass {
    position: absolute !important;
    top: var(--header-inset-top) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: 1180px !important;
    width: calc(100% - (var(--header-inset-x) * 2)) !important;
    border-radius: 20px !important;
    z-index: 9999 !important;
    box-shadow: 0 10px 30px rgba(28, 25, 23, 0.08) !important;
    transition: box-shadow var(--duration-mid) var(--ease-out), background-color var(--duration-mid) var(--ease-out);
}

@media (max-width: 1240px) {
    .native-header-glass {
        width: calc(100vw - (var(--header-inset-x) * 2)) !important;
    }
}

.native-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    padding: 16px 28px;
    max-width: none;
}

.native-logo-link {
    display: flex;
    align-items: center;
    min-width: 0;
}

.native-logo-img {
    max-height: 64px;
    width: auto;
    max-width: min(420px, 46vw);
}

.logo-on-light {
    display: none;
}

.native-header-glass.is-on-light .logo-on-dark {
    display: none;
}

.native-header-glass.is-on-light .logo-on-light {
    display: block;
}

.native-header-glass .native-nav-menu a,
.native-header-glass .native-fallback-menu a,
.native-header-glass .native-phone,
.native-header-glass .native-email {
    color: #fff;
}

.native-header-glass.is-on-light .native-nav-menu a,
.native-header-glass.is-on-light .native-fallback-menu a,
.native-header-glass.is-on-light .native-phone {
    color: #193D64;
}

.native-header-glass.is-on-light .native-email {
    color: #3D5270;
}

.native-header-glass .native-nav-menu a:hover,
.native-header-glass .native-fallback-menu a:hover,
.native-header-glass .current-menu-item > a {
    color: #C8DEF4;
}

.native-header-glass.is-on-light .native-nav-menu a:hover,
.native-header-glass.is-on-light .native-fallback-menu a:hover,
.native-header-glass.is-on-light .current-menu-item > a {
    color: #457AC1;
}

@media (min-width: 1101px) {
    .native-header-glass.is-scrolled .native-header-container {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .native-header-glass.is-scrolled .native-logo-img {
        max-height: 48px;
    }
}

.native-header-glass:not(.is-on-light) {
    background-color: rgba(12, 32, 58, 0.55) !important;
}

.native-header-glass.is-scrolled.is-on-light {
    background-color: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12) !important;
}

.native-header-glass.is-scrolled:not(.is-on-light) {
    background-color: rgba(16, 40, 68, 0.55) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28) !important;
}

.native-logo-text {
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

/* Native Navigation */
.native-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.native-nav-menu,
.native-fallback-menu {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.native-nav-menu li,
.native-fallback-menu li {
    position: relative;
}

.native-nav-menu a,
.native-fallback-menu a {
    position: relative;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 10px 12px;
    display: block;
    border-radius: 10px;
}

.native-nav-menu a::after,
.native-fallback-menu a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--duration-fast) var(--ease-out);
}

.native-nav-menu a:hover::after,
.native-nav-menu .current-menu-item > a::after,
.native-fallback-menu a:hover::after,
.native-fallback-menu .current-menu-item > a::after {
    transform: scaleX(1);
}

.native-header-contacts {
    display: flex;
    flex-direction: column;
    text-align: right;
    flex-shrink: 0;
    gap: 2px;
}

.native-phone {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 2px;
    text-decoration: none;
}

.native-email {
    font-size: 0.78rem;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
}

.native-menu-panel {
    display: contents;
}

.native-menu-toggle {
    display: none;
    position: relative;
    background: rgba(25, 61, 100, 0.72);
    color: #fff;
    border: 0;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.native-menu-toggle .menu-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.native-menu-toggle .menu-icon--close {
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-45deg) scale(0.8);
}

.native-header-glass.is-menu-open .menu-icon--burger {
    opacity: 0;
    transform: rotate(45deg) scale(0.8);
}

.native-header-glass.is-menu-open .menu-icon--close {
    opacity: 1;
    transform: translate(-50%, -50%);
}

@media (max-width: 1100px) {
    :root {
        --header-inset-x: 16px;
        --header-clearance: 148px;
    }

    body.admin-bar {
        --header-clearance: 184px;
    }

    .native-header-container {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 16px;
    }

    .native-logo-img {
        max-height: 42px;
        max-width: calc(100vw - 120px);
    }

    .native-menu-panel {
        display: flex;
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 8px);
        z-index: 6;
        flex-direction: column;
        gap: 4px;
        padding: 10px 12px 14px;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), visibility 0s linear 0.22s;
    }

    .native-header-glass.is-menu-open .native-menu-panel {
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), visibility 0s;
    }

    .native-navigation,
    .native-header-contacts {
        position: static;
        width: 100%;
        background: transparent;
        padding: 0;
    }

    .native-nav-menu a::after,
    .native-fallback-menu a::after {
        display: none;
    }

    .native-navigation {
        justify-content: flex-start;
    }

    .native-nav-menu,
    .native-fallback-menu {
        flex-direction: column;
        width: 100%;
        gap: 4px;
    }

    .native-header-contacts {
        text-align: left;
        padding-bottom: 8px;
    }

    .native-menu-toggle {
        display: inline-flex;
        margin-left: auto;
        color: #fff;
    }

        .native-menu-panel a {
            color: #193D64 !important;
        }

        .native-menu-panel a:hover,
        .native-header-glass.is-on-light .native-menu-panel a:hover {
            color: #457AC1 !important;
        }
}

.native-header-glass.is-menu-open {
    overflow: visible;
}

/* JS-Activated Sticky State for Native Header */
.native-header-glass.native-sticky-enabled.is-sticky {
    position: fixed !important;
    top: var(--header-inset-top) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding: var(--header-clearance) 0 96px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.page-hero--full {
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding-bottom: 120px;
    background-color: #193D64;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.08);
    animation: heroZoom 14s var(--ease-out) forwards;
}

.page-hero--full .hero-copy {
    position: relative;
    z-index: 2;
    max-width: 38rem;
}

@media (min-width: 701px) {
    .page-hero--full::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(90deg, rgba(10, 28, 52, 0.62) 0%, rgba(10, 28, 52, 0.2) 46%, rgba(10, 28, 52, 0) 72%);
    }
}

.page-hero--full h1 {
    color: #fff;
    font-size: clamp(3.2rem, 5vw, 4.4rem);
    line-height: 1.12;
    margin: 0 0 20px;
    font-weight: 800;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.page-hero--full p {
    color: #fff;
    font-size: 1.25rem;
    line-height: 1.55;
    margin: 0 0 32px;
    max-width: 36rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.page-hero--full .hero-badge {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: none;
}

.page-hero--full .btn-primary {
    background: #fff;
    color: #193D64;
    box-shadow: none;
}

.page-hero--full .btn-primary:hover {
    background: #C8DEF4;
    color: #193D64;
}

.page-hero .glass-panel {
    margin-top: 12px;
}

.icon-badge {
    width: 52px;
    height: 52px;
    margin: 0 auto 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--gradient-icon);
    color: var(--color-primary-green);
}

.icon-badge svg,
.contact-icon svg,
.native-menu-toggle svg {
    width: 24px;
    height: 24px;
    display: block;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(40, 89, 141, 0.1);
    color: var(--color-primary-green);
}

.footer-contact-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 15px;
    color: var(--color-primary-green);
}

.footer-widget .footer-contact-row:last-child {
    margin-bottom: 0;
}

.footer-contact-row svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==========================================================================
   5. Elementor Header Legacy (Keep for backwards compatibility)
   ========================================================================== */
.header-glass {
    /* 🔴 BULLETPROOF POSITIONING: 
       Absolute removes it from flow (no white stripes).
       left 50% + translateX(-50%) forces it to perfectly center relative to the 
       actual screen, completely ignoring whatever Elementor column it was placed in. */
    position: absolute !important;
    top: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
    margin: 0 !important;
    /* Glassmorphism effects */
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: var(--box-shadow-soft) !important;
    background-color: transparent;
    transition: all 0.3s ease;
}

/* JS-Activated Sticky State ignores parent constraints */
.header-glass.is-sticky {
    position: fixed !important;
    top: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
}

/* Fix for logged-in WP admin bar */
body.admin-bar .header-glass.is-sticky {
    top: 47px !important;
    /* 32px + 15px */
}

/* 
 * 🔴 WIDTH UTILITIES FOR THE HEADER 🔴
 * Add one of these classes alongside 'header-glass' to control its width easily
 */
.header-glass.header-width-boxed {
    width: 100vw !important;
    /* Force to screen size, overriding columns */
    max-width: 1200px !important;
    border-radius: 20px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* Mobile safeguard for boxed: when screen is smaller than 1200px, leave 15px gaps on sides */
@media (max-width: 1240px) {
    .header-glass.header-width-boxed {
        width: calc(100vw - 30px) !important;
    }
}

.header-glass.header-width-full {
    width: 100vw !important;
    max-width: none !important;
    border-radius: 0 0 20px 20px !important;
    top: 0 !important;
}

.header-glass.header-width-full.is-sticky {
    top: 0 !important;
}

/* Fix for logged-in WP admin bar + full width */
body.admin-bar .header-glass.header-width-full.is-sticky {
    top: 32px !important;
}

/* Force Elementor's internal background wrappers to blur and transmit the effect */
.header-glass>.elementor-background-overlay,
.header-glass>.elementor-container {
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

/* 
 * 4. Premium Buttons
 */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--color-primary-green);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--border-radius-button);
    font-family: var(--font-family-primary);
    font-weight: 700;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.16);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform var(--duration-fast) var(--ease-out);
}

.btn-primary:hover {
    background-color: var(--color-primary-green-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

/* Header & Footer generic layout prep */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

footer.site-footer {
    position: relative;
    background-color: var(--color-footer);
    color: #D6E6F5;
    padding: 56px 0 24px;
    margin-top: 0;
    border-top: 0;
}

/* 
 * Main Navigation (Dynamic from WP)
 */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    display: inline-block;
}

.main-navigation a {
    color: var(--color-text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--color-primary-green);
}

/* 
 * 5. WooCommerce Custom Styles
 */

/* Product Grid */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce ul.products li.product {
    background: #fff;
    border-radius: var(--border-radius-card);
    padding: 20px;
    box-shadow: var(--box-shadow-soft);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.woocommerce ul.products li.product img {
    border-radius: 12px;
    margin-bottom: 20px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: var(--bg-light);
    padding: 10px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 10px;
    height: 48px;
    /* Fixed height for 2 lines */
    overflow: hidden;
}

.woocommerce ul.products li.product .price {
    display: block;
    color: var(--color-primary-green);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.woocommerce ul.products li.product .button {
    display: inline-block;
    width: 100%;
    background-color: var(--bg-light);
    color: var(--color-primary-green);
    padding: 10px 0;
    border-radius: var(--border-radius-button);
    font-weight: 600;
    transition: all 0.3s ease;
}

.woocommerce ul.products li.product .button:hover {
    background-color: var(--color-primary-green);
    color: #fff;
}

/* Single Product Page */
.woocommerce div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

@media (max-width: 768px) {
    .woocommerce div.product {
        grid-template-columns: 1fr;
    }
}

.woocommerce div.product .product_title {
    font-size: clamp(3.2rem, 4vw, 3.8rem);
    color: var(--color-text-dark);
    margin-bottom: 10px;
}

.woocommerce div.product p.price {
    font-size: 1.8rem;
    color: var(--color-primary-green);
    font-weight: 700;
}

.woocommerce div.product form.cart {
    margin: 30px 0;
    display: flex;
    gap: 15px;
}

.woocommerce div.product form.cart .button {
    background-color: var(--color-primary-green);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: var(--border-radius-button);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce div.product form.cart .button:hover {
    background-color: var(--color-primary-green-hover);
    transform: translateY(-2px);
}

.woocommerce div.product .woocommerce-product-details__short-description {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Cart & Checkout */
.woocommerce table.shop_table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--border-radius-card);
    overflow: hidden;
    box-shadow: var(--box-shadow-soft);
    margin-bottom: 40px;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

.woocommerce table.shop_table th {
    background-color: var(--bg-light);
    font-weight: 600;
}

/* Hide breadcrumbs */
.woocommerce-breadcrumb {
    display: none;
}

/* 
 * 6. Motion
 */

html {
    scroll-behavior: smooth;
}

@keyframes heroZoom {
    from {
        transform: scale(1.08);
    }

    to {
        transform: scale(1);
    }
}

@keyframes waveDrift {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(-3%, 0, 0);
    }
}

html.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-mid) var(--ease-out);
}

html.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    transition-delay: var(--reveal-delay, 0ms);
}

html.js [data-reveal].is-visible:hover {
    transition-delay: 0ms;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: #D6E6F5;
    transition: color var(--duration-fast) var(--ease-out);
}

.footer-menu a:hover {
    color: #fff;
}

.catalog-hero__panel {
    display: inline-block;
    padding: 40px 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.catalog-hero__panel h1 {
    color: #ffffff;
    font-size: 3.6rem;
    margin: 0;
    font-weight: 800;
}

.feature-grid,
.split-grid,
.footer-grid {
    display: grid;
    gap: 28px;
}

.feature-grid,
.split-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 40px;
}

.about-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    padding: 36px 40px;
    background: var(--color-primary-green);
    color: #fff;
}

.about-cta__text {
    flex: 1 1 16rem;
    min-width: 0;
}

.contact-map {
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

a[href^="mailto:"] {
    overflow-wrap: anywhere;
}

.catalog-section {
    padding: 80px 0 96px;
    background: #fff;
    scroll-margin-top: 140px;
}

.catalog-group__title {
    margin: 48px 0 20px;
}

.catalog-empty {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 24px;
}

.product-card {
    background: #fff;
    border: 1px solid rgba(25, 61, 100, 0.06);
    border-radius: var(--border-radius-card);
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-shadow: var(--shadow-soft);
    transition: transform var(--duration-mid) var(--ease-out), box-shadow var(--duration-mid) var(--ease-out);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
}

html.js .product-card.is-visible:hover,
html.js .feature-card.is-visible:hover {
    transform: translateY(-6px);
}

html.js a.btn-primary.is-visible:hover {
    transform: translateY(-2px);
}

.product-card h3 {
    margin: 0 0 12px;
}

.product-card h3 a {
    color: var(--color-text-dark);
}

.product-card__photo {
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 16px;
    background: var(--color-milky-white);
}

.product-card__photo img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
    transition: transform 0.6s var(--ease-out);
}

.product-card:hover .product-card__photo img {
    transform: scale(1.06);
}

.product-single__photo img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 16px;
}

.product-card__meta {
    color: var(--color-text-muted);
    margin: 0 0 16px;
}

.product-facts {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
}

.product-facts div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.product-facts dt {
    color: var(--color-text-muted);
    font-weight: 500;
}

.product-facts dd {
    margin: 0;
    text-align: right;
}

.product-composition,
.product-card__excerpt {
    color: var(--color-text-muted);
    margin: 0 0 16px;
}

.product-composition span {
    color: var(--color-text-dark);
    font-weight: 600;
}

.product-card__more {
    margin-top: auto;
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-media,
    .wave-divider svg {
        animation: none;
        transform: none;
    }

    html.js [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.product-single {
    max-width: 760px;
}

.product-single__content {
    margin-top: 24px;
}

@media (max-width: 700px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .page-hero--full {
        align-items: flex-start;
        padding-bottom: 88px !important;
    }

    .hero-media {
        background-image: var(--hero-image-mobile, var(--hero-image));
        background-position: center top;
    }

    .page-hero--full::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(10, 28, 52, 0.78) 0%, rgba(10, 28, 52, 0.62) 34%, rgba(10, 28, 52, 0.18) 58%, rgba(10, 28, 52, 0) 76%);
    }

    .page-hero--full .hero-copy {
        position: relative;
        z-index: 2;
    }

    .page-hero--full h1,
    .page-hero--full p {
        text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
    }

    .page-hero--full .hero-badge {
        background: rgba(10, 28, 52, 0.35);
    }

    .page-hero .glass-panel,
    .catalog-hero__panel,
    .inner-hero__title {
        display: block;
        max-width: 100%;
        box-sizing: border-box;
        padding: 22px 16px;
    }

    .hero-section h1,
    .page-hero h1 {
        font-size: clamp(3.2rem, 9vw, 3.6rem) !important;
        line-height: 1.15 !important;
    }

    .catalog-section,
    .site-main > section:not(.page-hero) {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }

    .page-hero {
        padding-top: var(--header-clearance) !important;
        padding-bottom: 48px !important;
    }

    .catalog-section h2,
    .site-main h2 {
        font-size: clamp(2.05rem, 6vw, 2.4rem) !important;
    }

    .feature-grid,
    .split-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .about-cta {
        padding: 24px 20px !important;
        flex-direction: column;
        align-items: stretch !important;
    }

    .about-cta .btn-primary {
        display: inline-flex;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .wave-divider svg,
    .footer-wave svg {
        height: 40px;
    }

    .footer-wave {
        top: -39px;
    }

    .contact-map {
        height: 280px !important;
    }

    .product-facts div {
        flex-direction: column;
        gap: 2px;
    }

    .product-facts dd {
        text-align: left;
    }

    .footer-grid {
        gap: 28px !important;
    }

    .btn-primary {
        padding: 14px 22px;
    }
}

@media (max-width: 782px) {
    body.admin-bar {
        --header-inset-top: 74px;
        --header-clearance: 168px;
    }
}

@media (min-width: 701px) and (max-width: 1100px) {
    .page-hero h1,
    .hero-section h1 {
        font-size: clamp(3.2rem, 4.5vw, 3.8rem) !important;
    }

    .contact-map {
        height: 380px !important;
    }

    .page-hero .glass-panel,
    .inner-hero__title {
        padding: 28px 24px;
    }
}

.skip-link.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
    clip: auto;
    clip-path: none;
    height: auto;
    width: auto;
    margin: 0;
    top: 8px;
    left: 8px;
    z-index: 100000;
    display: inline-block;
    padding: 12px 16px;
    background: #fff;
    color: var(--color-text-dark);
    border-radius: 10px;
    box-shadow: var(--shadow-lift);
}

.section {
    padding: var(--space-section) 0;
    background: var(--bg-light);
}

.section-head {
    max-width: 640px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-head--left {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.section-head h2 {
    margin: 0;
    font-weight: 700;
}

.section-head__text {
    margin: 16px 0 0;
    color: var(--color-text-muted);
    font-size: 1.08rem;
}

.eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--color-primary-green);
    font-family: var(--font-family-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-rule {
    display: block;
    width: 72px;
    height: 3px;
    margin: 18px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--color-primary-green), var(--color-secondary-blue));
}

.section-head--left .section-rule {
    margin-left: 0;
}

.feature-card {
    padding: 40px 32px;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(25, 61, 100, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform var(--duration-mid) var(--ease-out), box-shadow var(--duration-mid) var(--ease-out);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
}

.feature-card h3 {
    margin: 0 0 12px;
}

.feature-card p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.wave-divider {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 3;
    color: var(--bg-light);
    line-height: 0;
    pointer-events: none;
}

.wave-divider--white {
    color: #fff;
}

.wave-divider svg {
    display: block;
    width: 120%;
    height: 72px;
    margin-left: -10%;
    animation: waveDrift 9s ease-in-out infinite;
}

.page-hero--inner {
    text-align: center;
    background-color: #193D64;
}

.page-hero--inner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(25, 61, 100, 0.72) 0%, rgba(69, 122, 193, 0.45) 100%);
}

.page-hero--inner .container {
    position: relative;
    z-index: 2;
}

.inner-hero__title {
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    padding: 32px 48px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.inner-hero__title h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(3.2rem, 5vw, 4rem);
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.28);
}

.prose-card,
.contact-panel {
    padding: 40px;
    margin-bottom: 28px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.prose-card__brand {
    margin: 0 0 12px;
    color: var(--color-primary-green);
}

.prose-card h2 {
    margin: 0 0 18px;
}

.prose-card p {
    margin: 0 0 16px;
    color: var(--color-text-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.prose-card p:last-child {
    margin-bottom: 0;
}

.split-card {
    padding: 40px 32px;
    text-align: center;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.split-card h3 {
    margin: 0 0 12px;
    color: var(--color-primary-green);
}

.split-card--gold h3 {
    color: var(--color-accent-gold);
}

.split-card p {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.65;
}

.about-cta {
    margin-top: 28px;
    border-radius: var(--radius-lg);
}

.about-cta h2 {
    margin: 0 0 10px;
    color: #fff;
}

.about-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.08rem;
}

.about-cta .btn-primary {
    background: #fff;
    color: var(--color-primary-green);
    box-shadow: none;
}

.about-cta .btn-primary:hover {
    background: #E7F1FA;
    color: var(--color-primary-green);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 32px;
}

.contact-card {
    text-align: center;
}

.contact-card__label {
    margin: 0 0 8px;
    color: var(--color-text-dark);
    font-family: var(--font-family-primary);
    font-size: 1.125rem;
    font-weight: 700;
}

.contact-card p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 1.08rem;
    line-height: 1.6;
}

.contact-phone {
    display: inline-block;
    padding: 6px 14px;
    color: var(--color-primary-green);
    background: rgba(40, 89, 141, 0.08);
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: background-color var(--duration-fast) var(--ease-out);
}

.contact-phone:hover {
    background: rgba(40, 89, 141, 0.16);
    color: var(--color-primary-green-hover);
}

.contact-mail {
    color: var(--color-text-muted);
    font-size: 1.08rem;
    border-bottom: 2px solid transparent;
    transition: border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.contact-mail:hover {
    color: var(--color-primary-green);
    border-bottom-color: var(--color-primary-green);
}

.contact-grid > [data-reveal]:nth-child(2) {
    --reveal-delay: 80ms;
}

.contact-grid > [data-reveal]:nth-child(3) {
    --reveal-delay: 160ms;
}

.product-grid > .product-card:nth-child(2) { --reveal-delay: 70ms; }
.product-grid > .product-card:nth-child(3) { --reveal-delay: 140ms; }
.product-grid > .product-card:nth-child(4) { --reveal-delay: 210ms; }
.product-grid > .product-card:nth-child(5) { --reveal-delay: 280ms; }
.product-grid > .product-card:nth-child(6) { --reveal-delay: 350ms; }
.product-grid > .product-card:nth-child(n + 7) { --reveal-delay: 420ms; }

.product-back {
    margin: 0 0 20px;
    font-weight: 700;
}

.footer-wave {
    position: absolute;
    top: -71px;
    left: 0;
    right: 0;
    height: 72px;
    color: var(--color-footer);
    line-height: 0;
    pointer-events: none;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 72px;
}

.footer-logo {
    display: block;
    max-height: 72px;
    width: auto;
    margin-bottom: 16px;
}

.footer-title {
    margin: 0 0 18px;
    color: #fff;
}

.footer-widget p,
.site-footer .footer-contact-row,
.site-footer .footer-contact-row p {
    margin: 0;
    color: #D6E6F5;
    line-height: 1.7;
}

.site-footer .footer-contact-row {
    color: #C8DEF4;
}

.site-footer .footer-contact-row a {
    color: #fff;
}

.site-footer .footer-contact-row a:hover {
    color: #C8DEF4;
}

.site-info {
    text-align: center;
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: #C5D7E8;
    font-size: 0.9rem;
}