/* HydroPro — "Luxe" experimental design. Dark graphite + champagne gold, serif display, 3D depth. */
:root {
    --ink: #0a0c0f;
    --ink-2: #111419;
    --ink-3: #181c22;
    --line: rgba(212, 180, 112, .22);
    --line-soft: rgba(255, 255, 255, .07);
    --gold: #c9a961;
    --gold-2: #e8d3a0;
    --gold-grad: linear-gradient(135deg, #f1dfb2 0%, #c9a961 45%, #8f7236 100%);
    --ivory: #f2ede3;
    --text: #d9d5cc;
    --muted: #8f8b83;
    --serif: "Cormorant Garamond", "Times New Roman", serif;
    --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
    --radius: 18px;
    --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    margin: 0; background: var(--ink); color: var(--text);
    font: 300 16px/1.75 var(--sans); letter-spacing: .01em;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--gold-2); text-decoration: none; transition: color .3s; }
a:hover { color: #fff; }
img { max-width: 100%; }
strong { color: var(--ivory); font-weight: 600; }
::selection { background: var(--gold); color: var(--ink); }
.container { max-width: 1240px; }
/* grain for depth */
body::before {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: .05;
    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 baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ivory); letter-spacing: .005em; line-height: 1.15; }
.display { font-size: clamp(2.6rem, 6vw, 5.4rem); font-weight: 400; margin: 0 0 1.2rem; }
.display em, .h-section em { font-style: italic; color: transparent; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; }
.h-section { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 400; margin: 0 0 1rem; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem;
    font: 500 .72rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 42px; height: 1px; background: var(--gold); }
.center .eyebrow::after { content: ""; width: 42px; height: 1px; background: var(--gold); }
.center { text-align: center; }
.lead-copy { font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.center .lead-copy { margin-inline: auto; }
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; overflow-x: clip; }
.section-head { margin-bottom: clamp(40px, 6vw, 70px); }
.section.alt { background: radial-gradient(1200px 500px at 50% 0, rgba(201, 169, 97, .07), transparent 70%), var(--ink-2); }
.hairline { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); border: 0; margin: 0; }

