:root {
  --bg: oklch(0.16 0.01 250);
  --surface: oklch(0.21 0.012 250);
  --surface-2: oklch(0.25 0.014 250);
  --ink: oklch(0.95 0.005 250);
  --ink-muted: oklch(0.74 0.01 250);
  --amber: oklch(0.84 0.17 90);
  --amber-deep: oklch(0.72 0.16 85);
  --green: oklch(0.78 0.19 150);
  --red: oklch(0.66 0.21 25);
  --line: oklch(0.32 0.012 250);
  --font-display: 'Unbounded', 'IBM Plex Sans', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --z-sticky: 100;
  --z-progress: 120;
  --z-menu: 200;
  --z-toast: 300;
  --z-lightbox: 350;
  --z-preload: 400;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
p { max-width: 68ch; }
a { color: inherit; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
iconify-icon { display: inline-block; vertical-align: -0.15em; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 4px;
}
section[id] { scroll-margin-top: 84px; } /* sticky header must not cover anchor targets */

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: var(--z-toast);
  background: var(--amber); color: oklch(0.2 0.02 90); font-weight: 600;
  padding: 10px 18px; border-radius: 10px; text-decoration: none;
  transform: translateY(-64px); transition: transform .2s;
}
.skip-link:focus-visible { transform: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
main { perspective: 1600px; } /* depth for scroll-driven section tilts */

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: var(--z-progress);
  background: linear-gradient(90deg, var(--red), var(--amber) 50%, var(--green));
  transform: scaleX(0); transform-origin: left center; pointer-events: none;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 6px 24px oklch(0.08 0.01 250 / 0.55); background: color-mix(in oklch, var(--bg) 97%, transparent); }
.site-header .wrap { max-width: 1360px; } /* the full toolbar needs more room than the content column */
.header-in { display: flex; align-items: center; gap: 20px; height: 68px; transition: height .25s; }
.site-header.scrolled .header-in { height: 58px; }
.logo, .lang-switch, .header-socials, .header-phone, .header-cta, .burger { flex-shrink: 0; }
.header-cta { white-space: nowrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; white-space: nowrap; }
.logo-dots { display: inline-flex; flex-direction: column; gap: 3px; padding: 5px 4px; background: oklch(0.13 0.01 250); border-radius: 5px; }
.logo-dots i { width: 7px; height: 7px; border-radius: 50%; }
.logo-dots i:nth-child(1) { background: var(--red); }
.logo-dots i:nth-child(2) { background: var(--amber); }
.logo-dots i:nth-child(3) { background: var(--green); }
.logo b { color: var(--amber); font-weight: 700; }
.main-nav { display: flex; gap: 4px; margin-inline: auto; }
.main-nav a { position: relative; text-decoration: none; color: var(--ink-muted); font-size: 0.92rem; padding: 8px 12px; border-radius: 8px; white-space: nowrap; transition: color .18s, background .18s; }
.main-nav a:hover { color: var(--ink); background: var(--surface); }
.main-nav a.active { color: var(--ink); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 1px; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 8px oklch(0.84 0.17 90 / 0.7); /* the lit signal marks where you are */
}
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang-switch button { background: none; border: none; color: var(--ink-muted); font-family: var(--font-mono); font-size: 0.78rem; padding: 7px 10px; transition: background .18s, color .18s; }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active { background: var(--amber); color: oklch(0.2 0.02 90); font-weight: 500; }
.header-phone { display: flex; align-items: center; gap: 7px; text-decoration: none; font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink); white-space: nowrap; }
.header-phone:hover { color: var(--amber); }
.header-socials { display: flex; gap: 4px; }
.header-socials a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; transition: background .18s; }
.header-socials a:hover { background: var(--surface); }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--amber); color: oklch(0.2 0.02 90);
  border: none; border-radius: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 13px 24px; text-decoration: none;
  transition: background .18s, transform .18s;
}
.btn:hover { background: var(--amber-deep); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink-muted); background: var(--surface); transform: translateY(-1px); }
.btn.sm { padding: 10px 18px; font-size: 0.88rem; }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 40px; height: 40px; color: var(--ink); font-size: 1.15rem; place-items: center; transition: border-color .18s; }
.burger:hover { border-color: var(--ink-muted); }

.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: color-mix(in oklch, var(--bg) 96%, transparent);
  backdrop-filter: blur(16px);
  display: flex; flex-direction: column; padding: 88px 28px 36px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 500;
  font-size: 1.35rem; padding: 16px 4px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  transform: translateY(12px); opacity: 0; transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .3s;
}
.mobile-menu.open nav a { transform: none; opacity: 1; }
.mobile-menu nav a iconify-icon { color: var(--amber); font-size: 1.1rem; }
.mobile-menu nav a.active { color: var(--amber); }
.mobile-menu .mm-cta { margin-top: 28px; justify-content: center; }
.mobile-menu .mm-phone {
  display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 14px;
  text-decoration: none; color: var(--ink); font-family: var(--font-mono); font-size: 1rem; padding: 12px;
}
.mobile-menu .mm-socials { display: flex; justify-content: center; gap: 10px; margin-top: auto; }
.mobile-menu .mm-socials a {
  display: grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: 12px; transition: border-color .18s;
}
.mobile-menu .mm-socials a:hover { border-color: var(--ink-muted); }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .mobile-menu nav a { transition: none; }
}
body.menu-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 88px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg video { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, oklch(0.16 0.01 250 / 0.88), transparent 32% 68%, var(--bg) 99%),
    linear-gradient(90deg, oklch(0.16 0.01 250 / 0.96) 0%, oklch(0.16 0.01 250 / 0.8) 52%, oklch(0.16 0.01 250 / 0.62) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 340px at 78% 30%, oklch(0.84 0.17 90 / 0.07), transparent 70%),
    radial-gradient(500px 300px at 15% 85%, oklch(0.78 0.19 150 / 0.05), transparent 70%);
}
.hero-in { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.9rem); margin-bottom: 22px; }
.hero h1 .accent { color: var(--amber); }
.hero-sub { color: var(--ink-muted); font-size: 1.08rem; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--ink-muted); font-size: 0.9rem; }
.trust-line span { display: inline-flex; align-items: center; gap: 8px; }
.trust-line iconify-icon { color: var(--green); font-size: 1.1rem; }
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 6px; }
#tl-canvas { cursor: grab; touch-action: none; transition: filter .6s; }
#tl-canvas:active { cursor: grabbing; }
.canvas-hint { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-muted); display: inline-flex; align-items: center; gap: 7px; }

