/* ===== ЛенЛесСтрой — основные стили ===== */
/* Цвета и переменные подставляются из app.jsx через style={rootStyle} */

/* ===== Астро-версия: CSS-переменные палитры (wood) ===== */
:root {
  --bg: #f6efe3;
  --bg2: #efe4d3;
  --surface: #fffdf8;
  --ink: #2c2418;
  --muted: #6f6453;
  --line: rgba(44,36,24,.12);
  --secondary: #a9744f;
  --inkOnAccent: #fffdf8;
  --accent: #436b3c;
  --r: 14px;
  --r-lg: 20px;
  --r-sm: 8px;
  --head-font: "Spectral", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.55;
  color: var(--ink, #2c2418);
  background: var(--bg, #f6efe3);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
input, textarea { font-family: inherit; font-size: 16px; }
h1, h2, h3, h4, h5 {
  font-family: var(--head-font, "Spectral", Georgia, serif);
  margin: 0; line-height: 1.15; color: var(--ink);
}

.page-scroll {
  min-height: 100vh; overflow-x: hidden; background: var(--bg);
  scroll-behavior: smooth;
}
.container {
  width: 100%; max-width: 1200px;
  margin: 0 auto; padding: 0 24px;
}

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; border-radius: var(--r, 14px);
  font-weight: 600; transition: transform .15s, box-shadow .15s, background .15s;
  cursor: pointer; white-space: nowrap;
}
.btn span { display: inline-block; }
.btn--primary { background: var(--accent, #436b3c); color: var(--inkOnAccent, #fffdf8); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(67,107,60,.25); }
.btn--ghost {
  background: var(--surface, #fffdf8); color: var(--ink);
  border: 1px solid var(--line, rgba(44,36,24,.12));
}
.btn--ghost:hover { background: var(--bg2, #efe4d3); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--md { padding: 12px 22px; font-size: 15px; }
.btn--lg { padding: 16px 28px; font-size: 16px; }

/* ===== Eyebrow ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--muted, #6f6453);
  text-transform: uppercase; letter-spacing: .06em;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent, #436b3c);
}

/* ===== Section head ===== */
.sec-head { margin-bottom: 40px; max-width: 720px; }
.sec-head--center { margin: 0 auto 40px; text-align: center; }
.sec-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600; margin: 14px 0 12px;
}
.sec-lead { color: var(--muted); font-size: 17px; margin: 0; }

.section { padding: 80px 0; }
@media (max-width: 768px) { .section { padding: 56px 0; } }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  transition: background .2s, box-shadow .2s, backdrop-filter .2s;
  padding: 14px 0;
}
.header--solid {
  background: rgba(255, 253, 248, .92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  height: 58px; width: auto; display: block;
}
@media (max-width: 1100px) { .brand-logo { height: 50px; } }
@media (max-width: 760px) { .brand-logo { height: 42px; } }
.brand-mark {
  width: 40px; height: 40px; border-radius: var(--r-sm, 8px);
  background: var(--accent); color: var(--inkOnAccent);
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.brand-text b { font-family: var(--head-font); font-size: 17px; font-weight: 700; }
.brand-text i { font-style: normal; font-size: 12px; color: var(--muted); }
@media (max-width: 1280px) {
  .brand-text b { font-size: 15px; }
  .brand-text i { font-size: 11px; }
}

.nav { display: flex; gap: 22px; align-items: center; }
.nav a {
  font-size: 14px; color: var(--ink); font-weight: 500;
  white-space: nowrap;
  transition: color .15s;
}
.nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; color: var(--ink);
  white-space: nowrap;
}
.header-phone:hover { color: var(--accent); }
.burger { display: none; padding: 8px; }

@media (max-width: 960px) {
  .nav {
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--surface); flex-direction: column;
    padding: 24px; gap: 20px; align-items: flex-start;
    transform: translateY(-110%); transition: transform .25s;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .nav--open { transform: translateY(0); }
  .burger { display: inline-flex; }
  .header-phone span { display: none; }
}

/* ===== Hero ===== */
.hero {
  padding: 56px 0 80px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center;
}
.hero-title {
  font-size: clamp(34px, 5vw, 54px); font-weight: 700;
  margin: 20px 0 18px; line-height: 1.1;
}
.hero-title span { color: var(--accent); font-style: italic; }
.hero-lead { font-size: 18px; color: var(--muted); max-width: 540px; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-points {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px; color: var(--ink);
}
.hero-points li {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500;
}
.hero-points li svg { color: var(--accent); }
.hero-media { position: relative; }
.hero-photo {
  aspect-ratio: 4/3; width: 100%;
  border-radius: var(--r-lg, 20px); overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(44,36,24,.25);
  background: var(--bg2);
}
.hero-badge {
  position: absolute; right: -10px; bottom: -16px;
  background: var(--surface); color: var(--ink);
  border-radius: var(--r);
  padding: 14px 20px; box-shadow: 0 12px 32px rgba(0,0,0,.12);
  border: 1px solid var(--line); line-height: 1.15;
  text-align: center; min-width: 120px;
}
.hero-badge span { white-space: nowrap; font-size: 12px; }
.hero-badge b { display: block; font-family: var(--head-font); font-size: 24px; color: var(--accent); }
.hero-badge span { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== TrustBar ===== */
.trustbar { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trustbar-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 28px 24px;
}
.trust-item { text-align: center; }
.trust-item b {
  display: block; font-family: var(--head-font);
  font-size: 30px; font-weight: 700; color: var(--accent);
}
.trust-item span { color: var(--muted); font-size: 14px; }
@media (max-width: 720px) {
  .trustbar-inner { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* ===== Categories ===== */
.cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.cat-card {
  text-align: left; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg, 20px);
  padding: 32px 28px; transition: transform .15s, box-shadow .15s, border-color .15s;
  display: flex; flex-direction: column; gap: 12px;
  cursor: pointer;
}
.cat-card:hover {
  transform: translateY(-3px); border-color: var(--accent);
  box-shadow: 0 18px 40px -20px rgba(67,107,60,.3);
}
.cat-ico {
  width: 52px; height: 52px; border-radius: var(--r);
  background: var(--bg2); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.cat-count {
  align-self: flex-start;
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--bg2); color: var(--muted); font-weight: 500;
}
.cat-card h3 { font-size: 22px; font-weight: 600; margin: 6px 0 0; }
.cat-card p { color: var(--muted); margin: 0; font-size: 15px; }
.cat-link {
  margin-top: auto; padding-top: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--accent); font-size: 14px;
}
@media (max-width: 768px) { .cat-grid { grid-template-columns: 1fr; } }

/* ===== Catalog ===== */
.section--catalog { background: var(--bg2); }
.cat-tabs {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 36px;
}
.cat-tab {
  padding: 10px 18px; border-radius: 999px;
  background: var(--surface); color: var(--muted);
  font-weight: 500; font-size: 14px;
  border: 1px solid var(--line); cursor: pointer;
  transition: all .15s;
}
.cat-tab:hover { color: var(--ink); }
.cat-tab.is-active {
  background: var(--accent); color: var(--inkOnAccent);
  border-color: var(--accent);
}

.model-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 1024px) { .model-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .model-grid { grid-template-columns: 1fr; } }

.model-card {
  background: var(--surface); border-radius: var(--r-lg);
  overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.model-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,.2);
}
.model-photo { position: relative; aspect-ratio: 4/3; background: var(--bg2); }
.model-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: var(--inkOnAccent);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.model-cat {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,.92); color: var(--ink);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  backdrop-filter: blur(8px);
}
.model-body { padding: 22px; display: flex; flex-direction: column; flex: 1; gap: 14px; }
.model-top h3 { font-size: 20px; font-weight: 600; margin: 0 0 10px; }
.model-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 13px; color: var(--muted);
}
.model-meta span { display: inline-flex; align-items: center; gap: 5px; }
.model-desc { color: var(--muted); font-size: 14px; margin: 0; }
.model-specs {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 6px;
}
.model-specs li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 14px; color: var(--ink);
}
.model-specs li svg { color: var(--accent); margin-top: 3px; flex-shrink: 0; }
.model-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; margin-top: auto;
  border-top: 1px solid var(--line);
}
.model-price span { color: var(--muted); font-size: 13px; }
.model-price b {
  display: block; font-family: var(--head-font);
  font-size: 22px; font-weight: 700; color: var(--accent);
}
.catalog-note {
  text-align: center; margin-top: 36px; color: var(--muted); font-size: 15px;
}
.linklike {
  color: var(--accent); text-decoration: underline;
  background: none; padding: 0; font-weight: 500; font-size: inherit;
}

/* ===== Photo wrap (placeholders) ===== */
.photo-wrap {
  position: relative; width: 100%; height: 100%;
  border-radius: inherit; overflow: hidden;
}
.photo-wrap image-slot {
  width: 100%; height: 100%; display: block;
}
.photo-kicker {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(0,0,0,.55); color: #fff;
  padding: 6px 12px; border-radius: 999px;
  font-size: 13px; backdrop-filter: blur(8px);
}

/* ===== Production ===== */
.section--prod { background: var(--surface); }
.prod-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
}
.prod-media {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  position: relative;
}
.prod-photo-a { aspect-ratio: 3/4; border-radius: var(--r-lg); overflow: hidden; background: var(--bg2); }
.prod-photo-b { aspect-ratio: 3/4; border-radius: var(--r-lg); overflow: hidden; background: var(--bg2); margin-top: 32px; }
.adv-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 28px;
}
.adv-item { display: flex; gap: 14px; align-items: flex-start; }
.adv-ico {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--r); background: var(--bg2);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.adv-item h4 { font-size: 16px; font-weight: 600; margin: 0 0 4px; font-family: var(--head-font); }
.adv-item p { font-size: 14px; color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .prod-inner { grid-template-columns: 1fr; gap: 40px; }
  .adv-grid { grid-template-columns: 1fr; }
}

