:root {
  --bg: #f2f1ec;
  --surface: #ffffff;
  --surface-2: #e9e9e2;
  --text: #0d1611;
  --muted: #59655e;
  --line: #dcdcd3;
  --accent: #1b6b43;
  --accent-dark: #0f4f30;
  --accent-soft: #e0ede4;
  --lime: #c8f04a;
  --lime-2: #b3df2c;
  --deep: #0b1510;
  --deep-2: #12211a;
  --danger: #b3261e;
  --radius: 20px;
  --max: 1240px;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(10, 30, 20, .05), 0 12px 32px rgba(10, 30, 20, .07);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a110d;
    --surface: #121c17;
    --surface-2: #18241e;
    --text: #e8eee9;
    --muted: #97a69d;
    --line: #223029;
    --accent: #6fd197;
    --accent-dark: #9be3b8;
    --accent-soft: #16291f;
    --danger: #f2b8b5;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.12; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.03em; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }

/* ------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header.on-hero { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; color: #fff; }
.site-header.on-hero.scrolled { background: rgba(8, 18, 13, .88); border-color: rgba(255,255,255,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .02em; min-width: 0; }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo span { line-height: 1.15; }
.logo small { display: block; font-family: "Manrope", sans-serif; font-weight: 600; font-size: 11.5px; opacity: .65; letter-spacing: .02em; }
.menu { display: flex; gap: 4px; align-items: center; }
.menu a { color: inherit; opacity: .8; text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: 99px; transition: background .15s, opacity .15s; }
.menu a:hover { opacity: 1; background: rgba(127,127,127,.14); }
.nav-actions { display: flex; gap: 10px; align-items: center; flex: none; }
.nav-actions form { margin: 0; }
.nav-phone { color: inherit; text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lbl-short { display: none; }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(127,127,127,.16); color: inherit; cursor: pointer; position: relative; padding: 0; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, top .25s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

.mnav { display: none; }
@media (max-width: 1080px) { .nav-phone { display: none; } }
@media (max-width: 960px) {
  .menu { display: none; }
  .burger { display: block; }
  .mnav {
    display: flex; flex-direction: column; position: fixed; z-index: 49; left: 0; right: 0; top: 72px; bottom: 0;
    background: var(--deep); color: #fff; padding: 20px 16px calc(28px + env(safe-area-inset-bottom)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu-open .mnav { opacity: 1; visibility: visible; transform: none; }
  .menu-open .site-header { background: var(--deep) !important; color: #fff; border-color: rgba(255,255,255,.08); }
  .menu-open .site-header .btn.ghost, .mnav .btn.ghost { color: #fff; }
  .mnav nav { display: grid; }
  .mnav nav a { color: #fff; text-decoration: none; font-family: var(--display); font-size: 24px; font-weight: 600; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; }
  .mnav nav a::after { content: "→"; color: var(--lime); font-family: "Manrope", sans-serif; }
  .mnav-foot { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; }
  .mnav-foot .btn { width: 100%; padding: 15px; }
  .mnav-foot form .btn { width: 100%; }
  .mnav-contacts { display: grid; gap: 2px; margin-bottom: 12px; }
  .mnav-contacts a { color: #fff; text-decoration: none; font-weight: 700; font-size: 20px; }
  .mnav-contacts span { color: rgba(255,255,255,.6); font-size: 14px; }
}
@media (max-width: 600px) {
  .nav { height: 64px; gap: 10px; }
  .mnav { top: 64px; }
  .logo { font-size: 15px; gap: 9px; }
  .logo svg { width: 34px; height: 34px; }
  .logo small { display: none; }
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
}

/* ------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 99px; border: 0; cursor: pointer; white-space: nowrap;
  background: var(--accent); color: #fff; text-decoration: none; font: inherit; font-weight: 700; font-size: 15.5px;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn.lime { background: var(--lime); color: var(--deep); }
.btn.lime:hover { background: var(--lime-2); box-shadow: 0 8px 24px rgba(200, 240, 74, .25); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.ghost:hover { background: rgba(127,127,127,.12); }
.btn.small { padding: 10px 18px; font-size: 14px; }
.btn.link { background: none; color: var(--accent); padding: 0; }
.btn.danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }
@media (max-width: 960px) { .nav-actions .hide-sm { display: none; } }

/* ------------------------------------------------ hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  color: #fff; padding: 140px 0 56px; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(6, 14, 10, .7) 0%, rgba(6, 14, 10, .35) 35%, rgba(6, 14, 10, .95) 100%),
    url("img/hero.jpg") center / cover no-repeat,
    linear-gradient(135deg, #0b1510, #1b4a31);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 60%, transparent);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero .tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 99px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px); font-size: 14px; font-weight: 600;
}
.hero .tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(200,240,74,.2); }
.hero h1 { font-size: clamp(32px, 6.2vw, 80px); margin: 24px 0 22px; max-width: 1000px; line-height: 1.04; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p { font-size: clamp(16px, 1.8vw, 20px); opacity: .85; max-width: 600px; margin: 0 0 34px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border-top: 1px solid rgba(255,255,255,.18); }
.hero-stats div { padding: 22px 24px 0 0; }
.hero-stats div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.18); }
.hero-stats b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.2vw, 28px); color: var(--lime); letter-spacing: -.02em; }
.hero-stats span { font-size: 14px; opacity: .7; }
@media (max-width: 760px) {
  .hero { padding: 108px 0 36px; }
  .hero .actions .btn { flex: 1 1 auto; }
  .hero-stats { grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .hero-stats div, .hero-stats div + div { padding: 16px 12px 16px 0; border-left: 0; }
  .hero-stats div:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.18); }
  .hero-stats div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }
}

/* ticker */
.ticker { background: var(--lime); color: var(--deep); overflow: hidden; padding: 16px 0; border-block: 1px solid rgba(0,0,0,.08); }
.ticker-track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker-track span { font-family: var(--display); font-weight: 600; font-size: clamp(16px, 2vw, 22px); white-space: nowrap; padding: 0 22px; display: flex; align-items: center; gap: 44px; }
.ticker-track span::after { content: "✦"; font-size: .8em; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ------------------------------------------------ sections */
section { padding: 110px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 800; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 52px); margin: 14px 0 0; max-width: 760px; }
.section-head p { color: var(--muted); max-width: 420px; margin: 0; }
@media (max-width: 600px) { section { padding: 72px 0; } .section-head { margin-bottom: 30px; } }

.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.about-photo {
  aspect-ratio: 4 / 5; border-radius: 32px; box-shadow: var(--shadow); position: relative;
  background: url("img/about.jpg") center / cover, linear-gradient(135deg, #1f4d33, #6aa77f);
}
.about-photo .badge {
  position: absolute; left: -22px; bottom: 32px; background: var(--deep); color: #fff;
  border-radius: 18px; padding: 20px 24px; box-shadow: 0 20px 40px rgba(0,0,0,.25); max-width: 300px;
}
.about-photo .badge b { display: block; font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--lime); line-height: 1.15; margin-bottom: 4px; }
.about-photo .badge span { font-size: 14px; opacity: .75; }
.about h2 { font-size: clamp(28px, 4.2vw, 48px); margin: 14px 0 20px; }
.checks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.checks li { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.checks li::before {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; margin-top: 0;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1510' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { aspect-ratio: 4 / 3; border-radius: 24px; }
  .about-photo .badge { left: 14px; right: 14px; bottom: 14px; max-width: none; padding: 16px 18px; }
}

/* catalog */
.catalog { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.product:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(10, 30, 20, .14); }
.product-img { position: relative; aspect-ratio: 16 / 10; background-color: #1f4d33; background-repeat: no-repeat; }
.product-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,14,10,.35), transparent 40%); }
.product-img .num { position: absolute; z-index: 1; top: 18px; left: 18px; font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--deep); background: var(--lime); padding: 5px 13px; border-radius: 99px; }
.p-switch    { background-image: url("img/switch.jpg"),    url("img/ill-switch.svg"),    linear-gradient(135deg, #173d2a, #3f8059); }
.p-mechanism { background-image: url("img/mechanism.jpg"), url("img/ill-mechanism.svg"), linear-gradient(135deg, #1b4430, #4d8f67); }
.p-flugarka  { background-image: url("img/flugarka.jpg"),  url("img/ill-flugarka.svg"),  linear-gradient(135deg, #20402f, #5a9a72); }
.p-parts     { background-image: url("img/parts.jpg"),     url("img/ill-parts.svg"),     linear-gradient(135deg, #163828, #3a7552); }
.product-img { background-size: cover, 78%, cover; background-position: center, center, center; }
.product-body { padding: 28px 30px 30px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 600; font-size: 23px; letter-spacing: -.02em; }
.product-body p { margin: 0 0 18px; color: var(--muted); font-size: 16px; }
.specs { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.specs li { background: var(--surface-2); color: var(--text); font-size: 13.5px; font-weight: 700; padding: 6px 13px; border-radius: 99px; }
.product-body .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 860px) { .catalog { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 600px) {
  .product { border-radius: 22px; }
  .product-body { padding: 22px 20px 22px; }
  .product-body h3 { font-size: 20px; }
  .product-body .btn { align-self: stretch; }
}

/* where used */
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.use { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .2s, transform .2s; }
.use:hover { border-color: var(--accent); transform: translateY(-3px); }
.use .icon { width: 50px; height: 50px; border-radius: 14px; background: var(--deep); color: var(--lime); display: grid; place-items: center; margin-bottom: 18px; }
.use .icon svg { width: 24px; height: 24px; }
.use h3 { margin: 0 0 6px; font-size: 18px; }
.use p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .uses { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .uses { grid-template-columns: 1fr; gap: 10px; }
  .use { display: grid; grid-template-columns: 50px 1fr; column-gap: 16px; padding: 18px; }
  .use .icon { grid-row: span 2; margin: 0; }
}

/* steps */
.steps-section { background: var(--deep); color: #fff; position: relative; overflow: hidden; }
.steps-section::before {
  content: ""; position: absolute; right: -200px; top: -200px; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,240,74,.14), transparent 65%);
}
.steps-section .wrap { position: relative; }
.steps-section .eyebrow { color: var(--lime); }
.steps-section .section-head p { color: rgba(255,255,255,.65); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { background: var(--deep-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 26px; counter-increment: s; }
.step::before { content: "0" counter(s); display: block; font-family: var(--display); color: var(--lime); font-weight: 600; font-size: 44px; line-height: 1; margin-bottom: 26px; }
.step h3 { margin: 0 0 8px; font-size: 20px; }
.step p { margin: 0; color: rgba(255,255,255,.65); font-size: 15.5px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .step { display: grid; grid-template-columns: 58px 1fr; column-gap: 10px; padding: 20px; }
  .step::before { grid-row: span 2; font-size: 30px; margin: 0; }
}

/* cabinet promo */
.promo {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: 56px; box-shadow: var(--shadow);
}
.promo h2 { font-size: clamp(26px, 3.6vw, 42px); margin: 14px 0 16px; }
.promo .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.mock { background: var(--deep); border-radius: 24px; padding: 18px; transform: rotate(-1.5deg); box-shadow: 0 30px 60px rgba(10,30,20,.25); }
.mock-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--deep-2); color: #e8eee9; border-radius: 14px; padding: 15px 16px; margin-top: 10px; font-size: 14.5px; border: 1px solid rgba(255,255,255,.07); }
.mock-row:first-child { margin-top: 0; }
@media (max-width: 860px) {
  .promo { grid-template-columns: 1fr; padding: 28px 20px; border-radius: 24px; gap: 30px; }
  .promo .actions .btn { flex: 1 1 auto; }
  .mock { transform: none; padding: 12px; }
  .mock-row { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* requisites */
.req { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.req table { width: 100%; border-collapse: collapse; }
.req td { padding: 15px 26px; border-bottom: 1px solid var(--line); vertical-align: top; }
.req tr:last-child td { border-bottom: 0; }
.req td:first-child { color: var(--muted); width: 36%; font-size: 15px; }
.req td:last-child { font-variant-numeric: tabular-nums; word-break: break-word; font-weight: 600; }
@media (max-width: 600px) {
  .req td { display: block; padding: 2px 18px; border: 0; width: auto !important; }
  .req td:first-child { padding-top: 14px; font-size: 13px; }
  .req td:last-child { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .req tr:last-child td:last-child { border-bottom: 0; }
  #copy-req { width: 100%; }
}

/* contacts */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; }
.contact-cards { display: grid; gap: 14px; align-content: start; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.contact-card:first-child { background: var(--deep); border-color: var(--deep); color: #fff; }
.contact-card:first-child span { color: rgba(255,255,255,.6); }
.contact-card:first-child a { color: var(--lime); font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); }
.contact-card span { color: var(--muted); font-size: 14px; }
.contact-card a { display: block; font-size: 20px; font-weight: 700; text-decoration: none; word-break: break-word; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .contact-card { padding: 18px 20px; } .contact-card a { font-size: 17px; } }

/* ------------------------------------------------ forms */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } .panel { padding: 22px 18px; } .form .btn[type=submit] { width: 100%; } }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
input, textarea, select {
  font: inherit; font-size: 16px; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 15px; width: 100%; min-width: 0;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input:disabled { opacity: .6; }
textarea { min-height: 120px; resize: vertical; }
.hint { font-size: 13px; color: var(--muted); font-weight: 500; }

.auth { min-height: calc(100vh - 73px); min-height: calc(100svh - 73px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, rgba(6,14,10,.15), rgba(6,14,10,.9)), url("img/auth.jpg") center / cover, linear-gradient(135deg, #0b1510, #1b6b43);
}
.auth-side h2 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 14px; }
.auth-side p { opacity: .8; margin: 0; max-width: 440px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-box { width: 100%; max-width: 460px; }
.auth-box h1 { font-size: 34px; margin: 0 0 8px; }
.auth-box > p { color: var(--muted); margin: 0 0 28px; }
.auth-box .btn[type=submit] { width: 100%; padding: 16px; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-side { padding: 28px 16px 24px; min-height: 180px; }
  .auth-side h2 { font-size: 24px; margin-bottom: 6px; }
  .auth-side p { font-size: 15px; }
  .auth-main { padding: 28px 16px 56px; align-items: flex-start; }
  .auth-box h1 { font-size: 26px; }
}

/* ------------------------------------------------ flash */
.flashes { position: fixed; top: 86px; right: 20px; left: 20px; z-index: 100; display: grid; gap: 10px; justify-items: end; pointer-events: none; }
.flash { pointer-events: auto; max-width: 440px; padding: 15px 20px; border-radius: 16px; font-weight: 600; font-size: 15px; box-shadow: 0 14px 36px rgba(0,0,0,.22); background: var(--deep); color: #fff; animation: fin .3s ease; }
.flash.error { background: #7a1f1a; }
.flash.ok::before { content: "✓ "; color: var(--lime); }
@keyframes fin { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 600px) { .flashes { top: 74px; left: 12px; right: 12px; justify-items: stretch; } .flash { max-width: none; } }

/* ------------------------------------------------ cabinet */
.cab { padding: 44px 0 90px; }
.cab-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.cab-head h1 { font-size: clamp(24px, 3.6vw, 40px); margin: 10px 0 0; word-break: break-word; }
.tabs { display: flex; gap: 6px; margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 10px 18px; border-radius: 99px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: 14.5px; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
.tabs a.active, .tabs a:hover { color: var(--deep); background: var(--lime); border-color: var(--lime); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.stat b { display: block; font-family: var(--display); font-weight: 600; font-size: 38px; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }
.stat.hl { background: var(--deep); color: #fff; border-color: var(--deep); }
.stat.hl b { color: var(--lime); }
.stat.hl span { color: rgba(255,255,255,.7); }
@media (max-width: 600px) {
  .cab { padding: 28px 0 64px; }
  .cab-head .btn { width: 100%; }
  .stats { gap: 8px; }
  .stat { padding: 14px; border-radius: 16px; }
  .stat b { font-size: 26px; }
  .stat span { font-size: 12.5px; }
}

.table-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table-scroll { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 15px; }
table.list th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 18px; background: var(--surface-2); white-space: nowrap; }
table.list td { padding: 15px 18px; border-top: 1px solid var(--line); vertical-align: top; }
table.list tr.clickable { cursor: pointer; }
table.list tr.clickable:hover td { background: var(--surface-2); }
@media (max-width: 700px) {
  table.list, table.list tbody, table.list tr, table.list td { display: block; width: 100%; }
  table.list tr:first-child:has(th) { display: none; }
  table.list tr { padding: 14px 16px; border-top: 1px solid var(--line); }
  table.list tr:nth-child(2) { border-top: 0; }
  table.list td { border: 0; padding: 3px 0; display: flex; gap: 12px; justify-content: space-between; text-align: right; }
  table.list td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 13px; font-weight: 600; text-align: left; flex: none; }
  table.list td:not([data-label]) { text-align: left; }
}
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty svg { width: 54px; height: 54px; color: var(--accent); opacity: .6; }

.badge-st { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.st-new { background: #e4effd; color: #1d4f91; }
.st-in_work { background: #fff2d6; color: #8a5a00; }
.st-offer { background: #efe6fd; color: #5b2ea6; }
.st-shipping { background: #dff3f6; color: #10606c; }
.st-done { background: var(--lime); color: var(--deep); }
.st-cancelled { background: #f6e3e2; color: #8c2a24; }
@media (prefers-color-scheme: dark) {
  .st-new { background: #1b2a40; color: #a9c8f5; }
  .st-in_work { background: #3a2e12; color: #f5d48c; }
  .st-offer { background: #2b2140; color: #cdb6f7; }
  .st-shipping { background: #13343a; color: #97dbe5; }
  .st-cancelled { background: #3d1c1a; color: #f2b8b5; }
}

.detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.detail dl { margin: 0; display: grid; grid-template-columns: 170px 1fr; gap: 12px 18px; }
.detail dt { color: var(--muted); font-size: 14.5px; }
.detail dd { margin: 0; font-weight: 600; white-space: pre-wrap; word-break: break-word; }
.note { background: var(--accent-soft); border-radius: 14px; padding: 18px; white-space: pre-wrap; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } .detail dl { grid-template-columns: 1fr; gap: 2px; } .detail dt { font-size: 13px; } .detail dd { margin-bottom: 12px; } }

/* ------------------------------------------------ footer */
.site-footer { background: var(--deep); color: rgba(255,255,255,.65); padding: 72px 0 32px; font-size: 14.5px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.footer-cta { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-cta h2 { color: #fff; font-size: clamp(26px, 4vw, 48px); margin: 0; max-width: 700px; }
.footer-cta h2 em { font-style: normal; color: var(--lime); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; margin: 0 0 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.footer-grid p { margin: 0 0 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
.site-footer .logo { color: #fff; margin-bottom: 16px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .site-footer { padding-top: 52px; }
  .footer-cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:nth-child(2) { grid-column: 1 / -1; }
}

/* reveal: hidden only when JS is on, so no-JS and slow loads still show content */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
}

/* very narrow phones (~280–360px): keep at the end so it wins over section rules */
@media (max-width: 360px) {
  .logo > span { display: none; }
  .hero h1 { font-size: 26px; }
  .hero .tag { font-size: 12.5px; }
  .section-head h2, .about h2, .promo h2, .footer-cta h2 { font-size: 24px; }
  .product-body h3 { font-size: 18px; }
}