/* ---------- section headers ---------- */
.sec-head { margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(1.5rem, 2.8vw, 2.3rem); margin-bottom: 14px; }
.sec-head p { color: var(--ink-muted); font-size: 1.02rem; }

/* ---------- catalog ---------- */
.catalog { background: var(--surface); border-block: 1px solid var(--line); }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
  transform-style: preserve-3d; transition: border-color .2s;
}
.product-card:hover { border-color: color-mix(in oklch, var(--amber) 45%, var(--line)); }
.product-card.featured { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 44px; padding: 34px 44px; }
.product-card.wide { grid-column: span 2; }
.product-card.featured .pc-body { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.pc-visual { height: 160px; display: grid; place-items: center; }
.product-card.featured .pc-visual { height: auto; flex: 0 0 220px; }
.pc-visual img {
  max-width: 100%; max-height: 160px; object-fit: contain;
  filter: drop-shadow(0 12px 26px oklch(0 0 0 / 0.5));
}
.product-card.featured .pc-visual img { max-height: 250px; }
.pc-name { font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; letter-spacing: -0.01em; }
.product-card.featured .pc-name { font-size: 1.4rem; }
.pc-spec { font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-muted); }
.pc-price { font-family: var(--font-mono); font-size: 0.92rem; color: var(--amber); margin-top: auto; }
.pc-cta { align-self: flex-start; }

/* CSS product visual — controller (no clean vendor photo available) */
.ctrl-box { width: 84px; background: oklch(0.28 0.012 250); border: 1px solid oklch(0.36 0.012 250); border-radius: 9px; padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.ctrl-box .leds { display: flex; gap: 6px; }
.ctrl-box .leds i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: blink 2.2s infinite; }
.ctrl-box .leds i:nth-child(2) { background: var(--amber); animation-delay: .55s; }
.ctrl-box .leds i:nth-child(3) { background: oklch(0.4 0.01 250); animation: none; }
.ctrl-box .slots { display: flex; flex-direction: column; gap: 4px; }
.ctrl-box .slots i { height: 6px; border-radius: 3px; background: oklch(0.34 0.012 250); }
@keyframes blink { 0%, 60% { opacity: 1; } 70%, 85% { opacity: 0.25; } 100% { opacity: 1; } }

/* ---------- why us ---------- */
.why-rows { display: flex; flex-direction: column; }
.why-row { display: grid; grid-template-columns: 64px 1fr 1.2fr; gap: 28px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); }
.why-row:first-child { border-top: 1px solid var(--line); }
.why-icon { color: var(--amber); font-size: 1.7rem; }
.why-row h3 { font-size: 1.15rem; font-weight: 500; }
.why-row p { color: var(--ink-muted); }

/* ---------- process (real sequence → numbers earned) ---------- */
.process { background: var(--surface); border-block: 1px solid var(--line); }
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.proc-step { position: relative; padding: 24px 20px 24px 0; }
.proc-step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--amber);
  display: block; margin-bottom: 14px;
}
.proc-step::after { content: ""; position: absolute; top: 34px; right: 12px; left: 44px; height: 1px; background: var(--line); }
.proc-step:last-child::after { display: none; }
.proc-step h3 { font-size: 1rem; font-weight: 500; margin-bottom: 8px; }
.proc-step p { color: var(--ink-muted); font-size: 0.92rem; }

/* ---------- calculator ---------- */
.calc-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.calc-form { display: flex; flex-direction: column; gap: 22px; }
.field label { display: block; font-size: 0.88rem; font-weight: 500; margin-bottom: 9px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button {
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-muted);
  border-radius: 9px; padding: 10px 16px; font-size: 0.9rem; transition: all .18s;
}
.seg button:hover { color: var(--ink); border-color: var(--ink-muted); }
.seg button.active { background: color-mix(in oklch, var(--amber) 16%, var(--surface)); border-color: var(--amber); color: var(--ink); }
.qty-row { display: flex; align-items: center; gap: 10px; }
.qty-row button { width: 42px; height: 42px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 1.1rem; }
.qty-row button:hover { border-color: var(--ink-muted); }
.qty-row input { width: 80px; height: 42px; text-align: center; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-family: var(--font-mono); font-size: 1rem; }
.qty-row input:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.calc-hint { font-size: 0.82rem; color: var(--ink-muted); font-family: var(--font-mono); }
.calc-result {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 32px; position: sticky; top: 92px;
}
.calc-result .cr-label { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 6px; }
.calc-result .cr-sum { font-family: var(--font-mono); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--amber); margin-bottom: 4px; }
.calc-result .cr-per { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-muted); margin-bottom: 18px; }
.calc-result .cr-note { font-size: 0.85rem; color: var(--ink-muted); border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 22px; }