/* ===== Steps ===== */
.section--steps { background: var(--bg); }
.steps-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
  position: relative;
}
.step {
  background: var(--surface); border-radius: var(--r-lg);
  padding: 24px 22px; border: 1px solid var(--line);
  position: relative;
}
.step-n {
  font-family: var(--head-font); font-size: 26px; font-weight: 700;
  color: var(--accent); display: block; margin-bottom: 10px;
}
.step h4 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; }
.step-arrow {
  position: absolute; right: -16px; top: 40%;
  color: var(--accent); opacity: .4; display: none;
}
@media (min-width: 1024px) { .step-arrow { display: inline-block; } }
.steps-cta {
  margin-top: 40px; display: flex; align-items: center;
  justify-content: center; gap: 24px; flex-wrap: wrap;
  color: var(--muted); font-size: 15px;
}
@media (max-width: 1024px) { .steps-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-row { grid-template-columns: 1fr; } }

/* ===== Calculator ===== */
.section--calc { background: var(--surface); }
.calc-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
}
.calc-result {
  background: var(--bg); border-radius: var(--r-lg);
  padding: 28px; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; margin-top: 24px;
}
.calc-res-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 15px; color: var(--muted);
}
.calc-res-row b { color: var(--ink); font-weight: 600; font-family: var(--head-font); font-size: 17px; }
.calc-res-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 14px; margin-top: 4px;
  border-top: 1px solid var(--line);
}
.calc-res-total span { font-size: 14px; color: var(--muted); }
.calc-res-total b { font-family: var(--head-font); font-size: 32px; font-weight: 700; color: var(--accent); }

