/* ============================================================
   AIRSAT — 5 design variants via data-theme (a/b/c/d/e)
   a = Чертёж (blueprint), b = Мастерская (industrial),
   c = Минимал (linear), d = Аврора (glass/gradient), e = Швейцарская сетка
   ============================================================ */

:root {
  /* --- A: Чертёж / blueprint --- */
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --surface: #ffffff;
  --ink: #10182b;
  --ink-2: #556079;
  --ink-3: #8a94ab;
  --line: #dfe6f2;
  --line-strong: #c3cede;
  --accent: #0090ff;
  --accent-ink: #ffffff;
  --accent-soft: #e7f4ff;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(16,24,43,.05), 0 10px 28px -18px rgba(0,144,255,.28);
  --font-d: "Manrope", system-ui, sans-serif;
  --font-b: "Manrope", system-ui, sans-serif;
  --font-m: "IBM Plex Mono", ui-monospace, monospace;
  --grid-c: rgba(0,144,255,.055);
}

html[data-theme="b"] {
  --bg: #fbf9f4; --bg-soft: #f3efe6; --surface: #fffdf8;
  --ink: #1f2a35; --ink-2: #5c656f; --ink-3: #929aa3;
  --line: #e6dfd0; --line-strong: #d4c9b2;
  --accent: #d97706; --accent-ink: #ffffff; --accent-soft: #fbf0dd;
  --radius: 6px; --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(31,42,53,.07), 0 10px 24px -18px rgba(217,119,6,.25);
  --font-d: "Bricolage Grotesque", "Rubik", system-ui, sans-serif;
  --font-b: "Rubik", system-ui, sans-serif;
  --grid-c: rgba(217,119,6,.06);
}

html[data-theme="c"] {
  --bg: #ffffff; --bg-soft: #fafafa; --surface: #ffffff;
  --ink: #0a0a0a; --ink-2: #666d78; --ink-3: #9aa0aa;
  --line: #e7e7e7; --line-strong: #d4d4d4;
  --accent: #0090ff; --accent-ink: #ffffff; --accent-soft: #eef7ff;
  --radius: 4px; --radius-sm: 3px;
  --shadow: none;
  --font-d: "Manrope", system-ui, sans-serif;
  --font-b: "Manrope", system-ui, sans-serif;
  --grid-c: transparent;
}

html[data-theme="d"] {
  --bg: #ffffff; --bg-soft: #f5f9ff; --surface: rgba(255,255,255,.72);
  --ink: #0f172a; --ink-2: #4b5870; --ink-3: #93a0b8;
  --line: #e2ecfb; --line-strong: #c9dcf5;
  --accent: #0090ff; --accent-ink: #ffffff; --accent-soft: #e2f1ff;
  --radius: 16px; --radius-sm: 12px;
  --shadow: 0 4px 20px -6px rgba(0,144,255,.22);
  --font-d: "Manrope", system-ui, sans-serif;
  --font-b: "Manrope", system-ui, sans-serif;
  --grid-c: transparent;
}

html[data-theme="e"] {
  --bg: #f4f4f2; --bg-soft: #e9e9e5; --surface: #fbfbfa;
  --ink: #111111; --ink-2: #555555; --ink-3: #8a8a8a;
  --line: #d6d6d2; --line-strong: #bfbfba;
  --accent: #0090ff; --accent-ink: #ffffff; --accent-soft: #e3f2ff;
  --radius: 0px; --radius-sm: 0px;
  --shadow: none;
  --font-d: "Manrope", system-ui, sans-serif;
  --font-b: "Manrope", system-ui, sans-serif;
  --grid-c: transparent;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-b); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: var(--font-d); letter-spacing: -0.02em; margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- mono technical label ---------- */