/* ---------- certificates ---------- */
.certs { background: var(--surface); border-block: 1px solid var(--line); }
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cert-card { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.cert-card iconify-icon { color: var(--green); font-size: 1.9rem; }
.cert-card h3 { font-size: 1rem; font-weight: 500; }
.cert-card p { color: var(--ink-muted); font-size: 0.9rem; flex: 1; }
.cert-card a { display: inline-flex; align-items: center; gap: 8px; color: var(--amber); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.cert-card a:hover { text-decoration: underline; }
.cert-card a iconify-icon { font-size: 1.05rem; color: inherit; }

/* ---------- projects ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proj-card { margin: 0; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.proj-card img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.proj-card:hover img { transform: scale(1.045); }
.proj-card figcaption {
  position: absolute; inset: auto 0 0 0; padding: 34px 16px 13px;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink);
  background: linear-gradient(180deg, transparent, oklch(0.13 0.01 250 / 0.88));
}

/* ---------- video ---------- */
.video-in { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.video-facade {
  position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden;
  background:
    radial-gradient(300px 200px at 30% 60%, oklch(0.84 0.17 90 / 0.12), transparent 70%),
    radial-gradient(280px 200px at 75% 30%, oklch(0.78 0.19 150 / 0.1), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  display: grid; place-items: center; text-decoration: none;
}
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-facade .play {
  position: relative; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  background: var(--amber); color: oklch(0.2 0.02 90); font-size: 1.9rem;
  transition: transform .2s;
}
.video-facade:hover .play { transform: scale(1.08); }
.video-facade .vf-cap {
  position: absolute; bottom: 12px; left: 14px; font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--ink); background: color-mix(in oklch, var(--bg) 72%, transparent);
  padding: 5px 10px; border-radius: 7px;
}

/* ---------- testimonials ---------- */
.testi { background: var(--surface); border-block: 1px solid var(--line); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testi-card { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.testi-card blockquote { font-size: 0.98rem; line-height: 1.65; flex: 1; }
.testi-card blockquote::before { content: "“"; color: var(--amber); font-family: var(--font-display); font-size: 1.6rem; line-height: 0; margin-right: 4px; }
.testi-card cite { font-style: normal; font-size: 0.84rem; color: var(--ink-muted); font-family: var(--font-mono); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 4px; cursor: pointer; font-weight: 500; font-size: 1.02rem; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary iconify-icon { color: var(--amber); transition: transform .25s; flex-shrink: 0; }
.faq-item[open] summary iconify-icon { transform: rotate(180deg); }
.faq-item .faq-a { padding: 0 4px 22px; color: var(--ink-muted); }

/* ---------- contact ---------- */
.contact-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); font-family: var(--font-body); font-size: 0.95rem; padding: 13px 16px;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: oklch(0.62 0.01 250); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.contact-form textarea { resize: vertical; min-height: 100px; }
.form-note { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--ink-muted); }
.form-note iconify-icon { color: var(--green); font-size: 1.15rem; flex-shrink: 0; margin-top: 2px; }
.contact-side { display: flex; flex-direction: column; gap: 26px; }
.ci-row { display: flex; gap: 14px; }
.ci-row iconify-icon { color: var(--amber); font-size: 1.3rem; flex-shrink: 0; margin-top: 3px; }
.ci-row .ci-label { font-size: 0.8rem; color: var(--ink-muted); font-family: var(--font-mono); margin-bottom: 3px; }
.ci-row .ci-val { font-size: 0.98rem; }
.ci-row a.ci-val { text-decoration: none; }
.ci-row a.ci-val:hover { color: var(--amber); }
.contact-socials { display: flex; gap: 10px; }
.contact-socials a {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 16px; font-size: 0.88rem; transition: border-color .18s, background .18s;
}
.contact-socials a:hover { border-color: var(--ink-muted); background: var(--surface-2); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 36px; background: oklch(0.13 0.01 250); }
.footer-in { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer-tag { color: var(--ink-muted); font-size: 0.9rem; margin-top: 10px; max-width: 34ch; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { text-decoration: none; color: var(--ink-muted); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.82rem; color: var(--ink-muted); font-family: var(--font-mono); }

/* ---------- preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: var(--z-preload);
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  transition: transform .75s cubic-bezier(.7, 0, .3, 1), opacity .45s .2s, visibility 0s .8s;
  /* no-JS safety valve: fade itself away even if the script never runs */
  animation: pl-auto .5s ease 5s forwards;
}
#preloader.done { transform: translateY(-100%); opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes pl-auto { to { opacity: 0; visibility: hidden; } }
.pl-light {
  width: 58px; padding: 11px 0; border-radius: 13px;
  background: oklch(0.22 0.012 250); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
}
.pl-light i { width: 34px; height: 34px; border-radius: 50%; background: oklch(0.3 0.012 250); }
.pl-light .pl-r { animation: pl-red 1.6s infinite; }
.pl-light .pl-y { animation: pl-yellow 1.6s infinite; }
.pl-light .pl-g { animation: pl-green 1.6s infinite; }
@keyframes pl-red {
  0%, 28% { background: var(--red); box-shadow: 0 0 20px oklch(0.66 0.21 25 / 0.6); }
  34%, 100% { background: oklch(0.3 0.012 250); box-shadow: none; }
}
@keyframes pl-yellow {
  0%, 32% { background: oklch(0.3 0.012 250); box-shadow: none; }
  34%, 62% { background: var(--amber); box-shadow: 0 0 20px oklch(0.84 0.17 90 / 0.6); }
  68%, 100% { background: oklch(0.3 0.012 250); box-shadow: none; }
}
@keyframes pl-green {
  0%, 66% { background: oklch(0.3 0.012 250); box-shadow: none; }
  68%, 96% { background: var(--green); box-shadow: 0 0 20px oklch(0.78 0.19 150 / 0.6); }
  100% { background: oklch(0.3 0.012 250); box-shadow: none; }
}
/* when we're done, the light goes — and stays — green */
#preloader.go .pl-light i { animation: none; }
#preloader.go .pl-light .pl-g { background: var(--green); box-shadow: 0 0 20px oklch(0.78 0.19 150 / 0.6); }
.pl-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.01em; }
.pl-logo b { color: var(--amber); }
.pl-status { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-muted); }
.pl-status::after { content: ""; animation: pl-dots 1.2s steps(4) infinite; }
@keyframes pl-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } 100% { content: ""; } }
@media (prefers-reduced-motion: reduce) {
  .pl-light .pl-g { background: var(--green); box-shadow: 0 0 20px oklch(0.78 0.19 150 / 0.6); }
}

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, calc(100% + 40px)); /* fully below the fold (140% left a 3px sliver) */
  z-index: var(--z-toast);
  background: var(--surface-2); border: 1px solid var(--green); border-radius: 12px;
  padding: 15px 22px; display: flex; gap: 11px; align-items: center; font-size: 0.92rem;
  transition: transform .35s cubic-bezier(.22,1,.36,1); max-width: min(90vw, 480px);
}
.toast.show { transform: translate(-50%, 0); }
.toast iconify-icon { color: var(--green); font-size: 1.3rem; flex-shrink: 0; }

/* ---------- responsive ---------- */
body.menu-open .site-header { z-index: calc(var(--z-menu) + 1); } /* keep the burger reachable above the open menu */