.calc-controls { display: flex; flex-direction: column; gap: 22px; }
.calc-field label {
  display: block; font-size: 14px; font-weight: 500;
  margin-bottom: 10px; color: var(--ink);
}
.calc-field label b { font-weight: 700; color: var(--accent); margin: 0 4px; }
.calc-field .calc-sub { color: var(--muted); font-weight: 400; }
.seg {
  display: flex; gap: 6px; background: var(--bg2);
  border-radius: var(--r); padding: 4px;
}
.seg button {
  flex: 1; padding: 10px 14px; border-radius: calc(var(--r) - 4px);
  font-weight: 500; font-size: 14px; color: var(--muted);
  transition: all .15s;
}
.seg button:hover { color: var(--ink); }
.seg button.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.seg--wrap { flex-wrap: wrap; }
.seg--wrap button { flex: 0 0 auto; min-width: 100px; }
.calc-range {
  width: 100%; height: 6px; -webkit-appearance: none; appearance: none;
  background: var(--bg2); border-radius: 999px; outline: none;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px;
  border-radius: 50%; background: var(--accent); cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.calc-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: none; cursor: pointer;
}
.calc-ticks {
  display: flex; justify-content: space-between;
  margin-top: 6px; font-size: 12px; color: var(--muted);
}
@media (max-width: 900px) { .calc-inner { grid-template-columns: 1fr; } }

