/* ATRIA site — shared styles */
/* ══════════════════════════════════════════════════════════════════
   ОФФЛАЙН ШРИФТ INTER (WOFF2) С FONT-DISPLAY: SWAP (WCAG AA & OFFLINE)
   ══════════════════════════════════════════════════════════════════ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/Inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/Inter-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/Inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/Inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB-02DD, U+02DF-02FF, U+0300-0303, U+0305-0307, U+0309-0328, U+032A-0338, U+033A-0346, U+0348-036F, U+0488-0489, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* ══════════════════════════════════════════════════════════════════
   ЭТАЛОННЫЙ ОФФЛАЙН ШРИФТ PLAYFAIR DISPLAY (WOFF2)
   ══════════════════════════════════════════════════════════════════ */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/PlayfairDisplay-Italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/PlayfairDisplay-Italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/PlayfairDisplay-Italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/PlayfairDisplay-Regular-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/PlayfairDisplay-Regular-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/PlayfairDisplay-Regular-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/JetBrainsMono-ExtraBold.woff2') format('woff2');
  unicode-range: U+0030-003A;
}

:root{
  --bg:#11141b; --card:rgba(18, 24, 38, 0.15); --card2:rgba(28, 38, 58, 0.28);
  --border:rgba(157, 180, 216, 0.14); --border2:rgba(157, 180, 216, 0.20);
  --text:#f8fafc; --muted:#cbd5e1; --muted2:#94a3b8;
  --accent:#9db4d8; --accent2:#adcae8; --accent3:#8aa3ca;
  --accent-glow:rgba(157,180,216,.24);
  --gold:#ca9d27; --green:#34d399; --cyan:#95b3f2; --pink:#c4d3f5; --red:#f87171;
  --radius:16px;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;overflow-x:clip;max-width:100vw;scroll-padding-top:96px}
body{
  background:var(--bg);color:var(--text);
  font-family:"Inter","Plus Jakarta Sans","Segoe UI",system-ui,sans-serif;
  overflow-x:clip;max-width:100vw;width:100%;line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
button, input, select, textarea { font-family: inherit; }
/* Типографика: балансировка заголовков и защита от висячих предлогов */
h1, h2, h3, h4, h5, .hero-left h1, .eyebrow {
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: manual;
}
p, .sec-sub, .rev-text, .lead, .blog-card p, .blog-content p, .feature p, .card p, .tariff p, .tariff-card p, .module-card p {
  text-wrap: pretty;
  overflow-wrap: break-word;
  hyphens: manual;
}
::selection{background:var(--accent);color:#1f2533}
a{color:var(--accent2)}

/* ---------- фон ---------- */
#bg-canvas{position:fixed;inset:0;z-index:0;display:block;pointer-events:none}
.aurora{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none;max-width:100vw;max-height:100vh;clip-path:inset(0);contain:paint}
.aurora i{position:absolute;border-radius:50%;filter:blur(100px);opacity:.16;will-change:transform}
.aurora i:nth-child(1){width:640px;height:640px;left:-140px;top:-160px;background:var(--accent3);animation:drift1 26s ease-in-out infinite alternate}
.aurora i:nth-child(2){width:560px;height:560px;right:-160px;top:16%;background:#3b4a6b;animation:drift2 32s ease-in-out infinite alternate}
.aurora i:nth-child(3){width:480px;height:480px;left:22%;bottom:-220px;background:var(--accent);animation:drift3 24s ease-in-out infinite alternate}
.aurora i:nth-child(4){width:340px;height:340px;right:16%;bottom:-120px;background:var(--green);opacity:.07;animation:drift2 30s ease-in-out infinite alternate-reverse}
@keyframes drift1{from{transform:translate(0,0) scale(1)}to{transform:translate(180px,120px) scale(1.18)}}
@keyframes drift2{from{transform:translate(0,0) scale(1.1)}to{transform:translate(-200px,90px) scale(.92)}}
@keyframes drift3{from{transform:translate(0,0) scale(.95)}to{transform:translate(140px,-140px) scale(1.15)}}
.grain{
  position:fixed;inset:0;z-index:1;pointer-events:none;opacity:.05;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
.wrap{position:relative;z-index:2}
.legal-en-notice{
  max-width:1180px;margin:104px auto 0;padding:14px 18px;border:1px solid rgba(202,157,39,.42);
  border-radius:12px;background:rgba(202,157,39,.08);color:#e8eef8;font-size:14px;line-height:1.55;
  box-sizing:border-box;
}
.legal-en-notice b{color:var(--gold)}
@media(max-width:760px){.legal-en-notice{margin:84px 14px 0;font-size:13px}}

/* ---------- навигация ---------- */
nav{
  position:fixed;top:0;left:0;right:0;z-index:900 !important;
  pointer-events:auto !important;
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 3.5vw;
  background:#11141b;
  border-bottom:none;
  box-shadow:0 10px 30px rgba(4,7,12,.35);
}
.logo{display:flex;align-items:center;gap:10px;font-family:'Inter','Segoe UI',sans-serif;font-weight:700;letter-spacing:.01em;font-size:16px;color:var(--text);text-decoration:none;flex-shrink:0}
.logo-mark{
  width:32px;height:32px;border-radius:9px;
  background:linear-gradient(135deg,var(--accent),var(--accent3));
  display:grid;place-items:center;color:#1f2533;font-size:14px;font-weight:800;
  box-shadow:0 0 18px var(--accent-glow);
}
.nav-links{
  display:flex;align-items:center;flex:1;justify-content:flex-end;
  gap:clamp(22px, 3.2vw, 52px);
  margin-left:clamp(20px, 3vw, 48px);
  flex-wrap:nowrap;white-space:nowrap;
}
.nav-links a, .nav-dropdown > a, .nav-dropdown > .nav-dd-trigger{
  color:var(--muted);text-decoration:none;font-size:16px !important;font-weight:600 !important;
  transition:color .2s;white-space:nowrap;letter-spacing:0.01em;
  pointer-events:auto !important;cursor:pointer !important;
}
.nav-links a:hover, .nav-dropdown:hover > a, .nav-dropdown > a:hover{
  color:#ffffff !important;
}
.nav-links a.current{
  color:var(--accent2) !important;
}
.nav-cta{
  padding:8px 22px !important;border-radius:10px !important;
  font-size:15px !important;font-weight:600 !important;
  color:#f1f5f9 !important;background:rgba(157, 180, 216, 0.12) !important;
  border:1px solid rgba(157, 180, 216, 0.28) !important;
  box-shadow:none !important;
  transition:all .2s ease !important;
  pointer-events:auto !important;cursor:pointer !important;
}
.nav-cta.current{
  background:rgba(157, 180, 216, 0.24) !important;
  border-color:rgba(157, 180, 216, 0.6) !important;
  color:#ffffff !important;
}
.nav-cta:hover{
  background:rgba(157, 180, 216, 0.22) !important;
  border-color:rgba(157, 180, 216, 0.5) !important;
  color:#ffffff !important;
  transform:translateY(-1px) !important;
  box-shadow:0 4px 18px rgba(157, 180, 216, 0.2) !important;
}
.nav-cta:active{
  transform:translateY(0) !important;
  background:rgba(157, 180, 216, 0.3) !important;
}
.lang-switch, .nav-tg, .atria-cookie-banner, #atriaCookieBanner{
  display:none !important;
}
.version-pill{display:none}
.burger{display:none;background:none;border:1px solid var(--border2);border-radius:10px;color:var(--text);font-size:18px;padding:6px 12px;cursor:pointer}
@media(max-width:980px){
  .nav-links{
    display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;
    background:rgb(7,9,15);border-bottom:1px solid var(--border);padding:18px 4vw;gap:16px;
    max-height:calc(100vh - 100%);overflow-y:auto;
    box-shadow:0 16px 36px rgba(0,0,0,.6);
  }
  .nav-links.open{display:flex}
  .burger{display:block}
  .nav-dropdown{width:100%;display:flex;flex-direction:column;align-items:center}
  .nav-dropdown-menu{
    position:static;width:min(360px,100%);margin-top:8px;transform:none;
    display:none;box-shadow:none;
  }
  .nav-dropdown-menu::before{display:none}
  .nav-dropdown.is-open .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu{
    display:flex;opacity:1;visibility:visible;pointer-events:auto;transform:none;
  }
}
@media(min-width:1121px) and (max-width:1360px){
  .nav-links{gap:clamp(10px,1.3vw,18px);margin-left:14px}
  .nav-search-line.ns-inline{width:200px !important;min-width:175px;margin:0 4px 0 0}
}

/* ---------- hero ---------- */
.hero{
  min-height:92vh;display:flex;flex-direction:column;justify-content:center;align-items:center;
  text-align:center;padding:130px 4vw 60px;position:relative;
}
.hero-badge{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--border2);border-radius:99px;padding:7px 16px;font-size:13px;color:var(--accent2);background:rgba(157,180,216,.07);margin-bottom:28px}
.dot{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 10px var(--green);animation:pulse 2s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}
h1{font-size:clamp(36px,6.5vw,84px);line-height:1.06;font-weight:800;letter-spacing:-.02em;max-width:1020px}
h1 .grad, h1 .h-serif.grad{
  display:inline-block;
  padding:0.02em 0.14em 0.08em 0.08em;
  margin-left:-0.08em;
  background:linear-gradient(120deg,#f8fafc 0%,#b8d4f8 48%,#6b9be2 100%);
  background-size:180% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;
  animation:shimmer 7s ease-in-out infinite alternate;
}
@keyframes shimmer{from{background-position:0% 0}to{background-position:100% 0}}
.hero p{max-width:680px;color:#e2e8f0;font-size:clamp(15px,2vw,19px);margin:26px 0 40px}
.hero-actions{display:flex;gap:16px;flex-wrap:wrap;justify-content:center}
/* ---------- кнопки ---------- */
.btn{
  display:inline-flex;align-items:center;gap:10px;padding:15px 30px;border-radius:12px;
  font-size:15px;font-weight:600;text-decoration:none;cursor:pointer;border:none;font-family:inherit;
  transition:transform .18s, box-shadow .18s, background .18s;
}
.btn-primary{background:rgba(157,180,216,0.08);color:#f8fafc;font-weight:600;border:1px solid rgba(157,180,216,0.18);box-shadow:none}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 6px 44px var(--accent-glow)}
.btn-ghost{background:rgba(157,180,216,.06);color:var(--text);border:1px solid var(--border2)}
.btn-ghost:hover{transform:translateY(-2px);background:rgba(157,180,216,.12)}
.btn svg{width:18px;height:18px;flex:none}

/* ---------- секции ---------- */
section{padding:90px 4vw;max-width:1180px;margin:0 auto}
.sec-label{color:var(--accent2);font-size:12px;letter-spacing:.28em;text-transform:uppercase;display:block;margin-bottom:14px;text-align:center}
h2{font-size:clamp(26px,4vw,44px);font-weight:800;text-align:center;letter-spacing:-.01em;margin-bottom:14px}
.sec-sub{color:var(--muted);text-align:center;max-width:660px;margin:0 auto 56px;font-size:16px}

/* ---------- статистика ---------- */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;max-width:1150px;margin:0 auto;padding:60px 4vw}
@media(max-width:820px){.stats{grid-template-columns:repeat(2,1fr)}}
.stat{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:26px;text-align:center;transition:border-color .25s, transform .25s, box-shadow .25s}
.stat:hover{border-color:var(--border2);transform:translateY(-3px);box-shadow:0 10px 34px rgba(0,0,0,.4)}
.stat b{display:block;font-size:clamp(28px,4vw,42px);font-weight:800;background:linear-gradient(120deg,var(--accent2),var(--accent));-webkit-background-clip:text;background-clip:text;color:transparent}
.stat span{color:var(--muted);font-size:13px}

/* ---------- карточки ---------- */
.features{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
@media(max-width:960px){.features{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.features,.grid-2{grid-template-columns:1fr}}
.feature{
  background:linear-gradient(165deg,var(--card2),var(--card));border:1px solid var(--border);
  border-radius:var(--radius);padding:30px;position:relative;overflow:hidden;
  transition:transform .25s, border-color .25s, box-shadow .25s;
}
.feature::before{
  content:"";position:absolute;inset:0;opacity:0;transition:opacity .3s;
  background:radial-gradient(420px 200px at 50% -40%, var(--glow,rgba(157,180,216,.16)), transparent 70%);
}
.feature:hover{transform:translateY(-5px);border-color:var(--border2);box-shadow:0 16px 48px rgba(0,0,0,.45)}
.feature:hover::before{opacity:1}
.f-icon{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;margin-bottom:18px;background:var(--iconbg,rgba(157,180,216,.1));border:1px solid var(--iconbr,var(--border2))}
.f-icon svg{width:23px;height:23px;stroke:var(--icon,var(--accent2));fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.feature h3{font-size:17px;margin-bottom:8px;font-weight:700}
.feature p{color:var(--muted);font-size:14px}
.f-tags{margin-top:16px;display:flex;flex-wrap:wrap;gap:7px}
.f-tag{font-size:11.5px;color:var(--muted);border:1px solid var(--border);padding:3px 10px;border-radius:99px;background:rgba(157,180,216,.05)}

/* ---------- шаги ---------- */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;max-width:1080px;margin-left:auto;margin-right:auto}
@media(max-width:820px){.steps{grid-template-columns:1fr}}
.step{background:linear-gradient(165deg,var(--card2),var(--card));border:1px solid var(--border);border-radius:var(--radius);padding:34px 28px;transition:transform .25s,border-color .25s}
.step:hover{transform:translateY(-4px);border-color:var(--border2)}
.step-num{font-size:52px;font-weight:800;line-height:1;margin-bottom:16px;background:linear-gradient(140deg,var(--accent2),var(--accent3));-webkit-background-clip:text;background-clip:text;color:transparent}
.step h3{font-size:17px;margin-bottom:8px}
.step p{color:var(--muted);font-size:14px}

/* ---------- галерея ---------- */
.gallery{max-width:1180px;margin:0 auto;padding:0 4vw}
.shot-frame{
  background:var(--card);border:1px solid var(--border2);border-radius:20px;overflow:hidden;
  box-shadow:0 34px 90px rgba(0,0,0,.55), 0 0 60px rgba(157,180,216,.08);cursor:pointer;position:relative;
}
.shot-frame::after{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:3;
  background:linear-gradient(120deg, transparent 30%, rgba(173,202,232,.07) 48%, transparent 62%);
  background-size:250% 100%;animation:sheen 5.5s ease-in-out infinite;
}
@keyframes sheen{from{background-position:120% 0}to{background-position:-120% 0}}
.shot-bar{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--border);background:var(--card2)}
.tb{width:11px;height:11px;border-radius:50%}
.shot-url{margin-left:12px;flex:1;color:var(--muted2);font-size:12px;background:rgba(7,9,15,.6);border:1px solid var(--border);border-radius:8px;padding:5px 12px;letter-spacing:.04em}
.shot-view{position:relative;aspect-ratio:1440/900;overflow:hidden}
.shot-view img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top;opacity:0;transform:scale(1.025);transition:opacity .55s ease, transform .8s ease}
.shot-view img.active{opacity:1;transform:scale(1)}
.shot-caption{position:absolute;left:0;right:0;bottom:0;padding:34px 22px 14px;background:linear-gradient(transparent,rgba(7,9,15,.92));font-size:14px;display:flex;justify-content:space-between;align-items:center;pointer-events:none;z-index:4}
.shot-caption b{color:var(--accent2)}
.thumbs{display:grid;grid-template-columns:repeat(7,1fr);gap:12px;margin-top:16px}
@media(max-width:820px){.thumbs{grid-template-columns:repeat(4,1fr)}}
.thumbs button{border:1px solid var(--border);background:var(--card);border-radius:10px;overflow:hidden;padding:0;cursor:pointer;aspect-ratio:16/10;transition:border-color .2s, box-shadow .2s}
.thumbs button img{width:100%;height:100%;object-fit:cover;object-position:top;display:block;opacity:.55;transition:opacity .2s}
.thumbs button:hover img{opacity:.85}
.thumbs button.active{border-color:var(--accent);box-shadow:0 0 14px var(--accent-glow)}
.thumbs button.active img{opacity:1}
.g-controls{display:flex;justify-content:center;gap:10px;margin-top:16px}
.g-btn{width:38px;height:38px;border-radius:50%;border:1px solid var(--border2);background:var(--card);color:var(--text);cursor:pointer;font-size:16px;display:grid;place-items:center;transition:background .2s,transform .2s}
.g-btn:hover{background:var(--card2);transform:scale(1.08)}
.lightbox{position:fixed;inset:0;z-index:1000;display:none;place-items:center;background:rgba(4,5,10,.92);backdrop-filter:blur(8px);padding:4vh 4vw;cursor:pointer}
.lightbox.open{display:grid}
.lightbox img{max-width:100%;max-height:88vh;border-radius:14px;border:1px solid var(--border2);box-shadow:0 30px 100px rgba(0,0,0,.8)}

/* одиночный скриншот в рамке (туториал/доки) */
.shot-single{background:var(--card);border:1px solid var(--border2);border-radius:16px;overflow:hidden;box-shadow:0 24px 70px rgba(0,0,0,.5);cursor:pointer !important}
.shot-single .shot-view{cursor:pointer !important}
.shot-single .shot-view img{opacity:1 !important;transform:none !important}

/* ---------- терминал ---------- */
.preview{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.5)}
.preview-bar{display:flex;align-items:center;gap:8px;padding:14px 18px;border-bottom:1px solid var(--border);background:var(--card2)}
.preview-title{margin-left:10px;color:var(--muted2);font-size:12px;letter-spacing:.1em}
.terminal{padding:26px;font-family:"JetBrains Mono","Cascadia Code",Consolas,monospace;font-size:13.5px;line-height:2;min-height:330px}
.tl{opacity:0;transform:translateX(-8px)}
.tl .tm{color:var(--muted2)}
.tl .ok{color:var(--green)}
.tl .ac{color:var(--accent2)}
.tl .gd{color:var(--gold)}
.cursor{display:inline-block;width:9px;height:17px;background:var(--accent);vertical-align:middle;animation:pulse 1s steps(2) infinite}

/* ---------- загрузка ---------- */
.download-card{background:linear-gradient(160deg,var(--card2),var(--card));border:1px solid transparent;border-radius:22px;padding:56px 40px;text-align:center;position:relative;overflow:hidden}
.download-card::before{
  content:"";position:absolute;inset:0;border-radius:22px;padding:1px;
  background:linear-gradient(140deg,var(--accent) 0%,transparent 30%,transparent 65%,var(--accent3) 100%);
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none;
}
.download-card::after{content:"";position:absolute;inset:-1px;background:radial-gradient(600px 240px at 50% 0%, rgba(157,180,216,.16), transparent 70%);pointer-events:none}
.dl-row{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;margin-top:34px;position:relative;z-index:1}
.dl-meta{color:var(--muted2);font-size:13px;margin-top:20px;position:relative;z-index:1;text-align:center}

/* ---------- FAQ ---------- */
.faq{
  max-width:880px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.faq details, details{
  background: rgba(18, 24, 38, 0.15) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(157, 180, 216, 0.14) !important;
  border-radius: 14px !important;
  padding: 18px 24px !important;
  margin-bottom: 0 !important;
  box-shadow: none !important;
  transition: border-color .25s ease, background .25s ease, transform .25s ease !important;
}
.faq details:hover, details:hover{
  border-color: rgba(157, 180, 216, 0.32) !important;
  background: rgba(28, 38, 58, 0.28) !important;
}
.faq details[open], details[open]{
  border-color: rgba(157, 180, 216, 0.40) !important;
  background: rgba(24, 34, 52, 0.35) !important;
}
summary{
  cursor:pointer;
  font-weight:600;
  font-size:15.5px;
  line-height:1.45;
  color:#f0f4fc;
  list-style:none;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  user-select:none;
  transition:color 0.2s ease;
}
summary::-webkit-details-marker{display:none}
summary::after{
  content:"+";
  font-family:inherit;
  font-size:24px;
  font-weight:300;
  line-height:1;
  color:var(--accent2);
  flex:none;
  transition:transform 0.25s ease, color 0.2s ease;
}
details:hover summary{
  color:#ffffff;
}
details[open] summary{
  color:var(--accent2);
}
details[open] summary::after{
  content:"−";
  transform:none;
  color:#ffffff;
}
details p, details .faq-ans{
  color:#94a3b8 !important;
  font-size:14px !important;
  line-height:1.65 !important;
  margin:12px 0 0 !important;
  padding-top:12px;
  border-top:1px solid rgba(157, 180, 216, 0.12);
  letter-spacing:0.01em;
}
details p code, details .faq-ans code{
  background:rgba(157, 180, 216, 0.12);
  border:1px solid rgba(157, 180, 216, 0.25);
  color:#ffffff;
  padding:2px 6px;
  border-radius:5px;
  font-size:12.5px;
}

/* ---------- ДОКУМЕНТАЦИЯ: layout ---------- */
.docs-layout{display:grid;grid-template-columns:260px 1fr;gap:48px;max-width:1480px;margin:0 auto;padding:120px 2vw 90px}
@media(max-width:960px){.docs-layout{grid-template-columns:1fr;padding-top:110px}}
.docs-side{position:sticky;top:86px;align-self:start;padding-right:6px;max-height:calc(100vh - 100px);overflow-y:auto;scrollbar-width:thin}
.docs-side::-webkit-scrollbar{width:6px}
.docs-side::-webkit-scrollbar-thumb{background:rgba(157,180,216,.25);border-radius:99px}
@media(max-width:960px){.docs-side{position:static;max-height:none;overflow:visible;display:flex;flex-wrap:wrap;gap:8px}}
.docs-side h4{font-size:11px;letter-spacing:.24em;text-transform:uppercase;color:var(--muted2);margin:22px 0 10px 12px}
@media(max-width:960px){.docs-side h4{width:100%;margin:6px 0 2px}}
.docs-side a{
  display:block;color:var(--muted);text-decoration:none;font-size:13.5px;
  padding:7px 12px;border-radius:9px;border:1px solid transparent;transition:all .2s;
}
.docs-side a .sec-num{
  color:var(--accent2);margin-right:8px;font-weight:600;font-size:12.5px;display:inline-block;
}
@media(max-width:960px){.docs-side a{display:inline-block}}
.docs-side a:hover{color:var(--text);background:rgba(157,180,216,.06)}
.docs-side a.active{color:var(--accent2);background:rgba(157,180,216,.1);border-color:var(--border2)}
.docs-side a.active .sec-num{color:var(--text)}
.docs-main{min-width:0}
.docs-main h1{font-size:clamp(28px,4vw,46px);margin-bottom:12px}
.docs-main h1 + .lead{color:var(--muted);font-size:17px;margin-bottom:44px;max-width:720px}
.doc-sec{padding:34px 0;border-bottom:1px solid var(--border);scroll-margin-top:90px}
.doc-sec:last-child{border-bottom:none}
.doc-sec h2{font-size:24px;text-align:left;margin-bottom:18px}
.doc-sec h2 .sec-num{color:var(--accent2);margin-right:10px;font-size:16px;vertical-align:middle}
.doc-sec h3{font-size:16.5px;margin:26px 0 10px;color:var(--text)}
.doc-sec p{color:var(--muted);font-size:14.5px;margin-bottom:12px;max-width:1000px}
.doc-sec ul,.doc-sec ol{color:var(--muted);font-size:14.5px;margin:0 0 14px 22px;max-width:1000px}
.doc-sec li{margin-bottom:7px}
.doc-sec li b{color:var(--text);font-weight:600}
.doc-sec strong{color:var(--text)}
.callout{
  display:flex;gap:12px;background:rgba(157,180,216,.07);border:1px solid var(--border2);
  border-radius:12px;padding:16px 18px;margin:18px 0;max-width:1000px;font-size:14px;color:var(--muted);
}
.callout.green{background:rgba(52,211,153,.06)}
.callout.gold{background:rgba(202,157,39,.06)}
.callout .co-icon{flex:none;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:rgba(157,180,216,.09);border:1px solid var(--border2)}
.callout .co-icon svg{width:18px;height:18px;stroke:var(--accent2);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
code{
  font-family:"JetBrains Mono","Cascadia Code",Consolas,monospace;font-size:12.5px;color:var(--accent2);
  background:rgba(157,180,216,.09);border:1px solid var(--border);border-radius:5px;padding:1.5px 5px;margin:0 1px;
  white-space:nowrap;
}
pre{
  background:#0a0d15;border:1px solid var(--border);border-radius:12px;padding:18px 20px;
  overflow:auto;margin:14px 0;max-width:100%;box-sizing:border-box;
}
pre code{background:none;border:none;padding:0;color:#c9d4f5;font-size:13px;line-height:1.75;white-space:pre-wrap;word-break:break-all}
table{border-collapse:collapse;width:100%;max-width:100%;margin:16px 0;font-size:13.5px}
th,td{border:1px solid var(--border);padding:10px 14px;text-align:left;color:var(--muted)}
th{background:var(--card2);color:var(--text);font-weight:600}
tr:hover td{background:rgba(157,180,216,.04)}
/* Тарифные таблицы (t-scroll): на узких экранах таблица скроллится внутри своего
   контейнера, шапка колонок закреплена — значения «—/✓» читаются с подписями
   Демо/Лайт/Про/Ультра без прокрутки вверх (DEF-VIS-p06-022).
   #1c263a — непрозрачный эквивалент --card2: сквозь sticky-шапку не видно строк. */
@media(max-width:720px){
  .t-scroll{max-height:72vh;overflow:auto;-webkit-overflow-scrolling:touch}
  .t-scroll th{position:sticky;top:0;z-index:2;background:#1c263a}
}
kbd{font-family:inherit;font-size:12px;border:1px solid var(--border2);border-bottom-width:2px;border-radius:6px;padding:2px 8px;background:var(--card2);color:var(--text)}

/* ---------- Скриншоты в документации с эффектом окна и зумом ---------- */
.doc-screenshot{
  margin:24px 0 28px;
  background:rgba(14,18,27,.88);
  border:1px solid rgba(157,180,216,.24);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 18px 50px rgba(0,0,0,.6), 0 0 26px rgba(157,180,216,.08);
  cursor:pointer !important;
  transition:transform .22s cubic-bezier(.16,1,.3,1),border-color .22s,box-shadow .22s;
  max-width:1000px;
}
.doc-screenshot:hover{
  transform:translateY(-2px);
  border-color:rgba(173,202,232,.45);
  box-shadow:0 22px 60px rgba(0,0,0,.7), 0 0 34px rgba(157,180,216,.18);
}
.doc-screenshot-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 16px;
  background:rgba(24,29,39,.95);
  border-bottom:1px solid rgba(157,180,216,.14);
}
.doc-shot-dots{display:inline-flex;gap:7px;align-items:center}
.doc-shot-dot{width:10px;height:10px;border-radius:50%;display:inline-block}
.doc-shot-dot.red{background:var(--red)}
.doc-shot-dot.yellow{background:var(--gold)}
.doc-shot-dot.green{background:var(--green)}
.doc-shot-title{
  font-family:"JetBrains Mono","Cascadia Code",Consolas,monospace;
  font-size:12px;
  color:var(--muted);
  letter-spacing:.03em;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.doc-shot-hint{
  font-size:11.5px;
  color:var(--accent2);
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-weight:500;
}
.doc-screenshot-img-wrap{
  position:relative;
  width:100%;
  background:#090c13;
  line-height:0;
}
.doc-screenshot-img-wrap img{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
}
.doc-screenshot-caption{
  padding:11px 16px;
  background:rgba(18,23,34,.9);
  border-top:1px solid rgba(157,180,216,.1);
  font-size:13px;
  color:var(--muted);
  line-height:1.55;
}
.doc-screenshot-caption b{color:var(--text);font-weight:600}

/* ---------- ТАРИФЫ ---------- */
.tariff-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:stretch}
@media(max-width:1100px){.tariff-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:720px){.tariff-grid{grid-template-columns:1fr}}
.tariff{
  background:linear-gradient(170deg,rgba(30,36,48,.82),rgba(24,29,39,.86));backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--border);
  border-radius:18px;padding:28px 22px;display:flex;flex-direction:column;
  transition:transform .25s, border-color .25s, box-shadow .25s;position:relative;overflow:hidden;
}
.tariff:hover{transform:translateY(-5px);border-color:var(--border2);box-shadow:0 16px 50px rgba(0,0,0,.45)}
.tariff.hot{border-color:rgba(157,180,216,.5);box-shadow:0 0 40px rgba(157,180,216,.12)}
.tariff.hot::before{content:"";position:absolute;inset:0;background:radial-gradient(300px 130px at 50% 0%, rgba(157,180,216,.15), transparent 70%);pointer-events:none}
.t-name{font-size:16px;font-weight:700;margin-bottom:4px}
/* Пакет F (#174, #178): актуальная цена слева, зачёркнутая старая — справа
   и мельче; слот цены фиксированной высоты, чтобы «Загрузка цен…» и
   «Цены временно недоступны» не рвали сетку карточек. */
.t-price{font-size:30px;font-weight:800;margin:10px 0 2px;display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 10px}
.t-price s{font-size:16px;font-weight:500;color:var(--muted2)}
.t-price small{font-size:13px;color:var(--muted2);font-weight:400}
.t-price[data-pricing-status]{min-height:40px}
.t-price[data-pricing-status="unavailable"]{font-size:14.5px;font-weight:600;line-height:1.35;align-items:center}
.t-desc{color:var(--muted);font-size:12.5px;margin-bottom:16px;min-height:38px}
/* G-005: бейдж скидки не слипается с абзацем описания. */
.tariff .t-desc{margin-top:14px}
.t-list{list-style:none;margin:0 0 22px;flex:1}
.t-list li{color:var(--muted);font-size:13px;padding:5px 0 5px 24px;position:relative}
.t-list li::before{content:"✓";position:absolute;left:0;color:var(--green);font-size:13px}
.t-list li.no::before{content:"—";color:var(--muted2)}
.t-list li b{color:var(--text);font-weight:600}
.t-btn{
  text-align:center;text-decoration:none;padding:12px;border-radius:11px;font-size:14px;font-weight:600;
  background:rgba(157,180,216,.08);color:var(--text);border:1px solid var(--border2);transition:all .2s;
}
.t-btn:hover{background:rgba(157,180,216,.16)}
.t-btn[disabled],.t-btn[aria-disabled="true"]{opacity:.55;cursor:not-allowed;pointer-events:none}
.t-badge{
  position:absolute;top:14px;right:14px;font-size:10.5px;letter-spacing:.08em;
  background:var(--card2);color:var(--accent2);border:1px solid var(--border);
  font-weight:700;padding:4px 10px;border-radius:99px;
}
.t-badge.gold{color:var(--gold)}

/* ---------- профиль ---------- */
.profile-head{
  display:flex;align-items:center;gap:20px;background:linear-gradient(160deg,var(--card2),var(--card));
  border:1px solid var(--border);border-radius:20px;padding:30px;margin-bottom:26px;flex-wrap:wrap;
}
.avatar{
  width:74px;height:74px;border-radius:50%;display:grid;place-items:center;font-size:26px;font-weight:800;
  background:linear-gradient(135deg,var(--accent),var(--accent3));color:#1f2533;box-shadow:0 0 26px var(--accent-glow);flex:none;
}
.profile-info{flex:1;min-width:220px}
.profile-info h3{font-size:20px}
.profile-info p{color:var(--muted);font-size:13.5px}
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;border:1px solid var(--border2);border-radius:99px;padding:4px 12px;color:var(--accent2);margin-top:8px}
.pill.gold{color:var(--gold);border-color:rgba(202,157,39,.4);background:rgba(202,157,39,.08)}
.pill.green{color:var(--green);border-color:rgba(52,211,153,.4);background:rgba(52,211,153,.08)}
.pill.red{color:var(--red);border-color:rgba(248,113,113,.4);background:rgba(248,113,113,.08)}

/* ---------- футер ---------- */
footer{border-top:1px solid var(--border);padding:40px 4vw;text-align:center;color:var(--muted2);font-size:13px}
footer .foot-logo{color:var(--muted);font-family:'Inter','Segoe UI',sans-serif;letter-spacing:.01em;font-weight:700;margin-bottom:8px}
footer .foot-nav{display:flex;gap:20px;justify-content:center;margin-top:14px;flex-wrap:wrap}
footer .foot-nav a{color:var(--muted2);text-decoration:none}
footer .foot-nav a:hover{color:var(--accent2)}

/* ---------- reveal ---------- */
.reveal{opacity:1;transform:none;transition:opacity .6s ease, transform .6s ease}
.reveal.on{opacity:1;transform:none}


/* страница без hero — отступ под фикс-навигацию */
.page-top{height:76px}

/* ================= v3: премиум-блоки ================= */
:root{ --serif:"Playfair Display","Georgia","Times New Roman",serif; }

/* eyebrow: надзаголовок с линией */
.eyebrow{
  display:flex;align-items:center;gap:14px;font-size:12px;letter-spacing:.3em;
  text-transform:uppercase;color:var(--accent2);font-weight:700;
}
.eyebrow::before{content:"";width:34px;height:2px;background:var(--accent);box-shadow:0 0 12px var(--accent-glow)}
.eyebrow.center{justify-content:center}
.eyebrow.center::after{content:"";width:34px;height:2px;background:var(--accent)}

/* hero: serif italic + обводка */
.h-serif{font-family:var(--serif);font-style:italic;font-weight:600;letter-spacing:-.01em}
.h-stroke{
  font-family:var(--serif);font-style:italic;font-weight:600;
  color:transparent;-webkit-text-stroke:1.5px rgba(223,231,240,.5);
}
@media(max-width:640px){.h-stroke{-webkit-text-stroke:1px rgba(223,231,240,.5)}}

/* стаггер-вход hero */
@keyframes heroUp{from{opacity:0;transform:translateY(46px)}to{opacity:1;transform:none}}
.fx{opacity:0;animation:heroUp 1s cubic-bezier(.16,1,.3,1) both}
.fx-1{animation-delay:.15s}.fx-2{animation-delay:.32s}.fx-3{animation-delay:.5s}.fx-4{animation-delay:.68s}.fx-5{animation-delay:.86s}

/* бегущая строка модулей */
.marquee{
  overflow:hidden;border:1px solid var(--border);background:var(--card);
  border-radius:2rem;padding:26px 0;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);
}
.marquee-track{display:flex;gap:12px;width:max-content;animation:mq 34s linear infinite}
.marquee:hover .marquee-track{animation-play-state:paused}
@keyframes mq{to{transform:translateX(-50%)}}
.mq-item{
  display:inline-flex;align-items:center;gap:9px;white-space:nowrap;
  border:1px solid var(--border2);border-radius:99px;padding:9px 20px;
  color:var(--muted);font-size:13.5px;background:rgba(157,180,216,.05);
}
.mq-item i{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 8px var(--accent-glow);flex:none}
.mq-item.hl{color:var(--text);border-color:rgba(157,180,216,.5)}

/* ================= 3D-карусель скриншотов ================= */
.c3d-stage{position:relative;height:620px;perspective:1200px;overflow:visible}
@media(max-width:900px){.c3d-stage.flat{height:auto;perspective:none}}
.c3d-inner{position:absolute;inset:0;transform-style:preserve-3d;transition:transform .45s ease-out}
.c3d-card{
  position:absolute;left:50%;top:50%;width:min(640px,58vw);
  border:1px solid var(--border2);border-radius:18px;overflow:hidden;cursor:pointer;
  background:var(--card);box-shadow:0 30px 80px rgba(0,0,0,.55);
  transition:transform .7s cubic-bezier(.22,1,.36,1), opacity .7s, filter .7s;
  will-change:transform,opacity;padding:0;
}
.c3d-card img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;object-position:top}
.c3d-card .c3d-cap{
  padding:12px 18px;font-size:13px;color:var(--muted);border-top:1px solid var(--border);
  background:var(--card2);display:none;
}
.c3d-stage.flat{height:auto;overflow:hidden}
.c3d-stage.flat .c3d-inner{position:static;display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 4px 18px;transform:none !important}
.c3d-stage.flat .c3d-card{position:static;transform:none !important;opacity:1 !important;filter:none !important;width:82vw;flex:none;scroll-snap-align:center;margin:0}
.c3d-stage.flat .c3d-card .c3d-cap{display:block}
.c3d-info{
  max-width:720px;
  margin:24px auto 0;
  background:rgba(14,18,27,.94);
  backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);
  border:1px solid var(--border2);
  border-radius:18px;
  padding:20px 30px;
  text-align:center;
  box-shadow:0 18px 45px rgba(0,0,0,.55);
  position:relative;
  z-index:20;
  opacity:0;
  transform:translateY(12px);
  transition:opacity .35s ease, transform .35s ease;
}
.c3d-info.show{transform:none;opacity:1}
.c3d-info h4{font-size:17px;margin-bottom:6px;color:var(--text);font-weight:700}
.c3d-info h4 b{color:var(--accent2)}
.c3d-info p{color:var(--muted);font-size:13.5px;line-height:1.55;margin-bottom:12px}
.c3d-info a{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--accent2);text-decoration:none;font-weight:600}
.c3d-info a:hover{color:var(--text);text-decoration:underline}
@media(max-width:900px){.c3d-info{margin:18px 16px 0;padding:16px 20px}}
.c3d-nav{display:flex;justify-content:center;gap:10px;margin-top:26px}
.c3d-nav .g-btn{font-size:18px}