/* ---------- Buttons ---------- */
.btn-lux, .button {
    position: relative; display: inline-flex; align-items: center; gap: .6rem; padding: 1rem 2rem;
    font: 500 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
    border-radius: 999px; border: 1px solid var(--gold); color: var(--ink); background: var(--gold-grad);
    box-shadow: 0 10px 30px -10px rgba(201, 169, 97, .55), inset 0 1px 0 rgba(255, 255, 255, .45);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s; cursor: pointer;
}
.btn-lux:hover, .button:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(201, 169, 97, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-ghost, .button.btn-outline-gold { background: transparent; color: var(--gold-2); box-shadow: none; }
.btn-ghost:hover, .button.btn-outline-gold:hover { background: rgba(201, 169, 97, .12); color: #fff; }

/* ---------- Header ---------- */
.lux-header { position: fixed; inset: 0 0 auto; z-index: 1000; transition: border-color .5s; border-bottom: 1px solid transparent; }
/* Glass lives on a pseudo-layer: backdrop-filter on the header itself would trap the fixed mobile menu inside the 84px bar */
.lux-header::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s; background: rgba(10, 12, 15, .72); backdrop-filter: blur(18px) saturate(1.4); }
.lux-header.scrolled { border-color: var(--line-soft); }
.lux-header.scrolled::before { opacity: 1; }
.lux-nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.lux-brand { position: relative; display: inline-block; line-height: 0; }
.lux-brand img { height: 46px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45)); }
/* A thin champagne-gold glint glides across the white letters every few seconds; masked to the logo's own shape */
.lux-brand::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 38%, rgba(232, 211, 160, .95) 50%, transparent 62%) no-repeat;
    background-size: 300% 100%; background-position: 100% 0;
    -webkit-mask: url(../images/hydropro-logo-white.png) center / contain no-repeat;
    mask: url(../images/hydropro-logo-white.png) center / contain no-repeat;
    animation: logo-shine 7s ease-in-out 1.5s infinite;
}
@keyframes logo-shine { 0% { background-position: 100% 0; } 22%, 100% { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) { .lux-brand::after { animation: none; opacity: 0; } }
.lux-menu { display: flex; gap: 2.2rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.lux-menu a { position: relative; font: 400 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--text); padding: .5rem 0; }
.lux-menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--gold); transition: right .45s var(--ease); }
.lux-menu a:hover, .lux-menu a.active { color: var(--gold-2); }
.lux-menu a:hover::after, .lux-menu a.active::after { right: 0; }
.lux-menu .lang a { border: 1px solid var(--line); border-radius: 999px; padding: .55rem .9rem; }
.lux-menu .lang a::after { display: none; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; position: relative; cursor: pointer; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1px; background: var(--gold-2); transition: transform .4s var(--ease), opacity .3s; }
.menu-toggle span:nth-child(1) { top: 17px; } .menu-toggle span:nth-child(2) { top: 22px; } .menu-toggle span:nth-child(3) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.menu-extra { display: none; }
@media (max-width: 991px) {
    .menu-toggle { display: block; z-index: 2; }
    .lux-menu {
        position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 1.6rem;
        background: radial-gradient(800px 600px at 80% 0, rgba(201, 169, 97, .14), transparent 60%), var(--ink);
        opacity: 0; visibility: hidden; transform: scale(1.04); transition: opacity .5s, transform .5s var(--ease), visibility .5s;
    }
    .menu-open .lux-menu { opacity: 1; visibility: visible; transform: none; }
    .lux-menu a { font: 400 1.9rem/1.2 var(--serif); letter-spacing: .02em; text-transform: none; }
    .menu-extra { display: block; text-align: center; margin-top: 1.5rem; font-size: .95rem; }
    .menu-extra a { font: 300 .95rem/2 var(--sans); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; opacity: .38; filter: saturate(.5) contrast(1.1); }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background: radial-gradient(900px 700px at 72% 45%, rgba(201, 169, 97, .16), transparent 60%),
                linear-gradient(90deg, rgba(10, 12, 15, .96) 0%, rgba(10, 12, 15, .7) 45%, rgba(10, 12, 15, .35) 100%),
                linear-gradient(0deg, var(--ink) 0%, transparent 30%);
}
.hero-inner { position: relative; padding-top: 110px; padding-bottom: 120px; }
.hero-copy { max-width: 640px; }
.hero-copy p { font-size: 1.2rem; color: var(--text); margin-bottom: 2.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.scroll-cue {
    position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .7rem;
    font: 400 .66rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue::after { content: ""; width: 1px; height: 54px; background: linear-gradient(var(--gold), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.hero-news {
    position: absolute; right: clamp(16px, 4vw, 60px); bottom: clamp(90px, 10vh, 120px); width: min(380px, calc(100% - 32px)); z-index: 2;
    padding: 1.6rem 1.7rem; border-radius: var(--radius); border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015)); backdrop-filter: blur(16px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
}
.hero-news .tag { font: 500 .66rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.hero-news h3 { font-size: 1.3rem; margin: .8rem 0 1rem; }
.eu-logos { display: flex; gap: .8rem; align-items: center; background: #fff; border-radius: 10px; padding: .6rem .8rem; margin-bottom: 1rem; }
.eu-logos img { height: 38px; width: auto; flex: 1 1 0; object-fit: contain; min-width: 0; }
.link-more { background: none; border: 0; padding: 0; color: var(--gold-2); font: 500 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.link-more:hover { color: #fff; }
@media (max-width: 991px) {
    .hero { flex-direction: column; align-items: stretch; }
    .hero-news { position: relative; right: auto; bottom: auto; margin: 0 auto 90px; }
    .hero-inner { padding-bottom: 50px; }
}

/* EU dialog */
.lux-dialog {
    width: min(820px, calc(100% - 32px)); max-height: 86vh; padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--ink-2); color: var(--text); box-shadow: 0 40px 120px rgba(0, 0, 0, .8);
}
.lux-dialog::backdrop { background: rgba(5, 6, 8, .75); backdrop-filter: blur(6px); }
.lux-dialog[open] { animation: dlg .5s var(--ease); }
@keyframes dlg { from { opacity: 0; transform: perspective(900px) rotateX(10deg) translateY(30px); } }
.lux-dialog .dlg-head { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; padding: 1.8rem 2rem 1rem; border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; background: var(--ink-2); }
.lux-dialog h3 { font-size: 1.6rem; margin: 0; }
.lux-dialog .dlg-body { padding: 1.4rem 2rem 2rem; }
.dlg-close { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--gold-2); cursor: pointer; font-size: 1.1rem; }
.dlg-close:hover { background: rgba(201, 169, 97, .15); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
@keyframes spin { to { rotate: z 360deg; } }
/* Living collage: wide photo boxes and square product tiles on fixed spots (left/top set inline and by luxe.js).
   There are more spots than boxes; boxes fade out and come back on a free spot with a new picture.
   All positions are percentages of the box, so it scales as one piece on any screen. */
.about-visual { position: relative; aspect-ratio: 1 / 1.7; }
.collage-photo, .collage-tile { position: absolute; display: block; margin: 0; transition: opacity .9s ease, transform .9s var(--ease); }
.collage-photo { width: 70%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #e9e4da;
    box-shadow: 0 0 0 1px rgba(201, 169, 97, .4), 0 0 0 7px var(--ink), 0 40px 70px -30px rgba(0, 0, 0, 1); }
.collage-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.collage-tile { width: 25%; aspect-ratio: 1; z-index: 10; border-radius: 14px;
    background: radial-gradient(75% 65% at 50% 42%, #f6f2e9 0%, #ddd5c5 65%, #bdb39f 100%);
    box-shadow: 0 0 0 1px rgba(201, 169, 97, .5), 0 24px 40px -18px rgba(0, 0, 0, .95); }
.collage-tile img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .28)); }
.about-visual .is-hidden { opacity: 0; transform: scale(.92); pointer-events: none; }
.about-copy p { margin-bottom: 1.1rem; }
.about-copy .quote { font: italic 400 1.6rem/1.35 var(--serif); color: var(--gold-2); border-left: 1px solid var(--gold); padding-left: 1.4rem; margin: 1.8rem 0 2.2rem; }
.about-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 991px) { .about-grid { grid-template-columns: 1fr; } .about-visual { max-width: 460px; margin: 0 auto; width: 100%; } }

/* ---------- 3D tilt surface (shared by all cards) ---------- */
.tilt { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s; will-change: transform; }
.tilt.is-tilting { transition: transform .12s linear, box-shadow .6s var(--ease), border-color .4s; }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(500px circle at var(--mx) var(--my), rgba(232, 211, 160, .13), transparent 40%); opacity: 0; transition: opacity .4s; }
.tilt:hover::after { opacity: 1; }
.card-lux {
    position: relative; height: 100%; border-radius: var(--radius); border: 1px solid var(--line-soft);
    background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .012) 60%), var(--ink-3);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 30px 60px -35px rgba(0, 0, 0, .9);
}
.card-lux:hover { border-color: var(--line); box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 50px 80px -40px rgba(0, 0, 0, 1), 0 0 0 1px rgba(201, 169, 97, .08); }
.lift { transform: translateZ(40px); }