/* ===== Portfolio ===== */
.section--portfolio { background: var(--bg2); }
.pf-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px; gap: 14px;
}
.pf-cell {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg);
}
.pf-cell--big { grid-column: span 2; grid-row: span 2; }
.pf-cell--sm { grid-column: span 1; }
.pf-cap {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(6px);
  padding: 8px 12px; border-radius: var(--r-sm);
}
.pf-cap b { display: block; font-size: 14px; font-family: var(--head-font); }
.pf-cap span {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; opacity: .85; margin-top: 2px;
}
@media (max-width: 768px) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .pf-cell--big { grid-column: span 2; }
}

/* ===== Reviews ===== */
.section--reviews { background: var(--bg); }
.rev-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.rev-card {
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: 28px; margin: 0; display: flex; flex-direction: column; gap: 16px;
}
.stars { display: inline-flex; gap: 2px; color: #d2a93e; }
.rev-card blockquote { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink); }
.rev-card figcaption { display: flex; align-items: center; gap: 12px; }
.rev-ava {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--inkOnAccent);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--head-font);
}
.rev-card figcaption b { display: block; font-weight: 600; font-size: 15px; }
.rev-card figcaption i {
  display: inline-flex; align-items: center; gap: 4px;
  font-style: normal; font-size: 13px; color: var(--muted);
}
@media (max-width: 768px) { .rev-grid { grid-template-columns: 1fr; } }

/* ===== FAQ ===== */
.section--faq { background: var(--surface); }
.faq-inner { max-width: 820px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--bg); border-radius: var(--r);
  border: 1px solid var(--line); overflow: hidden;
  transition: background .15s;
}
.faq-item.is-open { background: var(--surface); border-color: var(--accent); }
.faq-q {
  width: 100%; text-align: left;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 22px; font-weight: 600; font-size: 16px;
  color: var(--ink); cursor: pointer; gap: 16px;
}
.faq-q svg { color: var(--accent); flex-shrink: 0; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .25s, padding .15s;
}
.faq-item.is-open .faq-a {
  max-height: 400px; padding: 0 22px 20px;
}
.faq-a p { margin: 0; color: var(--muted); font-size: 15px; }

/* ===== Contact ===== */
.section--contact { background: var(--bg2); }
.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: start;
}
.contact-list {
  display: flex; flex-direction: column; gap: 14px; margin-top: 28px;
}
.contact-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .15s;
}
a.contact-row:hover { border-color: var(--accent); }
.contact-ico {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--bg2); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-row i { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.contact-row b { font-weight: 600; font-size: 15px; }

/* ===== Forms ===== */
.contact-form-wrap {
  background: var(--surface); border-radius: var(--r-lg);
  padding: 32px; border: 1px solid var(--line);
}
.lead-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 13px; font-weight: 500; color: var(--muted); }
.field span i { font-style: normal; color: var(--muted); opacity: .7; }
.field input, .field textarea {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--r-sm); padding: 12px 14px;
  color: var(--ink); outline: none;
  transition: border-color .15s, background .15s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  border-color: var(--accent); background: var(--surface);
}
.lead-policy {
  font-size: 12px; color: var(--muted); margin: 4px 0 0; text-align: center;
}
.field-file .file-drop {
  position: relative;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-sm);
  padding: 14px;
  background: var(--bg);
  transition: border-color .15s, background .15s;
  cursor: pointer;
}
.field-file .file-drop:hover { border-color: var(--accent); background: var(--surface); }
.field-file input[type="file"] {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.field-file .file-prompt {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--muted);
}
.field-file .file-prompt svg { color: var(--accent); }
.field-file .file-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink);
  background: var(--bg2);
  padding: 6px 10px 6px 12px;
  border-radius: 999px;
  max-width: 100%;
}
.field-file .file-chip svg { color: var(--accent); flex-shrink: 0; }
.field-file .file-x {
  position: relative; z-index: 2;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--surface); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 4px;
}
.field-file .file-x:hover { background: var(--ink); color: var(--surface); }
.lead-success {
  text-align: center; padding: 24px 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.lead-ok {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(67,107,60,.12); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.lead-success h3 { font-family: var(--head-font); font-size: 22px; margin: 0; }
.lead-success p { color: var(--muted); margin: 0; font-size: 15px; }
.lead-model {
  background: var(--bg2); border-radius: var(--r-sm);
  padding: 12px 16px; margin-bottom: 4px;
}
.lead-model span { display: block; font-size: 12px; color: var(--muted); }
.lead-model b { font-size: 15px; }

@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; }
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20,16,8,.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow: auto;
}
.modal {
  background: var(--surface); border-radius: var(--r-lg);
  max-width: 480px; width: 100%; padding: 32px;
  position: relative; box-shadow: 0 30px 60px rgba(0,0,0,.3);
  max-height: calc(100vh - 40px); overflow: auto;
}
.modal-x {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg2); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.modal-x:hover { background: var(--accent); color: var(--inkOnAccent); }
.modal-head { margin-bottom: 22px; }
.modal-head h3 {
  font-size: 24px; font-family: var(--head-font);
  font-weight: 600; margin: 10px 0 8px;
}
.modal-head p { color: var(--muted); margin: 0; font-size: 14px; }