/* наверх */
.to-top{
  display:inline-flex;align-items:center;gap:8px;border:1px solid var(--border2);
  border-radius:99px;padding:8px 18px;color:var(--muted);font-size:13px;
  text-decoration:none;background:rgba(157,180,216,.05);transition:all .2s;
}
.to-top:hover{color:var(--accent2);border-color:var(--accent);transform:translateY(-2px)}

/* ================= v4: hero с лицом, видео, spotlight-карточки ================= */

/* hero: две колонки, без избыточного двойного паддинга */
.hero.hero-v4{
  min-height:calc(100vh - 65px) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:65px 4vw 16px !important;
  box-sizing:border-box !important;
  position:relative !important;
}
.hero-v4 .hero-grid{
  display:grid !important;
  grid-template-columns:1fr 1.35fr !important;
  gap:32px !important;
  align-items:center !important;
  width:100% !important;
  max-width:1640px !important;
  margin:0 auto !important;
  padding:0 !important;
}
.hero-v4 h1{font-size:clamp(32px,4.2vw,58px);line-height:1.12}
.hero-v4 h1 .l-serif{display:block;font-size:1.32em}
.hero-v4 p{margin:20px 0 30px;font-size:clamp(15px,1.6vw,17.5px)}
.hero-actions{justify-content:flex-start}
@media(max-width:980px){.hero-actions{justify-content:center}}

/* видео-слой фона hero */
.hero-video{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.hero-video video{
  width:100%;height:100%;object-fit:cover;opacity:.16;filter:saturate(.85) brightness(.9);
  -webkit-mask-image:linear-gradient(180deg,#000 0%,transparent 92%);
  mask-image:linear-gradient(180deg,#000 0%,transparent 92%);
}

/* лицо персоны */
.hero-face{
  position:relative;width:100%;margin:0;
  transform-style:preserve-3d;will-change:transform;
}
.face-img{
  position:absolute;inset:6%;width:88%;height:88%;border-radius:50%;object-fit:cover;object-position:center 22%;
  border:1px solid rgba(173,202,232,.35);
  box-shadow:0 0 80px rgba(157,180,216,.28), inset 0 0 60px rgba(7,9,15,.55);
  z-index:2;
}
.face-ring{
  position:absolute;inset:0;border-radius:50%;z-index:1;
  background:conic-gradient(from 0deg, transparent 0deg, var(--accent) 70deg, #3b4a6b 150deg, transparent 210deg, var(--cyan) 290deg, transparent 340deg);
  -webkit-mask:radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask:radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation:spin 9s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}
.face-halo{
  position:absolute;inset:-9%;border-radius:50%;z-index:0;
  background:radial-gradient(closest-side, rgba(157,180,216,.22), transparent 72%);
  animation:haloPulse 4.5s ease-in-out infinite;
}
@keyframes haloPulse{0%,100%{transform:scale(1);opacity:.8}50%{transform:scale(1.08);opacity:1}}
.face-scan{
  position:absolute;left:8%;right:8%;height:56px;top:8%;z-index:3;border-radius:50%;
  background:linear-gradient(180deg, transparent, rgba(173,202,232,.16) 50%, transparent);
  mix-blend-mode:screen;pointer-events:none;
  animation:scanFace 4.2s ease-in-out infinite;
}
@keyframes scanFace{0%,18%{top:8%;opacity:0}30%{opacity:1}72%{top:82%;opacity:1}84%,100%{top:86%;opacity:0}}
.face-chip{
  position:absolute;z-index:5;display:inline-flex;align-items:center;gap:8px;
  background:rgba(13,16,26,.82);backdrop-filter:blur(8px);
  border:1px solid var(--border2);border-radius:12px;padding:9px 15px;
  font-size:13px;color:var(--text);white-space:nowrap;
  box-shadow:0 12px 34px rgba(0,0,0,.5);
  animation:chipFloat 5.5s ease-in-out infinite alternate;
}
.face-chip b{color:var(--accent2);font-weight:700}
.face-chip .ok{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 8px var(--green)}
.fc-1{top:6%;left:-9%;animation-delay:0s}
.fc-2{top:44%;right:-14%;animation-delay:.9s}
.fc-3{bottom:7%;left:-5%;animation-delay:1.7s}
@keyframes chipFloat{from{transform:translateY(-7px)}to{transform:translateY(7px)}}
@media(max-width:980px){
  .hero-face{width:100%;margin:8px auto 0}
  .fc-1{left:-4%}.fc-2{right:-6%}.fc-3{left:0}
}

/* интерактивные карточки: spotlight за курсором + tilt */
.feature{--mx:50%;--my:50%;transform-style:preserve-3d}
.feature::after{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:radial-gradient(340px circle at var(--mx) var(--my), rgba(157,180,216,.16), transparent 55%);
  opacity:0;transition:opacity .3s;z-index:1;
}
.feature:hover::after{opacity:1}
.feature > *{position:relative;z-index:2}
.feature .f-icon{transition:transform .3s}
.feature:hover .f-icon{transform:translateZ(26px) scale(1.08)}

/* фикс: градиентная строка hero — совмещаем вход и шиммер */
h1 .grad.fx-grad{
  opacity:0;
  animation:heroUp 1s cubic-bezier(.16,1,.3,1) .32s both, shimmer 7s ease-in-out 1s infinite alternate;
}
section#shots{overflow:hidden}

/* ================= v5: лицо из частиц + карусель с колесом ================= */

/* hero: композиция — текст слева, лицо из частиц справа как 2 дня назад */
.hero-face{
  position:relative !important;
  width:100% !important;
  height:620px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  pointer-events:none !important;
  overflow:visible !important;
}
.pf-wrap{
  position:relative !important;
  width:100% !important;
  max-width:none !important;
  height:100% !important;
  aspect-ratio:auto !important;
  margin:0 auto !important;
  transform:none !important;
  will-change:transform !important;
  overflow:visible !important;
  border-radius:0 !important;
  pointer-events:auto !important;
}
#pfCanvas{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  display:block !important;
  will-change:transform !important;
  cursor:default !important;
  -webkit-mask:none !important;
  mask:none !important;
}
.pf-halo{
  position:absolute;inset:-6%;border-radius:50%;z-index:-1;pointer-events:none;
  background:radial-gradient(closest-side, rgba(157,180,216,.22), rgba(77,124,254,.12) 50%, transparent 75%);
  filter:blur(40px);
  animation:haloPulse 6s ease-in-out infinite;
}
@media(min-width:1100px){
  .hero-v4 .pf-wrap{
    height:clamp(840px, calc(100vh - 40px), 1080px) !important;
    flex:none;
  }
}
@media(min-width:981px){
  .hero-v4 .hero-grid{
    min-height:calc(100vh - 100px);
    max-width:1540px !important;
    grid-template-columns:minmax(0, 1fr) minmax(0, 1.4fr) !important;
    gap:32px !important;
    align-items:center !important;
    margin:0 auto !important;
  }
  .hero-v4 .hero-left{
    position:relative !important;
    z-index:5 !important;
    max-width:580px !important;
  }
}
@media(max-width:980px){
  .hero.hero-v4{flex-direction:column;padding-top:95px !important}
  .hero-v4 .hero-grid{grid-template-columns:minmax(0, 1fr) !important;gap:18px !important;max-width:100% !important}
  .hero-v4 .hero-face{height:clamp(560px, 90vh, 720px) !important}
}

/* карусель: стрелочки по бокам скриншотов */
.gallery{position:relative !important;overflow:visible !important}
.c3d-stage{position:relative !important}
.c3d-nav{
  position:absolute !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  left:0 !important;
  right:0 !important;
  display:flex !important;
  justify-content:space-between !important;
  align-items:center !important;
  max-width:min(1040px, 96vw) !important;
  margin:0 auto !important;
  padding:0 8px !important;
  pointer-events:none !important;
  z-index:35 !important;
}
.c3d-nav .g-btn{
  pointer-events:auto !important;
  width:48px !important;
  height:48px !important;
  border-radius:50% !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:26px !important;
  line-height:1 !important;
  color:#f1f5f9 !important;
  background:rgba(18, 24, 38, 0.50) !important;
  backdrop-filter:blur(14px) !important;
  -webkit-backdrop-filter:blur(14px) !important;
  border:1px solid rgba(157, 180, 216, 0.22) !important;
  box-shadow:0 8px 24px rgba(0,0,0,0.45) !important;
  transition:all .2s ease !important;
  cursor:pointer !important;
}
.c3d-nav .g-btn:hover{
  border-color:var(--accent2) !important;
  color:#ffffff !important;
  background:rgba(30, 42, 64, 0.75) !important;
  transform:scale(1.1) !important;
  box-shadow:0 0 20px rgba(157, 180, 216, 0.35) !important;
}
.c3d-nav .g-btn:active{
  transform:scale(0.96) !important;
}
/* активной карточке — акцентная рамка */
.c3d-card{border-color:var(--border)}

/* Плашка описания на стыке активного и правого скриншота (половина на центре, половина на правом) */
.c3d-info{
  position:absolute !important;
  bottom:36px !important;
  left:calc(50% + min(130px, 13vw)) !important;
  right:auto !important;
  max-width:min(420px, 42vw) !important;
  margin:0 !important;
  padding:16px 22px !important;
  background:rgba(18, 24, 38, 0.18) !important;
  border:1px solid rgba(157, 180, 216, 0.18) !important;
  border-radius:14px !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  box-shadow:none !important;
  text-align:left !important;
  opacity:0;
  transform:translateY(10px);
  transition:opacity .35s ease, transform .35s ease, border-color .3s, background .3s !important;
  z-index:25 !important;
  pointer-events:auto !important;
}
.c3d-info.show{
  opacity:1 !important;
  transform:translateY(0) !important;
}
.c3d-info:hover{
  border-color:rgba(157, 180, 216, 0.35) !important;
  background:rgba(28, 38, 58, 0.32) !important;
}
.c3d-info h4{
  font-size:16px !important;
  font-weight:700 !important;
  color:#f0f4fc !important;
  margin:0 0 6px !important;
  letter-spacing:-0.01em !important;
}
.c3d-info h4 b{color:var(--accent2) !important}
.c3d-info p{
  font-size:13px !important;
  line-height:1.5 !important;
  color:#a6b5cc !important;
  margin:0 !important;
  max-width:none !important;
}
.c3d-info a{
  display:inline-flex !important;
  align-items:center !important;
  gap:6px !important;
  font-size:12.5px !important;
  font-weight:600 !important;
  color:var(--accent2) !important;
  text-decoration:none !important;
  padding:5px 12px !important;
  border-radius:8px !important;
  background:rgba(157,180,216,0.08) !important;
  border:1px solid rgba(157,180,216,0.2) !important;
  transition:all .2s ease !important;
}
.c3d-info a:hover{
  color:#ffffff !important;
  background:rgba(157,180,216,0.2) !important;
  border-color:var(--accent2) !important;
}
@media (max-width: 900px) {
  .c3d-nav{position:static !important;transform:none !important;justify-content:center !important;gap:16px !important;margin-top:14px !important}
  .c3d-info{position:static !important;max-width:100% !important;margin:16px 16px 0 !important}
}

.gallery{position:relative}

/* ATRIA Word Drift — бегущие фоновые слова */
.word-drift{
  position:fixed !important;
  inset:0 !important;
  z-index:0 !important;
  overflow:hidden !important;
  max-width:100vw !important;
  max-height:100vh !important;
  clip-path:inset(0) !important;
  contain:paint !important;
  pointer-events:none !important;
}
.word-drift span{
  position:absolute !important;
  left:0 !important;
  font-family:'Playfair Display', Georgia, serif !important;
  font-style:italic !important;
  font-weight:600 !important;
  color:rgba(223, 231, 240, 0.02) !important;
  white-space:nowrap !important;
  line-height:1 !important;
  animation-name:driftX !important;
  animation-timing-function:linear !important;
  animation-iteration-count:infinite !important;
  animation-duration:58s;
  user-select:none !important;
  will-change:transform;
}
.word-drift span.tint{
  color:rgba(157, 180, 216, 0.035) !important;
}
/* I-001: на мобильном герое фоновый word-drift не дублирует контурный заголовок. */
@media (max-width: 720px) {
  .word-drift { display: none !important; }
}
@keyframes driftX{
  from{transform:translateX(-36vw)}
  to{transform:translateX(108vw)}
}

/* плашки модулей: две встречные ленты, варианты, изюминки */
.marquee{display:flex;flex-direction:column;gap:12px;padding:30px 0;overflow:hidden;max-width:100%;contain:paint}
.mq-row{display:flex;gap:12px;width:max-content;animation:mq 34s linear infinite;padding:4px 0}
.mq-row.rev{animation-duration:44s;animation-direction:reverse}
.mq-item, .m-fill, .m-gold, .m-cyan, .m-green {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; cursor: default;
  background: rgba(18, 24, 38, 0.15) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(157, 180, 216, 0.14) !important;
  border-radius: 99px !important;
  padding: 10px 20px !important;
  color: var(--text) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  transition: transform .2s, box-shadow .2s, border-color .2s, background .2s;
}
.mq-item:hover, .m-fill:hover, .m-gold:hover, .m-cyan:hover, .m-green:hover {
  transform: translateY(-2px);
  background: rgba(28, 38, 58, 0.28) !important;
  border-color: rgba(157, 180, 216, 0.32) !important;
}
.mq-item i{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 8px var(--accent-glow);flex:none}
.mq-item em{font-style:normal;font-weight:400;font-size:12px;color:var(--accent2);opacity:.95}
.mq-item .star{font-size:11px;margin-left:2px}
.m-fill i{background:var(--accent) !important;box-shadow:0 0 8px var(--accent-glow) !important}
.m-fill em{color:var(--accent2) !important}
.m-gold{border-color:rgba(202,157,39,.35) !important}
.m-gold i{background:var(--gold);box-shadow:0 0 8px rgba(202,157,39,.55)}
.m-gold em{color:var(--gold)}
.m-cyan{border-color:rgba(149,179,242,.35) !important}
.m-cyan i{background:var(--cyan);box-shadow:0 0 8px rgba(149,179,242,.5)}
.m-cyan em{color:var(--cyan)}
.m-green{border-color:rgba(52,211,153,.35) !important}
.m-green i{background:var(--green);box-shadow:0 0 8px rgba(52,211,153,.5)}
.m-green em{color:var(--green)}

/* плавающая кнопка наверх */
#toTop{
  position:fixed;right:26px;bottom:26px;z-index:80;width:50px;height:50px;
  border-radius:50%;display:grid;place-items:center;cursor:pointer;
  background:rgba(13,16,26,.85);backdrop-filter:blur(10px);
  border:1px solid var(--border2);color:var(--accent2);
  opacity:0;pointer-events:none;transform:translateY(14px);
  transition:opacity .3s, transform .3s, border-color .2s, box-shadow .2s;
  box-shadow:0 10px 34px rgba(0,0,0,.5);
}
#toTop.show{opacity:1;pointer-events:auto;transform:none}
#toTop:hover{border-color:var(--accent);box-shadow:0 0 22px var(--accent-glow)}
#toTop svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* детали в карточках */
.f-meta{
  margin-top:16px;padding-top:13px;border-top:1px dashed var(--border);
  display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12px;color:var(--muted2);
}
.f-meta span{display:inline-flex;align-items:center;gap:6px}

/* ================= v7: шире, чище hero, узоры, растворённые края ================= */

/* ширина контента: меньше пустоты по бокам */
section{max-width:1320px}
.stats{max-width:1320px}
.gallery{max-width:1320px}

@media(min-width:981px){
  .hero-v4 .hero-grid{grid-template-columns:1.05fr .95fr;align-items:center}
  .hero-v4 .hero-left{position:relative;z-index:5}
}

/* hero: выравнивание влево, крупные строки без кривых переносов */
.hero-v4{text-align:left}
.hero-v4 .hero-badge{margin-left:0}
.hero-v4 h1{max-width:700px;line-height:1.08}
.hero-v4 h1 .l1{font-size:clamp(26px,3vw,44px);font-weight:700;letter-spacing:-.02em}
.hero-v4 h1 .l-serif{font-size:clamp(38px,4.6vw,68px);margin-top:6px}
.hero-v4 p{margin-left:0}
@media(max-width:980px){.hero-v4{text-align:center}.hero-v4 .hero-badge{margin-left:auto;margin-right:auto}.hero-v4 h1{max-width:none}.hero-v4 p{margin-left:auto;margin-right:auto}.hero-actions{justify-content:center !important}}

/* узоры на карточках: точечная сетка + микросхема в углу */
.feature{
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg fill='none' stroke='rgba(157,180,216,0.13)' stroke-width='1'%3E%3Cpath d='M170 10v50h40M150 30h40v40M190 70v40h-30M210 120h-50v40'/%3E%3Ccircle cx='170' cy='10' r='2.5' fill='rgba(173,202,232,0.35)'/%3E%3Ccircle cx='190' cy='30' r='2.5' fill='rgba(173,202,232,0.3)'/%3E%3Ccircle cx='230' cy='60' r='2.5' fill='rgba(173,202,232,0.3)'/%3E%3Ccircle cx='190' cy='110' r='2.5' fill='rgba(173,202,232,0.3)'/%3E%3Ccircle cx='160' cy='160' r='2.5' fill='rgba(173,202,232,0.25)'/%3E%3C/g%3E%3Cg fill='rgba(157,180,216,0.10)'%3E%3Ccircle cx='20' cy='180' r='1.5'/%3E%3Ccircle cx='50' cy='200' r='1.5'/%3E%3Ccircle cx='80' cy='180' r='1.5'/%3E%3Ccircle cx='35' cy='215' r='1.5'/%3E%3Ccircle cx='65' cy='215' r='1.5'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(165deg,var(--card2),var(--card));
  background-repeat:no-repeat;
  background-position:top right, 0 0;
}
/* f-meta больше не используется */

/* плавающая кнопка наверх: иконка приложения вместо стрелки */
#toTop{overflow:hidden;padding:0}
#toTop img{width:30px;height:30px;border-radius:9px;display:block}

/* карточки в блоке скачивания */
.dl-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;max-width:1080px;margin:34px auto 0}
@media(max-width:820px){.dl-grid{grid-template-columns:1fr}}
.dl-item{
  background:var(--card);border:1px solid var(--border);border-radius:var(--radius);
  padding:26px;text-align:left;transition:border-color .25s, transform .25s;
}
.dl-item:hover{border-color:var(--border2);transform:translateY(-3px)}
.dl-item h4{font-size:15.5px;margin-bottom:8px}
.dl-item p{color:var(--muted);font-size:13.5px}
.hero-v4{overflow:hidden}

/* ================= v8: вкладки-страницы, читаемые точки, разные узоры ================= */

/* навигация: увеличенный размер шрифта вкладок (16px) и выверенные отступы */
.nav-links{gap:clamp(16px, 2vw, 32px)}
.nav-links a, .nav-dropdown > a, .nav-dropdown > .nav-dd-trigger{font-size:16px !important;font-weight:600 !important}
@media(max-width:1380px){.nav-links{gap:clamp(12px, 1.4vw, 22px)}}
@media(max-width:1280px){
  nav{padding:12px 2.2vw}
  .nav-links{gap:10px;margin-left:14px}
  .nav-links a, .nav-dropdown > a, .nav-dropdown > .nav-dd-trigger{font-size:14.5px !important}
  .nav-cta{padding:7px 14px !important;font-size:14px !important}
}
.logo{font-size:16px}


/* ширина: почти на весь экран */
section{max-width:1400px}
.stats{max-width:1400px}
.gallery{max-width:1400px}
.hero-grid{max-width:1440px;padding-left:3vw;padding-right:3vw}

/* ================= ЕДИНЫЙ ДИЗАЙН КАРТОЧЕК ATRIA: 5 УЗОРОВ ПО КРУГУ ================= */
.feature,
.tariff,
.tariff-card,
.module-card,
.bundle-card,
.bundle-box,
.mod-card,
.blog-card,
.review-card,
.tool-card,
.th-card,
.tools-hub-grid > *,
.tool-panel,
.tool-work-card,
.scenario-card,
.sc-card,
.dl-item,
.step,
.stat,
.where-card,
.download-card,
.shot-single,
.review-form-box,
.tool-info-card,
.tool-ecosystem-card {
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: top right, 0 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(157, 180, 216, 0.14) !important;
  border-radius: 18px;
  box-shadow: none !important;
  transition: transform 0.25s ease, border-color 0.25s ease !important;
  position: relative;
}

.feature::before,
.tariff::before,
.tariff-card::before,
.module-card::before,
.bundle-card::before,
.bundle-box::before,
.mod-card::before,
.blog-card::before,
.review-card::before,
.tool-card::before,
.th-card::before,
.tool-panel::before,
.tool-info-card::before,
.tool-ecosystem-card::before,
.where-card::before,
.download-card::before,
.shot-single::before,
.scenario-card::before,
.sc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(157, 180, 216, 0.45), transparent);
  pointer-events: none;
  border-radius: 999px;
}

