/* Layout: neon circuit board. Hero = glowing logo node with traces; programs = grid of chips by discipline; sections joined by thin traces. Single dark look by design. */
:root {
  --bg: #060a1c;
  --bg-2: #0a1130;
  --panel: #0c1538;
  --line: #1c2b66;
  --fg: #e8edff;
  --muted: #97a4d2;
  --cyan: #3fe9ff;
  --magenta: #ff52d9;
  --violet: #9d82ff;
  --green: #5ff5b4;
  --gold: #ffcf5a;
  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 14px;
  --wrap: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(157, 130, 255, .16), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(63, 233, 255, .10), transparent 60%),
    linear-gradient(rgba(28, 43, 102, .35) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(28, 43, 102, .35) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 30;
  background: rgba(6, 10, 28, .92);
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(6, 10, 28, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); margin-right: auto; }
.brand img { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(63, 233, 255, .5), 0 0 18px rgba(63, 233, 255, .35); }
.brand span { font: 600 15px/1.1 var(--f-display); letter-spacing: .04em; }
.brand small { display: block; font: 400 11px/1.3 var(--f-mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--fg); }
.langs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.langs a { font: 500 12px/1 var(--f-mono); letter-spacing: .06em; color: var(--muted); text-decoration: none; padding: 7px 9px; border-radius: 999px; }
.langs a:hover { color: var(--fg); }
.langs a[aria-current] { color: var(--bg); background: var(--cyan); box-shadow: 0 0 12px rgba(63, 233, 255, .45); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  font: 600 15px/1 var(--f-body); text-decoration: none; cursor: pointer;
  border: 1px solid var(--cyan); color: var(--bg); background: var(--cyan);
  box-shadow: 0 0 22px rgba(63, 233, 255, .45);
  transition: box-shadow .2s, transform .2s;
}
.btn:hover { box-shadow: 0 0 34px rgba(63, 233, 255, .7); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--cyan); box-shadow: inset 0 0 14px rgba(63, 233, 255, .15); }
.btn--ghost:hover { box-shadow: inset 0 0 18px rgba(63, 233, 255, .3), 0 0 18px rgba(63, 233, 255, .25); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: #1a1200; box-shadow: 0 0 22px rgba(255, 207, 90, .45); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(30px, 4.6vw, 54px); letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: 18px; }
.glow { color: var(--cyan); text-shadow: 0 0 18px rgba(63, 233, 255, .6); }
.glow-m { color: var(--magenta); text-shadow: 0 0 18px rgba(255, 82, 217, .55); }
.eyebrow { font: 500 12px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 60ch; margin: 0; }
.mono { font-family: var(--f-mono); }

section { padding-block: clamp(48px, 7vw, 88px); }
.section-head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 760px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 90px) clamp(40px, 6vw, 70px); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-node { position: relative; justify-self: center; width: min(400px, 100%); aspect-ratio: 1; max-width: 100%; }
.hero-node img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(63, 233, 255, .55), 0 0 60px rgba(63, 233, 255, .35), 0 0 120px rgba(157, 130, 255, .25); animation: breathe 5s ease-in-out infinite; }
.hero-node::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed rgba(255, 82, 217, .45); animation: spin 40s linear infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 1px rgba(63, 233, 255, .8), 0 0 80px rgba(63, 233, 255, .5), 0 0 140px rgba(157, 130, 255, .35); } }
@keyframes spin { to { transform: rotate(360deg); } }
.ticker { display: flex; flex-wrap: wrap; gap: 8px; }
.ticker a { font: 500 13px/1 var(--f-mono); color: var(--fg); text-decoration: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(12, 21, 56, .7); }
.ticker a:hover { border-color: var(--cyan); color: var(--cyan); }