/* ---------- Team ---------- */
.leader-card { padding: 2.4rem 1.6rem 2rem; text-align: center; }
.leader-photo {
    width: 128px; height: 128px; margin: 0 auto 1.4rem; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
    background: radial-gradient(circle at 35% 30%, #343943, #12151a); color: var(--gold); font-size: 2.6rem;
    box-shadow: 0 0 0 1px var(--line), 0 0 0 7px rgba(201, 169, 97, .06), 0 20px 40px -15px rgba(0, 0, 0, .9);
}
.leader-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) contrast(1.05); }
.leader-card h4 { font-size: 1.55rem; margin: 0 0 .3rem; }
.leader-role { display: block; font: 500 .7rem/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.leader-contact { list-style: none; padding: 1.1rem 0 0; margin: 0; border-top: 1px solid var(--line-soft); font-size: .88rem; }
.leader-contact a { color: var(--text); } .leader-contact a:hover { color: var(--gold-2); }
.leader-contact i { color: var(--gold); width: 1.1em; }

/* ---------- Advantages: all five cards in one row (wraps on smaller screens) ---------- */
.adv-ring { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 1199px) { .adv-ring { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991px) { .adv-ring { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .adv-ring { grid-template-columns: 1fr; } }
.adv-card {
    padding: 2rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--line);
    background: linear-gradient(165deg, rgba(232, 211, 160, .12), rgba(255, 255, 255, .02) 55%), rgba(17, 20, 25, .92);
    box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .9);
}
.adv-num { font: 300 3.4rem/1 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--gold); display: block; margin-bottom: 1.4rem; }
.adv-card h3 { font-size: 1.4rem; margin-bottom: .8rem; }
@media (min-width: 1200px) { .adv-card h3 { font-size: 1.15rem; } }   /* five across: keeps "Водонепропускливост" on one line */
.adv-card p { color: var(--muted); margin: 0; font-size: .93rem; }

