/* =========================================================
   LUMA — Editorial redesign
   Type: Bodoni Moda (display Didone) + Archivo (grotesque)
   Palette pulled from the product packaging.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,500;0,6..96,600;0,6..96,700;1,6..96,400;1,6..96,500&family=Archivo:wght@400;500;600;700&display=swap');

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

:root {
    /* Palette (from the LUMA boxes) */
    --paper:        #F2EDE4;  /* warm cream */
    --paper-2:      #E9E2D5;  /* deeper cream */
    --ink:          #16120E;  /* near-black */
    --ink-soft:     #4A443B;
    --coral:        #DC4326;  /* red-orange box */
    --teal:         #2E9D96;  /* turquoise box */
    --blue:         #2C39B8;  /* royal blue box */

    /* Back-compat aliases used by privacy.html / privacy_ru.html */
    --primary-color: var(--coral);
    --secondary-color: var(--teal);
    --dark-color:   var(--ink);
    --light-color:  var(--paper);
    --white:        #FBF8F2;
    --text-color:   #2A251F;
    --text-light:   #6B6358;
    --transition:   all 0.4s cubic-bezier(0.22, 1, 0.36, 1);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --nav-h: 84px;
    --edge: clamp(20px, 5vw, 80px);
}

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
    font-family: 'Archivo', sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "kern" 1;
}

/* Film-grain atmosphere */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
::selection { background: var(--coral); color: var(--paper); }

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--edge);
}

/* ---------- Shared type ---------- */
.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 22px;
}
.eyebrow::before { content: "( "; }
.eyebrow::after  { content: " )"; }
.eyebrow--center { display: block; text-align: center; }

.section-title {
    font-family: 'Bodoni Moda', serif;
    font-weight: 500;
    line-height: 0.96;
    letter-spacing: -0.01em;
    font-size: clamp(40px, 6vw, 92px);
    margin-bottom: 34px;
}

p { font-size: clamp(15px, 1.1vw, 18px); color: var(--ink-soft); }

/* ---------- Loader ---------- */
.loader {
    position: fixed; inset: 0; z-index: 10000;
    background: var(--ink);
    display: grid; place-items: center;
    transition: transform 1s var(--ease);
}
.loader.done { transform: translateY(-101%); }
.loader__inner {
    display: flex; align-items: baseline; gap: 18px;
    color: var(--paper);
}
.loader__mark {
    font-family: 'Bodoni Moda', serif;
    font-size: clamp(48px, 11vw, 150px);
    font-weight: 600; letter-spacing: 0.02em;
    overflow: hidden;
}
.loader__count {
    font-family: 'Archivo', sans-serif;
    font-size: 14px; letter-spacing: 0.2em;
    color: var(--coral);
}

/* ---------- Custom cursor ---------- */
.cursor {
    position: fixed; top: 0; left: 0;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--coral);
    pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease), height 0.3s var(--ease),
                background 0.3s var(--ease), opacity 0.3s var(--ease);
    mix-blend-mode: difference;
    opacity: 0;
}
.cursor.active { opacity: 1; }
.cursor.hover {
    width: 64px; height: 64px;
    background: var(--paper);
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 1000;
    transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), padding 0.4s var(--ease);
    padding: 14px 0;
}
.navbar.scrolled {
    background: rgba(242, 237, 228, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(22,18,14,0.08);
}
.navbar .container {
    display: flex; align-items: center; justify-content: space-between;
    min-height: calc(var(--nav-h) - 28px);
}
.logo {
    font-family: 'Bodoni Moda', serif;
    font-size: 30px; font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ink); text-decoration: none;
    line-height: 1;
    display: inline-flex; align-items: center;
}
/* SVG wordmark sized to the prior 30px text footprint (index page) */
.logo__img { display: block; height: 26px; width: auto; }
.nav-links {
    display: flex; list-style: none; gap: 38px;
}
.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--ink);
    font-size: 14px; font-weight: 500;
    letter-spacing: 0.02em;
    padding-bottom: 3px;
}
.nav-links a::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 100%; height: 1px; background: var(--coral);
    transform: scaleX(0); transform-origin: right;
    transition: transform 0.4s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.language-switcher { display: flex; align-items: center; gap: 8px; }