@media (max-width: 1500px) {
  .header-phone span { display: none; } /* icon-only phone until the full number truly fits */
}
@media (max-width: 1180px) {
  .header-socials { display: none; } /* socials live on in the menu, contacts and footer */
}
@media (max-width: 1200px) { /* 6 menu items: below this the header would overflow (RU labels are the longest) */
  .main-nav { display: none; }
  .burger { display: grid; }
  .lang-switch { margin-left: auto; }
}
@media (max-width: 1020px) {
  .main-nav { display: none; }
  .header-socials { display: none; }
  .burger { display: grid; }
  .lang-switch { margin-left: auto; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card.featured { grid-column: 1 / -1; }
  .proc-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid, .testi-grid { grid-template-columns: 1fr 1fr; }
  .proj-grid { grid-template-columns: 1fr 1fr; }
  .calc-in, .video-in, .contact-in { grid-template-columns: 1fr; }
  .calc-result { position: static; }
}
@media (max-width: 680px) {
  section { padding: 68px 0; }
  .hero { padding: 44px 0 64px; }
  .hero-in { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; }
  /* !important: Zdog sets an inline CSS size on the canvas for retina scaling */
  #tl-canvas { width: 250px !important; height: 324px !important; }
  .header-phone { display: none; }
  .header-cta { display: none; }
  .header-in { gap: 12px; }
  .logo { font-size: 0.98rem; }
  .lang-switch button { padding: 7px 8px; }
  .cat-grid { grid-template-columns: 1fr; }
  .product-card.featured { grid-column: auto; flex-direction: column; align-items: flex-start; gap: 20px; padding: 26px; }
  .product-card.wide { grid-column: auto; }
  .why-row { grid-template-columns: 44px 1fr; }
  .why-row p { grid-column: 2; }
  .proc-grid { grid-template-columns: 1fr; }
  .proc-step::after { display: none; }
  .cert-grid, .testi-grid, .proj-grid { grid-template-columns: 1fr; }
}
/* entrance motion — CSS only: runs on wall-clock, can't strand content like rAF-driven tweens */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } }
  .hero-copy > * { animation: rise .7s cubic-bezier(.16,1,.3,1) backwards; }
  .hero-copy > *:nth-child(1) { animation-delay: .05s; }
  .hero-copy > *:nth-child(2) { animation-delay: .13s; }
  .hero-copy > *:nth-child(3) { animation-delay: .21s; }
  .hero-copy > *:nth-child(4) { animation-delay: .29s; }
  .hero-copy > *:nth-child(5) { animation-delay: .37s; }
  .hero-visual { animation: rise .9s cubic-bezier(.16,1,.3,1) .2s backwards; }
  .cat-grid, .why-rows, .proc-grid, .cert-grid, .testi-grid, .proj-grid, .sec-head, .ab-grid4, .ab-struct, .ab-inno, .cp-cards, .sv-grid, .post-grid { perspective: 1100px; }
  .rv { opacity: 0; transform: translateY(28px) rotateX(9deg); transition: opacity .65s ease-out, transform .75s cubic-bezier(.16,1,.3,1); }
  .rv.rv-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ================= catalogue (shared pieces + katalog.html) ================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cat-more { margin-top: 30px; display: flex; justify-content: center; }
.pc-visual img.pc-photo { border-radius: 10px; border: 1px solid var(--line); filter: none; }

/* home: scientific partner */
.partner-strip {
  display: flex; align-items: center; gap: 28px; margin-top: 40px; padding: 24px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.partner-strip img { height: 64px; width: auto; flex-shrink: 0; }
.partner-label { font-family: var(--font-mono); font-size: 0.76rem; color: var(--green); margin-bottom: 6px; }
.partner-strip p { color: var(--ink-muted); font-size: 0.95rem; }

/* pole schematics — drawn from CSS primitives */
.pole-duo { display: flex; align-items: flex-end; gap: 26px; }
.pole-schema { position: relative; display: inline-block; flex-shrink: 0; width: 64px; height: 110px; }
.pole-schema i { position: absolute; display: block; }
.pole-schema .mast { left: 14px; bottom: 5px; width: 6px; height: 98px; border-radius: 2px; background: linear-gradient(90deg, oklch(0.58 0.01 250), oklch(0.4 0.01 250)); }
.pole-schema .base { left: 6px; bottom: 0; width: 22px; height: 6px; border-radius: 2px; background: oklch(0.4 0.01 250); }
.pole-schema .arm { left: 14px; top: 6px; width: 48px; height: 5px; border-radius: 2px; background: linear-gradient(180deg, oklch(0.58 0.01 250), oklch(0.42 0.01 250)); }
.pole-schema .head {
  width: 12px; height: 30px; border-radius: 3px; border: 1px solid oklch(0.36 0.012 250);
  background:
    radial-gradient(circle at 50% 17%, var(--red) 0 3px, transparent 3.5px),
    radial-gradient(circle at 50% 50%, oklch(0.42 0.05 90) 0 3px, transparent 3.5px),
    radial-gradient(circle at 50% 83%, var(--green) 0 3px, transparent 3.5px),
    oklch(0.24 0.01 250);
}
.pole-schema.i .head { left: 21px; top: 16px; }
.pole-schema.g .head { left: 50px; top: 12px; }

/* page hero + section chips */
.catalog-page section[id] { scroll-margin-top: 124px; }
.page-hero { padding: 48px 0 36px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 20px; }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs iconify-icon { font-size: 0.9rem; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 14px; }
.page-hero p { color: var(--ink-muted); font-size: 1.05rem; }
.cat-nav {
  position: sticky; top: 59px; z-index: calc(var(--z-sticky) - 1);
  background: color-mix(in oklch, var(--bg) 94%, transparent); backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
}
.cat-nav .wrap { display: flex; gap: 8px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.cat-nav .wrap::-webkit-scrollbar { display: none; }
.cat-nav a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none;
  font-size: 0.88rem; color: var(--ink-muted); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  transition: color .18s, border-color .18s;
}
.cat-nav a:hover, .cat-nav a.active { color: var(--ink); border-color: var(--amber); }
.cat-nav .n { font-family: var(--font-mono); font-size: 0.72rem; color: var(--amber); }
.k-sec { padding: 72px 0; }
.k-sec.alt { background: var(--surface); border-block: 1px solid var(--line); }
.sub-head { font-size: 1.1rem; font-weight: 500; margin: 8px 0 18px; }
.sub-head ~ .sub-head { margin-top: 40px; }

/* flagship product blocks */
.feature {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 32px; margin-bottom: 22px;
}
.feature-media { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 1021px) { .feature:not(.feature-sign) .feature-media { position: sticky; top: 140px; } } /* photos stay beside the long spec column */
.feature-photo { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.feature-photo img { display: block; width: 100%; height: auto; }
.feature-photo figcaption { font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-muted); padding: 10px 14px; }
.feature-cutout { width: 100%; height: auto; filter: drop-shadow(0 14px 28px oklch(0 0 0 / 0.5)); }
.badge {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--amber);
  border: 1px solid color-mix(in oklch, var(--amber) 45%, transparent); border-radius: 999px; padding: 5px 12px;
}
.feature-body h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); margin: 14px 0 8px; }
.feature-tag { font-family: var(--font-mono); font-size: 0.8rem; color: var(--green); margin-bottom: 14px; }
.feature-lead { color: var(--ink-muted); margin-bottom: 20px; }
.feature-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-bottom: 8px; }
.pc-price.feature-price { font-size: 1.3rem; margin: 0; }
.feature-body h4 { font-family: var(--font-display); font-weight: 500; font-size: 1rem; letter-spacing: -0.01em; margin: 26px 0 12px; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.steps li::before { content: "0" counter(step); font-family: var(--font-mono); font-size: 0.8rem; color: var(--amber); padding-top: 2px; }
.steps b { display: block; font-weight: 600; font-size: 0.95rem; }
.steps span { color: var(--ink-muted); font-size: 0.9rem; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.spec-table th { text-align: left; font-weight: 400; color: var(--ink-muted); padding: 9px 16px 9px 0; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: top; }
.spec-table td { text-align: right; font-family: var(--font-mono); padding: 9px 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.partner-inline {
  display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 14px 16px;
  border: 1px dashed var(--line); border-radius: 12px; font-size: 0.88rem; color: var(--ink-muted);
}
.partner-inline img { height: 34px; width: auto; flex-shrink: 0; }
.feature-sign { grid-template-columns: 0.7fr 1.3fr; align-items: center; }
.sign-media { align-items: center; }
.sign-media img { max-height: 520px; width: auto; max-width: 100%; filter: drop-shadow(0 18px 30px oklch(0 0 0 / 0.55)); }
.feat-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-bottom: 20px; }
.feat-list li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; }
.feat-list iconify-icon { color: var(--green); font-size: 1.15rem; flex-shrink: 0; }
.doc-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.doc-links a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 0.88rem; font-weight: 500; color: var(--amber);
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; transition: border-color .18s;
}
.doc-links a:hover { border-color: var(--amber); }