/* ===== Footer ===== */
.footer {
  background: var(--ink); color: rgba(255,255,255,.8);
  padding: 60px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand p { color: rgba(255,255,255,.55); font-size: 14px; margin: 16px 0 0; line-height: 1.6; }
.footer .brand-mark { background: var(--accent); }
.footer .brand-text b { color: #fff; }
.footer .brand-text i { color: rgba(255,255,255,.5); }
.footer-col h5 {
  font-family: var(--head-font); font-size: 14px; color: #fff;
  text-transform: uppercase; letter-spacing: .08em;
  margin: 0 0 14px; font-weight: 600;
}
.footer-col a, .footer-col span {
  display: block; color: rgba(255,255,255,.65);
  font-size: 14px; margin-bottom: 8px;
  transition: color .15s; cursor: pointer;
}
.footer-col a:hover { color: #fff; }
.footer-muted { color: rgba(255,255,255,.45) !important; cursor: default !important; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12px; color: rgba(255,255,255,.45); flex-wrap: wrap;
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ===== Tweaks panel — скрываем на проде ===== */
.tweaks-panel { display: none !important; }

/* ===== Lightbox (просмотр фото моделей) ===== */
.model-photo--zoom { cursor: zoom-in; position: relative; }
.model-zoom {
  position: absolute; right: 12px; bottom: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  opacity: .85; transition: opacity .2s, transform .15s;
  pointer-events: auto;
}
.model-photo--zoom:hover .model-zoom { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 12, 5, .88);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 32px 20px;
  animation: lbFade .18s ease-out;
}
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-x {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s;
  z-index: 2;
}
.lightbox-x:hover { background: rgba(255,255,255,.22); }
.lightbox-inner {
  width: 100%; max-width: 1000px;
  max-height: 100%;
  display: flex; flex-direction: column; gap: 14px;
}
.lightbox-title {
  color: #fff; font-family: var(--head-font);
  font-size: 20px; font-weight: 600;
  text-align: center;
}
.lightbox-loading { color: #fff; opacity: .7; text-align: center; padding: 60px 0; }
.lightbox-stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3);
  border-radius: var(--r-lg, 20px);
  overflow: hidden;
  min-height: 320px;
}
.lightbox-image {
  max-width: 100%;
  max-height: calc(100vh - 220px);
  width: auto; height: auto;
  display: block;
  border-radius: var(--r-lg, 20px);
}
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.85); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s;
  z-index: 2;
}
.lightbox-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.lightbox-arrow--left { left: 16px; }
.lightbox-arrow--right { right: 16px; }
.lightbox-counter {
  position: absolute; bottom: 14px; left: 50%;
  transform: translateX(-50%);
  color: #fff; font-size: 12px;
  background: rgba(0,0,0,.5); padding: 4px 10px;
  border-radius: 999px; backdrop-filter: blur(4px);
}
.lightbox-thumbs {
  display: flex; gap: 8px; justify-content: center;
  flex-wrap: wrap;
}
.lightbox-thumb {
  width: 70px; height: 50px; border-radius: 8px;
  overflow: hidden; padding: 0;
  border: 2px solid transparent;
  transition: border-color .15s, transform .15s;
  opacity: .55;
}
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox-thumb:hover { opacity: 1; transform: translateY(-2px); }
.lightbox-thumb.is-on { border-color: var(--accent); opacity: 1; }

@media (max-width: 640px) {
  .lightbox-arrow { width: 40px; height: 40px; }
  .lightbox-arrow--left { left: 8px; }
  .lightbox-arrow--right { right: 8px; }
  .lightbox-thumb { width: 56px; height: 40px; }
  .model-zoom { opacity: 1; } /* на мобильных нет hover — показываем всегда */
}