.lang-sep { color: var(--ink-soft); font-size: 13px; }
.lang-btn {
    background: none; border: none; cursor: pointer;
    font-family: inherit; font-size: 13px; font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--ink-soft); padding: 4px 2px;
    transition: var(--transition);
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active { color: var(--coral); }

.burger { display: none; position: relative; z-index: 1002; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.burger div { width: 26px; height: 2px; background: var(--ink); transition: var(--transition); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 34px;
    font-family: 'Archivo', sans-serif;
    font-size: 13px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    text-decoration: none; border: 1px solid var(--ink);
    border-radius: 100px; cursor: pointer;
    transition: var(--transition);
    background: transparent; color: var(--ink);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--coral); border-color: var(--coral); color: var(--paper); transform: translateY(-2px); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    padding: calc(var(--nav-h) + 30px) 0 50px;
    display: flex; align-items: center;
    overflow: hidden;
}
.hero__bg {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(60% 50% at 78% 18%, rgba(220,67,38,0.16), transparent 70%),
        radial-gradient(50% 50% at 12% 88%, rgba(46,157,150,0.14), transparent 70%);
}
.hero__grid {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-areas:
        "head visual"
        "foot visual";
    align-items: start;
    column-gap: var(--edge);
    row-gap: 30px;
}
.hero__head { grid-area: head; align-self: center; }
.hero__title {
    font-family: 'Bodoni Moda', serif;
    font-weight: 600;
    font-size: clamp(110px, 26vw, 420px);
    line-height: 0.82;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.line-mask { display: block; overflow: hidden; }
.hero__title .line { display: block; }
.hero__foot {
    grid-area: foot; align-self: end;
    max-width: 520px;
    display: flex; flex-direction: column; gap: 30px;
}
.hero__lede {
    font-family: 'Bodoni Moda', serif;
    font-style: italic; font-weight: 400;
    font-size: clamp(20px, 2.1vw, 30px);
    line-height: 1.3; color: var(--ink);
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__visual {
    grid-area: visual; align-self: center;
    position: relative;
}
.hero__visual img {
    width: 100%;
    filter: drop-shadow(0 40px 60px rgba(22,18,14,0.22));
}
.hero__tag {
    position: absolute; bottom: -8px; right: 0;
    writing-mode: vertical-rl;
    font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--ink-soft);
}
.scroll-cue {
    position: absolute; bottom: 28px; left: var(--edge); z-index: 2;
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none; color: var(--ink);
    font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
}
.scroll-cue svg { animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- Marquee ---------- */
.marquee {
    border-top: 1px solid rgba(22,18,14,0.15);
    border-bottom: 1px solid rgba(22,18,14,0.15);
    background: var(--ink);
    overflow: hidden; padding: 22px 0;
}
.marquee__track {
    display: inline-flex; align-items: center; gap: 38px;
    white-space: nowrap;
    will-change: transform;
    animation: marquee 32s linear infinite;
}
.marquee__track span {
    font-family: 'Bodoni Moda', serif;
    font-style: italic;
    font-size: clamp(22px, 3vw, 42px);
    color: var(--paper);
}
.marquee__dot { color: var(--coral) !important; font-style: normal !important; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about { padding: clamp(80px, 12vw, 170px) 0; }
.about__grid {
    display: grid; grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(40px, 6vw, 100px); align-items: center;
}
.about__media { position: relative; }
.about__media img {
    width: 100%; border-radius: 4px;
    box-shadow: 0 30px 60px rgba(22,18,14,0.18);
}
.about__index {
    position: absolute; top: -18px; left: -10px;
    font-size: 12px; letter-spacing: 0.2em; color: var(--coral);
}
.about__text p { margin-bottom: 20px; max-width: 56ch; }

.features {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; margin-top: 52px;
}
.feature {
    position: relative;
    padding: 26px 22px;
    border-top: 1px solid rgba(22,18,14,0.18);
}
.feature__num {
    font-size: 11px; letter-spacing: 0.2em; color: var(--ink-soft);
}
.feature__icon { color: var(--coral); margin: 16px 0 14px; }
.feature__icon svg { width: 34px; height: 34px; }
.feature h3 {
    font-family: 'Bodoni Moda', serif; font-weight: 600;
    font-size: 19px; margin-bottom: 6px;
}
.feature p { font-size: 14px; }

/* ---------- Products ---------- */
.products { padding: clamp(80px, 12vw, 170px) 0; background: var(--paper-2); }
.section-head { margin-bottom: clamp(40px, 6vw, 80px); }
.products-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.product-card {
    --accent: var(--coral);
    position: relative; overflow: hidden;
    border-radius: 6px;
    background: var(--white);
    border: 1px solid rgba(22,18,14,0.08);
    padding: 26px 26px 32px;
    display: flex; flex-direction: column;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.product-card--coral { --accent: var(--coral); }
.product-card--blue  { --accent: var(--blue); }
.product-card--teal  { --accent: var(--teal); }
.product-card::before {
    content: ""; position: absolute; left: 0; top: 0;
    width: 100%; height: 3px; background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.5s var(--ease);
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 30px 50px rgba(22,18,14,0.14); }
.product-card:hover::before { transform: scaleX(1); }
.product-card__top {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.product-card__index { font-family: 'Bodoni Moda', serif; font-size: 22px; color: var(--accent); letter-spacing: 0; }
.product-card__count { color: var(--ink-soft); }
.product-image {
    margin: 20px 0 24px;
    background: var(--paper);
    border-radius: 4px;
    aspect-ratio: 16 / 11;
    display: grid; place-items: center;
    overflow: hidden;
}
.product-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.product-card:hover .product-image img { transform: scale(1.05); }
.product-card__body h3 {
    font-family: 'Bodoni Moda', serif; font-weight: 600;
    font-size: clamp(22px, 1.6vw, 28px); line-height: 1.05;
    margin-bottom: 10px;
}
.product-card__body > p { font-size: 15px; margin-bottom: 18px; }
.product-features { list-style: none; margin-top: auto; }
.product-features li {
    position: relative; padding: 10px 0 10px 26px;
    font-size: 14px; color: var(--ink-soft);
    border-top: 1px solid rgba(22,18,14,0.1);
}
.product-features li::before {
    content: ""; position: absolute; left: 0; top: 50%;
    width: 12px; height: 1px; background: var(--accent);
}

/* ---------- Philosophy ---------- */
.philosophy {
    padding: clamp(90px, 14vw, 200px) 0;
    background: var(--ink); color: var(--paper);
    text-align: center;
}
.philosophy .eyebrow { color: var(--coral); }
.philosophy__quote {
    font-family: 'Bodoni Moda', serif; font-weight: 400;
    font-size: clamp(28px, 4.4vw, 64px);
    line-height: 1.16; letter-spacing: -0.01em;
    max-width: 18ch; margin: 0 auto 34px;
    color: var(--paper);
}
.philosophy__sign { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(242,237,228,0.6); }

/* ---------- App ---------- */
.app-section { padding: clamp(80px, 12vw, 170px) 0; overflow: hidden; }
.app__grid {
    display: grid; grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(40px, 6vw, 90px); align-items: center;
}
.app__text .app-description { max-width: 48ch; margin-bottom: 30px; }
.app__list { list-style: none; margin-bottom: 40px; }
.app__list li {
    display: flex; gap: 18px; align-items: baseline;
    padding: 16px 0; border-top: 1px solid rgba(22,18,14,0.14);
}
.app__list li span { font-family: 'Bodoni Moda', serif; color: var(--teal); font-size: 16px; }
.app__list li p { color: var(--ink); font-size: clamp(15px, 1.2vw, 18px); }
.app-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.app-button {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--ink); color: var(--paper);
    padding: 13px 24px; border-radius: 100px; text-decoration: none;
    transition: var(--transition);
}
.app-button:hover { background: var(--coral); transform: translateY(-2px); }
.app-store-text { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; }
.app-store-name { font-size: 16px; font-weight: 600; }
.app__device {
    display: grid; place-items: center;
}
.app__device img {
    width: min(100%, 360px);
    border-radius: 36px;
    box-shadow: 0 40px 70px rgba(22,18,14,0.28);
}

/* ---------- Contact ---------- */
.contact { padding: clamp(80px, 12vw, 170px) 0; }
.contact__grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 90px); align-items: start;
}
.contact-item { margin-top: 30px; }
.contact-item h3 {
    font-family: 'Bodoni Moda', serif; font-weight: 600; font-size: 26px;
    margin-bottom: 10px;
}
.contact-item p { margin-bottom: 8px; }
.contact-link {
    display: inline-block;
    font-family: 'Bodoni Moda', serif; font-size: clamp(26px, 3vw, 44px);
    color: var(--ink); text-decoration: none;
    border-bottom: 1px solid transparent; transition: var(--transition);
}
.contact-link:hover { color: var(--coral); border-color: var(--coral); }
.contact-form h3 {
    font-family: 'Bodoni Moda', serif; font-weight: 600; font-size: 26px; margin-bottom: 26px;
}
.contact-form input, .contact-form textarea {
    width: 100%; padding: 16px 4px; margin-bottom: 18px;
    border: none; border-bottom: 1px solid rgba(22,18,14,0.25);
    background: transparent; font-family: inherit; font-size: 16px; color: var(--ink);
    transition: var(--transition);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--ink-soft); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--coral); }