.feature:hover,
.tariff:hover,
.tariff-card:hover,
.module-card:hover,
.bundle-card:hover,
.bundle-box:hover,
.mod-card:hover,
.blog-card:hover,
.review-card:hover,
.tool-card:hover,
.th-card:hover,
.tool-panel:hover,
.tool-info-card:hover,
.tool-ecosystem-card:hover,
.where-card:hover,
.download-card:hover,
.shot-single:hover,
.scenario-card:hover,
.sc-card:hover,
.dl-item:hover {
  border-color: rgba(157, 180, 216, 0.38) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65), 0 0 25px rgba(157, 180, 216, 0.12) !important;
  transform: translateY(-3px);
}

/* 1. Микросхема и чипсет (PCB tracks & circuit pads) */
:is(.features, .blog-grid, .tariffs-grid, .tariff-grid, .tariff-grid--2x3, .tariff-grid--6col, #modulesGrid, .modules-grid, .reviews-grid, .tools-grid, .tools-hub-grid, .scenarios-grid, .dl-grid, .steps-grid, .features-grid, .bundles-grid, .where-grid, .dl-shots) > :is(.feature, .tariff, .tariff-card, .module-card, .bundle-card, .bundle-box, .mod-card, .blog-card, .review-card, .tool-card, .th-card, .scenario-card, .sc-card, .dl-item, .step, .stat, .where-card, .download-card, .shot-single):nth-child(5n+1),
.features .feature:nth-child(5n+1),
.blog-card:nth-child(5n+1),
.tariff:nth-child(5n+1),
.tariff-card:nth-child(5n+1),
.module-card:nth-child(5n+1),
.bundle-card:nth-child(5n+1),
.bundle-box:nth-child(5n+1),
.where-card:nth-child(5n+1),
.shot-single:nth-child(5n+1),
.download-card,
.review-card:nth-child(5n+1),
.tool-card:nth-child(5n+1),
.th-card:nth-child(5n+1),
.sc-card:nth-child(5n+1),
.tool-info-card:nth-child(5n+1),
.tool-ecosystem-card,
.tool-panel#tool-proxy {
  background-color: transparent !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg fill='none' stroke='rgba(157,180,216,0.14)' stroke-width='1'%3E%3Cpath d='M150 12v46h44M132 34h40v38M172 72v38h-30M196 118h-46v36'/%3E%3C/g%3E%3Cg fill='rgba(173,202,232,0.35)'%3E%3Ccircle cx='150' cy='12' r='2.5'/%3E%3Ccircle cx='172' cy='34' r='2.5'/%3E%3Ccircle cx='212' cy='58' r='2.5'/%3E%3Ccircle cx='172' cy='110' r='2.5'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(165deg, rgba(18, 24, 38, 0.14), rgba(14, 18, 28, 0.18)) !important;
  background-repeat: no-repeat !important;
  background-position: top right, 0 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(157, 180, 216, 0.14) !important;
}

/* 2. Диагональные инженерные дорожки 45° */
:is(.features, .blog-grid, .tariffs-grid, .tariff-grid, .tariff-grid--2x3, .tariff-grid--6col, #modulesGrid, .modules-grid, .reviews-grid, .tools-grid, .tools-hub-grid, .scenarios-grid, .dl-grid, .steps-grid, .features-grid, .bundles-grid, .where-grid, .dl-shots) > :is(.feature, .tariff, .tariff-card, .module-card, .bundle-card, .bundle-box, .mod-card, .blog-card, .review-card, .tool-card, .th-card, .scenario-card, .sc-card, .dl-item, .step, .stat, .where-card, .download-card, .shot-single):nth-child(5n+2),
.features .feature:nth-child(5n+2),
.blog-card:nth-child(5n+2),
.tariff:nth-child(5n+2),
.tariff-card:nth-child(5n+2),
.module-card:nth-child(5n+2),
.bundle-card:nth-child(5n+2),
.bundle-box:nth-child(5n+2),
.where-card:nth-child(5n+2),
.shot-single:nth-child(5n+2),
.review-card:nth-child(5n+2),
.tool-card:nth-child(5n+2),
.th-card:nth-child(5n+2),
.sc-card:nth-child(5n+2),
.tool-info-card:nth-child(5n+2),
.tool-info-card {
  background-color: transparent !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg stroke='rgba(157,180,216,0.11)' stroke-width='1'%3E%3Cpath d='M-20 140 140-20M-20 170 170-20M-20 200 200-20M10 170 170 10M40 200 200 40'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(165deg, rgba(18, 24, 38, 0.14), rgba(14, 18, 28, 0.18)) !important;
  background-repeat: no-repeat !important;
  background-position: top right, 0 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(157, 180, 216, 0.14) !important;
}

/* 3. Матрица микро-точек координат */
:is(.features, .blog-grid, .tariffs-grid, .tariff-grid, .tariff-grid--2x3, .tariff-grid--6col, #modulesGrid, .modules-grid, .reviews-grid, .tools-grid, .tools-hub-grid, .scenarios-grid, .dl-grid, .steps-grid, .features-grid, .bundles-grid, .where-grid, .dl-shots) > :is(.feature, .tariff, .tariff-card, .module-card, .bundle-card, .bundle-box, .mod-card, .blog-card, .review-card, .tool-card, .th-card, .scenario-card, .sc-card, .dl-item, .step, .stat, .where-card, .download-card, .shot-single):nth-child(5n+3),
.features .feature:nth-child(5n+3),
.blog-card:nth-child(5n+3),
.tariff:nth-child(5n+3),
.tariff-card:nth-child(5n+3),
.module-card:nth-child(5n+3),
.bundle-card:nth-child(5n+3),
.bundle-box:nth-child(5n+3),
.where-card:nth-child(5n+3),
.shot-single:nth-child(5n+3),
.review-card:nth-child(5n+3),
.tool-card:nth-child(5n+3),
.th-card:nth-child(5n+3),
.sc-card:nth-child(5n+3),
.tool-info-card:nth-child(5n+3),
.tool-panel#tool-tg-age {
  background-color: transparent !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='rgba(157,180,216,0.13)'%3E%3Ccircle cx='20' cy='20' r='1.6'/%3E%3Ccircle cx='50' cy='20' r='1.6'/%3E%3Ccircle cx='80' cy='20' r='1.6'/%3E%3Ccircle cx='110' cy='20' r='1.6'/%3E%3Ccircle cx='20' cy='50' r='1.6'/%3E%3Ccircle cx='50' cy='50' r='1.6'/%3E%3Ccircle cx='80' cy='50' r='1.6'/%3E%3Ccircle cx='110' cy='50' r='1.6'/%3E%3Ccircle cx='20' cy='80' r='1.6'/%3E%3Ccircle cx='50' cy='80' r='1.6'/%3E%3Ccircle cx='80' cy='80' r='1.6'/%3E%3Ccircle cx='110' cy='80' r='1.6'/%3E%3Ccircle cx='20' cy='110' r='1.6'/%3E%3Ccircle cx='50' cy='110' r='1.6'/%3E%3Ccircle cx='80' cy='110' r='1.6'/%3E%3Ccircle cx='110' cy='110' r='1.6'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(165deg, rgba(18, 24, 38, 0.14), rgba(14, 18, 28, 0.18)) !important;
  background-repeat: no-repeat !important;
  background-position: top right, 0 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(157, 180, 216, 0.14) !important;
}

/* 4. Концентрические радарные кольца */
:is(.features, .blog-grid, .tariffs-grid, .tariff-grid, .tariff-grid--2x3, .tariff-grid--6col, #modulesGrid, .modules-grid, .reviews-grid, .tools-grid, .tools-hub-grid, .scenarios-grid, .dl-grid, .steps-grid, .features-grid, .bundles-grid, .where-grid, .dl-shots) > :is(.feature, .tariff, .tariff-card, .module-card, .bundle-card, .bundle-box, .mod-card, .blog-card, .review-card, .tool-card, .th-card, .scenario-card, .sc-card, .dl-item, .step, .stat, .where-card, .download-card, .shot-single):nth-child(5n+4),
.features .feature:nth-child(5n+4),
.blog-card:nth-child(5n+4),
.tariff:nth-child(5n+4),
.tariff-card:nth-child(5n+4),
.module-card:nth-child(5n+4),
.bundle-card:nth-child(5n+4),
.bundle-box:nth-child(5n+4),
.where-card:nth-child(5n+4),
.review-card:nth-child(5n+4),
.tool-card:nth-child(5n+4),
.th-card:nth-child(5n+4),
.sc-card:nth-child(5n+4),
.tool-info-card:nth-child(5n+4),
.tool-panel#tool-circle {
  background-color: transparent !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg fill='none' stroke='rgba(157,180,216,0.12)' stroke-width='1'%3E%3Ccircle cx='150' cy='40' r='24'/%3E%3Ccircle cx='150' cy='40' r='44'/%3E%3Ccircle cx='150' cy='40' r='64'/%3E%3Ccircle cx='150' cy='40' r='2.6' fill='rgba(173,202,232,0.4)' stroke='none'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(165deg, rgba(18, 24, 38, 0.14), rgba(14, 18, 28, 0.18)) !important;
  background-repeat: no-repeat !important;
  background-position: top right, 0 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(157, 180, 216, 0.14) !important;
}

/* 5. Волновые гармоники осциллографа */
:is(.features, .blog-grid, .tariffs-grid, .tariff-grid, .tariff-grid--2x3, .tariff-grid--6col, #modulesGrid, .modules-grid, .reviews-grid, .tools-grid, .tools-hub-grid, .scenarios-grid, .dl-grid, .steps-grid, .features-grid, .bundles-grid, .where-grid, .dl-shots) > :is(.feature, .tariff, .tariff-card, .module-card, .bundle-card, .bundle-box, .mod-card, .blog-card, .review-card, .tool-card, .th-card, .scenario-card, .sc-card, .dl-item, .step, .stat, .where-card, .download-card, .shot-single):nth-child(5n+5),
.features .feature:nth-child(5n+5),
.blog-card:nth-child(5n+5),
.tariff:nth-child(5n+5),
.tariff-card:nth-child(5n+5),
.module-card:nth-child(5n+5),
.bundle-card:nth-child(5n+5),
.bundle-box:nth-child(5n+5),
.review-card:nth-child(5n+5),
.tool-card:nth-child(5n+5),
.th-card:nth-child(5n+5),
.sc-card:nth-child(5n+5),
.tool-info-card:nth-child(5n+5),
.tool-panel#tool-ggr {
  background-color: transparent !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg fill='none' stroke='rgba(157,180,216,0.13)' stroke-width='1'%3E%3Cpath d='M0 30q17-14 35 0t35 0 35 0 35 0'/%3E%3Cpath d='M0 70q17-14 35 0t35 0 35 0 35 0'/%3E%3Cpath d='M0 110q17-14 35 0t35 0 35 0 35 0'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(165deg, rgba(18, 24, 38, 0.14), rgba(14, 18, 28, 0.18)) !important;
  background-repeat: no-repeat !important;
  background-position: top right, 0 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(157, 180, 216, 0.14) !important;
}

.tool-sub-card {
  background: rgba(18, 24, 38, 0.15) !important;
  border: 1px solid rgba(157, 180, 216, 0.14) !important;
  border-radius: 14px !important;
  padding: 20px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: border-color .2s, transform .2s, box-shadow .2s !important;
}
.tool-sub-card:hover {
  border-color: rgba(149, 179, 242, 0.42) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(-2px) !important;
}

/* скачивание: компактная карточка без пустот */
.download-card{padding:38px 44px}
.dl-flex{display:grid;grid-template-columns:1.25fr .75fr;gap:36px;align-items:center;text-align:left;position:relative;z-index:1;max-width:1080px;margin:0 auto}
@media(max-width:900px){.dl-flex{grid-template-columns:1fr;text-align:center}}
.dl-flex .dl-row,.dl-flex .dl-meta{margin-top:0}
.dl-flex .dl-meta{margin-top:14px}
.dl-spec{display:grid;gap:9px;font-size:13.5px;color:var(--muted)}
.dl-spec span{display:flex;gap:10px;align-items:center}
.dl-spec b{color:var(--text);font-weight:600;min-width:74px;display:inline-block}

/* заголовок внутренних страниц */
.page-hero{padding:130px 3vw 40px;max-width:1400px;margin:0 auto;text-align:center}
.page-hero h1{font-size:clamp(30px,4.4vw,56px);max-width:none;margin:0 auto}
.page-hero .eyebrow{justify-content:center;margin-bottom:14px}
.page-hero p{color:var(--muted);max-width:640px;margin:14px auto 0;font-size:16px}

/* сетка скриншотов */
.shots-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;max-width:1400px;margin:0 auto;padding:20px 3vw 60px}
@media(max-width:1000px){.shots-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.shots-grid{grid-template-columns:1fr}}
.shots-grid .shot-single{margin:0}
.shots-grid .shot-view{aspect-ratio:16/10;cursor:pointer !important}
.shot-name{padding:12px 16px;font-size:13px;color:var(--muted);border-top:1px solid var(--border);background:var(--card2)}
.shot-name b{color:var(--accent2);font-weight:600}

/* компактные мини-карточки на главной */
.mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
@media(max-width:960px){.mini-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.mini-grid{grid-template-columns:1fr}}
.mini{
  display:flex;flex-direction:column;gap:10px;background:var(--card);border:1px solid var(--border);
  border-radius:var(--radius);padding:26px;text-decoration:none;color:var(--text);
  transition:transform .22s, border-color .22s, box-shadow .22s;position:relative;overflow:hidden;
}
.mini:hover{transform:translateY(-4px);border-color:var(--border2);box-shadow:0 14px 40px rgba(0,0,0,.4)}
.mini h3{font-size:16.5px;display:flex;align-items:center;gap:10px}
.mini h3 i{width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 10px var(--accent-glow);flex:none;font-style:normal}
.mini p{color:var(--muted);font-size:13.5px;flex:1}
.mini em{font-style:normal;color:var(--accent2);font-size:13px;font-weight:600}

/* ================= v9: акценты, hero плотнее, чат поддержки ================= */

/* акцентная градиентная кнопка */
.btn-primary{
  background:rgba(157,180,216,0.08);
  color:#f8fafc;
  font-weight:600;
  border:1px solid rgba(157,180,216,0.18);
  border-radius:10px;
  box-shadow:none;
}
.btn-primary:hover{
  background:rgba(157,180,216,0.16);
  border-color:rgba(157,180,216,0.35);
  color:#ffffff;
  box-shadow:none;
}

