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

    :root {
        --primary: #2D4A3E;
        --primary-dark: #1a2e27;
        --accent: #C8A961;
        --accent-light: #d4bb7a;
        --bg: #F5F2EB;
        --bg-alt: #EDE9E0;
        --text: #2A2520;
        --text-light: #5a5550;
        --white: #FAFAF8;
        --nav-height: 72px;
    }

    html {
        scroll-behavior: smooth;
    }

    body {
        font-family: "Battambang", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        color: var(--text);
        background: var(--bg);
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
    }

    html[lang="en"] body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    }

    html[lang="en"] .hero__title,
    html[lang="en"] .section__title,
    html[lang="en"] .nav__logo,
    html[lang="en"] .footer__logo,
    html[lang="en"] .about__badge,
    html[lang="en"] .about__stat-number,
    html[lang="en"] .product-card__name,
    html[lang="en"] .benefit__title,
    html[lang="en"] .marquee__item {
        font-family: Georgia, "Times New Roman", serif;
    }

    html[lang="km"] .hero__title,
    html[lang="km"] .section__title,
    html[lang="km"] .about__badge,
    html[lang="km"] .about__stat-number,
    html[lang="km"] .product-card__name,
    html[lang="km"] .benefit__title,
    html[lang="km"] .marquee__item {
        font-family: "Battambang", Georgia, serif;
    }

    [data-i18n],
    [data-i18n-attr] {
        transition: opacity 0.25s ease;
    }

    .lang-switching [data-i18n],
    .lang-switching [data-i18n-attr] {
        opacity: 0;
    }

    body.no-scroll {
        overflow: hidden;
    }

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

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

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        height: var(--nav-height);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 clamp(24px, 5vw, 80px);
        transition: background 0.3s, box-shadow 0.3s;
    }

    .nav--scrolled {
        background: rgba(45, 74, 62, 0.95);
        backdrop-filter: blur(8px);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    }

    .nav__logo {
        font-family: Georgia, "Times New Roman", serif;
        font-size: 1.35rem;
        font-weight: 700;
        color: var(--white);
        letter-spacing: 0.02em;
    }

    .nav__logo span {
        color: var(--accent);
    }

    .nav__links {
        display: flex;
        gap: 32px;
        list-style: none;
    }

    .nav__links a {
        color: var(--white);
        font-size: 0.875rem;
        font-weight: 500;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        position: relative;
        padding-bottom: 4px;
    }

    .nav__links a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 1.5px;
        background: var(--accent);
        transition: width 0.3s;
    }

    .nav__links a:hover::after {
        width: 100%;
    }

    .nav__lang {
        background: transparent;
        border: 1.5px solid rgba(250, 250, 248, 0.4);
        color: var(--white);
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        padding: 5px 12px;
        cursor: pointer;
        transition: border-color 0.3s, background 0.3s;
        margin-left: 20px;
    }

    .nav__lang:hover {
        border-color: var(--accent);
        background: rgba(200, 169, 97, 0.15);
    }

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

    .nav__hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--white);
        transition: transform 0.3s, opacity 0.3s;
    }

    .nav__hamburger--open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav__hamburger--open span:nth-child(2) {
        width: 4px;
        height: 4px;
        border-radius: 50%;
        transform: translateX(2px);
        box-shadow: 16px 0 0 var(--white);
    }

    .nav__hamburger--open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav__drawer {
        position: fixed;
        top: 0;
        right: -100%;
        width: 200px;
        height: 100dvh;
        background: var(--primary-dark);
        z-index: 99;
        padding: 100px 28px 40px;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav__drawer--open {
        right: 0;
    }

    .nav__drawer-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 98;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .nav__drawer-overlay--visible {
        opacity: 1;
        pointer-events: auto;
    }

    .nav__drawer-links {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .nav__drawer-links a {
        color: var(--white);
        font-size: 1.1rem;
        font-weight: 500;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .hero {
        position: relative;
        min-height: 100dvh;
        display: flex;
        align-items: center;
        background: var(--primary);
        overflow: hidden;
        padding: 0 clamp(24px, 5vw, 80px);
    }

    .hero__bg {
        position: absolute;
        inset: 0;
        background:
        linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, rgba(45, 74, 62, 0.85) 100%);
    }

    .hero__bg::after {
        content: "";
        position: absolute;
        inset: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C8A961' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }

    .hero__illustration {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        max-height: 40%;
        object-fit: cover;
        object-position: top;
        opacity: 0.1;
        z-index: 1;
        pointer-events: none;
    }

    .hero__content {
        position: relative;
        z-index: 2;
        max-width: 680px;
        padding: 120px 0 80px;
    }

    .hero__label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 0.85rem;
        font-weight: 600;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--accent);
        margin-bottom: 24px;
    }

    .hero__label::before {
        content: "";
        width: 28px;
        height: 1.5px;
        background: var(--accent);
    }

    .hero__title {
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(2.4rem, 5.5vw, 4.2rem);
        font-weight: 700;
        color: var(--white);
        line-height: 1.1;
        margin-bottom: 20px;
    }

    .hero__title-accent {
        color: var(--accent);
    }

    .hero__subtitle {
        font-size: clamp(1rem, 1.8vw, 1.2rem);
        color: rgba(250, 250, 248, 0.75);
        max-width: 520px;
        margin-bottom: 36px;
        line-height: 1.7;
    }

    .hero__cta {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background: var(--accent);
        color: var(--primary-dark);
        font-size: 0.875rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        padding: 14px 32px;
        transition: background 0.3s;
    }

    .hero__cta:hover {
        background: var(--accent-light);
    }

    .hero__scroll {
        position: absolute;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        color: rgba(250, 250, 248, 0.4);
        font-size: 0.65rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .hero__scroll-line {
        width: 1px;
        height: 40px;
        background: var(--accent);
        animation: pulse-line 2s ease-in-out infinite;
    }

    @keyframes pulse-line {
        0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
        50% { opacity: 1; transform: scaleY(1); }
    }

    .marquee {
        background: var(--accent);
        overflow: hidden;
        padding: 14px 0;
    }

    .marquee__track {
        display: flex;
        width: max-content;
        animation: scroll-marquee 30s linear infinite;
    }

    .marquee__item {
        white-space: nowrap;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--primary-dark);
        letter-spacing: 0.08em;
        text-transform: uppercase;
        padding: 0 40px;
    }

    .marquee__item::after {
        content: "\2726";
        margin-left: 40px;
        opacity: 0.5;
    }

    @keyframes scroll-marquee {
        to { transform: translateX(-50%); }
    }

    .section {
        padding: clamp(60px, 10vw, 120px) clamp(24px, 5vw, 80px);
    }

    .section--alt {
        background: var(--bg-alt);
    }

    .section--dark {
        background: var(--primary);
        color: var(--white);
    }

    .section__label {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        font-size: 0.85rem;
        font-weight: 600;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--accent);
        margin-bottom: 16px;
    }

    .section__label::before {
        content: "";
        width: 24px;
        height: 1.5px;
        background: var(--accent);
    }

    .section__title {
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(1.8rem, 3.5vw, 2.8rem);
        font-weight: 700;
        line-height: 1.15;
        margin-bottom: 20px;
    }

    .section__desc {
        font-size: 1rem;
        color: var(--text-light);
        max-width: 600px;
        line-height: 1.7;
        margin-bottom: 48px;
    }

    .section--dark .section__desc {
        color: rgba(250, 250, 248, 0.7);
    }

    .about__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
        max-width: 1100px;
        margin: 0 auto;
    }

    .about__images {
        position: relative;
        height: 480px;
    }

    .about__img-main {
        width: 75%;
        height: 380px;
        object-fit: cover;
    }

    .about__img-accent {
        position: absolute;
        right: 0;
        bottom: 0;
        width: 55%;
        height: 260px;
        object-fit: cover;
        border: 5px solid var(--bg);
    }

    .about__badge {
        position: absolute;
        top: -16px;
        right: 40px;
        background: var(--accent);
        color: var(--primary-dark);
        font-family: Georgia, "Times New Roman", serif;
        font-size: 0.9rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        padding: 10px 18px;
        z-index: 2;
    }

    .about__text .section__desc {
        margin-bottom: 24px;
    }

    .about__stats {
        display: flex;
        gap: 40px;
        margin-top: 32px;
    }

    .about__stat-number {
        font-family: Georgia, "Times New Roman", serif;
        font-size: 2rem;
        font-weight: 700;
        color: var(--primary);
        line-height: 1;
    }

    .about__stat-label {
        font-size: 0.8rem;
        color: var(--text-light);
        margin-top: 4px;
    }

    .products__grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
        max-width: 1100px;
        margin: 0 auto;
    }

    .product-card {
        background: var(--white);
        position: relative;
        overflow: hidden;
        transition: transform 0.3s;
    }

    .product-card:hover {
        transform: translateY(-4px);
    }

    .product-card__number {
        position: absolute;
        top: 16px;
        left: 20px;
        font-family: Georgia, "Times New Roman", serif;
        font-style: italic;
        font-size: 1.1rem;
        color: var(--accent);
        z-index: 2;
    }

    .product-card__img {
        width: 100%;
        height: 320px;
        object-fit: contain;
        background: #f0ede6;
        padding: 20px;
    }

    .product-card__body {
        padding: 24px 20px;
    }

    .product-card__name {
        font-family: Georgia, "Times New Roman", serif;
        font-size: 1.15rem;
        font-weight: 700;
        margin-bottom: 6px;
    }

    .product-card__desc {
        font-size: 0.85rem;
        color: var(--text-light);
        line-height: 1.6;
    }

    .product-card__tag {
        display: inline-block;
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--accent);
        margin-top: 10px;
        border: 1px solid var(--accent);
        padding: 3px 10px;
    }

    .benefits__grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 28px;
        max-width: 1100px;
        margin: 0 auto;
    }

    .benefit {
        text-align: center;
        padding: 32px 20px;
    }

    .benefit__icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        margin: 0 auto 20px;
        border: 1.5px solid var(--accent);
        border-radius: 50%;
    }

    .benefit__icon svg {
        display: block;
        overflow: hidden;
        width: 24px;
        height: 24px;
        stroke: var(--accent);
        fill: none;
        stroke-width: 1.5;
    }

    .benefit__title {
        font-family: Georgia, "Times New Roman", serif;
        font-size: 1.05rem;
        font-weight: 700;
        margin-bottom: 8px;
        color: var(--white);
    }

    .benefit__desc {
        font-size: 0.85rem;
        color: rgba(250, 250, 248, 0.6);
        line-height: 1.6;
    }

    .gallery__mosaic {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 200px;
        gap: 12px;
        max-width: 1100px;
        margin: 0 auto;
    }

    .gallery__item {
        overflow: hidden;
        cursor: pointer;
        position: relative;
    }

    .gallery__item:hover .gallery__img {
        transform: scale(1.05);
    }

    .gallery__item--tall {
        grid-row: span 2;
    }

    .gallery__item--wide {
        grid-column: span 2;
    }

    .gallery__img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }

    .lightbox {
        position: fixed;
        inset: 0;
        z-index: 200;
        background: rgba(0, 0, 0, 0);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        pointer-events: none;
        transition: background 0.35s ease;
    }

    .lightbox--open {
        background: rgba(0, 0, 0, 0.92);
        pointer-events: auto;
    }

    .lightbox__img {
        max-width: 90vw;
        max-height: 90vh;
        object-fit: contain;
        opacity: 0;
        transform: scale(0.85);
        transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .lightbox--open .lightbox__img {
        opacity: 1;
        transform: scale(1);
    }

    .lightbox--closing .lightbox__img {
        opacity: 0;
        transform: scale(0.85);
    }

    .lightbox--closing {
        background: rgba(0, 0, 0, 0);
    }

    .contact__inner {
        max-width: 700px;
        margin: 0 auto;
        text-align: center;
    }

    .contact__methods {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin-top: 32px;
    }

    .contact__method {
        display: flex;
        align-items: center;
        gap: 10px;
        background: var(--white);
        padding: 16px 28px;
        font-size: 0.9rem;
        font-weight: 500;
        transition: transform 0.2s;
    }

    .contact__method:hover {
        transform: translateY(-2px);
    }

    .contact__method svg {
        display: block;
        overflow: hidden;
        width: 20px;
        height: 20px;
        stroke: var(--accent);
        fill: none;
        stroke-width: 1.5;
    }

    .contact__cta {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background: var(--primary);
        color: var(--white);
        font-size: 0.875rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        padding: 16px 36px;
        margin-top: 36px;
        transition: background 0.3s;
    }

    .contact__cta:hover {
        background: var(--primary-dark);
    }

    .footer {
        background: var(--primary-dark);
        color: rgba(250, 250, 248, 0.5);
        padding: 40px clamp(24px, 5vw, 80px);
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.8rem;
    }

    .footer__logo {
        font-family: Georgia, "Times New Roman", serif;
        font-size: 1rem;
        font-weight: 700;
        color: var(--white);
    }

    .footer__logo span {
        color: var(--accent);
    }

    @media (max-width: 900px) {
        .nav__links {
            display: none;
        }

        .nav {
            padding: 0 16px;
            gap: 8px;
        }

        .nav__logo {
            font-size: 1.1rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            min-width: 0;
        }

        .nav__hamburger {
            display: flex;
            flex-shrink: 0;
        }

        .nav__lang {
            margin-left: auto;
            margin-right: 8px;
            flex-shrink: 0;
        }

        .nav__drawer-links a {
            display: block;
            padding: 10px 0;
            min-height: 44px;
            line-height: 24px;
        }

        .about__grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }

        .about__images {
            height: auto;
            display: flex;
            gap: 12px;
        }

        .about__img-main {
            width: 55%;
            height: 240px;
        }

        .about__img-accent {
            position: static;
            width: 45%;
            height: 240px;
            border: none;
        }

        .about__badge {
            display: none;
        }

        .products__grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }

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

        .gallery__mosaic {
            grid-template-columns: repeat(2, 1fr);
            grid-auto-rows: 180px;
        }
    }

    @media (max-width: 600px) {
        .products__grid {
            grid-template-columns: 1fr;
        }

        .about__img-main,
        .about__img-accent {
            height: 180px;
        }

        .about__stats {
            gap: 24px;
        }

        .benefits__grid {
            grid-template-columns: 1fr;
            gap: 8px;
        }

        .gallery__mosaic {
            grid-template-columns: 1fr;
            grid-auto-rows: 220px;
        }

        .gallery__item--tall,
        .gallery__item--wide {
            grid-row: span 1;
            grid-column: span 1;
        }

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

        .contact__method {
            justify-content: center;
        }

        .contact__cta {
            width: 100%;
            justify-content: center;
        }

        .hero__scroll {
            display: none;
        }

        .footer {
            flex-direction: column;
            gap: 12px;
            text-align: center;
        }

        .hero__cta {
            width: 100%;
            justify-content: center;
        }

        .hero__label {
            font-size: 0.8rem;
        }

        .section__label {
            font-size: 0.65rem;
        }
    }

    @media (max-width: 380px) {
        .about__stat-number {
            font-size: 1.5rem;
        }

        .product-card__img {
            height: 240px;
        }
    }

    @media (hover: none) {
        .nav__links a::after {
            display: none;
        }

        .product-card:hover {
            transform: none;
        }

        .product-card:active {
            transform: scale(0.98);
        }

        .gallery__item:hover .gallery__img {
            transform: none;
        }

        .contact__method:hover {
            transform: none;
        }

        .contact__method:active {
            transform: scale(0.98);
        }
    }