/* ---------- Products ---------- */
.applications { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; list-style: none; padding: 0; margin: 0 0 3.5rem; }
.applications li, .badges span, .chip {
    border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem; font: 400 .78rem/1.3 var(--sans); letter-spacing: .06em; color: var(--text);
    background: rgba(201, 169, 97, .04);
}
.product-card { display: flex; flex-direction: column; overflow: hidden; }
.product-card { position: relative; height: 100%; border-radius: var(--radius); border: 1px solid var(--line-soft); background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .012) 60%), var(--ink-3); box-shadow: 0 30px 60px -35px rgba(0, 0, 0, .9); }
.product-card:hover { border-color: var(--line); }
.product-img {
    position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 1.6rem; overflow: hidden;
    background: radial-gradient(70% 65% at 50% 45%, #f4efe4 0%, #d8d1c2 60%, #b7ae9c 100%);
}
.product-img::after { content: ""; position: absolute; left: 15%; right: 15%; bottom: 10%; height: 12%; border-radius: 50%; background: radial-gradient(rgba(0, 0, 0, .35), transparent 70%); filter: blur(6px); z-index: 0; }
.product-img img { position: relative; z-index: 1; max-height: 100%; object-fit: contain; transform: translateZ(50px); transition: transform .8s var(--ease); filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .25)); }
.product-card:hover .product-img img { transform: translateZ(50px) scale(1.07) translateY(-6px); }
.product-body { padding: 1.7rem 1.7rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.product-tag { font: 500 .66rem/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; }
.product-body h3 { font-size: 1.75rem; margin: 0 0 .8rem; }
.product-body h3 a { color: var(--ivory); } .product-body h3 a:hover { color: var(--gold-2); }
.product-body > p { color: var(--muted); font-size: .94rem; margin-bottom: auto; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.product-link { margin-top: 1rem; font: 500 .72rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; align-self: flex-start; }
.badges { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 .2rem; }
.badges span { padding: .25rem .7rem; font-size: .7rem; }
details { margin-top: .6rem; border-top: 1px solid var(--line-soft); padding-top: .9rem; }
details summary { cursor: pointer; list-style: none; font: 500 .72rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); display: flex; justify-content: space-between; align-items: center; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font: 300 1.3rem/1 var(--sans); color: var(--gold); transition: transform .4s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details[open] > :not(summary) { animation: unfold .5s var(--ease); }
@keyframes unfold { from { opacity: 0; transform: translateY(-6px); } }
.spec-table { width: 100%; margin-top: 1rem; border-collapse: collapse; font-size: .82rem; }
.spec-table th, .spec-table td { padding: .6rem .7rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--text); }
.spec-table th { font-weight: 500; color: var(--gold-2); white-space: nowrap; }
.spec-table thead th { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; border-bottom-color: var(--line); }
.spec-table tbody tr:hover td { background: rgba(201, 169, 97, .05); }
.spec-note { font-size: .82rem; color: var(--muted); font-style: italic; margin-top: .8rem; }
.table-responsive { overflow-x: auto; }

/* ---------- Counters ---------- */
.counters-band { position: relative; padding: 110px 0; overflow: hidden; background: linear-gradient(180deg, var(--ink), #14171c 50%, var(--ink)); }
.counters-band::before { content: ""; position: absolute; inset: -40% -10%; background: conic-gradient(from 200deg at 50% 50%, transparent, rgba(201, 169, 97, .09), transparent 30%); animation: spin 30s linear infinite; }
.counter-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.counter-num { font: 300 clamp(3rem, 6vw, 5.4rem)/1 var(--serif); color: transparent; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; }
.counter-unit { display: block; font: 400 .74rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-top: .8rem; }
.counter-grid h3 { font: 300 1.2rem/1.4 var(--serif); font-style: italic; color: var(--text); margin-top: 1rem; }
@media (max-width: 767px) { .counter-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- References ---------- */
.ref-card { padding: 2.2rem 2rem; overflow: hidden; }
.ref-card .ref-idx { position: absolute; right: 1.4rem; top: 1rem; font: 300 3.6rem/1 var(--serif); color: rgba(201, 169, 97, .12); }
.ref-tag { font: 500 .66rem/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.ref-card h3 { font-size: 1.55rem; margin: .8rem 0 .9rem; }
.ref-card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Producers ---------- */
.producer-card { display: grid; place-items: center; height: 140px; padding: 1.4rem; border-radius: var(--radius); background: #f4f1ea; border: 1px solid rgba(255, 255, 255, .5); position: relative; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .9); }
.producer-card img { max-height: 70px; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .8; transition: filter .5s, opacity .5s, transform .6s var(--ease); transform: translateZ(30px); }
.producer-card:hover img { filter: none; opacity: 1; }

/* ---------- Contact ---------- */
.contact-card { display: block; padding: 2.4rem 1.6rem; text-align: center; color: var(--text); }
.contact-card > i { font-size: 1.4rem; color: var(--gold); width: 64px; height: 64px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); margin-bottom: 1.2rem; background: rgba(201, 169, 97, .06); }
.contact-card > span { display: block; font: 500 .7rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; }
.contact-value { font-size: .98rem; } .contact-value a { color: var(--ivory); } .contact-value a:hover { color: var(--gold-2); }
.contact-map { height: 440px; margin-top: 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 1); }
.contact-map .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(.85) contrast(.95) sepia(.25); }
.map-pin { color: var(--gold); font-size: 2.6rem; text-shadow: 0 6px 14px rgba(0, 0, 0, .6); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--ink-2); color: var(--text); border: 1px solid var(--line); }
.leaflet-container a.leaflet-popup-close-button { color: var(--gold); }

/* ---------- Footer ---------- */
.lux-footer { padding: 90px 0 30px; background: #07080a; border-top: 1px solid var(--line-soft); font-size: .92rem; }
.lux-footer .f-logo { height: 54px; margin-bottom: 1.4rem; }
.lux-footer h3 { font-size: 1.4rem; margin-bottom: 1.2rem; }
.lux-footer ul { list-style: none; padding: 0; margin: 0; }
.lux-footer li { margin-bottom: .6rem; }
.lux-footer a { color: var(--text); } .lux-footer a:hover { color: var(--gold-2); }
.lux-footer i { color: var(--gold); width: 1.2em; }
.socials { display: flex; gap: .7rem; margin-top: 1.2rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }
.socials a:hover { background: var(--gold); color: var(--ink); } .socials a:hover i { color: var(--ink); }
.copyright { margin: 60px 0 0; padding-top: 24px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .8rem; letter-spacing: .08em; text-align: center; }

/* ---------- Inner pages ---------- */
.page-head { position: relative; overflow: hidden; padding: 124px 0 36px; isolation: isolate; border-bottom: 1px solid var(--line-soft); }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(800px 500px at 80% 30%, rgba(201, 169, 97, .14), transparent 60%), linear-gradient(90deg, var(--ink) 30%, rgba(10, 12, 15, .4)); }
.page-head h1 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 400; margin: .5rem 0 .3rem; }
.page-head p { color: var(--muted); max-width: 560px; font-size: 1rem; margin: 0; }
.crumbs { font: 400 .74rem/1.9 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--gold-2); } .crumbs span { margin: 0 .6rem; color: var(--line); }

