:root{
  --bg:#0a0a0b;
  --panel:#131316;
  --panel2:#17171c;
  --text:#f4f4f5;
  --muted:#b4b4bb;
  --line:#2a2a32;
  --accent:#e11d48;
  --max:1120px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:
    radial-gradient(900px 380px at 85% -8%, rgba(225,29,72,.14), transparent 58%),
    radial-gradient(800px 340px at 12% 120%, rgba(59,130,246,.10), transparent 62%),
    repeating-linear-gradient(to right, rgba(255,255,255,.035) 0, rgba(255,255,255,.035) 1px, transparent 1px, transparent 42px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.03) 0, rgba(255,255,255,.03) 1px, transparent 1px, transparent 42px),
    var(--bg);
  color:var(--text);line-height:1.6;position:relative}
body::before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.12;background-image:
    radial-gradient(circle at 20% 30%, transparent 0 120px, rgba(255,255,255,.03) 121px 122px, transparent 123px),
    radial-gradient(circle at 70% 65%, transparent 0 170px, rgba(255,255,255,.025) 171px 172px, transparent 173px),
    radial-gradient(circle at 55% 20%, transparent 0 210px, rgba(255,255,255,.02) 211px 212px, transparent 213px)}
body::after{content:"";position:fixed;inset:0;pointer-events:none;opacity:.08;background-image:radial-gradient(#fff .5px, transparent .5px);background-size:3px 3px}
.wrap{max-width:var(--max);margin:0 auto;padding:0 20px;position:relative;z-index:1}
.hero{padding:40px 0 0}
.hero .wrap{padding-bottom:34px;border-bottom:1px solid var(--line)}
.top-modules{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin:0 0 20px}
.module-chip{display:inline-flex;align-items:center;justify-content:center;padding:12px 20px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.02);color:#e7e7ea;text-decoration:none;font-weight:700;font-size:28px;line-height:1.1;transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease, color .22s ease}
.module-chip:hover{transform:translateY(-1px)}
.module-chip-active{border-color:rgba(225,29,72,.88);box-shadow:0 0 0 1px rgba(225,29,72,.35) inset;background:rgba(225,29,72,.20);text-decoration:underline;text-underline-offset:6px}

/* Variant 1 — Tactical Glass (diosarma.ru) */
body[data-nav-theme="v1"] .top-modules{gap:12px}
body[data-nav-theme="v1"] .module-chip{border-color:rgba(255,255,255,.16);background:linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.02));backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 8px 24px rgba(0,0,0,.28)}
body[data-nav-theme="v1"] .module-chip:hover{border-color:rgba(255,255,255,.34);box-shadow:inset 0 1px 0 rgba(255,255,255,.20),0 10px 28px rgba(0,0,0,.36),0 0 0 1px rgba(255,255,255,.08)}
body[data-nav-theme="v1"] .module-chip-active{color:#fff;background:linear-gradient(130deg, rgba(225,29,72,.35), rgba(236,72,153,.30) 48%, rgba(59,130,246,.24));border-color:rgba(248,113,113,.82);box-shadow:0 0 0 1px rgba(248,113,113,.45) inset,0 0 24px rgba(225,29,72,.28),0 10px 30px rgba(0,0,0,.36);text-decoration:none}

/* Variant 2 — HUD / Military UI (test.diosarma.ru) */
body[data-nav-theme="v2"] .top-modules{gap:10px}
body[data-nav-theme="v2"] .module-chip{border-radius:10px;padding:11px 18px;border-color:rgba(125,211,252,.34);background:linear-gradient(180deg, rgba(11,23,35,.92), rgba(12,18,26,.92));letter-spacing:.02em;position:relative;clip-path:polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);box-shadow:inset 0 0 0 1px rgba(56,189,248,.14),0 0 0 1px rgba(0,0,0,.55),0 10px 18px rgba(0,0,0,.28)}
body[data-nav-theme="v2"] .module-chip::after{content:"";position:absolute;left:12px;right:12px;bottom:3px;height:2px;background:linear-gradient(90deg, transparent, rgba(56,189,248,.82), transparent);opacity:.42;transition:opacity .22s ease}
body[data-nav-theme="v2"] .module-chip:hover{border-color:rgba(125,211,252,.62);box-shadow:inset 0 0 0 1px rgba(56,189,248,.24),0 0 0 1px rgba(0,0,0,.6),0 12px 22px rgba(0,0,0,.35)}
body[data-nav-theme="v2"] .module-chip:hover::after{opacity:.8}
body[data-nav-theme="v2"] .module-chip-active{color:#e0f7ff;border-color:rgba(56,189,248,.95);background:linear-gradient(180deg, rgba(12,37,58,.96), rgba(12,25,38,.96));box-shadow:inset 0 0 0 1px rgba(125,211,252,.55),0 0 22px rgba(56,189,248,.26),0 12px 22px rgba(0,0,0,.42);text-decoration:none}
body[data-nav-theme="v2"] .module-chip-active::after{opacity:1;height:3px;bottom:2px}

/* Variant 3 — Premium Minimal (app.diosarma.ru) */
body[data-nav-theme="v3"] .top-modules{gap:14px}
body[data-nav-theme="v3"] .module-chip{padding:11px 20px;border-radius:999px;border-color:rgba(255,255,255,.09);background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));color:#d7d7de;box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 5px 14px rgba(0,0,0,.22)}
body[data-nav-theme="v3"] .module-chip:hover{border-color:rgba(255,255,255,.20);background:linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.02));color:#f1f1f5}
body[data-nav-theme="v3"] .module-chip-active{color:#fff;border-color:rgba(255,255,255,.42);background:linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.05));box-shadow:inset 0 1px 0 rgba(255,255,255,.24),0 10px 22px rgba(0,0,0,.32);text-decoration:none}
.hero-layout{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:end}
.hero-right{display:flex;justify-content:flex-end;align-self:end}
.hero-figure{margin:0;width:100%;max-width:520px}
.eyebrow{margin:0 0 10px;text-transform:uppercase;letter-spacing:.14em;color:var(--muted);font-size:13px}
h1{margin:0;font-size:clamp(38px,7vw,86px);line-height:1.03;letter-spacing:.06em}
.hero-title{text-align:center;margin:0 0 22px}
.lead{max-width:900px;color:#d0d0d5;font-size:clamp(16px,2.3vw,24px);margin:14px 0 0}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:24px}
.stats-vertical{grid-template-columns:1fr;max-width:560px}
.stats>div{background:linear-gradient(180deg,var(--panel2),var(--panel));border:1px solid var(--line);border-radius:14px;padding:14px}
.stats strong{display:block;font-size:24px}
.stats span{color:var(--muted);font-size:14px}
section{padding:34px 0;border-bottom:1px solid var(--line)}
h2{font-size:clamp(28px,4vw,44px);margin:0 0 8px}
h3{margin:0 0 8px;font-size:20px}
.muted{color:var(--muted)}
.figure{margin:18px 0 0}
.figure img{display:block;width:100%;height:auto;border-radius:16px;border:1px solid var(--line)}
.figure-clickable{cursor:zoom-in}
.split-section{display:grid;grid-template-columns:1.45fr .85fr;gap:18px;align-items:start;margin-top:14px}
.split-left .grid{margin-top:0}
.split-right{display:flex;justify-content:flex-end}
.figure-compact{margin:0;width:100%;max-width:546px}

.concept-split{display:grid;grid-template-columns:1.1fr .9fr;gap:24px;align-items:center;margin-top:8px}
.concept-copy{background:linear-gradient(180deg,var(--panel2),var(--panel));border:1px solid var(--line);border-radius:14px;padding:18px;align-self:center;margin-top:-6px}
.concept-copy p{margin:0;color:#dbdbe0;font-size:clamp(17px,2vw,22px);line-height:1.55}
.concept-media{display:flex;justify-content:flex-end;margin-top:-48px}
.concept-figure{margin:0;width:100%;max-width:640px}
.concept-figure img{width:100%;height:auto;display:block;border-radius:16px;border:1px solid var(--line)}

.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.grid-single{grid-template-columns:1fr}
.card{background:linear-gradient(180deg,var(--panel2),var(--panel));border:1px solid var(--line);border-radius:14px;padding:16px}
.card p{margin:0;color:#dbdbe0}
.card-image{padding:0;overflow:hidden;min-height:180px}
.card-image img{display:block;width:100%;height:100%;min-height:180px;object-fit:cover}
.list{margin:8px 0 0;padding-left:20px}
.list li{margin:0 0 10px;color:#dbdbe0}
.footer{padding:24px 0 40px}
.footer-inner{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px}
.brand-logo{width:min(260px,72vw);height:auto;display:block;border-radius:999px;border:1px solid var(--line);background:#000;box-shadow:0 10px 28px rgba(0,0,0,.45)}
.footer p{margin:0}

.video-wrap{position:relative;max-width:720px;margin:22px auto 0;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#000}
.diarma-video{display:block;width:100%;height:360px;object-fit:contain;background:#000}

.didef-hero-split{display:grid;grid-template-columns:1.1fr .9fr;gap:20px;align-items:stretch;margin-top:16px}
.didef-hero-right{display:flex;justify-content:flex-end;align-items:stretch}
.didef-hero-figure{margin:0;width:100%;max-width:470px;height:100%}
.didef-hero-figure img{display:block;width:100%;height:100%;object-fit:cover;border-radius:16px;border:1px solid var(--line)}
.video-play{position:absolute;inset:0;margin:auto;width:88px;height:88px;border-radius:999px;border:1px solid rgba(255,255,255,.35);background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;cursor:pointer;backdrop-filter:blur(2px)}
.video-play:hover{background:rgba(0,0,0,.58)}
.play-triangle{display:block;width:0;height:0;border-top:14px solid transparent;border-bottom:14px solid transparent;border-left:22px solid #fff;margin-left:4px}

@media (max-width: 980px){
  .hero-layout{grid-template-columns:1fr}
  .hero-right{justify-content:flex-start}
  .hero-figure{max-width:100%}
  .split-section{grid-template-columns:1fr}
  .split-right{justify-content:flex-start}
  .figure-compact{max-width:100%}
  .concept-split{grid-template-columns:1fr}
  .concept-copy{margin-top:0}
  .concept-media{justify-content:flex-start;margin-top:0}
  .concept-figure{max-width:100%}
  .didef-hero-split{grid-template-columns:1fr}
  .didef-hero-right{justify-content:flex-start}
  .didef-hero-figure{max-width:100%;height:auto;margin-top:12px}
  .didef-hero-figure img{height:auto;object-fit:contain}
}

@media (max-width: 860px){
  .module-chip{font-size:18px;padding:10px 14px}
  .video-wrap{max-width:100%}
  .diarma-video{height:240px}
  .footer-actions{grid-template-columns:1fr;justify-items:center}
  .footer-actions .footer-contact,.footer-actions .install-app-btn{grid-column:auto;justify-self:center}
  .stats{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr}
}
.footer-link{color:inherit;text-decoration:none}
.footer-link:hover{text-decoration:underline}
.footer-logo-link{display:inline-flex}

.footer-contact{font-weight:700;opacity:.95}
.footer-contact:hover{opacity:1}

.footer-actions{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;width:min(760px,100%)}
.footer-actions .footer-contact{grid-column:2;justify-self:center}
.footer-actions .install-app-btn{grid-column:3;justify-self:end}
.install-app-btn{background:rgba(255,255,255,.04);color:#f4f4f5;border:1px solid var(--line);border-radius:999px;padding:6px 12px;font-size:13px;cursor:pointer}
.install-app-btn:hover{background:rgba(255,255,255,.08)}
.install-app-btn.hidden{display:none}


/* Stage A — Tactical Glass rollout (test) */
body[data-nav-theme="v1"] .hero .wrap{border-bottom-color:rgba(255,255,255,.16)}
body[data-nav-theme="v1"] .stats>div,
body[data-nav-theme="v1"] .card,
body[data-nav-theme="v1"] .concept-copy{background:linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.03));border-color:rgba(255,255,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 10px 28px rgba(0,0,0,.30);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
body[data-nav-theme="v1"] .card-image{background:rgba(255,255,255,.02)}
body[data-nav-theme="v1"] .figure img,
body[data-nav-theme="v1"] .concept-figure img,
body[data-nav-theme="v1"] .didef-hero-figure img{border-color:rgba(255,255,255,.16);box-shadow:0 12px 30px rgba(0,0,0,.34)}
body[data-nav-theme="v1"] .video-wrap{border-color:rgba(255,255,255,.16);box-shadow:0 12px 30px rgba(0,0,0,.34)}
body[data-nav-theme="v1"] .video-play{border-color:rgba(255,255,255,.44);background:linear-gradient(145deg, rgba(255,255,255,.16), rgba(0,0,0,.30));box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 10px 24px rgba(0,0,0,.34)}
body[data-nav-theme="v1"] .footer-link,
body[data-nav-theme="v1"] .footer-contact{transition:opacity .2s ease,color .2s ease}
body[data-nav-theme="v1"] .footer-link:hover,
body[data-nav-theme="v1"] .footer-contact:hover{color:#fff}
body[data-nav-theme="v1"] .install-app-btn{background:linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.03));border-color:rgba(255,255,255,.22);box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 10px 22px rgba(0,0,0,.30);transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease}
body[data-nav-theme="v1"] .install-app-btn:hover{transform:translateY(-1px);border-color:rgba(255,255,255,.35);box-shadow:inset 0 1px 0 rgba(255,255,255,.24),0 12px 28px rgba(0,0,0,.34)}





/* Stage D — Safe polish (no background changes) */
body[data-nav-theme="v1"] h1{letter-spacing:.05em}
body[data-nav-theme="v1"] h2{letter-spacing:.01em;line-height:1.12;margin-bottom:12px}
body[data-nav-theme="v1"] h3{line-height:1.25}
body[data-nav-theme="v1"] .lead{max-width:72ch;color:#dadade;line-height:1.62}
body[data-nav-theme="v1"] p,
body[data-nav-theme="v1"] .card p,
body[data-nav-theme="v1"] .muted{line-height:1.68}
body[data-nav-theme="v1"] section{padding:40px 0}
body[data-nav-theme="v1"] section h2 + .muted{max-width:84ch}

body[data-nav-theme="v1"] .card,
body[data-nav-theme="v1"] .stats>div,
body[data-nav-theme="v1"] .concept-copy{
  border-color:rgba(255,255,255,.16);
}
body[data-nav-theme="v1"] .card:hover,
body[data-nav-theme="v1"] .stats>div:hover{
  transform:translateY(-2px);
  border-color:rgba(255,255,255,.28);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 14px 30px rgba(0,0,0,.34),0 0 0 1px rgba(255,255,255,.07);
}
body[data-nav-theme="v1"] .card h3{margin-bottom:10px}

body[data-nav-theme="v1"] .footer-actions{gap:14px}
body[data-nav-theme="v1"] .footer-contact,
body[data-nav-theme="v1"] .install-app-btn{
  min-height:40px;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.17),0 10px 22px rgba(0,0,0,.30);
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
body[data-nav-theme="v1"] .footer-contact:hover,
body[data-nav-theme="v1"] .install-app-btn:hover{
  border-color:rgba(255,255,255,.36);
  transform:translateY(-1px);
}

body[data-nav-theme="v1"] .stats strong{font-size:clamp(22px,2.2vw,28px);line-height:1.1}
body[data-nav-theme="v1"] .stats span{font-size:14px;color:#c7c7cf}

@media (max-width: 860px){
  body[data-nav-theme="v1"] section{padding:34px 0}
  body[data-nav-theme="v1"] .lead{font-size:clamp(16px,4.2vw,20px)}
  body[data-nav-theme="v1"] .footer-contact,
  body[data-nav-theme="v1"] .install-app-btn{min-height:44px;padding:10px 16px}
}


/* Stage E — Content readability polish */
body[data-nav-theme="v1"] .wrap{max-width:1140px}
body[data-nav-theme="v1"] .muted{color:#c4c4cc}
body[data-nav-theme="v1"] .list{margin-top:10px;padding-left:0;list-style:none}
body[data-nav-theme="v1"] .list li{position:relative;padding-left:18px;margin:0 0 11px;color:#dfdfe5}
body[data-nav-theme="v1"] .list li::before{content:"";position:absolute;left:0;top:.68em;width:8px;height:8px;border-radius:999px;background:linear-gradient(145deg, rgba(248,113,113,.95), rgba(236,72,153,.9));box-shadow:0 0 10px rgba(225,29,72,.32)}

body[data-nav-theme="v1"] .card h3,
body[data-nav-theme="v1"] .stats strong{
  position:relative;
}
body[data-nav-theme="v1"] .card h3::after{
  content:"";
  display:block;
  width:42px;
  height:2px;
  margin-top:8px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(248,113,113,.95), rgba(125,211,252,.7));
  opacity:.75;
}

body[data-nav-theme="v1"] section > h2{
  display:inline-block;
  padding:6px 12px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:12px;
  background:linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
}

body[data-nav-theme="v1"] .hero .lead{
  padding:14px 16px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  background:linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}

@media (max-width:860px){
  body[data-nav-theme="v1"] section > h2{padding:5px 10px;border-radius:10px}
  body[data-nav-theme="v1"] .hero .lead{padding:12px 13px}
}


/* Stage F — Dual-color ambient spots (safe, no grid distortion) */
body[data-nav-theme="v1"] .ambient-spots{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  opacity:.65;
  background:
    radial-gradient(560px 300px at 12% 16%, rgba(225,29,72,.18), transparent 68%),
    radial-gradient(520px 280px at 86% 10%, rgba(59,130,246,.16), transparent 70%),
    radial-gradient(500px 260px at 18% 86%, rgba(236,72,153,.10), transparent 72%),
    radial-gradient(520px 260px at 82% 88%, rgba(56,189,248,.10), transparent 72%);
  mix-blend-mode:screen;
}
@media (max-width: 860px){
  body[data-nav-theme="v1"] .ambient-spots{opacity:.52}
}


/* Stage G — Radio signal pulses (test) */
body[data-nav-theme="v1"] .signal-layer{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  overflow:hidden;
}
body[data-nav-theme="v1"] .signal-node{
  position:absolute;
  width:10px;
  height:10px;
  margin:-5px 0 0 -5px;
  opacity:0;
  animation:signalBlink var(--dur, 10s) linear infinite;
  animation-delay:var(--delay, 0s);
}
body[data-nav-theme="v1"] .signal-node::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:999px;
  background:radial-gradient(circle, rgba(255,255,255,.95) 0 35%, rgba(248,113,113,.9) 55%, rgba(59,130,246,.75) 100%);
  box-shadow:0 0 10px rgba(248,113,113,.45), 0 0 18px rgba(59,130,246,.28);
}
body[data-nav-theme="v1"] .signal-node::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:8px;
  height:8px;
  margin:-4px 0 0 -4px;
  border-radius:999px;
  border:1px solid rgba(248,113,113,.50);
  box-shadow:0 0 0 1px rgba(59,130,246,.20) inset;
  transform:scale(.35);
  opacity:0;
  animation:signalRing var(--dur, 7.6s) ease-out infinite;
  animation-delay:var(--delay, 0s);
}
@keyframes signalBlink{
  0%{opacity:0}
  6%{opacity:.98}
  14%{opacity:.18}
  22%,100%{opacity:0}
}
@keyframes signalRing{
  0%{transform:scale(.35);opacity:0}
  4%{transform:scale(.55);opacity:.78}
  18%{transform:scale(6.4);opacity:0}
  100%{transform:scale(6.4);opacity:0}
}
@media (prefers-reduced-motion: reduce){
  body[data-nav-theme="v1"] .signal-layer{display:none}
}