.kicker, .lbl {
  font-family: var(--font-m); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before, .lbl::before { content: ""; width: 22px; height: 1px; background: var(--accent); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo svg { height: 32px; width: auto; }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a {
  padding: 7px 12px; border-radius: var(--radius-sm);
  font-family: var(--font-m); font-size: 12.5px; font-weight: 500;
  letter-spacing: .04em; color: var(--ink-2); transition: .15s;
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a.on { color: var(--accent); background: var(--accent-soft); }
.head-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  padding: 9px 16px; border-radius: var(--radius-sm); font-weight: 700; font-size: 13.5px;
  font-family: var(--font-m); letter-spacing: .02em; white-space: nowrap;
}
.head-cta:hover { filter: brightness(1.07); }

/* ---------- hero ---------- */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
html[data-theme="a"] .hero, html[data-theme="a"] .page-hero,
html[data-theme="b"] .hero, html[data-theme="b"] .page-hero {
  background-image:
    linear-gradient(var(--grid-c) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-c) 1px, transparent 1px);
  background-size: 28px 28px;
}
html[data-theme="d"] .hero, html[data-theme="d"] .page-hero {
  background: radial-gradient(900px 420px at 15% -10%, #dcefff 0%, transparent 60%),
              radial-gradient(700px 380px at 90% 0%, #e8f5ff 0%, transparent 55%);
}
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  padding-top: 64px; padding-bottom: 64px; position: relative;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.04; font-weight: 800; margin: 14px 0; }
html[data-theme="c"] .hero h1, html[data-theme="e"] .hero h1 { font-weight: 700; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 17px; color: var(--ink-2); max-width: 520px; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14.5px;
  cursor: pointer; border: 1px solid transparent;
}
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { filter: brightness(1.07); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-visual { position: relative; }
.hero-visual .frame {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); overflow: hidden;
}
html[data-theme="d"] .hero-visual .frame { backdrop-filter: blur(8px); }
.hero-visual img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.frame-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-bottom: 1px solid var(--line);
  font-family: var(--font-m); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
}
.frame-bar .dots { display: inline-flex; gap: 5px; }
.frame-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.frame-bar .dots i:first-child { background: var(--accent); }
.hero-fact {
  position: absolute; left: -14px; bottom: 18px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 10px 14px; display: flex; align-items: center; gap: 9px;
  font-family: var(--font-m); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; font-weight: 500;
}
.hero-fact svg { color: var(--accent); flex-shrink: 0; }

/* ---------- sections ---------- */
.sec { padding: 64px 0; }
.sec-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 640px; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.1; margin-top: 10px; }
.sec-head p { color: var(--ink-2); margin: 10px 0 0; font-size: 16px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cat-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; transition: .16s; box-shadow: var(--shadow);
}
html[data-theme="d"] .cat-card { backdrop-filter: blur(8px); }
.cat-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.cat-ic {
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent);
}
.cat-ic svg { width: 26px; height: 26px; }
.cat-card h3 { font-size: 17px; font-weight: 700; }
.cat-card p { margin: 0; color: var(--ink-2); font-size: 14px; }
.cat-card .go { margin-top: auto; font-family: var(--font-m); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

/* ---------- product cards ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.prod {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
html[data-theme="d"] .prod { backdrop-filter: blur(8px); }
.prod-fig {
  height: 132px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); margin-bottom: 14px; color: var(--accent);
  background-image:
    linear-gradient(var(--grid-c) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-c) 1px, transparent 1px);
  background-size: 16px 16px;
  border: 1px solid var(--line);
}
html[data-theme="c"] .prod-fig, html[data-theme="e"] .prod-fig { background: var(--bg-soft); }
html[data-theme="d"] .prod-fig { background: linear-gradient(135deg, #eaf5ff, #f3faff); }
.prod-fig svg { width: 98px; height: 98px; }
.prod .model { font-family: var(--font-m); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.prod h3 { font-size: 16px; font-weight: 700; margin: 6px 0 10px; }
.prod ul { list-style: none; margin: 0 0 14px; padding: 0; font-size: 12.5px; color: var(--ink-2); font-family: var(--font-m); }
.prod ul li { padding: 4px 0; display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted var(--line); }
.prod ul li b { font-weight: 400; color: var(--ink-3); }
.prod .price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 13px; }
.prod .price { font-family: var(--font-d); font-weight: 800; font-size: 16px; }
.prod .price small { color: var(--ink-3); font-weight: 500; font-size: 11px; font-family: var(--font-m); }
.prod .ask {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-m); font-size: 11px;
  font-weight: 500; letter-spacing: .04em; color: var(--accent); padding: 6px 10px;
  border-radius: var(--radius-sm); background: var(--accent-soft);
}
.tag {
  display: inline-block; font-family: var(--font-m); font-size: 10px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 3px;
  background: var(--accent-soft); color: var(--accent);
}

/* ---------- split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; }
.facts svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.facts b { display: block; }
.facts span { color: var(--ink-2); font-size: 14px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
html[data-theme="d"] .step { backdrop-filter: blur(8px); }
.step .n { font-family: var(--font-m); font-size: 13px; font-weight: 500; color: var(--accent); letter-spacing: .1em; }
.step h3 { font-size: 17px; margin: 10px 0 7px; }
.step p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* ---------- contact ---------- */
.contact-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
html[data-theme="d"] .contact-card { backdrop-filter: blur(8px); }
.contact-card h3 { font-family: var(--font-m); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.contact-card a, .contact-card span { display: block; color: var(--ink-2); font-size: 14.5px; }
.contact-card a:hover { color: var(--accent); }
.contact-card .big { font-size: 18px; font-weight: 800; color: var(--ink); font-family: var(--font-d); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 44px 0 28px; margin-top: 20px; }
.site-foot .grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-foot h4 { font-family: var(--font-m); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.site-foot a { display: block; color: var(--ink-2); padding: 3px 0; font-size: 14px; }
.site-foot a:hover { color: var(--accent); }
.site-foot .bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-3); font-family: var(--font-m); font-size: 11px; letter-spacing: .04em; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- page hero (inner) ---------- */
.page-hero { border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: 52px; padding-bottom: 52px; }
.page-hero h1 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.page-hero p { color: var(--ink-2); font-size: 16px; max-width: 640px; margin: 12px 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .site-foot .grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero-fact { left: 8px; }
}