/* цветные акценты: цифры статистики вразнобой */
.stats .stat:nth-child(1) b{background:linear-gradient(120deg,#95b3f2,var(--accent2));-webkit-background-clip:text;background-clip:text}
.stats .stat:nth-child(2) b{background:linear-gradient(120deg,#34d399,#a7e8c6);-webkit-background-clip:text;background-clip:text}
.stats .stat:nth-child(3) b{background:linear-gradient(120deg,#e8b84b,#f0d080);-webkit-background-clip:text;background-clip:text}
.stats .stat:nth-child(4) b{background:linear-gradient(120deg,#c4d3f5,#95b3f2);-webkit-background-clip:text;background-clip:text}

/* шаги: цветные номера + плашки */
.steps .step:nth-child(1) .step-num{background:linear-gradient(140deg,#95b3f2,#6f96d0);-webkit-background-clip:text;background-clip:text}
.steps .step:nth-child(2) .step-num{background:linear-gradient(140deg,#34d399,#7fe0b8);-webkit-background-clip:text;background-clip:text}
.steps .step:nth-child(3) .step-num{background:linear-gradient(140deg,#e8b84b,#f0d080);-webkit-background-clip:text;background-clip:text}
.steps .step:nth-child(4) .step-num{background:linear-gradient(140deg,#c4d3f5,#95b3f2);-webkit-background-clip:text;background-clip:text}

/* цветные ключевые слова в тексте */
.hl-violet{color:#95b3f2;font-weight:600}
.hl-green{color:#34d399;font-weight:600}
.hl-gold{color:#e8b84b;font-weight:600}

/* блок «персона куда угодно» */
.where-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
@media(max-width:1000px){.where-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.where-grid{grid-template-columns:1fr}}
.where-card{
  background:linear-gradient(165deg,var(--card2),var(--card));border:1px solid var(--border);
  border-radius:var(--radius);padding:26px;transition:transform .25s,border-color .25s,box-shadow .25s;
  position:relative;overflow:hidden;
}
.where-card:hover{transform:translateY(-4px);border-color:var(--wc,var(--border2));box-shadow:0 14px 44px rgba(0,0,0,.4)}
.where-card .w-icon{
  width:44px;height:44px;border-radius:12px;display:grid;place-items:center;margin-bottom:14px;
  background:var(--wbg,rgba(157,180,216,.1));border:1px solid var(--wc,var(--border2));
}
.where-card .w-icon svg{width:22px;height:22px;stroke:var(--wc,var(--accent2));fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.where-card h3{font-size:16px;margin-bottom:6px}
.where-card p{color:var(--muted);font-size:13.5px}

/* чат поддержки — полупрозрачное кибер-стекло в общем дизайне */
#supportBtn{
  position:fixed;right:26px;bottom:26px;z-index:90;width:54px;height:54px;border-radius:16px;
  display:grid;place-items:center;cursor:pointer;
  background:rgba(18,24,38,0.55) !important;
  backdrop-filter:blur(16px) !important;
  -webkit-backdrop-filter:blur(16px) !important;
  border:1px solid rgba(157,180,216,0.28) !important;
  box-shadow:0 10px 32px rgba(0,0,0,0.45) !important;
  transition:transform .2s, box-shadow .2s, border-color .2s;
}
#supportBtn:hover{
  transform:scale(1.08);
  background:rgba(28,38,58,0.7) !important;
  border-color:rgba(157,180,216,0.5) !important;
  box-shadow:0 14px 40px rgba(0,0,0,0.55), 0 0 20px rgba(157,180,216,0.2) !important;
}
#supportBtn img{width:30px;height:30px;border-radius:9px;display:block}
#supportBtn svg{width:24px;height:24px;stroke:var(--accent2);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#supportChat{
  position:fixed;right:26px;bottom:96px;z-index:95;width:360px;max-width:calc(100vw - 40px);
  height:480px;max-height:calc(100vh - 130px);
  background:rgba(14,18,28,0.65) !important;
  backdrop-filter:blur(24px) !important;
  -webkit-backdrop-filter:blur(24px) !important;
  border:1px solid rgba(157,180,216,0.20) !important;
  border-radius:18px;overflow:hidden;
  display:none;flex-direction:column;
  box-shadow:0 30px 90px rgba(0,0,0,0.65), 0 0 30px rgba(157,180,216,0.06) !important;
}
#supportChat.open{display:flex}
.sc-head{
  display:flex;align-items:center;gap:12px;padding:14px 18px;
  background:rgba(18,24,38,0.5) !important;
  border-bottom:1px solid rgba(157,180,216,0.14) !important;
}
.sc-ava{width:38px;height:38px;border-radius:50%;background:rgba(149,179,242,0.2);border:1px solid rgba(149,179,242,0.35);display:grid;place-items:center;font-weight:800;color:var(--accent2);flex:none}
.sc-head b{font-size:14.5px;display:block;color:var(--text)}
.sc-head span{font-size:12px;color:var(--green);display:flex;align-items:center;gap:6px}
.sc-head .dot{width:6px;height:6px;background:var(--green);box-shadow:0 0 8px var(--green);border-radius:50%;display:inline-block}
.sc-body{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:transparent !important}
.sc-msg{max-width:82%;padding:10px 14px;border-radius:14px;font-size:13.5px;line-height:1.5}
.sc-msg.bot{
  background:rgba(18,24,38,0.45) !important;
  border:1px solid rgba(157,180,216,0.15) !important;
  color:var(--text) !important;
  align-self:flex-start;border-bottom-left-radius:4px;
}
.sc-msg.user{
  background:rgba(149,179,242,0.22) !important;
  border:1px solid rgba(149,179,242,0.35) !important;
  color:#f0f4fc !important;
  align-self:flex-end;border-bottom-right-radius:4px;
}
.sc-input{
  display:flex;gap:8px;padding:12px;
  border-top:1px solid rgba(157,180,216,0.14) !important;
  background:rgba(18,24,38,0.5) !important;
}
.sc-input input{
  flex:1;background:rgba(14,18,28,0.45) !important;
  border:1px solid rgba(157,180,216,0.18) !important;
  border-radius:10px;color:var(--text);padding:10px 14px;font-size:13.5px;font-family:inherit;outline:none;
}
.sc-input input:focus{border-color:rgba(157,180,216,0.45) !important}
.sc-input button{
  background:rgba(149,179,242,0.22) !important;
  border:1px solid rgba(149,179,242,0.35) !important;
  border-radius:10px;color:var(--accent2) !important;font-weight:700;
  padding:0 16px;cursor:pointer;font-family:inherit;transition:all .2s;
}
.sc-input button:hover{
  background:rgba(149,179,242,0.35) !important;
  border-color:rgba(149,179,242,0.6) !important;
}
.sc-input button svg{stroke:var(--accent2) !important}
.sc-quick{display:flex;flex-wrap:wrap;gap:6px;padding:0 16px 10px;background:rgba(18,24,38,0.5) !important}
.sc-quick button{
  font-size:11.5px;
  border:1px solid rgba(157,180,216,0.18) !important;
  background:rgba(18,24,38,0.35) !important;
  color:var(--muted);
  border-radius:99px;padding:5px 12px;cursor:pointer;font-family:inherit;transition:all .2s;
}
.sc-quick button:hover{
  color:var(--text);
  background:rgba(28,38,58,0.5) !important;
  border-color:rgba(157,180,216,0.4) !important;
}

/* миниатюры скринов в download */
.dl-shots{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;max-width:1080px;margin:40px auto 0}
@media(max-width:820px){.dl-shots{grid-template-columns:1fr}}
.dl-shots .shot-single{margin:0}

/* ================= v10: скроллбар, симметрия, статичное лицо ================= */

/* скроллбар в стиле панели */
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:#0e1118}
::-webkit-scrollbar-thumb{background:#2f384a;border-radius:8px;border:2px solid #0e1118}
::-webkit-scrollbar-thumb:hover{background:#43506b}
*{scrollbar-width:thin;scrollbar-color:#2f384a #0e1118}

/* шаги: симметрично 4 в ряд (только блок «Как это работает» на главной) */
#how .steps{grid-template-columns:repeat(4,1fr)}
@media(max-width:1100px){#how .steps{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){#how .steps{grid-template-columns:1fr}}

/* ленты модулей: медленнее */
.mq-row{animation-duration:62s}
.mq-row.rev{animation-duration:74s}

/* статичное лицо: тот же растворяющийся контур */
.face-static{
  display:block;width:100%;height:100%;object-fit:cover;
  -webkit-mask:radial-gradient(58% 58% at 50% 50%, #000 40%, transparent 71%);
  mask:radial-gradient(58% 58% at 50% 50%, #000 40%, transparent 71%);
}

/* ================= v11: анимация поверх статичного лица, чат v2 ================= */
#pfCanvas{position:absolute;inset:0;width:100%;height:100%;z-index:3}
.pf-halo{animation:haloPulse 6s ease-in-out infinite}
.sc-body{min-height:230px}
.sc-msg{animation:scIn .25s ease both}
@keyframes scIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.sc-input button{width:46px;display:grid;place-items:center}
.sc-input button svg{width:18px;height:18px;stroke:#101623;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.sc-typing{display:inline-flex;gap:4px;padding:12px 16px}
.sc-typing i{width:6px;height:6px;border-radius:50%;background:var(--accent2);animation:scDot 1s infinite}
.sc-typing i:nth-child(2){animation-delay:.15s}
.sc-typing i:nth-child(3){animation-delay:.3s}
@keyframes scDot{0%,100%{opacity:.3;transform:translateY(0)}50%{opacity:1;transform:translateY(-3px)}}

/* ================= v12: лицо дышит ================= */
.pf-halo{inset:-10%;animation:haloPulse 5s ease-in-out infinite}

/* ================= v14: чат v3, кнопка «скоро» ================= */
#supportChat{width:410px;height:560px;max-width:calc(100vw - 32px);max-height:calc(100vh - 110px);border-radius:20px;box-shadow:0 30px 90px rgba(0,0,0,.65);background:rgba(14,20,32,.20);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(157,180,216,.18);bottom:92px;right:24px;animation:scPop .25s ease both;display:none}
.sc-head{padding:14px 16px;gap:11px}
.sc-ava{width:36px;height:36px;border-radius:10px;overflow:hidden;padding:0;background:none;box-shadow:0 0 14px rgba(157,180,216,.4)}
.sc-ava img{width:100%;height:100%;display:block}
.sc-body{padding:14px;gap:8px;min-height:180px}
.sc-msg{font-size:13px;line-height:1.55}
.sc-msg.bot{background:rgba(18,24,38,.18);border:1px solid rgba(157,180,216,.14);border-radius:14px 14px 14px 5px}
.sc-msg.user{border-radius:14px 14px 5px 14px}
.sc-quick{padding:8px 14px 10px;gap:6px;background:transparent}
.sc-quick button{background:rgba(18,24,38,.16);border:1px solid rgba(157,180,216,.15);border-radius:9px;padding:6px 11px;font-size:11.5px}
.sc-input{padding:10px 12px;gap:9px;border-top:1px solid rgba(157,180,216,.12);background:rgba(14,20,32,.18);border-radius:0 0 20px 20px}
.sc-input input{border-radius:12px;padding:11px 14px}
.sc-input button{width:44px;height:44px;min-width:44px;border-radius:12px;background:linear-gradient(135deg,#95b3f2,#7ea6d4);box-shadow:0 4px 16px rgba(149,179,242,.3);display:grid;place-items:center;padding:0}
.sc-input button svg{width:20px;height:20px;stroke:#101623;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.sc-input input{height:44px;box-sizing:border-box}
#supportBtn{width:54px;height:54px;bottom:24px;right:24px}
#supportChat.open{display:flex}
@keyframes scPop{from{opacity:0;transform:translateY(16px) scale(.97)}to{opacity:1;transform:none}}

/* кнопка скачивания: сборка готовится */
.btn-soon{
  display:inline-flex;align-items:center;gap:10px;padding:15px 30px;border-radius:12px;
  font-size:15px;font-weight:600;font-family:inherit;border:none;cursor:not-allowed;
  background:rgba(157,180,216,.12);color:var(--muted);border:1px dashed var(--border2);
}
.btn-soon svg{width:18px;height:18px;stroke:var(--muted);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* платные модули: компактные карточки */
#paid-modules .tariff{padding:22px 18px}
#paid-modules .t-name{font-size:14.5px}
#paid-modules .t-price{font-size:22px}
#paid-modules .t-desc{min-height:0;font-size:12px}
#paid-modules .t-list li{font-size:12px;padding:3px 0 3px 20px}
@media(max-width:1100px){#paid-modules .tariff-grid{grid-template-columns:repeat(2,1fr) !important}}
@media(max-width:640px){#paid-modules .tariff-grid{grid-template-columns:1fr !important}#paid-modules .tariff.hot{grid-column:span 1 !important}}

/* подробные описания тарифов: отдельная плашка ВНИЗ под карточкой */
.t-cell{display:flex;flex-direction:column}
.t-more{
  color:var(--muted);font-size:12.5px;line-height:1.65;margin:10px 0 0;
  padding:14px 16px;border-radius:12px;
  background:rgba(24,29,39,.62);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border:1px solid var(--border);
}
.t-more[hidden]{display:none}
.t-desc{min-height:0 !important;margin-bottom:8px}
.t-list{margin-bottom:16px}

/* платные модули: подробный список */
.plist{max-width:900px;margin:0 auto}
.pl-item{background:rgba(24,29,39,.82);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid var(--border);border-radius:14px;padding:22px 26px;margin-bottom:12px;transition:border-color .25s}
.pl-item:hover{border-color:var(--border2)}
.pl-item.pl-hot{border-color:rgba(232,184,75,.45);background:linear-gradient(165deg,rgba(232,184,75,.05),var(--card))}
.pl-head{display:flex;align-items:center;gap:12px;margin-bottom:10px;flex-wrap:wrap}
.pl-emoji{width:38px;height:38px;flex:none;border-radius:11px;display:grid;place-items:center;background:rgba(232,184,75,.09);border:1px solid rgba(232,184,75,.25)}
.pl-emoji svg{width:19px;height:19px;stroke:#e8b84b;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pl-name{font-size:16px;font-weight:700}
.pl-price{margin-left:auto;color:var(--accent2);font-size:15px;white-space:nowrap}
.pl-desc{color:var(--muted);font-size:14px;margin-bottom:10px}
.pl-feat{color:var(--muted2);font-size:12.5px}
@media(max-width:640px){.pl-price{margin-left:0;width:100%}}

/* пакет «Маркетинг»: тот же стиль, что у модулей, на всю ширину сетки */
.bundle-card{
  max-width:900px;margin:0 auto 12px;box-sizing:border-box;
  background:rgba(24,29,39,.62);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border:1px solid var(--border);border-radius:14px;padding:22px 26px;transition:border-color .25s;
}
.bundle-card:hover{border-color:var(--border2)}
.bundle-card .pl-head{margin-bottom:10px}
.bundle-card .pl-desc{color:var(--muted);font-size:14px;margin-bottom:10px}
.bundle-card .pl-feat{color:var(--muted2);font-size:12.5px}

/* платные модули: 2 колонки, ряды одной высоты через subgrid */
.plist{max-width:none}
.plist-grid{display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(5,auto);gap:12px}
.plist-col{display:grid;grid-template-rows:subgrid;grid-row:1/-1;row-gap:12px}
@media(max-width:900px){.plist-grid{grid-template-columns:1fr;grid-template-rows:none}.plist-col{grid-template-rows:none;grid-row:auto;row-gap:12px}}
.plist-grid .pl-item{margin:0;box-sizing:border-box;display:flex;flex-direction:column}
.plist-grid .pl-item .pl-feat{margin-top:auto}
.pl-desc{margin-bottom:8px}
.pl-full[hidden]{display:none}
.pl-more{
  background:none;border:1px solid var(--border2);color:var(--accent2);
  border-radius:9px;padding:6px 14px;font-size:12.5px;font-weight:600;cursor:pointer;
  font-family:inherit;transition:all .2s;
}
.pl-more:hover{border-color:var(--accent);color:var(--text)}
.pl-item.open .pl-full{display:block !important}
.pl-item.open .pl-full p{margin-top:8px}
.pl-item.open{border-color:var(--border2)}

.tariff .t-more[hidden]{display:none}
.t-toggle{
  background:none;border:1px solid var(--border2);color:var(--accent2);
  border-radius:9px;padding:6px 14px;font-size:12.5px;font-weight:600;cursor:pointer;
  font-family:inherit;margin-top:10px;transition:all .2s;width:100%;
}
.t-toggle:hover{border-color:var(--accent);color:var(--text)}

/* поиск в шапке */
.nav-search-btn{
  width:38px;height:38px;border-radius:10px;border:1px solid var(--border2);
  background:var(--card);cursor:pointer;display:grid;place-items:center;transition:border-color .2s;
}
.nav-search-btn:hover{border-color:var(--accent)}
.nav-search-btn svg{width:17px;height:17px;stroke:var(--accent2);fill:none;stroke-width:2;stroke-linecap:round}
.nav-search{
  position:fixed;top:0;left:0;right:0;z-index:60;display:grid;place-items:start center;
  padding:76px 4vw 0;pointer-events:none;
}
.nav-search[hidden]{display:none}
.ns-box{
  width:min(640px,92vw);background:rgba(24,29,39,.88);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border:1px solid var(--border2);
  border-radius:16px;overflow:hidden;pointer-events:auto;
  box-shadow:0 30px 90px rgba(0,0,0,.6);
}
.ns-box input{
  width:100%;box-sizing:border-box;background:var(--card);border:none;outline:none;
  color:var(--text);font-size:15px;font-family:inherit;padding:16px 20px;
  border-bottom:1px solid var(--border);
}
.ns-results{max-height:46vh;overflow-y:auto}
.ns-item{display:flex;align-items:center;gap:12px;padding:12px 20px;cursor:pointer;border-bottom:1px solid var(--border);text-decoration:none}
.ns-item:hover{background:rgba(157,180,216,.08)}
.ns-item:last-child{border-bottom:none}
.ns-item .ns-cat{font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted2);width:120px;flex:none}
.ns-item .ns-t{color:var(--text);font-size:14px}
.ns-empty{padding:18px 20px;color:var(--muted);font-size:13.5px}

/* блоки «Подробнее о тарифах» (восстановлено) */
.plan-detail{max-width:900px;margin:0 auto 22px;background:var(--card);border:1px solid var(--border);border-radius:14px;padding:22px 28px;transition:border-color .25s;box-sizing:border-box}
.plan-detail:hover{border-color:var(--border2)}
.plan-detail h3{font-size:16px;margin:0 0 8px}
.plan-detail p{color:var(--muted);font-size:14px;margin:0;max-width:none}
#plans-details{max-width:1480px}

/* тарифные карточки: кнопки вниз и в одном стиле */
.tariff{display:flex;flex-direction:column}
.tariff .t-btn{margin-top:auto;align-self:stretch;text-align:center;background:rgba(157,180,216,.08);border:1px solid var(--border2)}

/* плашка Демо на главной */
.demo-plate{
  display:flex;align-items:center;gap:26px;flex-wrap:wrap;
  max-width:1080px;margin:0 auto 22px;padding:20px 26px;
  background:rgba(24,29,39,.62);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border:1px solid rgba(157,180,216,.32);border-radius:16px;
  text-decoration:none;transition:border-color .25s, transform .25s;
}
.demo-plate:hover{border-color:var(--accent2);transform:translateY(-3px)}
.dp-left{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.dp-badge{
  font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:#0d1117;background:var(--accent2);border-radius:6px;padding:4px 10px;
}
.dp-name{font-size:20px;font-weight:700}
.dp-price{font-size:26px;font-weight:800;color:var(--text)}
.dp-price small{font-size:13px;font-weight:500;color:var(--muted)}
.dp-list{list-style:none;display:flex;flex-wrap:wrap;gap:6px 22px;margin:0;padding:0;flex:1;min-width:260px}
.dp-list li{color:var(--muted);font-size:13px}
.dp-list li b{color:var(--text);font-weight:600}
.dp-go{font-size:14px;font-weight:700;color:var(--accent2);white-space:nowrap}
@media(max-width:760px){
  .demo-plate{gap:14px;padding:18px}
  .dp-list{min-width:100%}
  .dp-go{width:100%}
}

/* поиск: утонченная cyber-luxe строка в шапке */
.nav-search-line{position:relative}
.nav-search-line.ns-inline{
  position:relative;
  width:280px !important;
  min-width:240px;
  max-width:320px;
  margin:0 12px 0 0;
  flex:none;
}
@media(max-width:1280px){
  .nav-search-line.ns-inline{width:240px !important;min-width:200px}
}
@media(max-width:1120px){
  .nav-search-line.ns-inline{width:100% !important;max-width:none;min-width:unset;margin:0 0 10px 0}
}

/* адаптивные таблицы и предотвращение горизонтального скролла страницы */
.table-responsive, .t-scroll, .tool-info-card > div:has(table) {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  max-width: 100% !important;
  display: block !important;
}
.doc-sec {
  overflow-x: auto;
  max-width: 100%;
}
table {
  max-width: 100%;
}
.nav-search-line input{
  width:100%;height:38px;box-sizing:border-box;
  background:rgba(12, 16, 26, 0.75) !important;
  backdrop-filter:blur(16px) !important;
  -webkit-backdrop-filter:blur(16px) !important;
  border:1px solid rgba(157, 180, 216, 0.22) !important;
  border-radius:11px !important;color:#f1f5f9;font-size:13.5px;font-family:inherit;
  padding:0 16px 0 36px;outline:none;
  box-shadow:inset 0 1px 3px rgba(0,0,0,0.4);
  transition:all .22s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-search-line input::placeholder{
  color:rgba(157, 180, 216, 0.55);
}
.nav-search-line input:hover{
  border-color:rgba(157, 180, 216, 0.45) !important;
  background:rgba(16, 22, 34, 0.85) !important;
}
.nav-search-line input:focus{
  border-color:var(--accent2) !important;
  box-shadow:0 0 18px rgba(149, 179, 242, 0.28), inset 0 1px 2px rgba(0,0,0,0.5) !important;
  background:rgba(10, 14, 24, 0.96) !important;
}
.nav-search-line .ns-icon{
  position:absolute;left:12px;top:50%;transform:translateY(-50%);
  width:15px;height:15px;stroke:rgba(157, 180, 216, 0.65);fill:none;
  stroke-width:2;stroke-linecap:round;pointer-events:none;
  transition:stroke .2s ease;
}
.nav-search-line input:focus ~ .ns-icon{
  stroke:#95b3f2;
}
.nav-search-line .ns-kbd{
  display:none !important;
}
.nav-search-line .ns-drop, .ns-drop{
  position:absolute !important;top:calc(100% + 8px) !important;left:0 !important;right:auto !important;z-index:1000 !important;
  width:380px !important;min-width:320px !important;max-width:92vw !important;
  background:rgba(10, 14, 24, 0.97) !important;
  backdrop-filter:blur(24px) saturate(140%) !important;
  -webkit-backdrop-filter:blur(24px) saturate(140%) !important;
  border:1px solid rgba(157, 180, 216, 0.26) !important;
  border-radius:14px !important;
  overflow:hidden !important;
  box-shadow:0 24px 60px rgba(0,0,0,0.85), 0 0 28px rgba(149,179,242,0.15) !important;
  display:none;
}
.nav-search-line .ns-drop.open, .ns-drop.open{display:block !important}
.nav-search-line .ns-results, .ns-results{max-height:50vh !important;overflow-y:auto !important}
.nav-search-line .ns-item, .ns-item{
  display:flex !important;align-items:center !important;gap:12px !important;padding:11px 16px !important;
  border-bottom:1px solid rgba(157, 180, 216, 0.08) !important;text-decoration:none !important;
  transition:background 0.15s ease !important;cursor:pointer !important;
  white-space:normal !important;
}
.nav-search-line .ns-item:last-child, .ns-item:last-child{border-bottom:none !important}
.nav-search-line .ns-item:hover, .nav-search-line .ns-item.active, .ns-item:hover, .ns-item.active{
  background:rgba(149, 179, 242, 0.14) !important;
}
.nav-search-line .ns-cat, .ns-item .ns-cat{
  width:auto !important;min-width:70px !important;text-align:center !important;flex:none !important;
  font-size:10.5px !important;font-weight:700 !important;letter-spacing:0.06em !important;
  text-transform:uppercase !important;padding:2.5px 8px !important;border-radius:5px !important;
  background:rgba(149, 179, 242, 0.10) !important;border:1px solid rgba(149, 179, 242, 0.22) !important;color:var(--accent2) !important;
}
.nav-search-line .ns-t, .ns-item .ns-t{
  font-size:13px !important;color:#f8fafc !important;font-weight:500 !important;white-space:normal !important;
  line-height:1.45 !important;overflow:visible !important;text-overflow:clip !important;flex:1 !important;
  word-break:break-word !important;
}
.nav-search-line .ns-empty, .ns-empty{padding:18px 22px !important;color:var(--muted) !important;font-size:13px !important;text-align:center !important}
#pfCanvas, .pf-wrap, #pfCanvas:hover, .pf-wrap:hover{
  cursor:default !important;
}

/* ================= v24: единое легкое полупрозрачное стекло на всех карточках и поверхностях ================= */
.pl-item, .mini, .plan-detail,
.preview, .preview-bar,
.tool-panel, .tool-info-card, .tool-ecosystem-card, .tool-sub-card,
.th-card, .step, .tariff, .cap-card, .where-card, .docs-card,
.download-card, .dl-item, .os-card, .shot-card, .shot-single,
.bundle-box, .bundle-card, .module-card, .mod-card, .card,
.feature, .stat, .review-card, .review-form-box, .c3d-info {
  background: rgba(18, 24, 38, 0.15) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(157, 180, 216, 0.14) !important;
  box-shadow: none !important;
}
.shot-name {
  background: rgba(18, 24, 38, 0.20) !important;
  border-top: 1px solid rgba(157, 180, 216, 0.12) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.pl-item:hover, .mini:hover, .plan-detail:hover,
.step:hover, .tariff:hover, .cap-card:hover, .where-card:hover, .docs-card:hover,
.download-card:hover, .dl-item:hover, .shot-single:hover, .bundle-box:hover, .bundle-card:hover,
.feature:hover, .stat:hover, .review-card:hover, .c3d-info:hover {
  background: rgba(28, 38, 58, 0.28) !important;
  border-color: rgba(157, 180, 216, 0.32) !important;
}
.review-form-box::before { display: none !important; }
.rf-input, .rf-textarea, .rf-select {
  background: rgba(18, 24, 38, 0.20) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(157, 180, 216, 0.18) !important;
  color: #f1f5f9 !important;
  border-radius: 10px !important;
}
.rf-input:focus, .rf-textarea:focus, .rf-select:focus {
  background: rgba(28, 38, 58, 0.35) !important;
  border-color: rgba(157, 180, 216, 0.42) !important;
}
.download-card::after{display:none}
.ns-box, .ns-drop, #nsDrop{
  background: rgba(16, 22, 34, 0.88) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(157, 180, 216, 0.22) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55) !important;
}
.nav-search-line input {
  background: rgba(16, 22, 34, 0.20) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(157, 180, 216, 0.16) !important;
}
.nav-search-line input:focus {
  background: rgba(16, 22, 34, 0.35) !important;
  border-color: rgba(157, 180, 216, 0.38) !important;
}

/* Карточки #who: полупрозрачный легкий стиль */
.feature {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg fill='none' stroke='rgba(157,180,216,0.13)' stroke-width='1'%3E%3Cpath d='M170 10v50h40M150 30h40v40M190 70v40h-30M210 120h-50v40'/%3E%3Ccircle cx='170' cy='10' r='2.5' fill='rgba(173,202,232,0.35)'/%3E%3Ccircle cx='190' cy='30' r='2.5' fill='rgba(173,202,232,0.3)'/%3E%3Ccircle cx='230' cy='60' r='2.5' fill='rgba(173,202,232,0.3)'/%3E%3Ccircle cx='190' cy='110' r='2.5' fill='rgba(173,202,232,0.3)'/%3E%3Ccircle cx='160' cy='160' r='2.5' fill='rgba(173,202,232,0.25)'/%3E%3C/g%3E%3Cg fill='rgba(157,180,216,0.10)'%3E%3Ccircle cx='20' cy='180' r='1.5'/%3E%3Ccircle cx='50' cy='200' r='1.5'/%3E%3Ccircle cx='80' cy='180' r='1.5'/%3E%3Ccircle cx='35' cy='215' r='1.5'/%3E%3Ccircle cx='65' cy='215' r='1.5'/%3E%3C/g%3E%3C/svg%3E") no-repeat right top,
    linear-gradient(165deg, rgba(20, 26, 38, 0.14), rgba(11, 14, 22, 0.18)) !important;
  border: 1px solid rgba(157, 180, 216, 0.14) !important;
  border-radius: 18px !important;
  padding: 32px 28px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, box-shadow 0.25s, background 0.25s !important;
}
.feature:hover {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg fill='none' stroke='rgba(157,180,216,0.13)' stroke-width='1'%3E%3Cpath d='M170 10v50h40M150 30h40v40M190 70v40h-30M210 120h-50v40'/%3E%3Ccircle cx='170' cy='10' r='2.5' fill='rgba(173,202,232,0.35)'/%3E%3Ccircle cx='190' cy='30' r='2.5' fill='rgba(173,202,232,0.3)'/%3E%3Ccircle cx='230' cy='60' r='2.5' fill='rgba(173,202,232,0.3)'/%3E%3Ccircle cx='190' cy='110' r='2.5' fill='rgba(173,202,232,0.3)'/%3E%3Ccircle cx='160' cy='160' r='2.5' fill='rgba(173,202,232,0.25)'/%3E%3C/g%3E%3Cg fill='rgba(157,180,216,0.10)'%3E%3Ccircle cx='20' cy='180' r='1.5'/%3E%3Ccircle cx='50' cy='200' r='1.5'/%3E%3Ccircle cx='80' cy='180' r='1.5'/%3E%3Ccircle cx='35' cy='215' r='1.5'/%3E%3Ccircle cx='65' cy='215' r='1.5'/%3E%3C/g%3E%3C/svg%3E") no-repeat right top,
    linear-gradient(165deg, rgba(28, 38, 58, 0.28), rgba(16, 22, 34, 0.32)) !important;
  transform: translateY(-4px) !important;
  border-color: rgba(149, 179, 242, 0.35) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25) !important;
}
#supportChat {
  width: 410px !important;
  height: 560px !important;
  max-width: calc(100vw - 32px) !important;
  max-height: calc(100vh - 110px) !important;
  background: rgba(14, 20, 32, 0.18) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(157, 180, 216, 0.18) !important;
  border-radius: 20px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 30px rgba(149, 179, 242, 0.08) !important;
}
.sc-head {
  background: rgba(14, 20, 32, 0.16) !important;
  border-bottom: 1px solid rgba(157, 180, 216, 0.12) !important;
}
.sc-body {
  background: transparent !important;
}
.sc-msg.bot {
  background: rgba(18, 24, 38, 0.18) !important;
  border: 1px solid rgba(157, 180, 216, 0.14) !important;
  color: #f1f5f9 !important;
  backdrop-filter: none !important;
}
.sc-quick {
  background: transparent !important;
  padding: 8px 14px 10px !important;
  gap: 6px !important;
}
.sc-quick button {
  background: rgba(18, 24, 38, 0.16) !important;
  border: 1px solid rgba(157, 180, 216, 0.14) !important;
  color: #cbd5e1 !important;
  backdrop-filter: none !important;
  font-size: 11.5px !important;
  padding: 6px 11px !important;
  border-radius: 9px !important;
}
.sc-quick button:hover {
  background: rgba(28, 38, 58, 0.35) !important;
  border-color: rgba(157, 180, 216, 0.32) !important;
  color: #fff !important;
}
.feature .f-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: var(--iconbg, rgba(157, 180, 216, 0.1));
  border: 1px solid rgba(157, 180, 216, 0.22);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s, border-color 0.25s;
}
.feature:hover .f-icon {
  transform: scale(1.08);
  border-color: var(--accent);
}
.feature .f-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.feature .f-tag {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid rgba(157, 180, 216, 0.16);
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(157, 180, 216, 0.06);
  transition: all 0.2s;
}
.feature:hover .f-tag {
  border-color: rgba(149, 179, 242, 0.3);
  color: #e2e8f0;
}
#supportChat .sc-input {
  background: rgba(16, 22, 34, 0.22) !important;
  border-top: 1px solid rgba(157, 180, 216, 0.12) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.sc-input input {
  background: rgba(18, 24, 38, 0.18) !important;
  border: 1px solid rgba(157, 180, 216, 0.14) !important;
  color: #f8fafc !important;
}
.sc-input input:focus {
  background: rgba(28, 38, 58, 0.32) !important;
  border-color: rgba(157, 180, 216, 0.32) !important;
}

/* ================= modules page: filter + cards ================= */
.mod-filter{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-bottom:44px}
.mod-filter button{
  border:1px solid rgba(157,180,216,0.16) !important;background:rgba(18,24,38,0.18) !important;backdrop-filter:none !important;-webkit-backdrop-filter:none !important;color:var(--muted);
  border-radius:99px;padding:9px 22px;font-size:14px;font-weight:600;cursor:pointer;
  font-family:inherit;transition:all .2s;
}
.mod-filter button:hover{color:var(--text);border-color:rgba(157,180,216,0.35);background:rgba(28,38,58,0.28) !important}
.mod-filter button.on{background:rgba(28,38,58,0.40) !important;color:#fff;border-color:rgba(157,180,216,0.45) !important;box-shadow:none}
.mod-card.hide{display:none}

/* базовые модули: уникальные SVG-иконки по порядку */
#mod-broadcasts-v2 .f-icon svg{stroke:var(--accent2)}
#mod-reactions .f-icon svg{stroke:#34d399}
#mod-parsing .f-icon svg{stroke:#95b3f2}
#mod-chat-monitoring .f-icon svg{stroke:#e8b84b}
#mod-auto-posting .f-icon svg{stroke:#c4d3f5}
#mod-group-posts .f-icon svg{stroke:#adcae8}
#mod-account-manager .f-icon svg{stroke:#34d399}
#mod-stories .f-icon svg{stroke:#95b3f2}
#mod-moderation .f-icon svg{stroke:#f87171}
#mod-rule-builder .f-icon svg{stroke:#e8b84b}
#mod-presets .f-icon svg{stroke:#ca9d27}
#mod-invites .f-icon svg{stroke:#adcae8}

/* ================= download page: install shots layout fix ================= */
.dl-shots .shot-view{aspect-ratio:16/10;background:var(--card2);border-radius:12px 12px 0 0}

/* ================= unified section padding helpers ================= */
.section--wide{max-width:1400px;margin:0 auto;padding:0 3vw 70px}
.section--pt-sm{padding-top:10px}
.section--pt-md{padding-top:30px}
.section--pt-130{padding-top:130px}


.grid-3col{grid-template-columns:repeat(3,1fr)}
@media(max-width:620px){.grid-3col{grid-template-columns:1fr}}
.tariff-grid--3col{grid-template-columns:repeat(3,1fr)}
@media(max-width:960px){.tariff-grid--3col{grid-template-columns:1fr}}
.nav-cta.current{
  background:rgba(157, 180, 216, 0.12) !important;
  border:1px solid rgba(157, 180, 216, 0.28) !important;
  color:#f1f5f9 !important;
  box-shadow:none !important;
  outline:none !important;
}
.nav-cta.current:hover{
  background:rgba(157, 180, 216, 0.22) !important;
  border-color:rgba(157, 180, 216, 0.5) !important;
  color:#ffffff !important;
  transform:translateY(-1px) !important;
  box-shadow:0 4px 18px rgba(157, 180, 216, 0.2) !important;
}
/* тарифы на главной: 4 карточки в ряд */
.tariff-grid--4col{grid-template-columns:repeat(5,1fr)}
@media(max-width:1250px){.tariff-grid--4col{grid-template-columns:repeat(3,1fr)}}
@media(max-width:820px){.tariff-grid--4col{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.tariff-grid--4col{grid-template-columns:1fr}}
/* карточки тарифов одного размера */
.tariff-grid--4col .tariff,.tariff-grid--3col .tariff{height:auto;min-height:100%;align-self:stretch}
.tariff-grid--4col .tariff .t-btn,.tariff-grid--3col .tariff .t-btn{margin-top:auto}
.tariff-grid--4col,.tariff-grid--3col{align-items:stretch}

/* лайтбокс: стрелки перелистывания */
.lightbox{position:fixed}
.lb-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:52px;height:52px;border-radius:50%;border:1px solid var(--border2);background:rgba(24,29,39,.7);color:var(--text);font-size:30px;line-height:1;cursor:pointer;backdrop-filter:blur(10px)}
.lb-nav:hover{border-color:var(--accent);color:var(--accent2)}
.lb-prev{left:2vw}
.lb-next{right:2vw}

/* тарифы: все карточки одного размера в любой сетке */
.tariff-grid > .tariff{height:auto;min-height:100%;display:flex;flex-direction:column}
.tariff-grid > .tariff .t-list{flex:1;min-height:9.5em}
.tariff-grid > .tariff .t-desc{min-height:3.2em}
/* курсор на стрелках и картинке лайтбокса */
.lightbox .lb-nav{cursor:pointer}
.lightbox img{cursor:default}

/* ================= 6 тарифов ($): 2 ряда по 3 широкие карточки ================= */
.tariff-grid--6col, .tariff-grid--2x3 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  align-items: stretch !important;
  max-width: 1240px;
  margin: 0 auto;
}
@media(max-width: 1040px){
  .tariff-grid--6col, .tariff-grid--2x3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}
@media(max-width: 660px){
  .tariff-grid--6col, .tariff-grid--2x3 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}
.tariff-grid--6col .tariff, .tariff-grid--2x3 .tariff {
  padding: 30px 24px !important;
  min-height: 490px !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}
.tariff-grid--6col .t-price, .tariff-grid--2x3 .t-price {
  font-size: 32px !important;
}
.tariff-year {
  font-size: 12.5px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 12px;
}

/* Переключатель языков RU | EN и ссылка на ТГ-бота в шапке */
.lang-switch{
  display:inline-flex;align-items:center;border:1px solid var(--border2);border-radius:9px;
  overflow:hidden;background:rgba(24,29,39,.75);margin-left:4px;flex:none;
}
.lang-switch button{
  background:none;border:none;color:var(--muted);font-size:12px;font-weight:700;
  padding:5px 9px;cursor:pointer;font-family:inherit;transition:all .2s;letter-spacing:.04em;
}
.lang-switch button:hover{color:var(--text)}
.lang-switch button.active{background:var(--accent);color:#101623}
.nav-tg{
  display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:9px;
  border:1px solid rgba(149,179,242,.38);background:rgba(149,179,242,.08);
  color:var(--accent2) !important;font-size:13px !important;font-weight:600 !important;
  text-decoration:none;transition:all .2s;white-space:nowrap;
}
.nav-tg:hover{background:rgba(149,179,242,.18);border-color:var(--accent);transform:translateY(-1px)}
.nav-tg svg{width:15px;height:15px;fill:currentColor;flex:none}

/* Пакеты платных модулей (Bundles) */
.bundles-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;max-width:1240px;margin:0 auto 26px}
@media(max-width:980px){.bundles-grid{grid-template-columns:1fr}}
.bundle-box{
  padding:24px;
  display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden;
}
.bundle-box:hover{transform:translateY(-4px);border-color:var(--accent);box-shadow:0 16px 44px rgba(0,0,0,.45)}
.bundle-box.gold{border-color:rgba(232,184,75,.5);box-shadow:0 0 34px rgba(232,184,75,.1)}
.bundle-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px}
.bundle-title{font-size:17px;font-weight:800;color:var(--text)}
.bundle-price{font-size:24px;font-weight:800;color:var(--accent2);white-space:nowrap}
.bundle-box.gold .bundle-price{color:var(--gold)}
.bundle-save{display:inline-block;font-size:11.5px;font-weight:700;color:var(--green);background:rgba(52,211,153,.1);border:1px solid rgba(52,211,153,.3);padding:3px 9px;border-radius:99px;margin-bottom:10px}
.drm-banner{
  max-width:1100px;margin:0 auto 30px;padding:20px 26px;border-radius:16px;
  background:linear-gradient(135deg,rgba(149,179,242,.1),rgba(52,211,153,.06));
  border:1px solid rgba(149,179,242,.35);display:flex;align-items:center;gap:18px;flex-wrap:wrap;
}
.drm-badge{
  padding:6px 12px;border-radius:8px;background:rgba(232,184,75,.15);border:1px solid rgba(232,184,75,.45);
  color:var(--gold);font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;flex:none;
}

/* Подробные блоки возможностей (Менеджер, Защита, Экосистема) — чёткая тёмная основа без просвечивания */


/* Отзывы с премодерацией в фирменном стиле ATRIA */
.reviews-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-bottom:44px}
@media(max-width:960px){.reviews-grid{grid-template-columns:1fr}}
.review-card{
  background-color: transparent !important;
  backdrop-filter: blur(14px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(135%) !important;
  border: 1px solid rgba(157,180,216,.18);
  border-radius:20px;padding:28px 26px;display:flex;flex-direction:column;gap:16px;
  box-shadow:0 16px 40px rgba(0,0,0,.38);position:relative;overflow:hidden;
  transition:transform .28s cubic-bezier(.16,1,.3,1),border-color .28s ease,box-shadow .28s ease;
}
.review-card::before{
  content:'';position:absolute;top:0;left:0;right:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(215,235,255,.35),transparent);
  pointer-events:none;
}
.review-card:hover{
  transform:translateY(-5px);
  border-color:rgba(157,180,216,.42);
  box-shadow:0 24px 50px rgba(0,0,0,.55),0 0 30px rgba(157,180,216,.14);
}
.rev-head{display:flex;align-items:center;gap:14px}
.rev-ava{
  width:48px;height:48px;border-radius:14px;
  background:linear-gradient(135deg,rgba(157,180,216,.22),rgba(77,124,254,.32));
  border:1px solid rgba(157,180,216,.35);
  color:#f8fafc;font-weight:700;font-size:15px;letter-spacing:.05em;
  display:grid;place-items:center;flex:none;
  box-shadow:0 4px 14px rgba(0,0,0,.25);
}
.rev-ava-img{
  width:46px;height:46px;border-radius:50%;object-fit:cover;
  border:1.5px solid rgba(157,180,216,.4);
  box-shadow:0 4px 14px rgba(0,0,0,.45),0 0 12px rgba(157,180,216,.18);
  flex:none;display:block;
}
.rev-meta{flex:1;min-width:0}
.rev-meta b{display:block;font-size:14.5px;font-weight:700;color:#f8fafc;line-height:1.35;margin-bottom:4px}
.rev-meta span{display:block;font-size:12.5px;color:#94a3b8;font-weight:500}
.rev-stars{margin-left:auto;color:var(--gold);font-size:14px;letter-spacing:2px;text-shadow:0 0 10px rgba(202,157,39,.35);flex:none}
.rev-text{color:#cbd5e1;font-size:14px;line-height:1.7;flex:1;font-style:normal}
.rev-tag{
  font-size:11.5px;font-weight:600;color:var(--accent2);
  background:rgba(157,180,216,.08);border:1px solid rgba(157,180,216,.2);
  border-radius:99px;padding:5px 12px;align-self:flex-start;letter-spacing:.02em;
}

.review-form-box{
  max-width:860px;margin:0 auto;
  background: rgba(18, 24, 38, 0.15) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(157, 180, 216, 0.14) !important;
  border-radius: 22px; padding: 38px 40px;
  box-shadow: none !important;
  position:relative;overflow:hidden;
}
.review-form-box::before{ display: none !important; }
@media(max-width:680px){.review-form-box{padding:26px 20px}}
.review-form-box h3{margin:0;font-size:21px;font-weight:700;letter-spacing:-.01em;color:#f8fafc}
.review-form-box p{color:var(--muted);font-size:13.5px;margin:6px 0 0}
.rf-grid{display:grid;grid-template-columns:1.2fr 1.2fr 160px;gap:16px;margin-bottom:16px}
@media(max-width:760px){.rf-grid{grid-template-columns:1fr}}
.rf-input,.rf-textarea,.rf-select{
  width:100%;
  background: rgba(18, 24, 38, 0.20) !important;
  border: 1px solid rgba(157, 180, 216, 0.16) !important;
  border-radius: 12px;
  color: #f8fafc !important;
  padding: 13px 16px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  box-sizing: border-box;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.rf-input::placeholder,.rf-textarea::placeholder{color:#475569}
.rf-select{
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239db4d8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:16px;
  padding-right:38px;cursor:pointer;
}
.rf-select option{background:#0f1523;color:#f8fafc}
.rf-input:focus,.rf-textarea:focus,.rf-select:focus{
  border-color: rgba(157, 180, 216, 0.40) !important;
  box-shadow: 0 0 0 2px rgba(157, 180, 216, 0.15) !important;
  background: rgba(28, 38, 58, 0.35) !important;
}
.rf-textarea{min-height:110px;resize:vertical;line-height:1.6}
.rf-grid > div > label, .review-form-box form label, .rf-label{
  display:block;font-size:12.5px;color:#94a3b8;margin-bottom:7px;font-weight:600;letter-spacing:.02em;
}
.review-form-box button[type="submit"]{
  width:100%;justify-content:center;padding:14px;font-size:15px;font-weight:600;
  border-radius:12px;background:linear-gradient(135deg,var(--accent),var(--accent3));
  color:#0b0f19;border:none;cursor:pointer;
  box-shadow:0 0 24px var(--accent-glow);
  transition:transform .2s ease,box-shadow .2s ease,filter .2s ease;
}
.review-form-box button[type="submit"]:hover{
  transform:translateY(-2px);filter:brightness(1.1);
  box-shadow:0 6px 28px rgba(157,180,216,.35);
}
.moderation-alert{
  display:none;margin-top:18px;padding:16px 20px;border-radius:12px;
  background:rgba(52,211,153,.12);border:1px solid rgba(52,211,153,.4);color:#34d399;
  font-size:14px;font-weight:600;align-items:center;gap:12px;
  box-shadow:0 8px 24px rgba(52,211,153,.12);
}
.moderation-alert.show{display:flex;animation:scIn .3s ease both}

/* Страница инструментов (tools.html) */
.tool-panel{
  border-radius:20px;padding:34px;margin-bottom:34px;
}
.circle-grid{display:grid;grid-template-columns:380px 1fr;gap:34px;align-items:center}
@media(max-width:920px){.circle-grid{grid-template-columns:1fr}}
.circle-stage-wrap{
  width:340px;height:340px;margin:0 auto;position:relative;border-radius:50%;
  border:3px solid var(--accent);box-shadow:0 0 45px rgba(157,180,216,.25);
  overflow:hidden;background:#0b0e14;display:grid;place-items:center;
}
.circle-stage-wrap canvas{width:100%;height:100%;display:block;border-radius:50%}
.tool-controls{display:grid;gap:16px}
.tool-ctrl-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.tool-ctrl-row label{min-width:140px;font-size:13.5px;color:var(--muted);font-weight:600}
.tool-ctrl-row input[type="range"]{flex:1;accent-color:var(--accent)}

/* Технические статьи и руководства (docs.html) */
.alina-editor-card{
  max-width:1100px;margin:0 auto 36px;padding:26px 30px;border-radius:18px;
  background:linear-gradient(135deg,rgba(149,179,242,.12),rgba(24,29,39,.8));
  border:1px solid rgba(149,179,242,.38);display:flex;align-items:center;gap:22px;flex-wrap:wrap;
}
.blog-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
@media(max-width:860px){.blog-grid{grid-template-columns:1fr}}
.blog-card{
  border: 1px solid rgba(157, 180, 216, 0.18) !important;
  border-radius: 18px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .25s, transform .25s, box-shadow .25s !important;
}
.blog-card:hover{
  border-color: rgba(157, 180, 216, 0.38) !important;
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65), 0 0 25px rgba(157, 180, 216, 0.12) !important;
}
.blog-card h3{font-size:20px;line-height:1.35;text-wrap:balance}
.blog-meta{display:flex;gap:10px;align-items:center;font-size:12px;color:var(--muted2);flex-wrap:wrap}
.blog-steps{background:rgba(13,16,24,.65);border:1px solid var(--border);border-radius:12px;padding:16px 20px;margin-top:8px}
.blog-steps ol{margin-left:18px;color:var(--muted);font-size:13.5px;display:grid;gap:6px}

/* Полноценные длинные статьи документации и руководств */
.blog-card.is-expanded {
  grid-column: 1 / -1;
  border-color: rgba(157, 180, 216, 0.45) !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 35px rgba(157, 180, 216, 0.12) !important;
}
.blog-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(157, 180, 216, 0.08);
  border: 1px solid rgba(157, 180, 216, 0.22);
  color: var(--accent2);
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  align-self: flex-start;
  transition: all 0.2s ease;
}
.blog-expand-btn:hover {
  background: rgba(157, 180, 216, 0.16);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}
.blog-content {
  display: none;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(157, 180, 216, 0.16);
  color: #e2e8f0;
  font-size: 14.5px;
  line-height: 1.75;
}
.blog-card.is-expanded .blog-content {
  display: block;
  animation: fadeIn 0.25s ease;
}
.blog-content h4 {
  font-size: 17px;
  color: #f8fafc;
  margin: 24px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.blog-content h4::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--accent);
  border-radius: 2px;
  flex: none;
}
.blog-content p {
  color: var(--muted);
  margin-bottom: 12px;
}
.blog-content strong, .blog-content b {
  color: #f8fafc;
  font-weight: 600;
}
.blog-callout {
  background: rgba(149, 179, 242, 0.07);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 13px 18px;
  margin: 16px 0;
  font-size: 13.5px;
  color: #e2e8f0;
}
.blog-callout b {
  color: var(--accent2);
}
.blog-code {
  background: #090c13;
  border: 1px solid rgba(157, 180, 216, 0.18);
  border-radius: 10px;
  padding: 14px 18px;
  font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
  font-size: 12.5px;
  color: var(--accent2);
  overflow-x: auto;
  margin: 14px 0;
  line-height: 1.6;
}
.blog-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 13.5px;
}
.blog-table th, .blog-table td {
  padding: 10px 14px;
  border: 1px solid rgba(157, 180, 216, 0.16);
  text-align: left;
}
.blog-table th {
  background: rgba(149, 179, 242, 0.12);
  color: #f8fafc;
  font-weight: 600;
}
.blog-table td {
  color: var(--muted);
  background: rgba(13, 16, 24, 0.4);
}

/* Модальное окно юридических документов и статей */
.legal-modal{
  position:fixed;inset:0;z-index:1001;background:rgba(6,8,14,.86);backdrop-filter:blur(10px);
  display:none;place-items:center;padding:4vh 4vw;
}
.legal-modal.open{display:grid}
.legal-box{
  width:min(820px,94vw);max-height:86vh;overflow-y:auto;background:var(--card2);
  border:1px solid var(--border2);border-radius:18px;padding:34px;position:relative;
  box-shadow:0 30px 90px rgba(0,0,0,.75);
}
.legal-close{
  position:sticky;top:0;float:right;background:var(--card);border:1px solid var(--border2);
  color:var(--text);width:36px;height:36px;border-radius:10px;font-size:20px;cursor:pointer;
}
.legal-box h2{text-align:left;font-size:24px;margin-bottom:16px}
.legal-box h3{font-size:16px;margin:18px 0 8px;color:var(--accent2)}
.legal-box p,.legal-box li{color:var(--muted);font-size:14px;line-height:1.65;margin-bottom:10px}

/* =========================================================================
   COOKIE CONSENT BANNER (ATRIA Dark Glass Theme)
   ========================================================================= */
.atria-cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  width: min(840px, calc(100vw - 32px));
  box-sizing: border-box;
  background: rgba(18, 23, 34, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #f1f5f9;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 30px rgba(149, 179, 242, 0.15);
  border: 1px solid rgba(149, 179, 242, 0.28);
  padding: 16px 24px;
  font-family: inherit;
  animation: slideUpCookie 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes slideUpCookie {
  from {
    opacity: 0;
    transform: translate(-50%, 30px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.atria-cookie-banner.cookie-hidden {
  opacity: 0 !important;
  transform: translate(-50%, 25px) !important;
  pointer-events: none;
}

.atria-cookie-banner .cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.atria-cookie-banner .cookie-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: #cbd5e1;
  font-weight: 400;
}

.atria-cookie-banner .cookie-emoji {
  font-size: 16px;
  margin-right: 4px;
}

.atria-cookie-banner .cookie-policy-wrap {
  margin-top: 3px;
}

.atria-cookie-banner .cookie-policy-link {
  color: var(--accent2);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.15s;
}

.atria-cookie-banner .cookie-policy-link:hover {
  color: #ffffff;
}

.atria-cookie-banner .cookie-accept-btn {
  background: linear-gradient(120deg, #95b3f2 0%, var(--accent) 55%, #7ea6d4 100%);
  color: #101623;
  border: none;
  border-radius: 12px;
  padding: 10px 28px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(149, 179, 242, 0.35);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.atria-cookie-banner .cookie-accept-btn:hover {
  background: linear-gradient(120deg, #b0c9fc 0%, var(--accent2) 55%, #92b8e8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(149, 179, 242, 0.5);
}

.atria-cookie-banner .cookie-accept-btn:active {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .atria-cookie-banner {
    bottom: 14px;
    border-radius: 18px;
    padding: 16px 18px;
  }
  .atria-cookie-banner .cookie-content {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .atria-cookie-banner .cookie-accept-btn {
    width: 100%;
    text-align: center;
  }
}

/* =========================================================================
   ВЫПАДАЮЩЕЕ МЕНЮ ИНСТРУМЕНТОВ В ШАПКЕ (CYBER-LUXE DESIGN & ZERO-GAP HOVER)
   ========================================================================= */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 4px;
  margin: 0;
}
.nav-dropdown > a,
.nav-dropdown > .nav-dd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-dropdown:hover > a,
.nav-dropdown.is-open > a,
.nav-dropdown > a:hover {
  color: #ffffff;
}
.nav-dropdown > a::after,
.nav-dropdown > .nav-dd-trigger::after {
  content: "▾";
  font-size: 12px;
  opacity: 0.75;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}
.nav-dropdown:hover > a::after,
.nav-dropdown.is-open > a::after {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--accent);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  transform: translateY(4px);
  width: 320px;
  background: rgba(18, 23, 34, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(157, 180, 216, 0.22);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(157, 180, 216, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
/* Невидимый мостик строго между триггером Инструменты и меню: ширина 120px (только кнопка), не 320px! */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  width: 120px;
  height: 14px;
  pointer-events: none;
  background: transparent;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown:hover .nav-dropdown-menu::before,
.nav-dropdown.is-open .nav-dropdown-menu::before {
  pointer-events: auto;
}
.nav-dropdown-menu .dd-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 11px;
  text-decoration: none !important;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  cursor: pointer;
}
.nav-dropdown-menu .dd-item:hover,
.nav-dropdown-menu .dd-item.active {
  background: rgba(149, 179, 242, 0.12) !important;
  border-color: rgba(149, 179, 242, 0.22);
  transform: translateX(3px);
}
.nav-dropdown-menu .dd-ico {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(149, 179, 242, 0.08);
  border: 1px solid rgba(149, 179, 242, 0.2);
  display: grid;
  place-items: center;
  flex: none;
  transition: all 0.2s ease;
}
.nav-dropdown-menu .dd-ico svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent2);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all 0.2s;
}
.nav-dropdown-menu .dd-item:hover .dd-ico {
  background: rgba(149, 179, 242, 0.2);
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(157, 180, 216, 0.3);
}
.nav-dropdown-menu .dd-item:hover .dd-ico svg {
  stroke: #ffffff;
  transform: scale(1.08);
}
.nav-dropdown-menu .dd-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.nav-dropdown-menu .dd-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #f8fafc !important;
  line-height: 1.3;
  transition: color 0.15s;
}
.nav-dropdown-menu .dd-item:hover .dd-name {
  color: #ffffff !important;
}
.nav-dropdown-menu .dd-sub {
  font-size: 11px;
  color: var(--muted) !important;
  line-height: 1.25;
}
.nav-dropdown-menu .dd-divider {
  height: 1px;
  background: rgba(149, 179, 242, 0.14);
  margin: 4px 6px;
}
.nav-dropdown-menu .dd-all .dd-ico {
  background: rgba(157, 180, 216, 0.12);
  border-color: rgba(157, 180, 216, 0.32);
}
.nav-dropdown-menu .dd-all .dd-ico svg {
  stroke: var(--accent);
}
.nav-dropdown-menu .dd-all .dd-name {
  color: var(--accent2) !important;
  font-weight: 700;
}

/* =========================================================================
   ОНЛАЙН-ОПЛАТА НА САЙТЕ (CHECKOUT MODAL)
   ========================================================================= */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(6, 8, 14, 0.88);
  backdrop-filter: blur(14px);
  display: none;
  place-items: center;
  padding: 4vh 4vw;
}
.checkout-modal.open {
  display: grid;
}
.checkout-box {
  width: min(680px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(19, 24, 35, 0.98);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 34px;
  position: relative;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8), 0 0 40px rgba(149, 179, 242, 0.15);
}
.checkout-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--card);
  border: 1px solid var(--border2);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
}
.checkout-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 22px;
}
.checkout-plan-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}
.checkout-plan-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent2);
  padding-right: 40px;
}
.checkout-box .chk-period {
  justify-content: center;
  text-align: center;
}
.pay-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}
@media(max-width: 600px){
  .pay-methods-grid {
    grid-template-columns: 1fr;
  }
}
@media(max-width: 480px){
  .checkout-box {
    padding: 22px 18px;
  }
  .checkout-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-right: 40px;
  }
  .checkout-plan-price {
    font-size: 22px;
    padding-right: 40px;
  }
  .checkout-box .chk-period {
    padding: 10px 6px !important;
    font-size: 12.5px;
    justify-content: center;
    text-align: center;
  }
}
.pay-method-card {
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 14px;
  background: var(--card);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.pay-method-card:hover, .pay-method-card.active {
  border-color: var(--accent);
  background: rgba(149, 179, 242, 0.12);
  transform: translateY(-2px);
}
.pay-method-card b {
  display: block;
  font-size: 14px;
  margin-top: 6px;
}
.pay-method-card span {
  font-size: 12px;
  color: var(--muted);
}





/* ==========================================================================
   ATRIA UNIFIED POLISH & FONT STABILITY (v20261016-v15)
   ========================================================================== */
html {
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11" !important;
  overflow-x: clip !important;
  overflow-y: visible !important;
  width: 100% !important;
  scroll-behavior: smooth;
}

body {
  overflow-x: clip !important;
  overflow-y: visible !important;
  width: 100% !important;
  position: relative;
}

/* Fix sticky/pressed-down button state on click */
:focus:not(:focus-visible),
button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

/* Nav CTA state */
.nav-cta {
  padding: 8px 20px !important;
  border-radius: 10px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #f1f5f9 !important;
  background: rgba(157, 180, 216, 0.05) !important;
  border: 1px solid rgba(157, 180, 216, 0.14) !important;
  box-shadow: none !important;
  outline: none !important;
  transition: all .2s ease !important;
}
.nav-cta:hover {
  background: rgba(157, 180, 216, 0.10) !important;
  border-color: rgba(157, 180, 216, 0.26) !important;
  color: #ffffff !important;
}
.nav-cta:active {
  background: rgba(157, 180, 216, 0.14) !important;
  box-shadow: none !important;
}
.nav-cta.current {
  background: rgba(157, 180, 216, 0.14) !important;
  border-color: rgba(157, 180, 216, 0.4) !important;
  color: #ffffff !important;
}

/* Support Chat pre-wrap and formatting */
.sc-msg {
  white-space: pre-wrap !important;
  word-break: break-word !important;
}
.sc-msg.bot {
  line-height: 1.55 !important;
}

/* Anchor navigation offset for header */
[id^="sec-"], section[id], div[id^="sec-"] {
  scroll-margin-top: 105px !important;
}

/* Курсор на всех скриншотах — стандартный указатель (pointer), никаких zoom-in и кружков загрузки */
.shot-frame, .shot-single, .shot-view, .shot-view img,
.doc-screenshot, .doc-screenshot img, .doc-screenshot-img-wrap,
.c3d-card, .c3d-card img, [data-zoom] {
  cursor: pointer !important;
}


/* ================= DEMO: PRESETS + APP TRIAL ================= */
#demo { position: relative; }
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 22px;
  align-items: stretch;
  max-width: 1080px;
  margin: 34px auto 0;
}
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }
.demo-chat-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  border: 1px solid rgba(157,180,216,.22);
  border-radius: 22px;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(157,180,216,.12), transparent 55%),
    rgba(13, 18, 29, .82);
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
  overflow: hidden;
}
.demo-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(157,180,216,.14);
  background: rgba(255,255,255,.02);
}
.demo-chat-head b { display: block; font-size: 14px; color: #f2f6fc; letter-spacing: .1px; }
.demo-chat-head span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.demo-chat-head .dot { width: 7px; height: 7px; border-radius: 50%; background: #57d18b; box-shadow: 0 0 10px rgba(87,209,139,.8); }
.demo-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 700; color: #0c1220;
  background: linear-gradient(140deg, #cfe0ff, #8fa9d6);
  box-shadow: 0 0 0 1px rgba(207,224,255,.4), 0 8px 18px rgba(0,0,0,.35);
}
.demo-chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px;
  overflow-y: auto;
}
.demo-bubble {
  max-width: 82%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #e9eef7;
  background: rgba(157,180,216,.12);
  border: 1px solid rgba(157,180,216,.16);
  border-bottom-left-radius: 6px;
  animation: demoBubbleIn .32s ease both;
}
.demo-bubble.user {
  align-self: flex-end;
  color: #0c1424;
  background: linear-gradient(135deg, #d7e5ff, #a9c2ea);
  border-color: transparent;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 6px;
}
.demo-bubble.typing { display: inline-flex; gap: 5px; align-items: center; width: 58px; }
.demo-bubble.typing i {
  width: 6px; height: 6px; border-radius: 50%; background: #b7c8e4;
  animation: demoDot 1s infinite ease-in-out;
}
.demo-bubble.typing i:nth-child(2) { animation-delay: .15s; }
.demo-bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes demoBubbleIn { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes demoDot { 0%,80%,100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.demo-chat-foot {
  padding: 11px 18px;
  border-top: 1px solid rgba(157,180,216,.12);
  font-size: 11px;
  color: var(--text-faint, #72809a);
  text-align: center;
}
.demo-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(157,180,216,.18);
  border-radius: 22px;
  background: rgba(255,255,255,.02);
}
.demo-side-title { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.demo-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-presets button {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(157,180,216,.22);
  background: rgba(157,180,216,.06);
  color: #dfe8f7;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: .18s ease;
}
.demo-presets button:hover { border-color: rgba(157,180,216,.45); background: rgba(157,180,216,.12); }
.demo-presets button.is-active {
  color: #0c1424;
  background: linear-gradient(135deg, #d7e5ff, #a9c2ea);
  border-color: transparent;
  font-weight: 600;
}
.demo-download { margin-top: 6px; text-align: center; justify-content: center; }
.demo-note { font-size: 11.5px; color: var(--text-faint, #72809a); text-align: center; }
.demo-chat-open {
  margin-top: auto;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(157,180,216,.28);
  background: transparent;
  color: #cfdcf2;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.demo-chat-open:hover { background: rgba(157,180,216,.08); }
.demo-tg-link { text-align: center; font-size: 12px; color: var(--accent2); text-decoration: none; }
.demo-tg-link:hover { text-decoration: underline; }

/* ================= ATRIA AI CHAT DEMO WORKSPACE ================= */
#demo { position: relative; }
.dw-intro { max-width: 760px; margin: 0 auto 30px; text-align: center; }
.dw-intro h2 { font-size: clamp(34px, 4vw, 52px); margin: 8px 0 12px; letter-spacing: -.02em; }
.dw-intro p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0 auto; max-width: 660px; }

.dw-shell {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid rgba(157,180,216,.24);
  border-radius: 24px;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(157,180,216,.10), transparent 55%),
    linear-gradient(180deg, rgba(17,23,36,.96), rgba(9,13,22,.98));
  box-shadow: 0 34px 100px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
}

.dw-top {
  display: flex; align-items: center; gap: 16px;
  height: 66px; padding: 0 18px;
  border-bottom: 1px solid rgba(157,180,216,.14);
  background: rgba(255,255,255,.018);
}
.dw-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dw-logo {
  width: 38px; height: 38px; border-radius: 11px; overflow: hidden; flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(157,180,216,.35), 0 8px 22px rgba(0,0,0,.35);
}
.dw-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dw-brand b { display: block; font-size: 14px; color: #f4f7fc; letter-spacing: .1px; white-space: nowrap; }
.dw-brand span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; }
.dw-top-state {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 11.5px; color: #9fb1cb; letter-spacing: .04em;
}
.dw-live-dot, .dw-live-mini {
  width: 7px; height: 7px; border-radius: 50%; background: #57d18b;
  box-shadow: 0 0 10px rgba(87,209,139,.8); display: inline-block;
}
.dw-live-mini { width: 6px; height: 6px; margin-right: 5px; vertical-align: middle; }
.dw-top-actions { display: flex; align-items: center; gap: 8px; }
.dw-icon-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(157,180,216,.18);
  background: rgba(157,180,216,.05); color: #cfdbf0; cursor: pointer; display: grid; place-items: center;
  transition: .18s ease;
}
.dw-icon-btn:hover { background: rgba(157,180,216,.12); border-color: rgba(157,180,216,.38); }
.dw-icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.dw-profile { position: relative; }
.dw-avatar-btn {
  position: relative; width: 38px; height: 38px; border-radius: 50%; padding: 0;
  border: 1px solid rgba(157,180,216,.45); background: #0b1220; cursor: pointer;
  box-shadow: 0 0 0 3px rgba(157,180,216,.08);
}
.dw-avatar-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.dw-avatar-state {
  position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%;
  background: #57d18b; border: 2px solid #0d1422;
}
.dw-menu {
  position: absolute; right: 0; top: 48px; z-index: 80; width: 286px;
  padding: 8px;
  border: 1px solid rgba(157,180,216,.24); border-radius: 16px;
  background: rgba(12,18,30,.98);
  box-shadow: 0 26px 70px rgba(0,0,0,.62);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98);
  transition: .18s ease;
}
.dw-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.dw-menu-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 12px; border-bottom: 1px solid rgba(157,180,216,.12); margin-bottom: 6px; }
.dw-menu-head img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.dw-menu-head b { display: block; font-size: 12.5px; color: #f2f6fc; }
.dw-menu-head span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.dw-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%;
  border: 0; background: transparent; color: #dbe5f4; font: inherit; font-size: 12.5px;
  text-align: left; padding: 9px 8px; border-radius: 9px; cursor: pointer;
}
.dw-menu button:hover { background: rgba(157,180,216,.10); color: #fff; }
.dw-menu button em { margin-left: auto; font-style: normal; font-size: 10px; color: #8fa3c2; }
.dw-mi-ico { width: 18px; text-align: center; color: #8fa3c2; font-size: 13px; }
.dw-menu-sep { height: 1px; background: rgba(157,180,216,.12); margin: 6px 8px; }
.dw-lang-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px 8px; font-size: 12.5px; color: #dbe5f4; }
.dw-lang-row select {
  background: rgba(157,180,216,.08); color: #dbe5f4; border: 1px solid rgba(157,180,216,.22);
  border-radius: 8px; padding: 4px 6px; font: inherit; font-size: 11.5px; outline: none;
}
.dw-menu-quiet { color: #9fb1cb !important; }

.dw-body { display: grid; grid-template-columns: 212px minmax(0, 1fr); min-height: 650px; }
.dw-rail {
  display: flex; flex-direction: column; gap: 5px;
  padding: 16px 12px 14px;
  border-right: 1px solid rgba(157,180,216,.12);
  background: rgba(255,255,255,.012);
}
.dw-rail-label { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: #6f809c; padding: 4px 10px 8px; }
.dw-nav {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 10px 10px; border: 1px solid transparent; border-radius: 10px;
  background: transparent; color: #aebdd4; font: inherit; font-size: 12.5px;
  text-align: left; cursor: pointer; transition: .16s ease;
}
.dw-nav:hover { background: rgba(157,180,216,.07); color: #e6eefb; }
.dw-nav.is-active { background: rgba(157,180,216,.13); border-color: rgba(157,180,216,.22); color: #fff; }
.dw-nav-ico { width: 17px; text-align: center; color: #8fa3c2; font-size: 13px; }
.dw-nav.is-active .dw-nav-ico { color: #bcd2f3; }
.dw-badge { margin-left: auto; font-size: 9px; color: #0b1422; background: #8fd6ac; padding: 1px 6px; border-radius: 99px; font-weight: 700; letter-spacing: .04em; }
.dw-rail-card {
  margin-top: auto; padding: 12px; border: 1px solid rgba(157,180,216,.16);
  border-radius: 13px; background: rgba(157,180,216,.045); display: grid; gap: 4px;
}
.dw-rail-kicker { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: #6f809c; }
.dw-rail-card b { font-size: 13px; color: #f1f6fd; }
.dw-rail-card > span:not(.dw-rail-kicker) { font-size: 10.5px; color: var(--muted); line-height: 1.4; }
.dw-rail-btn {
  margin-top: 7px; display: block; text-align: center; text-decoration: none;
  padding: 8px 8px; border-radius: 8px; background: rgba(157,180,216,.16);
  border: 1px solid rgba(157,180,216,.28); color: #eaf1fb; font-size: 11px;
}
.dw-rail-btn:hover { background: rgba(157,180,216,.24); }
.dw-rail-foot { font-size: 9.5px; color: #5e6d86; padding: 12px 6px 0; text-align: center; }

.dw-main { padding: 22px 24px 24px; min-width: 0; }
.dw-view { display: none; }
.dw-view.is-active { display: block; animation: dwViewIn .28s ease both; }
@keyframes dwViewIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.dw-view-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.dw-kicker { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: #7c8da8; margin-bottom: 5px; }
.dw-view-head h3 { margin: 0; font-size: 21px; letter-spacing: -.01em; color: #f4f8ff; }
.dw-view-head p { margin: 5px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.dw-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.dw-model-pill {
  font-size: 10px; color: #a8bddb; border: 1px solid rgba(157,180,216,.22);
  background: rgba(157,180,216,.06); padding: 5px 9px; border-radius: 99px; white-space: nowrap;
}
.dw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 12px; border-radius: 9px; border: 1px solid rgba(157,180,216,.24);
  background: transparent; color: #dbe5f4; font: inherit; font-size: 11.5px; cursor: pointer;
  transition: .16s ease; text-decoration: none;
}
.dw-btn:hover { background: rgba(157,180,216,.09); border-color: rgba(157,180,216,.4); }
.dw-btn-primary { background: linear-gradient(135deg, #d7e5ff, #a9c2ea); border-color: transparent; color: #0b1422; font-weight: 600; }
.dw-btn-primary:hover { filter: brightness(1.04); background: linear-gradient(135deg, #e2edff, #b8cff2); }
.dw-btn-ghost { background: rgba(157,180,216,.04); }

.dw-chat {
  height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 13px;
  padding: 16px; border: 1px solid rgba(157,180,216,.14); border-radius: 16px;
  background:
    radial-gradient(90% 70% at 20% 0%, rgba(157,180,216,.07), transparent 60%),
    rgba(8,13,22,.72);
  scroll-behavior: smooth;
}
.dw-chat::-webkit-scrollbar { width: 7px; }
.dw-chat::-webkit-scrollbar-thumb { background: rgba(157,180,216,.2); border-radius: 99px; }
.dw-msg { display: flex; gap: 9px; max-width: 84%; }
.dw-msg.user { margin-left: auto; flex-direction: row-reverse; }
.dw-msg-ava { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 1px solid rgba(157,180,216,.28); }
.dw-msg-body { min-width: 0; }
.dw-msg-meta { display: flex; align-items: baseline; gap: 7px; margin-bottom: 4px; }
.dw-msg.user .dw-msg-meta { justify-content: flex-end; }
.dw-msg-meta b { font-size: 10.5px; color: #c9d7eb; font-weight: 600; }
.dw-msg-meta time { font-size: 9px; color: #6e7f99; }
.dw-msg-text {
  padding: 9px 12px; border-radius: 12px; border: 1px solid rgba(157,180,216,.14);
  background: rgba(157,180,216,.075); color: #e7eef9; font-size: 12.5px; line-height: 1.55;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.dw-msg.user .dw-msg-text {
  background: linear-gradient(135deg, #d7e5ff, #a9c2ea);
  color: #0b1422; border-color: transparent; border-bottom-right-radius: 4px;
}
.dw-msg.bot .dw-msg-text { border-bottom-left-radius: 4px; }
.dw-typing { display: inline-flex; gap: 4px; align-items: center; padding: 12px 14px; }
.dw-typing i { width: 5px; height: 5px; border-radius: 50%; background: #b7c8e4; animation: dwDot 1s infinite ease-in-out; }
.dw-typing i:nth-child(2) { animation-delay: .15s; }
.dw-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dwDot { 0%,80%,100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

.dw-quick { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 8px; }
.dw-quick button {
  border: 1px solid rgba(157,180,216,.18); background: rgba(157,180,216,.045);
  color: #b8c8df; border-radius: 99px; padding: 5px 10px; font: inherit; font-size: 10.5px; cursor: pointer;
}
.dw-quick button:hover { border-color: rgba(157,180,216,.4); color: #eaf1fb; }
.dw-composer {
  display: flex; align-items: flex-end; gap: 8px; padding: 7px 8px 7px 12px;
  border: 1px solid rgba(157,180,216,.22); border-radius: 14px; background: rgba(157,180,216,.04);
}
.dw-composer:focus-within { border-color: rgba(157,180,216,.48); box-shadow: 0 0 0 3px rgba(157,180,216,.06); }
.dw-composer textarea {
  flex: 1; min-height: 24px; max-height: 110px; resize: none; border: 0; background: transparent;
  color: #eef4fd; font: inherit; font-size: 12.5px; line-height: 1.5; outline: none; padding: 5px 0;
}
.dw-composer textarea::placeholder { color: #6f809b; }
.dw-send {
  width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px; border: 0;
  background: linear-gradient(135deg, #d7e5ff, #a9c2ea); color: #0b1422; cursor: pointer;
  display: grid; place-items: center;
}
.dw-send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dw-foot-hint { margin-top: 8px; color: #687992; font-size: 10px; line-height: 1.45; }

.dw-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
.dw-kpi { border: 1px solid rgba(157,180,216,.14); border-radius: 12px; background: rgba(157,180,216,.035); padding: 12px; }
.dw-kpi span { display: block; font-size: 10px; color: #8293ad; margin-bottom: 5px; }
.dw-kpi b { display: block; font-size: 22px; color: #f3f8ff; letter-spacing: -.02em; }
.dw-kpi em { display: inline-block; margin-top: 4px; font-style: normal; font-size: 10px; color: #79d8a4; }
.dw-kpi em.is-down { color: #9fc5ff; }
.dw-grid2 { display: grid; grid-template-columns: 1.08fr .92fr; gap: 12px; margin-bottom: 12px; }
.dw-card { border: 1px solid rgba(157,180,216,.14); border-radius: 14px; background: rgba(157,180,216,.028); padding: 14px; }
.dw-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.dw-card-head b { font-size: 12px; color: #e3ecf9; }
.dw-card-head span { font-size: 10px; color: #7f91ab; }
.dw-bars { display: flex; align-items: flex-end; gap: 8px; height: 158px; padding-top: 8px; }
.dw-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.dw-bar i { width: 100%; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, rgba(168,200,255,.85), rgba(112,148,202,.28)); display: block; min-height: 8px; }
.dw-bar span { font-size: 9px; color: #7789a4; }
.dw-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dw-feed li { display: flex; align-items: flex-start; gap: 8px; }
.dw-feed li > div { min-width: 0; flex: 1; }
.dw-feed b { display: block; font-size: 11px; color: #dfe8f6; font-weight: 500; }
.dw-feed span:not(.dw-feed-dot) { display: block; font-size: 9.5px; color: #7889a3; margin-top: 2px; }
.dw-feed time { font-size: 9px; color: #6d7e97; }
.dw-feed-dot { width: 6px; height: 6px; border-radius: 50%; background: #8fa3c2; margin-top: 5px; flex: 0 0 auto; }
.dw-feed-dot.ok { background: #57d18b; box-shadow: 0 0 8px rgba(87,209,139,.7); }
.dw-feed-dot.warn { background: #e8b84b; box-shadow: 0 0 8px rgba(232,184,75,.6); }
.dw-channels { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.dw-channels > div { display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid rgba(157,180,216,.12); border-radius: 10px; background: rgba(157,180,216,.03); }
.dw-ch-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(157,180,216,.12); color: #bcd2f3; font-size: 9px; font-weight: 700; }
.dw-channels b { font-size: 10.5px; color: #dbe6f5; }
.dw-channels em { margin-left: auto; font-style: normal; font-size: 9px; color: #7fd5a4; }

.dw-settings-layout { display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: 14px; align-items: start; }
.dw-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 1px solid rgba(157,180,216,.14); border-radius: 14px; padding: 14px; background: rgba(157,180,216,.025); }
.dw-field { display: grid; gap: 5px; min-width: 0; }
.dw-field.dw-wide { grid-column: 1 / -1; }
.dw-field > label { font-size: 10px; color: #8496b1; letter-spacing: .02em; }
.dw-field input:not([type="checkbox"]), .dw-field select, .dw-field textarea, .dw-select {
  width: 100%; border: 1px solid rgba(157,180,216,.18); border-radius: 8px;
  background: rgba(8,13,22,.55); color: #e8f0fb; font: inherit; font-size: 11.5px;
  padding: 8px 9px; outline: none; transition: .16s ease;
}
.dw-field input:focus, .dw-field select:focus, .dw-field textarea:focus, .dw-select:focus {
  border-color: rgba(157,180,216,.5); box-shadow: 0 0 0 3px rgba(157,180,216,.06);
}
.dw-field textarea { resize: vertical; min-height: 56px; line-height: 1.5; }
.dw-field select, .dw-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8fa3c2 50%), linear-gradient(135deg, #8fa3c2 50%, transparent 50%); background-position: calc(100% - 13px) 50%, calc(100% - 9px) 50%; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat; padding-right: 26px; }
.dw-hint { font-size: 9.5px; color: #70829c; line-height: 1.45; }
.dw-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 10.5px; color: #9fb1cb; }
.dw-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.dw-switch > span { position: relative; width: 30px; height: 17px; border-radius: 99px; background: rgba(157,180,216,.22); border: 1px solid rgba(157,180,216,.25); transition: .18s ease; flex: 0 0 auto; }
.dw-switch > span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #9fb1cb; transition: .18s ease; }
.dw-switch input:checked + span { background: rgba(120,190,255,.35); border-color: rgba(120,190,255,.55); }
.dw-switch input:checked + span::after { left: 15px; background: #d9e9ff; }
.dw-settings-actions { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; padding-top: 4px; }
.dw-preview { border: 1px solid rgba(157,180,216,.16); border-radius: 14px; padding: 16px; background: rgba(157,180,216,.03); text-align: center; position: sticky; top: 20px; }
.dw-persona img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(157,180,216,.4); box-shadow: 0 0 0 4px rgba(157,180,216,.07); }
.dw-persona b { display: block; margin-top: 10px; font-size: 15px; color: #f4f8ff; }
.dw-persona > span { display: block; font-size: 10px; color: #8fa3c2; margin-top: 3px; }
.dw-persona p { margin: 9px 0 0; font-size: 10.5px; color: #8799b3; line-height: 1.5; }
.dw-preview-note { margin-top: 12px; font-size: 9px; color: #687992; line-height: 1.4; }

.dw-ref-hero { border: 1px solid rgba(157,180,216,.16); border-radius: 14px; padding: 16px; background: rgba(157,180,216,.035); display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 12px; flex-wrap: wrap; }
.dw-ref-hero > div:first-child { flex: 1; min-width: 260px; }
.dw-ref-hero > div:first-child > span { display: block; font-size: 10px; color: #8496b1; margin-bottom: 6px; }
.dw-ref-link { display: flex; gap: 6px; }
.dw-ref-link input { flex: 1; border: 1px solid rgba(157,180,216,.18); border-radius: 8px; background: rgba(8,13,22,.55); color: #dbe6f5; padding: 8px 10px; font: inherit; font-size: 11px; min-width: 0; }
.dw-ref-stats { display: flex; gap: 18px; }
.dw-ref-stats > div { text-align: center; }
.dw-ref-stats b { display: block; font-size: 20px; color: #f4f8ff; }
.dw-ref-stats span { display: block; font-size: 9.5px; color: #8293ad; margin-top: 2px; }
.dw-steps { margin: 0; padding-left: 18px; display: grid; gap: 7px; color: #b8c8df; font-size: 11px; line-height: 1.5; }
.dw-simple-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.dw-simple-list li { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: #aebdd4; border-bottom: 1px solid rgba(157,180,216,.08); padding-bottom: 7px; }
.dw-simple-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.dw-simple-list b { color: #79d8a4; font-weight: 500; }

.dw-current-plan { display: flex; align-items: center; gap: 16px; border: 1px solid rgba(157,180,216,.18); border-radius: 14px; padding: 14px 16px; background: linear-gradient(135deg, rgba(157,180,216,.10), rgba(157,180,216,.03)); margin-bottom: 12px; flex-wrap: wrap; }
.dw-current-plan > div:first-child { min-width: 220px; }
.dw-current-plan span { display: block; font-size: 10px; color: #8496b1; }
.dw-current-plan b { display: block; font-size: 19px; color: #f4f8ff; margin-top: 3px; }
.dw-current-plan em { display: block; font-style: normal; font-size: 10.5px; color: #93a5bf; margin-top: 3px; }
.dw-plan-progress { flex: 1; height: 6px; border-radius: 99px; background: rgba(157,180,216,.16); overflow: hidden; min-width: 120px; }
.dw-plan-progress i { display: block; width: 98%; height: 100%; background: linear-gradient(90deg, #8fb8ff, #d7e5ff); }
.dw-plans { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.dw-plan { position: relative; border: 1px solid rgba(157,180,216,.14); border-radius: 12px; padding: 12px; background: rgba(157,180,216,.025); display: grid; gap: 4px; align-content: start; }
.dw-plan b { font-size: 12px; color: #e8f0fb; }
.dw-plan strong { font-size: 19px; color: #f4f8ff; letter-spacing: -.02em; }
.dw-plan small { font-size: 9px; color: #8496b1; font-weight: 400; }
.dw-plan > span { font-size: 9.5px; color: #8092ab; line-height: 1.4; min-height: 27px; }
.dw-plan .dw-btn { margin-top: 4px; padding: 6px 8px; font-size: 10px; }
.dw-plan.is-popular { border-color: rgba(157,180,216,.45); background: rgba(157,180,216,.075); }
.dw-plan-badge { position: absolute; top: -8px; right: 8px; background: #d7e5ff; color: #0b1422; font-size: 8px; font-weight: 700; padding: 2px 6px; border-radius: 99px; }
.dw-plan-badge + b { margin-top: 2px; }

.dw-pay-card { position: relative; border-radius: 12px; padding: 14px; min-height: 96px; background: linear-gradient(135deg, #283854, #111a2b 70%); border: 1px solid rgba(157,180,216,.25); display: grid; align-content: space-between; margin-bottom: 10px; }
.dw-pay-chip { width: 26px; height: 19px; border-radius: 4px; background: linear-gradient(135deg, #e8d9a5, #b99b57); display: block; }
.dw-pay-card b { font-size: 15px; color: #eef4fd; letter-spacing: .12em; }
.dw-pay-card span:last-child { font-size: 9px; color: #9fb1cb; }
.dw-bill-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(157,180,216,.08); font-size: 11px; color: #8fa3c2; }
.dw-bill-row:last-of-type { border-bottom: 0; }
.dw-bill-row b { color: #dbe6f5; font-weight: 500; }
.dw-bill-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.dw-bill-grid > div { padding: 9px; border: 1px solid rgba(157,180,216,.1); border-radius: 9px; background: rgba(157,180,216,.025); }
.dw-bill-grid span { display: block; font-size: 9.5px; color: #8092ab; }
.dw-bill-grid b { display: block; font-size: 12px; color: #dbe6f5; margin-top: 4px; }
.dw-bill-grid b.ok { color: #79d8a4; }

.dw-table-wrap { overflow-x: auto; border: 1px solid rgba(157,180,216,.14); border-radius: 14px; background: rgba(157,180,216,.02); }
.dw-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.dw-table th { text-align: left; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: #7587a1; padding: 10px 12px; border-bottom: 1px solid rgba(157,180,216,.12); font-weight: 600; }
.dw-table td { padding: 11px 12px; font-size: 11px; color: #b8c8df; border-bottom: 1px solid rgba(157,180,216,.07); }
.dw-table tr:last-child td { border-bottom: 0; }
.dw-status { display: inline-block; font-size: 9px; padding: 2px 7px; border-radius: 99px; border: 1px solid rgba(157,180,216,.2); }
.dw-status.ok { color: #79d8a4; border-color: rgba(121,216,164,.35); background: rgba(121,216,164,.08); }
.dw-status.warn { color: #e8b84b; border-color: rgba(232,184,75,.35); background: rgba(232,184,75,.08); }

.dw-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 12px; }
.dw-contact { display: grid; gap: 4px; border: 1px solid rgba(157,180,216,.14); border-radius: 12px; padding: 13px; background: rgba(157,180,216,.03); text-decoration: none; transition: .16s ease; }
.dw-contact:hover { border-color: rgba(157,180,216,.38); background: rgba(157,180,216,.07); }
.dw-contact-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(157,180,216,.12); color: #bcd2f3; font-size: 9px; font-weight: 700; }
.dw-contact b { font-size: 12px; color: #e8f0fb; margin-top: 3px; }
.dw-contact span:last-child { font-size: 10px; color: #8092ab; }

.dw-lang-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dw-lang-card { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; text-align: left; border: 1px solid rgba(157,180,216,.16); border-radius: 12px; padding: 14px; background: rgba(157,180,216,.03); cursor: pointer; color: #dbe6f5; font: inherit; }
.dw-lang-card:hover { border-color: rgba(157,180,216,.4); }
.dw-lang-card b { font-size: 13px; }
.dw-lang-card span { font-size: 10px; color: #8092ab; }
.dw-lang-card em { grid-column: 1 / -1; font-style: normal; font-size: 9px; color: #6f809b; margin-top: 4px; }
.dw-lang-card.is-active { border-color: rgba(157,180,216,.5); background: rgba(157,180,216,.10); }

.dw-toast {
  position: absolute; right: 18px; bottom: 18px; z-index: 90;
  padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(157,180,216,.28);
  background: rgba(12,18,30,.98); color: #e8f0fb; font-size: 11.5px;
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s ease;
}
.dw-toast.is-visible { opacity: 1; transform: none; }

@media(max-width: 1050px) {
  .dw-plans { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .dw-settings-layout { grid-template-columns: minmax(0,1fr) 220px; }
}
@media(max-width: 900px) {
  .dw-body { grid-template-columns: 176px minmax(0,1fr); }
  .dw-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dw-grid2 { grid-template-columns: 1fr; }
  .dw-settings-layout { grid-template-columns: 1fr; }
  .dw-preview { position: static; display: flex; align-items: center; gap: 14px; text-align: left; }
  .dw-preview .dw-persona img { width: 64px; height: 64px; }
  .dw-preview .dw-persona b, .dw-preview .dw-persona span, .dw-preview .dw-persona p { text-align: left; }
  .dw-plans { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dw-bill-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width: 720px) {
  .dw-shell { border-radius: 18px; }
  .dw-top { height: 58px; padding: 0 12px; gap: 10px; }
  .dw-brand b { font-size: 12.5px; }
  .dw-brand span { display: none; }
  .dw-top-state { display: none; }
  .dw-body { display: block; min-height: 0; }
  .dw-rail { flex-direction: row; align-items: center; overflow-x: auto; border-right: 0; border-bottom: 1px solid rgba(157,180,216,.12); padding: 8px 10px; gap: 6px; }
  .dw-rail-label, .dw-rail-card, .dw-rail-foot { display: none; }
  .dw-nav { width: auto; white-space: nowrap; padding: 8px 10px; }
  .dw-main { padding: 16px 12px 18px; }
  .dw-view-head { flex-direction: column; }
  .dw-head-actions { justify-content: flex-start; }
  .dw-chat { height: 300px; }
  .dw-msg { max-width: 92%; }
  .dw-settings { grid-template-columns: 1fr; }
  .dw-plans, .dw-contact-grid, .dw-lang-cards { grid-template-columns: 1fr; }
  .dw-ref-hero { align-items: flex-start; }
  .dw-ref-stats { width: 100%; justify-content: space-between; }
  .dw-menu { width: min(286px, calc(100vw - 28px)); right: -6px; }
}

/* User avatar: letter badge, distinct from the persona face */
.dw-avatar-letter {
  width: 100%; height: 100%; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #d7e5ff, #8fa9d6);
  color: #0b1422; font-size: 14px; font-weight: 700; letter-spacing: .02em;
  font-family: 'Inter', sans-serif;
}
.dw-menu-head .dw-avatar-letter { width: 36px; height: 36px; flex: 0 0 auto; font-size: 13px; }
.dw-msg-ava-letter {
  display: grid; place-items: center;
  background: linear-gradient(145deg, #d7e5ff, #8fa9d6);
  color: #0b1422; font-size: 10px; font-weight: 700; font-family: 'Inter', sans-serif;
}

/* ================= ATRIA APP: AI CHAT + PROFILE ================= */
:root {
  --app-bg: #070b12;
  --app-panel: rgba(15, 22, 35, .78);
  --app-line: rgba(157, 180, 216, .16);
}
.app-body {
  background: var(--app-bg);
  min-height: 100vh;
  color: #dbe6f5;
}
.app-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(60% 55% at 15% 0%, rgba(92, 130, 196, .18), transparent 65%),
    radial-gradient(50% 50% at 90% 15%, rgba(157, 180, 216, .10), transparent 70%),
    linear-gradient(180deg, #080d16, #05080e 70%);
}
.app-bg i {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35;
  background: rgba(120, 160, 220, .30);
}
.app-bg i:nth-child(1) { width: 380px; height: 380px; left: -120px; top: 10%; }
.app-bg i:nth-child(2) { width: 300px; height: 300px; right: -100px; top: 35%; opacity: .22; }
.app-bg i:nth-child(3) { width: 260px; height: 260px; left: 40%; bottom: -120px; opacity: .18; }

.app-topbar {
  position: sticky; top: 0; z-index: 60;
  max-width: 1240px; margin: 0 auto; height: 64px; padding: 0 20px;
  display: flex; align-items: center; gap: 18px;
  border-bottom: 1px solid var(--app-line);
  background: rgba(7, 11, 18, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.app-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: 0 0 auto; }
.app-logo {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #d7e5ff, #8fa9d6);
  color: #0b1422; font-size: 17px; font-weight: 800;
  box-shadow: 0 0 0 1px rgba(200, 220, 255, .5), 0 8px 20px rgba(0,0,0,.35);
  font-family: 'Inter', sans-serif;
}
.app-brand b { display: block; font-size: 13.5px; color: #f4f8ff; letter-spacing: .01em; }
.app-brand em { display: block; font-style: normal; font-size: 9.5px; color: #74859f; margin-top: 2px; }
.app-tabs { display: flex; gap: 4px; margin-left: 8px; }
.app-tab {
  border: 1px solid transparent; background: transparent; color: #93a5bf;
  font: inherit; font-size: 12px; padding: 8px 13px; border-radius: 9px; cursor: pointer;
  transition: .16s ease;
}
.app-tab:hover { color: #e6eefb; background: rgba(157,180,216,.07); }
.app-tab.is-active { color: #fff; background: rgba(157,180,216,.13); border-color: rgba(157,180,216,.22); }
.app-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.app-live { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: #8ea3c1; }
.app-live i { width: 6px; height: 6px; border-radius: 50%; background: #57d18b; box-shadow: 0 0 9px rgba(87,209,139,.8); }
.app-download {
  color: #dbe6f5; text-decoration: none; font-size: 11px; padding: 7px 11px;
  border: 1px solid rgba(157,180,216,.24); border-radius: 8px; background: rgba(157,180,216,.05);
}
.app-download:hover { background: rgba(157,180,216,.12); }
.app-profile-btn { border: 0; background: transparent; padding: 0; cursor: pointer; border-radius: 50%; }
.app-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #d7e5ff, #8fa9d6);
  color: #0b1422; font-size: 13px; font-weight: 800;
  border: 1px solid rgba(220,232,255,.55);
  box-shadow: 0 0 0 3px rgba(157,180,216,.08);
  font-family: 'Inter', sans-serif;
}
.app-avatar-lg { width: 56px; height: 56px; font-size: 18px; }
.app-profile-btn .app-avatar { transition: .16s ease; }
.app-profile-btn:hover .app-avatar { box-shadow: 0 0 0 4px rgba(157,180,216,.16); }
.app-profile-btn.is-active .app-avatar { box-shadow: 0 0 0 3px rgba(157,180,216,.45); }

.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; padding: 2px;
  border: 1px solid rgba(157,180,216,.18); border-radius: 8px; background: rgba(157,180,216,.04);
}
.lang-switch button {
  border: 0; background: transparent; color: #7d8fa9; font: inherit;
  font-size: 9.5px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 7px; border-radius: 5px; cursor: pointer;
}
.lang-switch button.active { color: #0b1422; background: #cfe0f8; }

.app-main { max-width: 1240px; margin: 0 auto; padding: 20px; }
.app-view { display: none; }
.app-view.is-active { display: block; animation: appViewIn .25s ease both; }
@keyframes appViewIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------------- Chat ---------------- */
.chat-layout {
  display: grid; grid-template-columns: 356px minmax(0, 1fr); gap: 14px;
  align-items: start;
}
.chat-settings {
  border: 1px solid var(--app-line); border-radius: 16px;
  background: rgba(12, 18, 30, .72); padding: 16px;
  display: grid; gap: 10px;
  position: sticky; top: 82px;
}
.chat-settings-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.chat-settings-head b { display: block; font-size: 13px; color: #f1f6fd; }
.chat-settings-head span { display: block; font-size: 9.5px; color: #74859f; margin-top: 3px; }
.chat-reset-settings { border: 0; background: transparent; color: #8fa3c2; font: inherit; font-size: 10.5px; cursor: pointer; padding: 3px; }
.chat-reset-settings:hover { color: #fff; }
.chat-settings-note { font-size: 9.5px; color: #6f8099; line-height: 1.45; padding: 7px 9px; border: 1px dashed rgba(157,180,216,.18); border-radius: 8px; }
.cs-field { display: grid; gap: 5px; min-width: 0; }
.cs-field > span:first-child { font-size: 9.5px; color: #8496b1; letter-spacing: .02em; }
.cs-field input:not([type="checkbox"]), .cs-field select, .cs-field textarea, .profile-select {
  width: 100%; border: 1px solid rgba(157,180,216,.18); border-radius: 8px;
  background: rgba(6,10,18,.62); color: #e8f0fb; font: inherit; font-size: 11.5px;
  padding: 8px 9px; outline: none; transition: .16s ease;
}
.cs-field input:focus, .cs-field select:focus, .cs-field textarea:focus, .profile-select:focus {
  border-color: rgba(157,180,216,.5); box-shadow: 0 0 0 3px rgba(157,180,216,.06);
}
.cs-field textarea { resize: vertical; min-height: 52px; line-height: 1.45; }
.cs-field select, .profile-select {
  appearance: none; padding-right: 25px;
  background-image: linear-gradient(45deg, transparent 50%, #8fa3c2 50%), linear-gradient(135deg, #8fa3c2 50%, transparent 50%);
  background-position: calc(100% - 13px) 50%, calc(100% - 9px) 50%;
  background-size: 4px 4px, 4px 4px; background-repeat: no-repeat;
}
.cs-toggle { grid-template-columns: 1fr auto; align-items: center; }
.cs-switch { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 10px; color: #9fb1cb; }
.cs-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.cs-switch i { position: relative; width: 30px; height: 17px; border-radius: 99px; background: rgba(157,180,216,.2); border: 1px solid rgba(157,180,216,.26); transition: .18s ease; flex: 0 0 auto; }
.cs-switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #9fb1cb; transition: .18s ease; }
.cs-switch input:checked + i { background: rgba(120,190,255,.35); border-color: rgba(120,190,255,.55); }
.cs-switch input:checked + i::after { left: 15px; background: #d9e9ff; }
.cs-switch em { font-style: normal; }
.chat-settings-engine { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(157,180,216,.1); font-size: 10px; color: #74859f; }
.chat-settings-engine b { color: #a9c8f3; font-weight: 600; font-size: 10.5px; }

.chat-panel {
  border: 1px solid var(--app-line); border-radius: 16px;
  background:
    radial-gradient(80% 60% at 20% 0%, rgba(157,180,216,.06), transparent 60%),
    rgba(10,16,27,.82);
  min-height: calc(100vh - 124px);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(157,180,216,.12); }
.chat-persona-ava { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(157,180,216,.38); box-shadow: 0 0 0 3px rgba(157,180,216,.06); }
.chat-head-copy { min-width: 0; flex: 1; }
.chat-head-copy b { display: block; font-size: 13.5px; color: #f2f7ff; }
.chat-head-copy span { display: flex; align-items: center; gap: 5px; font-size: 9.5px; color: #8fa3c2; margin-top: 2px; }
.chat-online-dot { width: 6px; height: 6px; border-radius: 50%; background: #57d18b; box-shadow: 0 0 8px rgba(87,209,139,.8); }
.chat-btn { border: 1px solid rgba(157,180,216,.22); background: rgba(157,180,216,.05); color: #cfdcf0; border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 10.5px; cursor: pointer; }
.chat-btn:hover { background: rgba(157,180,216,.12); }

.chat-log { flex: 1; min-height: 300px; max-height: calc(100vh - 320px); overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.chat-log::-webkit-scrollbar { width: 7px; }
.chat-log::-webkit-scrollbar-thumb { background: rgba(157,180,216,.2); border-radius: 99px; }
.chat-msg { max-width: 84%; display: flex; flex-direction: column; gap: 3px; }
.chat-msg.user { align-self: flex-end; align-items: flex-end; }
.chat-msg-meta { display: flex; align-items: baseline; gap: 6px; font-size: 9px; color: #6e7f99; }
.chat-msg-meta b { font-size: 9.5px; color: #9fb1cb; font-weight: 600; }
.chat-bubble { padding: 10px 13px; border-radius: 13px; border: 1px solid rgba(157,180,216,.14); background: rgba(157,180,216,.075); color: #e7eef9; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg.bot .chat-bubble { border-bottom-left-radius: 4px; }
.chat-msg.user .chat-bubble { background: linear-gradient(135deg, #d7e5ff, #a9c2ea); color: #0b1422; border-color: transparent; border-bottom-right-radius: 4px; }
.chat-msg.system { align-self: center; max-width: 100%; }
.chat-msg.system .chat-bubble { background: rgba(157,180,216,.05); border-style: dashed; color: #8fa3c2; font-size: 10.5px; text-align: center; }
.chat-typing { display: inline-flex; gap: 4px; align-items: center; padding: 12px 14px; }
.chat-typing i { width: 5px; height: 5px; border-radius: 50%; background: #b7c8e4; animation: chatDot 1s infinite ease-in-out; }
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 0%,80%,100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

.chat-quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 8px; }
.chat-quick button { border: 1px solid rgba(157,180,216,.18); background: rgba(157,180,216,.045); color: #b8c8df; border-radius: 99px; padding: 5px 10px; font: inherit; font-size: 10.5px; cursor: pointer; }
.chat-quick button:hover { border-color: rgba(157,180,216,.4); color: #eaf1fb; }
.chat-compose { display: flex; align-items: flex-end; gap: 8px; margin: 0 16px; padding: 7px 8px 7px 12px; border: 1px solid rgba(157,180,216,.22); border-radius: 13px; background: rgba(157,180,216,.04); }
.chat-compose:focus-within { border-color: rgba(157,180,216,.48); box-shadow: 0 0 0 3px rgba(157,180,216,.06); }
.chat-compose textarea { flex: 1; min-height: 24px; max-height: 120px; resize: none; border: 0; background: transparent; color: #eef4fd; font: inherit; font-size: 12.5px; line-height: 1.5; outline: none; padding: 5px 0; }
.chat-compose textarea::placeholder { color: #6f809b; }
.chat-send { width: 36px; height: 36px; border-radius: 10px; border: 0; background: linear-gradient(135deg, #d7e5ff, #a9c2ea); color: #0b1422; cursor: pointer; display: grid; place-items: center; }
.chat-send:disabled { opacity: .55; cursor: wait; }
.chat-send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.chat-foot-hint { padding: 8px 16px 14px; font-size: 9.5px; color: #687992; line-height: 1.45; }

/* ---------------- Profile ---------------- */
.profile-layout { display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: 14px; align-items: start; }
.profile-side {
  border: 1px solid var(--app-line); border-radius: 16px; background: rgba(12,18,30,.72);
  padding: 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 82px;
}
.profile-user { display: grid; justify-items: center; gap: 3px; padding: 6px 4px 14px; border-bottom: 1px solid rgba(157,180,216,.1); margin-bottom: 6px; text-align: center; }
.profile-user b { font-size: 13px; color: #f1f6fd; margin-top: 7px; }
.profile-user span { font-size: 10px; color: #8293ad; }
.profile-user em { font-style: normal; font-size: 9px; color: #a9c8f3; margin-top: 5px; padding: 2px 7px; border: 1px solid rgba(157,180,216,.2); border-radius: 99px; }
.profile-nav { display: grid; gap: 2px; }
.profile-nav button { border: 1px solid transparent; background: transparent; color: #9fb1cb; font: inherit; font-size: 11.5px; text-align: left; padding: 8px 9px; border-radius: 8px; cursor: pointer; }
.profile-nav button:hover { background: rgba(157,180,216,.07); color: #e6eefb; }
.profile-nav button.is-active { background: rgba(157,180,216,.13); border-color: rgba(157,180,216,.2); color: #fff; }
.profile-back { margin-top: 8px; border: 1px dashed rgba(157,180,216,.2); background: transparent; color: #8fa3c2; font: inherit; font-size: 10.5px; padding: 8px; border-radius: 8px; cursor: pointer; }
.profile-back:hover { color: #fff; border-color: rgba(157,180,216,.4); }

.profile-content { min-width: 0; }
.profile-panel { display: none; }
.profile-panel.is-active { display: block; animation: appViewIn .25s ease both; }
.profile-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.profile-head h1, .profile-head h2 { margin: 0; font-size: 25px; letter-spacing: -.02em; color: #f4f8ff; font-weight: 700; }
.profile-head p { margin: 5px 0 0; font-size: 12px; color: #8293ad; line-height: 1.5; }
.profile-pill { font-size: 9.5px; color: #a8bddb; border: 1px solid rgba(157,180,216,.22); background: rgba(157,180,216,.06); padding: 5px 9px; border-radius: 99px; white-space: nowrap; }
.profile-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin-bottom: 11px; }
.profile-kpi { border: 1px solid var(--app-line); border-radius: 11px; background: rgba(157,180,216,.03); padding: 12px; }
.profile-kpi span { display: block; font-size: 9.5px; color: #8293ad; margin-bottom: 5px; }
.profile-kpi b { display: block; font-size: 22px; color: #f3f8ff; letter-spacing: -.02em; }
.profile-kpi em { font-style: normal; font-size: 9.5px; color: #79d8a4; }
.profile-grid2 { display: grid; grid-template-columns: 1.08fr .92fr; gap: 11px; margin-bottom: 11px; }
.profile-card { border: 1px solid var(--app-line); border-radius: 12px; background: rgba(157,180,216,.025); padding: 13px; }
.profile-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.profile-card-head b { font-size: 11.5px; color: #e3ecf9; }
.profile-card-head span { font-size: 9.5px; color: #7f91ab; }
.profile-bars { display: flex; align-items: flex-end; gap: 7px; height: 150px; padding-top: 6px; }
.profile-bars > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; }
.profile-bars i { width: 100%; height: var(--h); min-height: 7px; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, rgba(168,200,255,.82), rgba(112,148,202,.25)); display: block; }
.profile-bars span { font-size: 8.5px; color: #7789a4; }
.profile-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.profile-feed li { display: flex; align-items: flex-start; gap: 7px; }
.profile-feed li > div { flex: 1; min-width: 0; }
.profile-feed b { display: block; font-size: 10.5px; color: #dfe8f6; font-weight: 500; }
.profile-feed span { display: block; font-size: 9px; color: #7889a3; margin-top: 2px; }
.profile-feed time { font-size: 8.5px; color: #6d7e97; }
.profile-feed i { width: 6px; height: 6px; border-radius: 50%; background: #8fa3c2; margin-top: 5px; flex: 0 0 auto; }
.profile-feed i.ok { background: #57d18b; box-shadow: 0 0 7px rgba(87,209,139,.7); }
.profile-feed i.warn { background: #e8b84b; box-shadow: 0 0 7px rgba(232,184,75,.6); }
.profile-channels { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.profile-channels > div { display: flex; align-items: center; gap: 7px; padding: 8px; border: 1px solid rgba(157,180,216,.12); border-radius: 9px; background: rgba(157,180,216,.03); }
.profile-channels span { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: rgba(157,180,216,.12); color: #bcd2f3; font-size: 8px; font-weight: 700; }
.profile-channels b { font-size: 10px; color: #dbe6f5; }
.profile-channels em { margin-left: auto; font-style: normal; font-size: 8.5px; color: #7fd5a4; }

.profile-btn { display: inline-flex; align-items: center; justify-content: center; padding: 7px 11px; border-radius: 8px; border: 1px solid rgba(157,180,216,.24); background: rgba(157,180,216,.05); color: #dbe5f4; font: inherit; font-size: 10.5px; cursor: pointer; text-decoration: none; }
.profile-btn:hover { background: rgba(157,180,216,.12); }
.profile-btn-primary { background: linear-gradient(135deg, #d7e5ff, #a9c2ea); border-color: transparent; color: #0b1422; font-weight: 600; }
.profile-btn-primary:hover { filter: brightness(1.04); }
.profile-support-hero { display: flex; align-items: center; gap: 14px; border: 1px solid var(--app-line); border-radius: 13px; padding: 14px; background: rgba(157,180,216,.04); margin-bottom: 11px; flex-wrap: wrap; }
.profile-support-hero img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(157,180,216,.4); }
.profile-support-hero > div { flex: 1; min-width: 220px; }
.profile-support-hero b { font-size: 14px; color: #f2f7ff; }
.profile-support-hero p { margin: 4px 0 0; font-size: 10.5px; color: #8293ad; line-height: 1.5; }
.profile-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.profile-links a { color: #b8c8df; font-size: 10.5px; text-decoration: none; border-bottom: 1px dashed rgba(157,180,216,.18); padding-bottom: 3px; }
.profile-links a:hover { color: #fff; }
.profile-bill-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(157,180,216,.08); font-size: 10.5px; color: #8fa3c2; }
.profile-bill-row:last-child { border-bottom: 0; }
.profile-bill-row b { color: #dbe6f5; font-weight: 500; }
.profile-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 11px; }
.profile-contact { display: grid; gap: 3px; border: 1px solid var(--app-line); border-radius: 11px; padding: 12px; background: rgba(157,180,216,.03); text-decoration: none; }
.profile-contact:hover { border-color: rgba(157,180,216,.36); background: rgba(157,180,216,.06); }
.profile-contact > span { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: rgba(157,180,216,.12); color: #bcd2f3; font-size: 8px; font-weight: 700; }
.profile-contact b { font-size: 11.5px; color: #e8f0fb; margin-top: 2px; }
.profile-contact em { font-style: normal; font-size: 9.5px; color: #8092ab; }
.profile-pay-card { border-radius: 11px; padding: 13px; min-height: 90px; background: linear-gradient(135deg, #283854, #111a2b 70%); border: 1px solid rgba(157,180,216,.25); display: grid; align-content: space-between; margin-bottom: 9px; }
.profile-pay-card i { width: 24px; height: 17px; border-radius: 3px; background: linear-gradient(135deg, #e8d9a5, #b99b57); display: block; }
.profile-pay-card b { font-size: 14px; color: #eef4fd; letter-spacing: .12em; }
.profile-pay-card span { font-size: 8.5px; color: #9fb1cb; }
.profile-bill-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.profile-bill-grid > div { padding: 8px; border: 1px solid rgba(157,180,216,.1); border-radius: 8px; background: rgba(157,180,216,.02); }
.profile-bill-grid span { display: block; font-size: 9px; color: #8092ab; }
.profile-bill-grid b { display: block; font-size: 11px; color: #dbe6f5; margin-top: 3px; }
.profile-bill-grid b.ok { color: #79d8a4; }

.profile-current-plan { display: flex; align-items: center; gap: 14px; border: 1px solid rgba(157,180,216,.2); border-radius: 13px; padding: 13px 15px; background: linear-gradient(135deg, rgba(157,180,216,.10), rgba(157,180,216,.025)); margin-bottom: 11px; flex-wrap: wrap; }
.profile-current-plan > div:first-child { min-width: 210px; }
.profile-current-plan span { display: block; font-size: 9.5px; color: #8496b1; }
.profile-current-plan b { display: block; font-size: 18px; color: #f4f8ff; margin-top: 3px; }
.profile-current-plan em { display: block; font-style: normal; font-size: 10px; color: #93a5bf; margin-top: 3px; }
.profile-plan-progress { flex: 1; height: 6px; border-radius: 99px; background: rgba(157,180,216,.16); overflow: hidden; min-width: 100px; }
.profile-plan-progress i { display: block; width: 98%; height: 100%; background: linear-gradient(90deg, #8fb8ff, #d7e5ff); }
.profile-plans { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; }
.profile-plan { position: relative; border: 1px solid rgba(157,180,216,.14); border-radius: 11px; padding: 11px; background: rgba(157,180,216,.025); display: grid; gap: 3px; align-content: start; }
.profile-plan b { font-size: 11.5px; color: #e8f0fb; }
.profile-plan strong { font-size: 18px; color: #f4f8ff; letter-spacing: -.02em; }
.profile-plan small { font-size: 8.5px; color: #8496b1; font-weight: 400; }
.profile-plan > span { font-size: 9px; color: #8092ab; line-height: 1.4; min-height: 26px; }
.profile-plan .profile-btn { margin-top: 3px; padding: 5px 7px; font-size: 9.5px; }
.profile-plan.is-popular { border-color: rgba(157,180,216,.45); background: rgba(157,180,216,.075); }
.profile-plan-badge { position: absolute; top: -7px; right: 7px; background: #d7e5ff; color: #0b1422; font-size: 7.5px; font-weight: 700; padding: 2px 6px; border-radius: 99px; font-style: normal; }
.profile-plan-badge + b { margin-top: 2px; }

.profile-ref-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--app-line); border-radius: 13px; padding: 15px; background: rgba(157,180,216,.035); margin-bottom: 11px; flex-wrap: wrap; }
.profile-ref-hero > div:first-child { flex: 1; min-width: 250px; }
.profile-ref-hero > div:first-child > span { display: block; font-size: 9.5px; color: #8496b1; margin-bottom: 5px; }
.profile-ref-link { display: flex; gap: 6px; }
.profile-ref-link input { flex: 1; min-width: 0; border: 1px solid rgba(157,180,216,.18); border-radius: 8px; background: rgba(6,10,18,.62); color: #dbe6f5; padding: 8px 9px; font: inherit; font-size: 10.5px; }
.profile-ref-stats { display: flex; gap: 17px; }
.profile-ref-stats > div { text-align: center; }
.profile-ref-stats b { display: block; font-size: 19px; color: #f4f8ff; }
.profile-ref-stats span { display: block; font-size: 9px; color: #8293ad; margin-top: 2px; }
.profile-steps { margin: 0; padding-left: 17px; display: grid; gap: 6px; color: #b8c8df; font-size: 10.5px; line-height: 1.5; }
.profile-simple-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.profile-simple-list li { display: flex; justify-content: space-between; gap: 9px; font-size: 10.5px; color: #aebdd4; border-bottom: 1px solid rgba(157,180,216,.08); padding-bottom: 6px; }
.profile-simple-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.profile-simple-list b { color: #79d8a4; font-weight: 500; }

.profile-table-wrap { overflow-x: auto; border: 1px solid var(--app-line); border-radius: 12px; background: rgba(157,180,216,.02); }
.profile-table { width: 100%; border-collapse: collapse; min-width: 540px; }
.profile-table th { text-align: left; font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: #7587a1; padding: 9px 11px; border-bottom: 1px solid rgba(157,180,216,.12); font-weight: 600; }
.profile-table td { padding: 10px 11px; font-size: 10.5px; color: #b8c8df; border-bottom: 1px solid rgba(157,180,216,.07); }
.profile-table tr:last-child td { border-bottom: 0; }
.profile-status { display: inline-block; font-size: 8.5px; padding: 2px 6px; border-radius: 99px; border: 1px solid rgba(157,180,216,.2); }
.profile-status.ok { color: #79d8a4; border-color: rgba(121,216,164,.35); background: rgba(121,216,164,.08); }
.profile-status.warn { color: #e8b84b; border-color: rgba(232,184,75,.35); background: rgba(232,184,75,.08); }
.profile-select { width: auto; min-width: 150px; font-size: 10px; padding: 6px 24px 6px 8px; }

.profile-lang-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 11px; }
.profile-lang-card { display: grid; grid-template-columns: 1fr auto; gap: 2px 9px; text-align: left; border: 1px solid rgba(157,180,216,.16); border-radius: 11px; padding: 13px; background: rgba(157,180,216,.03); cursor: pointer; color: #dbe6f5; font: inherit; }
.profile-lang-card:hover { border-color: rgba(157,180,216,.4); }
.profile-lang-card b { font-size: 12.5px; }
.profile-lang-card span { font-size: 9.5px; color: #8092ab; }
.profile-lang-card em { grid-column: 1 / -1; font-style: normal; font-size: 8.5px; color: #6f809b; margin-top: 4px; }
.profile-lang-card.is-active { border-color: rgba(157,180,216,.5); background: rgba(157,180,216,.10); }
.profile-lang-note p { margin: 6px 0 0; font-size: 10.5px; color: #8293ad; line-height: 1.5; }

.app-toast {
  position: fixed; right: 18px; bottom: 18px; z-index: 120;
  padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(157,180,216,.28);
  background: rgba(12,18,30,.98); color: #e8f0fb; font-size: 11.5px;
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s ease;
}
.app-toast.is-visible { opacity: 1; transform: none; }

@media(max-width: 1100px) {
  .chat-layout { grid-template-columns: 320px minmax(0,1fr); }
  .profile-plans { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width: 900px) {
  .app-topbar { padding: 0 12px; gap: 10px; }
  .app-live, .app-download { display: none; }
  .app-main { padding: 14px; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-settings { position: static; }
  .chat-panel { min-height: 620px; }
  .chat-log { max-height: 420px; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-side { position: static; }
  .profile-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profile-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profile-grid2 { grid-template-columns: 1fr; }
  .profile-contact-grid { grid-template-columns: 1fr; }
  .profile-bill-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width: 620px) {
  .app-brand em { display: none; }
  .app-brand b { font-size: 12px; }
  .app-tabs { margin-left: 0; }
  .app-tab { padding: 7px 8px; font-size: 11px; }
  .app-lang { display: none; }
  .app-profile-btn .app-avatar { width: 32px; height: 32px; }
  .chat-settings { padding: 12px; }
  .chat-panel { min-height: 560px; }
  .chat-log { max-height: 360px; padding: 14px 12px; }
  .chat-head { padding: 12px; }
  .chat-persona-ava { width: 34px; height: 34px; }
  .chat-quick { padding: 0 12px 8px; }
  .chat-compose { margin: 0 12px; }
  .chat-foot-hint { padding: 8px 12px 12px; }
  .profile-head h1, .profile-head h2 { font-size: 22px; }
  .profile-plans, .profile-lang-cards { grid-template-columns: 1fr; }
  .profile-nav { grid-template-columns: 1fr 1fr; }
  .profile-ref-stats { width: 100%; justify-content: space-between; }
  .app-toast { left: 12px; right: 12px; }
}

/* Site nav: language + profile tab */
.nav-lang { margin-left: 4px; flex: 0 0 auto; }
.nav-links .nav-profile {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; border: 1px solid rgba(157,180,216,.35);
  background: linear-gradient(145deg, #d7e5ff, #8fa9d6); color: #0b1422;
  font-size: 13px; font-weight: 800; font-family: 'Inter', sans-serif;
  box-shadow: 0 0 0 3px rgba(157,180,216,.07);
}
.nav-links .nav-profile:hover { color:#0b1422 !important; filter: brightness(1.05); box-shadow: 0 0 0 4px rgba(157,180,216,.14); }
/* Override legacy hide: language switch is visible on the site and in the app */
.lang-switch.nav-lang,
.lang-switch.app-lang { display: inline-flex !important; }
@media(max-width: 620px) { .lang-switch.app-lang { display: none !important; } }

/* App pages use nested <nav> for tabs; the site's fixed nav styles must not leak */
.app-tabs,
.profile-nav {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: auto !important;
}
.app-tabs { display: flex !important; align-items: center !important; justify-content: flex-start !important; gap: 4px !important; margin-left: 8px !important; }
.profile-nav { display: grid !important; gap: 2px !important; }

/* ================= APP SHELL v48: one site chrome, one workspace ================= */
/* The app page now uses the site header/background. Workspace fills the viewport:
   same geometry for AI Chat and Profile, scrolling happens inside the panels only. */
.app-body {
  background: var(--bg);
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}
.app-body .wrap { height: 100%; }
.app-main {
  max-width: 1480px; margin: 0 auto;
  padding: 92px 2vw 26px;
  height: 100vh; display: flex; flex-direction: column;
}
.app-view { flex: 1; min-height: 0; }
.app-view.is-active { display: block; height: 100%; }
.chat-layout, .profile-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  height: 100%;
  align-items: stretch;
}
.chat-settings, .profile-side {
  position: static;
  height: 100%;
  overflow-y: auto;
  scrollbar-gutter: stable;
  border-radius: 16px;
}
.chat-panel { height: 100%; min-height: 0; }
.chat-log { max-height: none; min-height: 0; flex: 1; }
.profile-content {
  height: 100%;
  overflow-y: auto;
  scrollbar-gutter: stable;
  border: 1px solid var(--app-line);
  border-radius: 16px;
  background:
    radial-gradient(80% 60% at 20% 0%, rgba(157,180,216,.06), transparent 60%),
    rgba(10, 16, 27, .72);
  padding: 18px 18px 22px;
}
.profile-content::-webkit-scrollbar,
.chat-settings::-webkit-scrollbar,
.profile-side::-webkit-scrollbar { width: 7px; }
.profile-content::-webkit-scrollbar-thumb,
.chat-settings::-webkit-scrollbar-thumb,
.profile-side::-webkit-scrollbar-thumb { background: rgba(157,180,216,.2); border-radius: 99px; }

/* Same reading scale on both tabs, closer to the site typography */
.chat-settings-head b { font-size: 14px; }
.chat-settings-head span { font-size: 10.5px; }
.chat-settings-note { font-size: 10.5px; }
.cs-field > span:first-child { font-size: 10.5px; }
.cs-field input:not([type="checkbox"]), .cs-field select, .cs-field textarea, .profile-select { font-size: 13px; }
.chat-head-copy b { font-size: 14.5px; }
.chat-head-copy span { font-size: 10.5px; }
.chat-bubble { font-size: 13.5px; }
.chat-msg-meta { font-size: 9.5px; }
.chat-quick button { font-size: 11.5px; }
.chat-foot-hint { font-size: 10.5px; }
.profile-user b { font-size: 14px; }
.profile-user span { font-size: 11px; }
.profile-nav button { font-size: 12.5px; padding: 9px 10px; }
.profile-head h1, .profile-head h2 { font-size: 27px; }
.profile-head p { font-size: 13px; }
.profile-kicker { font-size: 10px; }
.profile-kpi span, .profile-card-head span, .profile-bill-grid span { font-size: 10.5px; }
.profile-feed b, .profile-bill-row, .profile-links a, .profile-steps, .profile-simple-list li, .profile-table td { font-size: 12px; }
.profile-feed span, .profile-feed time, .profile-contact em { font-size: 10px; }
.profile-plan strong { font-size: 19px; }
.profile-plan > span { font-size: 10px; }

/* Mobile: the document scrolls again, panels stack */
@media (max-width: 900px) {
  .app-body { height: auto; overflow: visible; }
  .app-body .wrap { height: auto; }
  .app-main { height: auto; display: block; padding: 86px 14px 30px; }
  .app-view { flex: none; }
  .app-view.is-active { height: auto; }
  .chat-layout, .profile-layout { grid-template-columns: 1fr; height: auto; }
  .chat-settings, .profile-side, .profile-content { height: auto; overflow: visible; }
  .profile-content { padding: 14px; }
  .chat-panel { height: auto; min-height: 0; }
  .chat-log { max-height: 420px; }
}

/* Site's global <section> layout must not leak into the app workspace */
.app-main section {
  max-width: none;
  margin: 0;
  padding: 0;
}
.app-main .profile-head { background: transparent; border: 0; border-radius: 0; padding: 0; margin-bottom: 16px; }

/* Mobile: chat first (settings below), single-column channel cards */
@media (max-width: 900px) {
  .chat-layout { display: flex; flex-direction: column; }
  .chat-panel { order: -1; }
  .chat-settings { order: 0; }
}
@media (max-width: 620px) {
  .profile-channels { grid-template-columns: 1fr; }
}

/* Чекаут: явные состояния периода подписки и честная ошибка шлюза */
.checkout-box .chk-period{color:var(--muted);border-color:rgba(148,163,184,.28)}
.checkout-box .chk-year:not(.active){border-color:rgba(52,211,153,.35);color:var(--green)}
.checkout-box .chk-period.active{border-color:var(--accent2)!important;color:#f8fafc!important;background:rgba(157,180,216,.16)!important}
#chkResultAlert.is-err{border-color:rgba(248,113,113,.55)!important;background:rgba(127,29,29,.22)!important;color:#fecaca!important}

/* ===== Бета-скидка: зачёркнутые цены, бейджи, тикающий счётчик (2026-10-30) ===== */
.t-price s, .bundle-price s, .price-old{
  color:var(--muted);font-weight:500;font-size:.62em;margin-right:7px;
  opacity:.8;text-decoration-thickness:1.5px;
}
.beta-badge{
  display:inline-flex;align-items:center;gap:6px;margin-top:10px;padding:5px 12px;
  border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.02em;
  color:var(--accent2);background:var(--card2);
  border:1px solid var(--border);
}
/* Пакет F (#179): бейдж внутри флекс-колонки .tariff не должен
   растягиваться на всю ширину карточки. */
.tariff .beta-badge{margin-top:12px;align-self:flex-start}
/* F-007: слот бейджа одинаковой высоты во всех тарифах — списки фич
   начинаются на одной линии, даже когда бейдж скрыт для не-бета клиента. */
.beta-slot{display:flex;align-items:flex-start;height:31px;margin-top:12px;flex:none}
.beta-slot .beta-badge{margin-top:0}
.mod-card.is-hidden,.bundle-box.is-hidden{display:none!important}
.moderation-alert.is-err{
  border-color:rgba(248,113,113,.55)!important;
  background:rgba(127,29,29,.22)!important;color:#fecaca!important;
}


/* ==========================================================================
   WORKER 5 ENHANCEMENTS: SCROLL-MARGIN, LIVE DEMO CHAT, ROI CALC, PRICING
   ========================================================================== */

/* 1. Header scroll offsets so fixed navbar never obscures section anchors */
h1, h2, h3, h4, h5, h6, section[id], .doc-sec, [id] {
  scroll-margin-top: 96px !important;
}

/* 2. Interactive Demo Chat Component */
.demo-chat-container {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  max-width: 860px;
  margin: 32px auto;
}
.demo-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(18, 24, 38, 0.32);
  border-bottom: 1px solid var(--border);
}
.demo-chat-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.demo-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #101623;
  box-shadow: 0 0 14px var(--accent-glow);
}
.demo-chat-status {
  font-size: 12px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
}
.demo-chat-status::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}
.demo-chat-niche-bar {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(18, 24, 38, 0.22);
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}
.niche-chip {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(157, 180, 216, 0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.niche-chip:hover {
  background: var(--card2);
  border-color: var(--border2);
  color: var(--text);
}
.niche-chip.active {
  background: rgba(157, 180, 216, 0.16);
  border-color: var(--accent2);
  color: #f8fafc;
  font-weight: 600;
  box-shadow: 0 0 12px var(--accent-glow);
}
.demo-chat-messages {
  height: 380px;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(11, 15, 22, 0.22);
}
.chat-msg {
  display: flex;
  gap: 12px;
  max-width: 85%;
  animation: fadeIn 0.3s ease-out;
}
.chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.chat-msg.assistant {
  align-self: flex-start;
}
.chat-bubble {
  padding: 12px 18px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.5;
}
.chat-msg.user .chat-bubble {
  background: rgba(157, 180, 216, 0.18);
  border: 1px solid rgba(157, 180, 216, 0.32);
  color: #f8fafc;
  border-bottom-right-radius: 4px;
}
.chat-msg.assistant .chat-bubble {
  background: var(--card2);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chat-input-bar {
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  background: rgba(18, 24, 38, 0.32);
  border-top: 1px solid var(--border);
}
.chat-input-field {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.chat-input-field:focus {
  border-color: var(--accent2);
}
.chat-send-btn {
  background: linear-gradient(120deg, #95b3f2 0%, var(--accent) 55%, #7ea6d4 100%);
  color: #101623;
  border: none;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.chat-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--accent-glow);
}

/* Inline Conversion CTA Bar inside Demo Chat */
.demo-chat-inline-cta {
  margin: 14px 0 6px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--card2);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: fadeIn 0.4s ease-out;
}
.cta-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
}
.cta-text b {
  color: var(--accent2);
}
.btn-trial-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(120deg, #95b3f2 0%, var(--accent) 55%, #7ea6d4 100%);
  color: #101623 !important;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 24px var(--accent-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-trial-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--accent-glow);
}

@media (max-width: 640px) {
  .demo-chat-inline-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 12px;
  }
  .btn-trial-cta {
    justify-content: center;
  }
}

/* 3. Interactive ROI Calculator */
.roi-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  max-width: 1020px;
  margin: 36px auto;
  transition: border-color 0.2s;
}
.roi-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 860px) {
  .roi-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 540px) {
  .roi-container { padding: 20px 16px; border-radius: 16px; }
}
.slider-group {
  margin-bottom: 22px;
}
.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.slider-val {
  color: var(--accent2);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.roi-slider {
  width: 100%;
  accent-color: var(--accent);
  height: 6px;
  background: rgba(157, 180, 216, 0.14);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.roi-bounds {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted2);
  margin-top: 6px;
}
.roi-note-box {
  padding: 14px 16px;
  background: rgba(157, 180, 216, 0.05);
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.roi-summary-card {
  background: rgba(18, 24, 38, 0.28);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media (max-width: 540px) {
  .roi-summary-card { padding: 20px 16px; }
}
.roi-summary-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}
.roi-stat-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 16px;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid rgba(157, 180, 216, 0.1);
  font-size: 14px;
  color: var(--muted);
}
.roi-stat-row > span:first-child { min-width: 0; }
.roi-stat-row b, .roi-stat-row .val {
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--accent2);
  font-weight: 700;
}
.roi-stat-row #stat-lost-leads { color: var(--text); }
.roi-stat-row.highlight {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  border-bottom: none;
  padding-top: 16px;
}
.roi-stat-row.highlight .val {
  color: var(--green);
  font-size: 22px;
}
@media (max-width: 420px) {
  .roi-stat-row { font-size: 13px; gap: 10px; }
  .roi-stat-row.highlight .val { font-size: 19px; }
}
.roi-cta-btn {
  text-align: center;
  text-decoration: none;
  display: block;
  margin-top: 20px;
  padding: 13px 18px;
  border-radius: 12px;
  font-weight: 700;
}
.btn-calc-submit {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  background: linear-gradient(120deg, #95b3f2 0%, var(--accent) 55%, #7ea6d4 100%);
  color: #101623;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-calc-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* Lead Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.25s ease-out;
}
.modal-card {
  background: #11141b;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}
.modal-close:hover { color: var(--text); }
.modal-field {
  margin-bottom: 16px;
}
.modal-field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.modal-field input, .modal-field select, .modal-field textarea {
  width: 100%;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.modal-field input:focus, .modal-field select:focus, .modal-field textarea:focus {
  border-color: var(--accent2);
}

/* 4. Pricing Billing Period Toggle */
.period-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 28px 0 36px;
}
.period-toggle {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 30px;
  gap: 4px;
}
.period-btn {
  padding: 9px 20px;
  border-radius: 24px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.period-btn.active {
  background: var(--accent);
  color: #101623;
  font-weight: 700;
  box-shadow: 0 0 16px var(--accent-glow);
}
.period-discount-badge {
  background: rgba(52, 211, 153, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.32);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 6px;
}

/* Pricing viewer period tabs (.pv-periods) */
.pv-periods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 4px;
  width: min(100%, 320px);
  margin: 0 auto 24px;
  border-bottom: 1px solid var(--border);
}
.pv-btn { min-width: 0; white-space: nowrap; }
.pricing-status { margin: 0 auto 12px; text-align: center; }
.pricing-status:empty { margin: 0; }

select option {
  background: #11141b;
  color: var(--text);
}

/* Docs & Legal glass cards */
.doc-legal-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.doc-legal-card:hover {
  background: var(--card2);
  border-color: var(--border2);
  transform: translateY(-2px);
}
.doc-legal-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.doc-legal-card-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(157, 180, 216, 0.12);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent2);
  font-size: 18px;
}
.doc-legal-card-head b {
  color: var(--text);
  font-size: 16px;
}
.doc-legal-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
}
.doc-legal-card-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent2);
  font-size: 13px;
  font-weight: 600;
}
.legal-callout {
  background: var(--card);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--accent2);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 26px;
  font-size: 13.5px;
  color: var(--muted);
}
.legal-callout b { color: var(--text); }
.legal-nav-box {
  max-width: 860px;
  margin: 40px auto 0;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.legal-nav-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 700;
}
.legal-nav-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.legal-nav-pill {
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(157, 180, 216, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  transition: border-color 0.15s, background 0.15s;
}
.legal-nav-pill:hover {
  border-color: var(--border2);
  background: rgba(157, 180, 216, 0.14);
}
.legal-nav-pill.is-current {
  background: rgba(157, 180, 216, 0.18);
  border-color: rgba(157, 180, 216, 0.42);
  color: var(--accent2);
  font-weight: 600;
}
.legal-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent2);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* VG-15 / DEF-NEON-025..029 (C2): Вёрстка документации, модалок, заголовков, 3D-карусели и мобильного #supportBtn */
.page-hero {
  padding-top: 112px;
}
.page-hero h1,
#pricingStatus {
  margin-left: auto;
  margin-right: auto;
}
.app-main .profile-head h1,
.app-main .profile-head h2 {
  text-align: left !important;
  margin-left: 0 !important;
}
.ns-results,
.ns-empty,
#nsResults,
#nsResults * {
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}
.legal-box {
  max-height: 85vh !important;
  overflow-y: auto !important;
}
.c3d-info {
  position: relative !important;
  margin: 24px auto 0 !important;
  z-index: 2;
}
.docs-toc-toggle {
  display: none;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: rgba(18, 24, 38, 0.75);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  margin-bottom: 10px;
}
@media (max-width: 960px) {
  .docs-toc-toggle {
    display: block;
  }
  .docs-side.docs-side-collapsible {
    display: none;
    margin-bottom: 16px;
  }
  .docs-side.docs-side-collapsible.is-open {
    display: flex;
  }
}
@media (max-width: 480px) {
  body {
    padding-bottom: 84px;
  }
  .sticky-bottom-banner {
    max-height: 64px;
    padding: 8px 16px;
  }
  #supportBtn {
    width: 44px !important;
    height: 44px !important;
    right: 12px !important;
    bottom: 12px !important;
    border-radius: 12px !important;
  }
}


/* ================= ATRIA STABILIZATION & MOBILE ADAPTATION ================= */
/* 1. Предотвращение скачков таблиц при смене языка RU/EN */
.reveal table, table.status-table {
  table-layout: fixed !important;
  width: 100% !important;
  max-width: 960px !important;
}
.reveal table, table.status-table, .doc-article table, .doc-body table, .docs-content table, .doc-section table, table {
  table-layout: fixed !important;
  width: 100% !important;
  max-width: 960px !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}
table.status-table th:nth-child(1), table.status-table td:nth-child(1) { width: 28% !important; }
table.status-table th:nth-child(2), table.status-table td:nth-child(2) { width: 34% !important; }
table.status-table th:nth-child(3), table.status-table td:nth-child(3) { width: 38% !important; }

/* 2. Карусель на мобильных экранах и ноутбуках */
@media (max-width: 900px) {
  .c3d-stage.flat .c3d-inner {
    touch-action: pan-x pan-y pinch-zoom !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
  }
  .c3d-stage.flat .c3d-card,
  .c3d-stage.flat .c3d-card img {
    touch-action: pan-x pan-y pinch-zoom !important;
  }
  .c3d-info {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    max-width: min(560px, 92vw) !important;
    margin: 16px auto 0 !important;
    padding: 16px 20px !important;
    text-align: center !important;
    transform: none !important;
  }
  .c3d-nav {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    margin-top: 14px !important;
    justify-content: center !important;
    gap: 16px !important;
  }
  input, select, textarea, .chat-compose textarea {
    font-size: 16px !important; /* Устраняет приближение экрана и автозум на iOS/Android */
  }
}

/* 3. Юридические уведомления о переводе */
.legal-en-notice {
  background: rgba(14, 22, 38, 0.85);
  border: 1px solid rgba(157, 180, 216, 0.28);
  border-radius: 12px;
  padding: 14px 20px;
  margin: 18px auto;
  max-width: 960px;
  color: #cdd9e8;
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.legal-en-notice b { color: #f1f5f9; }


/* Шапка: поиск рядом с логотипом, меню справа. */
nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 12px 3.5vw !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  z-index: 900 !important;
}

.logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex: 0 0 auto !important;
  margin-right: 24px !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.logo img {
  width: 42px !important;
  height: 42px !important;
  border-radius: 11px !important;
  box-shadow: 0 0 20px rgba(149, 179, 242, 0.45) !important;
  flex-shrink: 0 !important;
}

.nav-search-line.ns-inline {
  flex: 0 1 380px !important;
  width: 380px !important;
  max-width: 380px !important;
  min-width: 175px !important;
  margin: 0 16px 0 0 !important;
  position: relative !important;
}

.nav-search-line.ns-inline input {
  width: 100% !important;
  height: 34px !important;
  box-sizing: border-box !important;
  background: transparent !important;
  border: 1px solid rgba(157, 180, 216, 0.14) !important;
  border-radius: 8px !important;
  color: #f1f5f9 !important;
  font-size: 13px !important;
  font-family: inherit !important;
  padding: 0 12px 0 32px !important;
  text-align: left !important;
  text-overflow: ellipsis;
  outline: none !important;
  box-shadow: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nav-search-line.ns-inline input::placeholder {
  color: rgba(203, 213, 225, 0.74) !important;
}

.nav-search-line.ns-inline input:hover {
  border-color: rgba(157, 180, 216, 0.30) !important;
  box-shadow: none !important;
}

.nav-search-line.ns-inline input:focus {
  border-color: rgba(157, 180, 216, 0.42) !important;
  box-shadow: none !important;
}

.nav-search-line.ns-inline .ns-icon {
  position: absolute !important;
  left: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 14px !important;
  height: 14px !important;
  stroke: rgba(157, 180, 216, 0.55) !important;
  stroke-width: 2 !important;
  fill: none !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  pointer-events: none !important;
  z-index: 5 !important;
  opacity: 0.9 !important;
  transition: stroke 0.2s ease !important;
}

.nav-search-line.ns-inline input:focus ~ .ns-icon {
  stroke: #ffffff !important;
  filter: none !important;
}

.nav-links {
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  justify-content: flex-end !important;
  gap: clamp(14px, 1.8vw, 24px) !important;
  margin-left: 0 !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

.nav-links a {
  color: var(--muted) !important;
  text-decoration: none !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  transition: color 0.2s ease !important;
}

.nav-links a:hover {
  color: #ffffff !important;
}

.nav-links a.current {
  color: var(--accent2) !important;
}

.nav-links .nav-cta {
  margin-left: 0 !important;
  flex: 0 0 auto !important;
  padding-inline: 0 !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.nav-links a:focus-visible {
  outline: 1px solid var(--accent2) !important;
  outline-offset: 4px;
}

/* ================= ВЫПАДАЮЩИЙ СПИСОК ЯЗЫКОВ: GLASS ETALON DROPDOWN ================= */
.lang-select-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  margin-left: -6px !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.lang-trigger:hover, .lang-trigger[aria-expanded="true"] { color: #fff; }
.lang-trigger:focus-visible, .lang-menu button:focus-visible {
  outline: 1px solid var(--accent2);
  outline-offset: 3px;
}
.lang-select-arrow {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 155px;
  padding: 5px;
  border: 1px solid rgba(157,180,216,.22);
  border-radius: 10px;
  background: rgba(15,20,31,.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
  z-index: 10;
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #cbd5e1;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.lang-menu button:hover, .lang-menu button[aria-checked="true"] {
  background: rgba(157,180,216,.12);
  color: #f8fafc;
}
@media (max-width: 980px) {
  nav {
    justify-content: space-between !important;
  }
  .nav-search-line.ns-inline {
    display: none !important;
  }
  .nav-links:not(.open) { display: none !important; }
  .nav-links.open { display: flex !important; justify-content: flex-start !important; }
  nav .burger { border: 0; }
}

/* ================= ЧАТ И КНОПКА ПОДДЕРЖКИ ================= */
#supportBtn {
  z-index: 950 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

#supportChat {
  z-index: 960 !important;
  pointer-events: auto !important;
}

/* ================= КНОПКИ GLASS ETALON ================= */
.btn-primary,
.t-btn-primary,
.btn-action-primary,
a.btn-primary,
button.btn-primary,
.hero-actions .btn-primary,
.dl-row .btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 38px !important;
  padding: 0 16px !important;
  font-size: 13.5px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary:hover,
.t-btn-primary:hover,
.btn-action-primary:hover,
a.btn-primary:hover,
button.btn-primary:hover,
.hero-actions .btn-primary:hover,
.dl-row .btn-primary:hover {
  transform: none !important;
}

.btn-primary,
.t-btn-primary,
.btn-action-primary,
.dw-btn-primary,
.profile-btn-primary {
  background: var(--accent) !important;
  border: 1px solid transparent !important;
  color: #1f2533 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
  font-weight: 600 !important;
}

:is(.btn-primary, .t-btn-primary, .btn-action-primary, .dw-btn-primary, .profile-btn-primary):hover:not(:disabled):not([aria-disabled="true"]) {
  background: var(--accent2) !important;
}

.hero-actions > .btn-primary {
  background: rgba(157, 180, 216, 0.08) !important;
  border-color: rgba(157, 180, 216, 0.18) !important;
  color: var(--text) !important;
}

.hero-actions > .btn-primary:hover:not(:disabled):not([aria-disabled="true"]) {
  background: rgba(157, 180, 216, 0.16) !important;
  border-color: rgba(157, 180, 216, 0.35) !important;
  color: #fff !important;
}

.t-btn-year,
.t-btn-demo-sub,
.btn-secondary,
.btn-outline,
.btn-ghost {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 36px !important;
  padding: 0 12px !important;
  background: rgba(157, 180, 216, 0.05) !important;
  border: 1px solid rgba(157, 180, 216, 0.14) !important;
  color: #cbd5e1 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.t-btn-year:hover,
.t-btn-demo-sub:hover,
.btn-secondary:hover,
.btn-outline:hover,
.btn-ghost:hover {
  background: rgba(157, 180, 216, 0.12) !important;
  border-color: rgba(157, 180, 216, 0.25) !important;
  color: #e2e8f0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.hero-actions > .btn-ghost {
  border-color: rgba(157, 180, 216, 0.12) !important;
  border-radius: 8px !important;
  color: var(--muted2) !important;
}

.hero-actions > .btn-ghost:hover {
  border-color: rgba(157, 180, 216, 0.25) !important;
  color: #e2e8f0 !important;
}

.pv-periods .pv-btn {
  height: 38px !important;
  padding-inline: 8px !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.pv-periods .pv-btn:hover,
.pv-periods .pv-btn[aria-pressed="true"] {
  color: #fff !important;
}

.pv-periods .pv-btn[aria-pressed="true"] {
  border-bottom-color: var(--accent) !important;
}

.pv-periods .pv-btn:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: -2px;
}

.tariff-grid > .tariff:hover {
  transform: none;
}

.t-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-top: auto !important;
  width: 100% !important;
}

.tariff .t-btn {
  margin-top: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Крупные действия на первом экране и в блоках тарифов. */
.hero-actions > .btn,
#tariffs > .reveal > a[href="tariffs"] {
  min-height: 50px !important;
  height: auto !important;
  padding: 0 22px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  box-sizing: border-box;
  max-width: 100%;
}

.tariff .t-btn {
  min-height: 48px !important;
  height: auto !important;
  padding: 10px 16px !important;
  font-family: inherit;
  font-size: 16px !important;
}

/* ================= ТАЙМЕР БЕТА-СКИДКИ ================= */
.beta-countdown-row {
  text-align: center;
}

.beta-countdown {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap;
  gap: 8px 16px;
  min-width: 0;
  vertical-align: top;
  width: auto !important;
  max-width: fit-content !important;
  margin: 0 auto 30px !important;
  text-align: center;
}

.beta-countdown[hidden] {
  display: none !important;
}

.beta-countdown .bc-label {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #f1f5f9 !important;
}

.beta-countdown .bc-label b {
  color: #adcae8 !important;
  font-weight: 700 !important;
}

.beta-countdown .bc-digits {
  font-family: 'Inter', sans-serif !important;
  font-size: clamp(32px, 4vw, 36px) !important;
  font-weight: 800 !important;
  color: var(--accent2) !important;
  background: linear-gradient(120deg, #dbe7f6, var(--accent2), var(--accent3));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.02em !important;
  font-variant-numeric: tabular-nums !important;
  white-space: nowrap !important;
  text-shadow: none !important;
}

.beta-countdown .bc-digits i {
  font-style: normal !important;
  color: inherit;
  opacity: 0.7;
  padding: 0 4px !important;
}

/* Подсказка привязана к видимой высоте окна, а не к иллюстрации. */
.scroll-hint {
  position: absolute;
  top: min(calc(100% - 48px), 86vh);
  top: min(calc(100% - 48px), 86svh);
  left: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 10;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-shadow: 0 1px 6px #11141b;
  text-decoration: none;
}

.scroll-hint::after {
  content: "";
  width: 9px;
  height: 9px;
  border: solid var(--accent2);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-hint::after {
    animation: scroll-chevron 1.8s ease-in-out infinite;
  }
}

@keyframes scroll-chevron {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(6px) rotate(45deg); }
}

#home-stats {
  scroll-margin-top: 0 !important;
}

@media (max-width: 980px) {
  .scroll-hint {
    position: static;
    justify-self: center;
    translate: 0 clamp(6px, 2svh, 18px);
  }
}

/* ================= МОБИЛЬНЫЙ СКРОЛЛ БЕЗ БЛОКИРОВОК КАРУСЕЛЬЮ ================= */
.c3d-stage, .c3d-stage *, .c3d-inner, .c3d-card, .c3d-card img, .gallery, .gallery * {
  touch-action: pan-y !important;
}

/* Stable tariff controls and quote slots */
.tariff-grid .tariff-year { min-height: 2.8em; color: var(--accent2); }
.tariff-grid .tariff-year s { color: var(--muted); }
.tariff-grid .t-price { min-height: 1.4em; font-variant-numeric: tabular-nums; }
.tariff-grid .beta-badge { min-height: 31px; box-sizing: border-box; }
.tariff-grid .t-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed !important; }

@media (min-width: 721px) and (max-width: 1100px) {
  section:has(> .pv-periods) > .tariff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Site tables and controls aligned with the panel glass etalon. */
#modules .t-scroll, #compare .t-scroll { overflow-x: auto; }
#modules table, #compare .t-scroll table { min-width: 700px; max-width: 1120px !important; }
#modules table th:first-child, #modules table td:first-child,
#compare .t-scroll table th:first-child, #compare .t-scroll table td:first-child { width: 36%; }
#modules table th:not(:first-child), #modules table td:not(:first-child),
#compare .t-scroll table th:not(:first-child), #compare .t-scroll table td:not(:first-child) { width: 16%; }

.chat-settings, .chat-panel { background: linear-gradient(165deg,rgba(18,24,38,.14),rgba(28,38,58,.20)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: rgba(157,180,216,.14); }
.cs-field input:not([type=checkbox]), .cs-field select, .cs-field textarea, .chat-compose { background-color: rgba(18,24,38,.22); }
.app-body .chat-compose { margin-inline-end: 48px; }
.chat-compose textarea { min-width: 0; }
.chat-compose .chat-send { flex: 0 0 36px; }
.chat-settings-head span, .chat-settings-note, .cs-field > span:first-child, .chat-foot-hint { font-size: 12px; }
.cs-field input:not([type=checkbox]), .cs-field select, .cs-field textarea, .chat-bubble, .chat-compose textarea { font-size: 14px; }
.chat-msg.system .chat-bubble { color: var(--muted); border-style: solid; font-size: 13px; }

#supportChat { right: clamp(12px, 4vw, 24px); }
#supportChat .sc-body { min-height: 0; }
.sc-head a { color: var(--accent2); }
.sc-msg { white-space: pre-wrap; overflow-wrap: anywhere; }
.sc-msg.system { align-self: center; padding: 8px 12px; border: 1px solid var(--border); color: var(--muted); }
.sc-msg.system a { color: var(--accent2); text-decoration: underline; }
.sc-input input { min-width: 0; }
.sc-input button:disabled { opacity: .55; cursor: wait; }

@media(max-width: 700px) {
  .doc-table-scroll { overflow-x:auto; max-width:100%; }
  .doc-table-scroll table, .status-table, #compare > .reveal:not(.t-scroll) table { min-width:600px; }
  #modules .t-scroll th:first-child, #modules .t-scroll td:first-child,
  #compare .t-scroll th:first-child, #compare .t-scroll td:first-child { position:sticky; left:0; z-index:1; background:#171f2d; }
  #modules .t-scroll th:first-child, #compare .t-scroll th:first-child { z-index:3; }
  #modules table th:first-child, #modules table td:first-child, #compare .t-scroll table th:first-child, #compare .t-scroll table td:first-child { width:27%; }
  #modules table th:not(:first-child), #modules table td:not(:first-child), #compare .t-scroll table th:not(:first-child), #compare .t-scroll table td:not(:first-child) { width:18.25%; }
}