/* collection */
.filters { position: sticky; top: 110px; padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line-soft); background: var(--ink-3); margin: 0; }
/* Desktop: the panel stays in view and scrolls on its own, separate from the product grid */
@media (min-width: 992px) {
    /* The title and search stay fixed; only the list below the search scrolls */
    .filters .search-group { padding-bottom: 1.1rem; border-bottom: 1px solid var(--line-soft); }
    .filter-list { max-height: calc(100vh - 360px); min-height: 160px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; margin-right: -.8rem; padding-right: .8rem; }
}
.filters > summary { font-size: .74rem; margin-bottom: .2rem; }
.filter-group { margin-top: 1.5rem; }
.filter-title { display: block; font: 500 .66rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.search-box { position: relative; }
.search-box i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: .85rem; }
.search-box input, .sort-select select {
    width: 100%; padding: .75rem .9rem .75rem 2.4rem; border-radius: 12px; border: 1px solid var(--line); background: var(--ink); color: var(--ivory); font: 300 .9rem var(--sans); outline: none;
}
.search-box i { left: 12px; font-size: .75rem; }
.search-box input { font-size: .76rem; padding: .8rem .7rem .8rem 2.1rem; }
.search-box input:focus, .sort-select select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 169, 97, .15); }
.filter-opt { display: flex; align-items: center; gap: .7rem; padding: .35rem 0; cursor: pointer; font-size: .88rem; }
.filter-opt input { appearance: none; width: 16px; height: 16px; flex: none; border: 1px solid var(--gold); border-radius: 4px; margin: 0; display: grid; place-items: center; cursor: pointer; }
.filter-opt input:checked { background: var(--gold-grad); }
.filter-opt input:checked::after { content: ""; width: 4px; height: 8px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.filter-opt span { flex: 1; } .filter-opt em { font-style: normal; font-size: .74rem; color: var(--muted); }
.filter-opt.is-empty { opacity: .35; }
/* Long filter groups show 3 options until "Покажи още"; ticked options always stay visible */
.collapsed > .filter-opt:nth-child(n+4):not(:has(input:checked)) { display: none; }
.show-more { background: none; border: 0; padding: .4rem 0 0; color: var(--muted); font: 400 .58rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: color .3s; }
.show-more::after { content: " +"; }
.show-more[aria-expanded="true"]::after { content: " −"; }
.show-more:hover { color: var(--gold-2); }
.collection-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; color: var(--muted); font-size: .88rem; }
.sort-select { display: flex; align-items: center; gap: .6rem; }
.sort-select select { width: auto; padding-left: .9rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.chip { cursor: pointer; color: var(--gold-2); } .chip:hover { background: rgba(201, 169, 97, .15); }
.chip-clear { border-style: dashed; }
.empty-state { text-align: center; padding: 4rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state i { font-size: 2.4rem; color: var(--gold); margin-bottom: 1rem; display: block; }

/* detail */
.draft-note { padding: 1rem 1.3rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(201, 169, 97, .07); margin-bottom: 2rem; font-size: .9rem; }
.draft-note i { color: var(--gold); }
.gallery-main {
    aspect-ratio: 1; display: grid; place-items: center; padding: 2.4rem; border-radius: var(--radius); overflow: hidden;
    background: radial-gradient(70% 60% at 50% 45%, #f6f2e9, #d4ccbb 70%, #ada38f); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 1);
}
.gallery-main img { max-height: 100%; object-fit: contain; filter: drop-shadow(0 25px 25px rgba(0, 0, 0, .3)); }
.gallery-thumbs { display: flex; gap: .7rem; margin-top: 1rem; flex-wrap: wrap; }
.gallery-thumbs button { width: 78px; height: 78px; padding: .4rem; border-radius: 12px; border: 1px solid var(--line-soft); background: #ebe5d8; cursor: pointer; transition: transform .4s var(--ease), border-color .3s; }
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--gold); transform: translateY(-4px); }
.product-summary h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: .4rem 0 .8rem; }
.product-producer { color: var(--muted); font-size: .9rem; }
.lead-text { font-size: 1.08rem; color: var(--text); }
.summary-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.detail-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 4rem 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line-soft); }
.detail-tabs .nav-link { background: none; border: 0; border-bottom: 1px solid transparent; margin-bottom: -1px; padding: 1rem 1.2rem; color: var(--muted); font: 500 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.detail-tabs .nav-link:hover { color: var(--ivory); }
.detail-tabs .nav-link.active { color: var(--gold-2); border-bottom-color: var(--gold); }
.detail-content { padding: 2.4rem 0 0; max-width: 920px; }
.tab-content > .tab-pane { display: none; } .tab-content > .active { display: block; animation: unfold .5s var(--ease); }
.detail-sub { font-size: 1.5rem; margin: 2rem 0 1rem; }
.tick-list { list-style: none; padding: 0; } .tick-list li { position: relative; padding-left: 1.8rem; margin-bottom: .6rem; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 10px; transform: rotate(45deg); border: 1px solid var(--gold); }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 1.4rem 3.6rem; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: -.2rem; font: 400 1.6rem/1 var(--serif); color: var(--gold); }
.file-list { list-style: none; padding: 0; }
.file-list li { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--line-soft); border-radius: 14px; margin-bottom: .7rem; background: var(--ink-3); }
.file-list li > i { font-size: 1.5rem; color: var(--gold); }
.file-list li div { flex: 1; min-width: 0; } .file-list li strong { display: block; font-weight: 500; overflow-wrap: anywhere; }
.file-list small { color: var(--muted); }
.file-list .button { padding: .7rem 1.2rem; }
.file-soon { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ratio { position: relative; width: 100%; } .ratio::before { content: ""; display: block; padding-top: 56.25%; } .ratio > * { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 14px; }
.detail-video { margin: 1.5rem 0; }

/* ---------- Reveal on scroll (3D rise) ---------- */
.reveal { opacity: 0; transform: perspective(1000px) translateY(60px) rotateX(14deg); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