.stats { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 8px; border-top: 1px solid var(--line); }
.stat b { display: block; font: 600 26px/1.1 var(--f-display); color: var(--fg); }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- offer ---------- */
.offer { padding-block: 0; }
.offer-card {
  position: relative; display: grid; grid-template-columns: 1fr 1.1fr; overflow: hidden;
  border: 1px solid rgba(255, 207, 90, .55); border-radius: 20px;
  background: linear-gradient(120deg, rgba(255, 207, 90, .08), rgba(12, 21, 56, .9) 45%);
  box-shadow: 0 0 40px rgba(255, 207, 90, .12), inset 0 0 30px rgba(255, 207, 90, .06);
}
.offer-copy { padding: clamp(24px, 4vw, 44px); display: grid; gap: 16px; align-content: center; min-width: 0; }
.offer-copy .eyebrow { color: var(--gold); }
.offer-copy h2 { color: var(--fg); }
.offer-copy h2 em { font-style: normal; color: var(--gold); text-shadow: 0 0 18px rgba(255, 207, 90, .5); }
.offer-copy p { margin: 0; color: var(--muted); }
.offer-img { position: relative; min-height: 220px; }
.offer-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.offer-img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(12, 21, 56, 1), transparent 35%); }

/* ---------- programs ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter {
  font: 500 14px/1 var(--f-body); color: var(--muted); background: transparent; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px;
}
.filter:hover { color: var(--fg); border-color: var(--muted); }
.filter[aria-pressed="true"] { color: var(--bg); background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 16px rgba(63, 233, 255, .4); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  --c: var(--cyan);
  position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px;
  padding: 22px; border-radius: var(--radius); text-decoration: none; color: var(--fg);
  background: linear-gradient(180deg, rgba(12, 21, 56, .92), rgba(8, 14, 40, .92));
  border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--c); box-shadow: 0 0 28px color-mix(in srgb, var(--c) 30%, transparent); transform: translateY(-2px); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-icon { width: 44px; height: 44px; color: var(--c); filter: drop-shadow(0 0 6px var(--c)); }
.card-cat { font: 500 11px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--c); text-align: right; }
.card h3 { font-size: 19px; }
.card .ver { font: 500 13px/1.4 var(--f-mono); color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.os { font: 500 11px/1 var(--f-mono); letter-spacing: .04em; color: var(--cyan); padding: 4px 7px; border: 1px solid rgba(63, 233, 255, .45); border-radius: 6px; background: rgba(63, 233, 255, .08); }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
.card .more { font-size: 14px; font-weight: 600; color: var(--c); }
.card--special { border-color: rgba(255, 207, 90, .6); }
.card--special::after { content: "Спецпропозиція"; position: absolute; top: -10px; right: 18px; font: 600 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: #1a1200; background: var(--gold); padding: 5px 9px; border-radius: 6px; box-shadow: 0 0 14px rgba(255, 207, 90, .5); }
.c-cad { --c: var(--cyan); }
.c-implant { --c: var(--violet); }
.c-ortho { --c: var(--magenta); }
.c-smile { --c: var(--gold); }
.c-print { --c: var(--green); }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps li { position: relative; padding: 22px 20px 22px; border-top: 2px solid var(--line); counter-increment: step; display: grid; gap: 8px; align-content: start; min-width: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); font: 600 13px/1 var(--f-mono); color: var(--cyan); }
.steps li::after { content: ""; position: absolute; top: -5px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.steps a { color: var(--cyan); }

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why div { padding: 22px; border-left: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.why b { font: 600 30px/1 var(--f-display); color: var(--magenta); text-shadow: 0 0 16px rgba(255, 82, 217, .45); }
.why h3 { font-size: 16px; }
.why p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- contact ---------- */
.contact-card {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
  padding: clamp(24px, 4vw, 48px); border-radius: 20px;
  border: 1px solid rgba(63, 233, 255, .45);
  background: radial-gradient(600px 300px at 100% 0%, rgba(63, 233, 255, .12), transparent 70%), var(--panel);
  box-shadow: 0 0 40px rgba(63, 233, 255, .1);
}
.contact-card > div { min-width: 0; display: grid; gap: 14px; }
.contact-card p { margin: 0; color: var(--muted); }
.handle { justify-self: start; font: 600 clamp(20px, 2.6vw, 28px)/1.1 var(--f-mono); color: var(--fg); text-decoration: none; letter-spacing: .01em; overflow-wrap: anywhere; }
.handle:hover { color: var(--cyan); }
.channels { display: flex; flex-wrap: wrap; gap: 10px; }
.remote { display: grid; gap: 10px; padding: 20px; border: 1px dashed var(--line); border-radius: var(--radius); }
.remote h3 { font-size: 15px; }
.remote p { font-size: 14px; }
.remote .channels a { font-size: 14px; }