.contact-form textarea { resize: vertical; }
.contact-form .btn { margin-top: 12px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: clamp(50px, 7vw, 90px) 0 36px; }
.footer__top {
    display: flex; justify-content: space-between; align-items: flex-end;
    flex-wrap: wrap; gap: 24px;
    padding-bottom: 40px; border-bottom: 1px solid rgba(242,237,228,0.16);
}
.footer-logo {
    font-family: 'Bodoni Moda', serif; font-weight: 700;
    font-size: clamp(60px, 12vw, 180px); line-height: 0.85; letter-spacing: 0.02em;
}
/* SVG wordmark scaled to match the prior footer text height; inverted to read on dark ink */
.footer-logo__img {
    display: block; width: auto;
    height: clamp(50px, 10vw, 150px);
    filter: invert(1);
}
.footer__tag {
    font-family: 'Bodoni Moda', serif; font-style: italic;
    font-size: clamp(16px, 1.6vw, 22px); color: rgba(242,237,228,0.8); max-width: 22ch;
}
.footer__bottom {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px; padding-top: 26px;
}
.footer__bottom p { color: rgba(242,237,228,0.6); font-size: 13px; }
.social-links { display: flex; gap: 26px; flex-wrap: wrap; }
.social-links a {
    color: var(--paper); text-decoration: none; font-size: 13px;
    letter-spacing: 0.04em; transition: var(--transition);
    position: relative;
}
.social-links a:hover { color: var(--coral); }

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero__grid {
        grid-template-columns: 1fr;
        grid-template-areas: "head" "visual" "foot";
        row-gap: 36px;
    }
    .hero__visual { max-width: 440px; }
    .hero__tag { display: none; }
    .about__grid, .app__grid, .contact__grid, .products-grid { grid-template-columns: 1fr; }
    .products-grid { gap: 20px; }
    .app__device { order: -1; }
    .footer__top { align-items: flex-start; }
}

@media (max-width: 768px) {
    .burger { display: flex; }
    .nav-links {
        position: fixed; inset: 0; top: 0;
        flex-direction: column; justify-content: center; align-items: center;
        gap: 28px;
        background: var(--paper);
        transform: translateX(100%);
        transition: transform 0.6s var(--ease);
        z-index: 999;
    }
    .nav-links.active { transform: translateX(0); }
    .nav-links a { font-size: 28px; font-family: 'Bodoni Moda', serif; }
    .burger.active .line1 { transform: translateY(7px) rotate(45deg); }
    .burger.active .line2 { opacity: 0; }
    .burger.active .line3 { transform: translateY(-7px) rotate(-45deg); }
    .features { grid-template-columns: 1fr; gap: 0; }
    .feature { padding: 22px 0; }
    .scroll-cue { display: none; }
    .cursor { display: none; }
}

@media (max-width: 480px) {
    .hero__title { font-size: clamp(96px, 42vw, 200px); }
    .btn { padding: 14px 26px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    .marquee__track { animation: none; }
    .cursor { display: none; }
    .loader { display: none; }
}