/* poles: grouped price tables */
.pole-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.pole-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.pole-head { display: flex; align-items: flex-end; gap: 16px; padding-bottom: 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.pole-head .pole-schema { transform: scale(0.8); transform-origin: left bottom; margin-right: -12px; }
.pole-head h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; letter-spacing: -0.01em; }
.pole-prof, .pole-range { display: block; font-size: 0.82rem; color: var(--ink-muted); }
.pole-range { font-family: var(--font-mono); font-size: 0.76rem; color: var(--amber); margin-top: 4px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.price-table th { text-align: left; font-weight: 400; font-size: 0.76rem; color: var(--ink-muted); padding: 10px 6px 8px 0; }
.price-table td { padding: 7px 6px 7px 0; border-top: 1px solid color-mix(in oklch, var(--line) 70%, transparent); font-family: var(--font-mono); font-size: 0.82rem; white-space: nowrap; }
.price-table tr:hover td { background: color-mix(in oklch, var(--surface-2) 60%, transparent); }
.price-table td:last-child, .price-table th:last-child { width: 36px; padding-right: 0; text-align: right; }
.row-order {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid var(--line); color: var(--ink-muted); text-decoration: none; transition: all .18s;
}
.row-order:hover { color: oklch(0.2 0.02 90); background: var(--amber); border-color: var(--amber); }

/* equipment */
.equip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.equip-card {
  display: flex; flex-direction: column; gap: 12px; padding: 22px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s;
}
.equip-card:hover { border-color: color-mix(in oklch, var(--amber) 45%, var(--line)); }
.equip-ic {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: color-mix(in oklch, var(--amber) 12%, var(--surface)); color: var(--amber); font-size: 1.35rem;
}
.equip-card h3 { font-family: var(--font-body); font-weight: 500; font-size: 1rem; letter-spacing: 0; line-height: 1.35; flex: 1; }
.equip-card .pc-price { margin: 0; }
.equip-card .btn { align-self: flex-start; }
.price-note {
  display: flex; gap: 14px; margin-top: 28px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
}
.price-note iconify-icon { color: var(--amber); font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.price-note b { display: block; font-weight: 600; margin-bottom: 4px; }
.price-note p { color: var(--ink-muted); font-size: 0.92rem; }

@media (max-width: 1020px) {
  .feature, .feature-sign { grid-template-columns: 1fr; gap: 28px; }
  .sign-media img { max-height: 420px; }
  .pole-grid { grid-template-columns: repeat(2, 1fr); }
  .equip-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .partner-strip { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px; }
  .partner-strip img { height: 52px; }
  .page-hero { padding: 32px 0 26px; }
  .k-sec { padding: 56px 0; }
  .feature { padding: 20px; }
  .feat-list { grid-template-columns: 1fr; }
  .pole-grid, .equip-grid { grid-template-columns: 1fr; }
  .pole-card { padding: 18px 16px; }
  .price-table td { font-size: 0.78rem; padding-right: 4px; }
}

/* ================= product pages (mahsulot/*.html) ================= */
.pc-name a { color: inherit; text-decoration: none; }
.pc-name a:hover { color: var(--amber); }
a.pc-visual { text-decoration: none; }
.pp-top { padding: 28px 0 0; }
.pp-top .crumbs { flex-wrap: wrap; margin-bottom: 0; }
.pp-hero { padding: 26px 0 72px; }
.pp-hero-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.pp-media {
  display: grid; place-items: center; min-height: 480px; padding: 32px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 14px;
  background: radial-gradient(420px 320px at 50% 45%, oklch(0.84 0.17 90 / 0.08), transparent 70%), var(--surface);
}
.pp-media img { max-width: 100%; max-height: 430px; width: auto; height: auto; filter: drop-shadow(0 18px 30px oklch(0 0 0 / 0.55)); }
.pp-media.ai { display: flex; flex-direction: column; justify-content: center; gap: 18px; min-height: 0; padding: 22px; }
.pp-media.ai img { max-height: none; width: 100%; }
.pp-media.ai .feature-photo img { filter: none; }
.pp-media .pole-schema { transform: scale(2.8); }
.pp-icon {
  display: grid; place-items: center; width: 168px; height: 168px; border-radius: 30px;
  background: color-mix(in oklch, var(--amber) 12%, var(--surface-2)); color: var(--amber); font-size: 4.6rem;
}
.pp-icon.sm { width: 92px; height: 92px; border-radius: 22px; font-size: 2.5rem; }
.pp-info .badge { text-decoration: none; }
.pp-info .badge:hover { border-color: var(--amber); }
.pp-info h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 16px 0 14px; }
.pp-desc { color: var(--ink-muted); font-size: 1.02rem; margin-bottom: 24px; }
.pp-label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 8px; }
.pp-select {
  width: 100%; max-width: 440px; margin-bottom: 20px; padding: 12px 14px; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font-mono); font-size: 0.9rem;
}
.pp-select:hover { border-color: var(--ink-muted); }
.pp-price { display: block; font-family: var(--font-mono); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--amber); }
.pp-price-note { display: inline-block; margin-top: 6px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-muted); }
.pp-price-note:hover { color: var(--ink); }
.pp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 26px; }
.trust-list { list-style: none; display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.trust-list li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--ink-muted); }
.trust-list iconify-icon { color: var(--green); font-size: 1.1rem; flex-shrink: 0; }
.pp-details { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pp-col { display: flex; flex-direction: column; gap: 40px; }
.pp-block h2 { font-size: 1.35rem; margin-bottom: 16px; }
.pp-note { font-size: 0.85rem; color: var(--ink-muted); margin-top: 12px; }
.pp-table { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 6px 18px 12px; }
.service-list { list-style: none; display: grid; gap: 18px; }
.service-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.service-list iconify-icon { color: var(--amber); font-size: 1.3rem; margin-top: 2px; }
.service-list b { display: block; font-weight: 600; margin-bottom: 3px; }
.service-list p { color: var(--ink-muted); font-size: 0.92rem; }
.product-page .partner-inline { margin-top: 22px; }
@media (max-width: 1020px) {
  .pp-hero-in, .pp-details { grid-template-columns: 1fr; gap: 32px; }
  .pp-media { min-height: 380px; }
}
@media (max-width: 680px) {
  .pp-hero { padding: 20px 0 56px; }
  .pp-media { min-height: 300px; padding: 20px; }
  .pp-media img { max-height: 300px; }
  .pp-media .pole-schema { transform: scale(2.1); }
  .pp-icon { width: 124px; height: 124px; font-size: 3.4rem; }
  .pp-table { padding: 4px 12px 10px; }
}
.pc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-body h3 a, .pole-head h4 a, .equip-card h3 a { color: inherit; text-decoration: none; }
.feature-body h3 a:hover, .pole-head h4 a:hover, .equip-card h3 a:hover { color: var(--amber); }
.pole-head { position: relative; }
.pole-more {
  position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid var(--line); border-radius: 9px; color: var(--ink-muted); text-decoration: none; transition: all .18s;
}
.pole-more:hover { color: var(--amber); border-color: var(--amber); }

/* ================= product gallery + lightbox ================= */
.pp-media.gallery { display: block; place-items: normal; min-height: 0; padding: 18px; } /* block layout: don't shrink-wrap the gallery */
.gal { width: 100%; min-width: 0; }
.gal-stage { --gal-h: 440px; position: relative; height: var(--gal-h); display: flex; align-items: center; justify-content: center; }
.gal-main {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0;
  background: none; border: 0; border-radius: 10px; cursor: zoom-in;
}
.gal-main img { max-width: 100%; max-height: var(--gal-h); width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 18px 30px oklch(0 0 0 / 0.55)); }
.gal-main img.is-photo { border: 1px solid var(--line); border-radius: 10px; filter: none; }
.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer;
  background: color-mix(in oklch, var(--bg) 82%, transparent); color: var(--ink); font-size: 1.25rem;
  opacity: 0; transition: opacity .2s, border-color .2s;
}
.gal-nav.prev { left: 6px; }
.gal-nav.next { right: 6px; }
.gal-stage:hover .gal-nav, .gal-nav:focus-visible { opacity: 1; }
.gal-nav:hover { border-color: var(--amber); }
@media (hover: none) { .gal-nav { opacity: 1; } }
.gal-count {
  position: absolute; right: 8px; bottom: 6px; padding: 3px 9px; border-radius: 999px; pointer-events: none;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-muted); background: color-mix(in oklch, var(--bg) 78%, transparent);
}
.gal-cap { min-height: 1.4em; margin: 12px 0 14px; text-align: center; font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-muted); }
.gal-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.gal-thumb {
  flex: 0 0 64px; height: 64px; display: grid; place-items: center; padding: 5px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); border-radius: 9px; transition: border-color .18s, box-shadow .18s;
}
.gal-thumb img { max-width: 100%; max-height: 52px; object-fit: contain; }
.gal-thumb.is-photo { padding: 0; overflow: hidden; }
.gal-thumb.is-photo img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.gal-thumb:hover { border-color: var(--ink-muted); }
.gal-thumb[aria-current] { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }

.lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox); display: grid; place-items: center; padding: 64px 80px 40px;
  background: oklch(0.1 0.01 250 / 0.95); backdrop-filter: blur(6px);
}
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.lightbox img { max-width: min(1100px, 100%); max-height: calc(100vh - 170px); object-fit: contain; }
.lightbox figcaption { text-align: center; font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-muted); }
.lb-close, .lb-nav {
  position: absolute; display: grid; place-items: center; width: 46px; height: 46px; cursor: pointer;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.3rem;
  transition: border-color .18s;
}
.lb-close:hover, .lb-nav:hover { border-color: var(--amber); }
.lb-close { top: 14px; right: 14px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-nav.prev { left: 16px; }
.lb-nav.next { right: 16px; }
.lb-count { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-muted); }
body.lb-open { overflow: hidden; }
@media (max-width: 680px) {
  .gal-stage { --gal-h: 320px; }
  .lightbox { padding: 60px 12px 88px; }
  .lb-nav { top: auto; bottom: 20px; transform: none; }
  .lb-nav.prev { left: calc(50% - 58px); }
  .lb-nav.next { right: calc(50% - 58px); }
}

/* ================= about page (kompaniya.html) ================= */
.ab-hero { padding: 40px 0 64px; }
.ab-hero-in { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: end; }
.ab-hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 18px; }
.ab-lead { font-size: 1.12rem; margin-bottom: 14px; }
.ab-lead2 { color: var(--ink-muted); margin-bottom: 30px; }
.ab-facts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.ab-facts li { padding: 22px 22px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ab-facts li:nth-child(2n) { border-right: 0; }
.ab-facts li:nth-last-child(-n + 2) { border-bottom: 0; }
.ab-fv { display: block; margin-bottom: 8px; font-family: var(--font-mono); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; color: var(--amber); }
.ab-facts span { font-size: 0.88rem; color: var(--ink-muted); }
.ab-mission {
  padding: 72px 0; border-block: 1px solid var(--line);
  background: radial-gradient(640px 260px at 18% 50%, oklch(0.78 0.19 150 / 0.07), transparent 70%), var(--bg);
}
.ab-mission-l { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--green); }
.ab-mission-l .logo-dots { flex-direction: row; padding: 4px 5px; }
.ab-mission-l .logo-dots i { width: 6px; height: 6px; }
.ab-mission blockquote {
  max-width: 30ch; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25;
  font-size: clamp(1.4rem, 3vw, 2.3rem); text-wrap: balance;
}
.ab-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ab-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.ab-card h3 { font-size: 1.05rem; font-weight: 500; }
.ab-card p { color: var(--ink-muted); font-size: 0.92rem; }
.ab-struct { position: relative; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.ab-struct::before { content: ""; position: absolute; top: 38px; left: 10%; right: 10%; height: 1px; background: var(--line); }
.ab-struct li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; font-size: 0.92rem; font-weight: 500; }
.ab-node {
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); color: var(--amber); font-size: 1.8rem;
}
.ab-inno { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ab-inno-card {
  display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: center; padding: 24px;
  color: inherit; text-decoration: none; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s;
}
.ab-inno-card:hover { border-color: color-mix(in oklch, var(--amber) 45%, var(--line)); }
.ab-inno-media { display: grid; place-items: center; height: 210px; }
.ab-inno-media img { max-width: 100%; max-height: 210px; width: auto; height: auto; filter: drop-shadow(0 14px 24px oklch(0 0 0 / 0.5)); }
.ab-inno-media img.is-photo { border: 1px solid var(--line); border-radius: 10px; filter: none; }
.ab-inno-card h3 { font-size: 1.15rem; margin: 14px 0 8px; }
.ab-inno-card p { color: var(--ink-muted); font-size: 0.92rem; }
.ab-partner-mini { display: block; height: 30px; width: auto; margin-top: 14px; }
.ab-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--amber); font-weight: 500; font-size: 0.9rem; }
.ab-geo { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.ab-geo .sec-head { margin-bottom: 0; }
.ab-regions { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ab-regions li { padding: 8px 14px; font-size: 0.88rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.ab-regions li.cis { color: var(--green); border-color: color-mix(in oklch, var(--green) 45%, var(--line)); }
@media (max-width: 1020px) {
  .ab-hero-in, .ab-geo { grid-template-columns: 1fr; gap: 32px; }
  .ab-grid4 { grid-template-columns: 1fr 1fr; }
  .ab-struct { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .ab-struct::before { display: none; }
  .ab-inno { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .ab-hero { padding: 28px 0 48px; }
  .ab-grid4 { grid-template-columns: 1fr; }
  .ab-struct { grid-template-columns: 1fr 1fr; }
  .ab-inno-card { grid-template-columns: 1fr; }
  .ab-inno-media { height: 180px; }
  .ab-inno-media img { max-height: 180px; }
}

/* ================= contacts page (aloqa.html) ================= */
.cp-quick { padding: 0 0 64px; }
.cp-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cp-card {
  display: flex; flex-direction: column; gap: 10px; padding: 24px; min-width: 0;
  color: inherit; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .2s, transform .2s;
}
.cp-card:hover { border-color: color-mix(in oklch, var(--amber) 50%, var(--line)); transform: translateY(-2px); }
.cp-card .equip-ic { margin-bottom: 6px; }
.cp-label { font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-muted); }
.cp-val { font-weight: 600; font-size: 1.02rem; line-height: 1.4; overflow-wrap: anywhere; flex: 1; }
.cp-act { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 500; color: var(--amber); }
.cp-hours { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; color: var(--ink-muted); font-size: 0.92rem; }
.cp-hours iconify-icon { color: var(--green); font-size: 1.1rem; }
.cp-hours b { color: var(--ink); font-weight: 500; }
.cp-team-t { font-size: 1.15rem; margin: 40px 0 16px; }
.cp-team { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cp-team li { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--bg); }
.cp-team a { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.cp-team a:hover { color: var(--amber); }
.cp-team .cp-team-tg { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 400; color: var(--ink-muted); }
@media (max-width: 1020px) { .cp-team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .cp-team { grid-template-columns: 1fr; } }
.cp-main { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.cp-map-col { scroll-margin-top: 90px; }
.cp-map {
  position: relative; height: 380px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px;
  background:
    repeating-linear-gradient(0deg, transparent 0 46px, oklch(0.3 0.012 250 / 0.55) 46px 48px),
    repeating-linear-gradient(90deg, transparent 0 62px, oklch(0.3 0.012 250 / 0.55) 62px 64px),
    linear-gradient(118deg, transparent 47%, oklch(0.84 0.17 90 / 0.18) 47% 49.5%, transparent 49.5%),
    var(--bg);
}
.cp-map.loaded { background: var(--bg); }
.cp-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(0.25) contrast(1.05); }
.cp-map-facade {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 24px; text-align: center; background: radial-gradient(circle at 50% 42%, oklch(0.16 0.01 250 / 0.2), oklch(0.16 0.01 250 / 0.85) 70%);
}
.cp-pin {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-size: 1.8rem; color: oklch(0.2 0.02 90);
  background: var(--amber); box-shadow: 0 0 0 10px oklch(0.84 0.17 90 / 0.16), 0 10px 30px oklch(0 0 0 / 0.45);
}
.cp-map-note { font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-muted); }
.cp-map-links { margin: 16px 0 0; }
.cp-social { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
@media (max-width: 1020px) {
  .cp-cards { grid-template-columns: 1fr 1fr; }
  .cp-main { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 680px) {
  .cp-quick { padding-bottom: 48px; }
  .cp-cards { grid-template-columns: 1fr; }
  .cp-map { height: 300px; }
}

/* ================= services page (xizmatlar.html) ================= */
.sv-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.sv-badges li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 0.88rem;
  border: 1px solid color-mix(in oklch, var(--green) 40%, var(--line)); border-radius: 999px; background: var(--surface);
}
.sv-badges iconify-icon { color: var(--green); font-size: 1.05rem; }
.sv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sv-card {
  display: flex; flex-direction: column; gap: 12px; padding: 26px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s;
}
.sv-card:hover { border-color: color-mix(in oklch, var(--amber) 45%, var(--line)); }
.sv-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.sv-tag {
  padding: 5px 11px; font-family: var(--font-mono); font-size: 0.74rem; white-space: nowrap; color: var(--green);
  border: 1px solid color-mix(in oklch, var(--green) 45%, transparent); border-radius: 999px;
}
.sv-card h3 { font-size: 1.12rem; font-weight: 500; }
.sv-card > p { color: var(--ink-muted); font-size: 0.92rem; }
.sv-list { list-style: none; display: grid; gap: 8px; margin: 4px 0 8px; flex: 1; }
.sv-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.9rem; }
.sv-list iconify-icon { color: var(--amber); font-size: 1rem; margin-top: 3px; flex-shrink: 0; }
.sv-card .btn { align-self: flex-start; }
.sv-terms { grid-template-columns: 1fr 1fr; gap: 26px 40px; }
.sv-doc-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--amber); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.sv-doc-link:hover { text-decoration: underline; }
#savollar .faq-list { max-width: 820px; }
@media (max-width: 1020px) { .sv-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .sv-grid, .sv-terms { grid-template-columns: 1fr; } }

/* ================= news & projects ================= */
.post-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.post-filters button {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; cursor: pointer;
  font-size: 0.88rem; color: var(--ink-muted); background: none; border: 1px solid var(--line); border-radius: 999px; transition: color .18s, border-color .18s;
}
.post-filters button:hover, .post-filters button[aria-pressed="true"] { color: var(--ink); border-color: var(--amber); }
.post-filters .n { font-family: var(--font-mono); font-size: 0.72rem; color: var(--amber); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s; }
.post-card:hover { border-color: color-mix(in oklch, var(--amber) 45%, var(--line)); }
.post-card[hidden] { display: none; }
.post-cover {
  display: grid; place-items: center; height: 220px; padding: 18px; overflow: hidden;
  background: radial-gradient(260px 180px at 50% 55%, oklch(0.84 0.17 90 / 0.08), transparent 70%), var(--surface);
}
.post-cover img { max-width: 100%; max-height: 184px; width: auto; height: auto; filter: drop-shadow(0 12px 22px oklch(0 0 0 / 0.5)); transition: transform .4s cubic-bezier(.16,1,.3,1); }
.post-cover.is-photo { padding: 0; }
.post-cover.is-photo img { width: 100%; height: 100%; max-height: none; object-fit: cover; filter: none; }
.post-card:hover .post-cover img { transform: scale(1.04); }
.post-card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-muted); }
.post-card h3 { font-size: 1.1rem; font-weight: 500; line-height: 1.3; }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { color: var(--amber); }
.post-card-body > p { color: var(--ink-muted); font-size: 0.92rem; flex: 1; }
.post-more { display: inline-flex; align-items: center; gap: 6px; color: var(--amber); text-decoration: none; font-weight: 500; font-size: 0.9rem; }
.post-empty { color: var(--ink-muted); text-align: center; padding: 40px 0; }

.post-head { padding-top: 22px; padding-bottom: 36px; }
.post-head h1 { max-width: 24ch; margin: 16px 0 14px; font-size: clamp(1.8rem, 3.8vw, 2.9rem); }
.post-lead { max-width: 64ch; font-size: 1.1rem; color: var(--ink-muted); }
.post-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 80px; }
.post-body { display: flex; flex-direction: column; gap: 40px; }
.post-block { padding: 0; } /* <section> for semantics, not the page-section spacing */
.post-block h2 { font-size: 1.3rem; margin-bottom: 14px; }
.post-block > p { color: var(--ink-muted); font-size: 1.02rem; max-width: 66ch; }
.post-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.post-photo {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 10px; overflow: hidden; cursor: zoom-in;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: border-color .18s;
}
.post-photo:hover { border-color: var(--amber); }
.post-photo img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
.post-photo.is-photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-photo span {
  position: absolute; inset: auto 0 0 0; padding: 22px 10px 8px; text-align: left; font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink);
  background: linear-gradient(180deg, transparent, oklch(0.13 0.01 250 / 0.9));
}
.timeline { list-style: none; position: relative; display: grid; gap: 18px; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.timeline li { position: relative; display: grid; gap: 2px; }
.timeline li::before {
  content: ""; position: absolute; left: -26px; top: 5px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--green);
}
.timeline li:last-child::before { background: var(--green); box-shadow: 0 0 10px oklch(0.78 0.19 150 / 0.6); }
.timeline time { font-family: var(--font-mono); font-size: 0.82rem; color: var(--amber); }
.post-aside { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.post-aside-card { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.post-aside-card h2 { font-size: 1rem; margin-bottom: 8px; }
.post-aside-card .doc-links { margin: 8px 0 0; }
.post-product { display: grid; grid-template-columns: 76px 1fr 20px; gap: 14px; align-items: center; color: inherit; text-decoration: none; transition: border-color .2s; }
.post-product:hover { border-color: var(--amber); }
.post-product > iconify-icon { color: var(--amber); }
.post-product-thumb { display: grid; place-items: center; height: 76px; overflow: hidden; border-radius: 10px; background: var(--bg); }
.post-product-thumb img { max-width: 100%; max-height: 76px; object-fit: contain; }
.post-product-thumb img.pc-photo { width: 100%; height: 100%; object-fit: cover; border: 0; }
.post-product b { display: block; margin: 2px 0 4px; font-size: 0.95rem; line-height: 1.3; }
.post-product .pc-price { font-size: 0.85rem; margin: 0; }
.post-cta { justify-content: center; }
.post-back { margin-top: 28px; }
.post-back a { display: inline-flex; align-items: center; gap: 8px; color: var(--amber); text-decoration: none; font-weight: 500; }
@media (max-width: 1020px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-layout { grid-template-columns: 1fr; gap: 32px; }
  .post-aside { position: static; }
}
@media (max-width: 680px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-photos { grid-template-columns: 1fr 1fr; }
}

/* ================= certificates & documents (sertifikatlar.html) ================= */
.doc-list { display: grid; gap: 18px; margin-bottom: 26px; }
.doc-card {
  display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 32px; align-items: start; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s;
}
.doc-card:hover { border-color: color-mix(in oklch, var(--amber) 45%, var(--line)); }
.doc-preview { display: block; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 14px 30px oklch(0 0 0 / 0.45); transition: transform .3s cubic-bezier(.16,1,.3,1); }
.doc-preview:hover { transform: translateY(-3px); }
.doc-preview img { display: block; width: 100%; height: auto; }
.doc-body { display: flex; flex-direction: column; gap: 12px; }
.doc-kind { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--green); text-transform: uppercase; letter-spacing: 0.06em; }
.doc-kind iconify-icon { font-size: 1.05rem; }
.doc-body h3 { font-size: 1.25rem; font-weight: 500; }
.doc-body > p { color: var(--ink-muted); font-size: 0.95rem; max-width: 64ch; }
.doc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; max-width: 720px; margin: 6px 0 4px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.doc-meta div { padding: 12px 14px; background: var(--bg); }
.doc-meta div:last-child:nth-child(odd) { grid-column: 1 / -1; } /* no empty cell on odd counts */
.doc-meta dt { font-size: 0.78rem; color: var(--ink-muted); margin-bottom: 4px; }
.doc-meta dd { font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.45; }
.doc-meta a { color: var(--amber); text-decoration: none; }
.doc-meta a:hover { text-decoration: underline; }
.doc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 6px; }
.doc-file { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-muted); }
@media (max-width: 680px) {
  .doc-card { grid-template-columns: 1fr; gap: 20px; padding: 18px; }
  .doc-preview { width: 150px; }
  .doc-meta { grid-template-columns: 1fr; }
}