/* ---------- program page ---------- */
.crumbs { font: 400 13px/1.4 var(--f-mono); color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--cyan); }
.p-hero { position: relative; overflow: hidden; padding-block: clamp(32px, 5vw, 64px) clamp(32px, 5vw, 56px); }
.p-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.p-hero .wrap { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.p-icon { --c: var(--cyan); width: clamp(84px, 12vw, 132px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 28px; border: 1px solid var(--c); color: var(--c); background: rgba(12, 21, 56, .8); box-shadow: 0 0 40px color-mix(in srgb, var(--c) 30%, transparent), inset 0 0 24px color-mix(in srgb, var(--c) 15%, transparent); }
.p-icon svg { width: 58%; height: 58%; filter: drop-shadow(0 0 8px var(--c)); }
.p-hero-copy { display: grid; gap: 16px; min-width: 0; }
.p-hero-copy h1 { font-size: clamp(28px, 4vw, 48px); }
.vers { display: flex; flex-wrap: wrap; gap: 8px; }
.vers span { font: 500 13px/1 var(--f-mono); padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: rgba(12, 21, 56, .8); }
.vers .os { font-size: 13px; padding: 8px 12px; border-radius: 8px; border-color: rgba(63, 233, 255, .45); background: rgba(63, 233, 255, .08); }
.p-body { display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: start; }
.p-body > * { min-width: 0; }
.prose { display: grid; gap: 16px; max-width: 66ch; }
.prose p { margin: 0; }
.prose h2 { font-size: clamp(20px, 2.4vw, 26px); margin-top: 12px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.checks li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 5px; border: 1.5px solid var(--green); box-shadow: 0 0 8px rgba(95, 245, 180, .4); background: linear-gradient(135deg, transparent 45%, var(--green) 46% 54%, transparent 55%); }
.aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); display: grid; gap: 16px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.aside h3 { font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); }
.aside .handle { font-size: 18px; }
.aside .btn { width: 100%; }

.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: rgba(12, 21, 56, .7); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%; font: 500 22px/1 var(--f-mono); color: var(--cyan); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

.related { display: flex; flex-wrap: wrap; gap: 8px; }
.related a { font: 500 14px/1 var(--f-mono); color: var(--fg); text-decoration: none; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); }
.related a:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer p { margin: 0; max-width: 60ch; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .offer-card, .contact-card, .p-body { grid-template-columns: 1fr; }
  .hero-node { width: min(300px, 80%); order: -1; }
  .offer-img { min-height: 180px; order: -1; }
  .offer-img::before { background: linear-gradient(0deg, rgba(12, 21, 56, 1), transparent 50%); }
  .steps, .why { grid-template-columns: repeat(2, 1fr); }
  .aside { position: static; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .brand small { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps, .why { grid-template-columns: 1fr; }
  .p-hero .wrap { grid-template-columns: 1fr; gap: 20px; }
  .p-icon { width: 76px; border-radius: 20px; }
  .site-header .btn span { display: none; }
  .site-header .btn { padding: 10px; }
  .site-header .wrap { gap: 12px; }
  .brand { gap: 10px; }
  .langs a { padding: 7px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
