/* IRAKUSA API: облик витрины podpiski-neiroseti.shop (с 15.11.2026) — днём белое стекло
   на пиксельном небе с солнцем, ночью то же на небе с луной и звёздами.
   Подключается ПОСЛЕ irakusa.css и sky.css на /, /app, /chat и /account.
   Тему ставит /assets/irakusa/theme.js атрибутом data-theme на <html>: по умолчанию светлая,
   выбор кнопкой запоминается. Небо и Штиль в венке — sky.css и sky.js; зелёные пары зашитых
   цветов — в конце irakusa.css и встроенных <style> страниц (green_gen.py). Здесь — палитра,
   шапка из стекла с пиксельными значками, пиксельные заголовки, карточки и кнопки.
   Значения стекла, кнопок и меню — те же, что в assets/css/storefront.css витрины.
   При правке менять ?v= у ссылок на всех четырёх страницах. */

/* ── переключатель: дорожка с луной и солнцем, бегунок едет ─────────────────── */
.ik-theme{position:relative;flex:none;display:grid;place-items:center;width:60px;min-height:44px;margin:0;padding:0;
  border:0;border-radius:0;background:none;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ik-theme__track{position:relative;display:block;width:58px;height:30px;border-radius:999px;border:0;
  transition:background-color .25s,box-shadow .25s}
.ik-theme__knob{position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;
  transition:transform .35s cubic-bezier(.3,1.4,.5,1),background .3s,box-shadow .3s}
.ik-theme svg{position:absolute;top:50%;z-index:1;width:14px;height:14px;margin-top:-7px;
  fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:color .3s,opacity .3s}
.ik-theme__moon{left:8px;fill:currentColor!important;stroke:none!important}
.ik-theme__sun{right:8px}
.ik-theme:focus-visible{outline:none}
.ik-theme:focus-visible .ik-theme__track{outline:3px solid var(--lk-green);outline-offset:3px}
html[data-theme=light] .ik-theme__knob{transform:translateX(28px)}
/* день: белое стекло, бегунок — лесная зелень с белым солнцем */
html[data-theme=light] .ik-theme__track{background:rgba(255,255,255,.75);
  box-shadow:inset 0 1px 3px rgba(20,70,40,.16),inset 0 0 0 1px rgba(46,122,23,.2)}
html[data-theme=light] .ik-theme:hover .ik-theme__track{box-shadow:inset 0 1px 3px rgba(20,70,40,.16),inset 0 0 0 1px rgba(46,122,23,.42)}
html[data-theme=light] .ik-theme__knob{background:linear-gradient(180deg,#3a9a22,#1d6212);box-shadow:0 2px 5px rgba(20,70,40,.35)}
html[data-theme=light] .ik-theme__moon{color:#8a978e}
html[data-theme=light] .ik-theme__sun{color:#fff}
/* ночь: тёмно-синяя дорожка, бегунок — светлая зелень с луной */
html[data-theme=dark] .ik-theme__track{background:rgba(9,22,36,.72);
  box-shadow:inset 0 1px 4px rgba(0,0,0,.4),inset 0 0 0 1px rgba(126,203,108,.28)}
html[data-theme=dark] .ik-theme:hover .ik-theme__track{box-shadow:inset 0 1px 4px rgba(0,0,0,.4),inset 0 0 0 1px rgba(126,203,108,.5)}
html[data-theme=dark] .ik-theme__knob{background:linear-gradient(180deg,#9ad98a,#5aa83a);box-shadow:0 2px 6px rgba(0,0,0,.45)}
html[data-theme=dark] .ik-theme__moon{color:#0b1a0c}
html[data-theme=dark] .ik-theme__sun{color:#8fa39a}

/* где стоит: в шапке — правым краем; чат — правым краем верхней строки; экран входа
   в чат — в правом верхнем углу */
header>nav{margin-left:auto}
.topbar .ik-theme{margin-left:2px}
.gate>.ik-theme{position:absolute;z-index:2;top:calc(10px + env(safe-area-inset-top,0px));right:12px}
@media (max-width:680px){
  section.gate{padding-top:calc(62px + env(safe-area-inset-top,0px))}
}
@media (max-width:420px){
  .ik-theme{width:48px}
  .ik-theme__track{width:46px;height:26px}
  .ik-theme__knob{width:20px;height:20px}
  html[data-theme=light] .ik-theme__knob{transform:translateX(20px)}
  .ik-theme svg{width:11px;height:11px;margin-top:-5.5px}
  .ik-theme__moon{left:6px}.ik-theme__sun{right:6px}
}

/* смена темы кнопкой — одно растворение старой картинки страницы в новой (theme.js,
   document.startViewTransition): иначе градиенты неба меняются раньше остального */
::view-transition-old(root),::view-transition-new(root){animation-duration:.3s;animation-timing-function:ease}
@media (prefers-reduced-motion:reduce){
  .ik-theme__knob,.ik-theme__track,.ik-theme svg{transition:none}
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none}
}

/* ════════════════════════════════════════════════════════════════════════════
   ПАЛИТРА: день — белый с зелёным витрины, ночь — тёмно-синий с той же зеленью
   ════════════════════════════════════════════════════════════════════════════ */
/* --accent страницы красят скриптом в цвет семейства моделей прямо в style у <html>;
   акцент один — зелёный витрины (!important перебивает style без !important) */
html{--display:Manrope,"Segoe UI",system-ui,sans-serif}
html[data-theme=light]{color-scheme:light;
  --bg-top:#fff;--bg-bottom:#fff;--glow:transparent;
  --card:rgba(255,255,255,.82);--card-2:rgba(139,211,71,.08);--line:rgba(46,122,23,.16);
  --text:#16201a;--muted:#3f4a43;--dim:#5e6a62;
  --accent:#2e7a17!important;--accent-ink:#fff!important;
  --ok:#2e7a17;--warn:#8a5600;--bad:#c62828;--code-bg:#f3f7f1;
  --neon:#2e7a17;--neon-soft:rgba(46,122,23,.4);--silver:#3f4a43;
  scrollbar-color:rgba(46,122,23,.32) transparent}
html[data-theme=dark]{color-scheme:dark;
  --bg-top:#091624;--bg-bottom:#091624;--glow:transparent;
  --card:rgba(13,26,41,.78);--card-2:rgba(17,30,44,.9);--line:rgba(126,203,108,.16);
  --text:#dfede4;--muted:#c8d5cd;--dim:#abb8af;
  --accent:#7ecb6c!important;--accent-ink:#0b1a0c!important;
  --code-bg:#06101b;
  --neon:#7ecb6c;--neon-soft:rgba(126,203,108,.4);--silver:#c8d5cd;
  scrollbar-color:rgba(126,203,108,.3) transparent}
html[data-theme=light] ::selection{background:rgba(139,211,71,.38);color:#10200b}
html[data-theme=dark] ::selection{background:rgba(126,203,108,.32);color:#fff}

/* прежний неоновый облик: фон-градиент, зерно, виньетка, споры, линия с точками — снят;
   под содержимым теперь небо (sky.js) */
html::before,body::before,body::after,.ik-spores,.ik-rule{display:none!important}
html[data-theme=light] body{color:var(--text);background:#fff}
html[data-theme=dark] body{color:var(--text);background:#091624}
html[data-theme=light] a{color:#2e7a17}
html[data-theme=light] a:hover{color:#1d6212}
html[data-theme=dark] a{color:#9ad98a}
html[data-theme=dark] a:hover{color:#c4efb9}
.wrap>*,.shell>header{animation-duration:.55s}

/* ════════════════════════════════════════════════════════════════════════════
   ШАПКА: стеклянная плашка шире текста страницы, робот и надпись IRAKUSA, меню-«пилюли»
   с пиксельными значками
   ════════════════════════════════════════════════════════════════════════════ */
.wrap>header{position:relative;z-index:5;box-sizing:border-box;width:min(1200px,calc(100vw - 24px));left:50%;translate:-50% 0;
  display:flex;align-items:center;flex-wrap:nowrap;gap:14px;min-height:68px;margin:0 0 clamp(16px,2.4vw,30px);
  padding:0 12px 0 18px;border:0;border-radius:22px;
  -webkit-backdrop-filter:blur(18px) saturate(1.5);backdrop-filter:blur(18px) saturate(1.5)}
html[data-theme=light] .wrap>header{background:linear-gradient(180deg,rgba(255,255,255,.5),rgba(255,255,255,.3));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),inset 0 0 0 1px rgba(255,255,255,.5),0 0 0 1px rgba(46,122,23,.1),
    0 18px 36px -22px rgba(20,70,40,.42),0 0 30px -14px rgba(139,211,71,.45)}
html[data-theme=dark] .wrap>header{background:linear-gradient(180deg,rgba(9,22,36,.5),rgba(9,22,36,.3));
  box-shadow:inset 0 1px 0 rgba(210,225,234,.152),inset 0 0 0 1px rgba(210,225,234,.08),0 0 0 1px rgba(92,168,73,.1),
    0 18px 36px -22px rgba(0,0,0,.6),0 0 30px -14px rgba(92,168,73,.3)}

/* марка: пиксельный робот вместо эмблемы, надпись — пиксельная картинка, «API» — зелёная плашка */
.ik-brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none}
.wrap>header .ik-brand{flex:none}
.wrap>header .ik-brand::after{content:"";flex:none;width:1px;height:32px;margin-left:8px;
  background:linear-gradient(180deg,rgba(46,122,23,0),rgba(46,122,23,.32),rgba(46,122,23,0))}
html[data-theme=dark] .wrap>header .ik-brand::after{background:linear-gradient(180deg,rgba(126,203,108,0),rgba(126,203,108,.32),rgba(126,203,108,0))}
html[data-theme] .ik-mark{width:46px;height:38px;border-radius:0;
  background:url(/assets/shtil/irakusa-robot.svg?v=20261114) center/contain no-repeat;
  filter:drop-shadow(0 3px 5px rgba(22,52,30,.22));transition:transform .25s cubic-bezier(.3,1.4,.5,1)}
html[data-theme] .ik-mark::before,html[data-theme] .ik-mark::after,html[data-theme] .ik-mark img{display:none}
.ik-brand:hover .ik-mark{transform:rotate(-6deg) translateY(-1px)}
html[data-theme] .ik-name{gap:5px}
html[data-theme] .ik-word{gap:8px}
html[data-theme] .ik-word b{display:block;flex:none;width:124px;height:15px;font-size:0;letter-spacing:0;color:transparent;animation:none;
  background:url(/assets/shtil/irakusa-word.svg?v=20261114) left center/contain no-repeat;
  -webkit-background-clip:border-box;background-clip:border-box}
html[data-theme=dark] .ik-word b{background-image:url(/assets/shtil/irakusa-word-night.svg?v=20261115)}
html[data-theme] .ik-word .star{display:none}
html[data-theme] .ik-word i{display:inline-block;padding:4px 5px 3px;border:0;border-radius:0;
  font:400 8px/1 var(--px-font);font-style:normal;letter-spacing:0;text-shadow:none;-webkit-font-smoothing:none;
  background:var(--lk-lime);color:var(--lk-lime-ink);
  box-shadow:inset -2px -2px 0 rgba(16,32,11,.2),inset 2px 2px 0 rgba(255,255,255,.45);
  clip-path:polygon(0 2px,2px 2px,2px 0,calc(100% - 2px) 0,calc(100% - 2px) 2px,100% 2px,100% calc(100% - 2px),calc(100% - 2px) calc(100% - 2px),calc(100% - 2px) 100%,2px 100%,2px calc(100% - 2px),0 calc(100% - 2px))}
html[data-theme=dark] .ik-word i{box-shadow:inset -2px -2px 0 rgba(0,0,0,.25),inset 2px 2px 0 rgba(255,255,255,.12)}
html[data-theme] .ik-name small{font:600 12px/1.2 Manrope,"Segoe UI",sans-serif;letter-spacing:0;color:var(--dim)}

/* меню: «пилюли» из стекла, у каждой свой пиксельный значок (по адресу ссылки) */
.wrap>header nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px;min-width:0}
.wrap>header nav a{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin:0;padding:0 14px 0 8px;
  border:0;border-radius:999px;font:700 14px/1 Manrope,"Segoe UI",sans-serif;letter-spacing:0;white-space:nowrap;text-decoration:none;
  transition:color .2s,background .2s,box-shadow .2s,transform .2s}
.wrap>header nav a::before{content:"";flex:none;width:28px;height:28px;margin:-4px 0;
  background:var(--nav-px,url(/assets/px/nav-guide.webp)) center/contain no-repeat;filter:drop-shadow(0 2px 2px rgba(20,70,40,.22))}
.wrap>header nav a[href*="#catalog"]{--nav-px:url(/assets/px/nav-catalog.webp)}
.wrap>header nav a[href="/"]{--nav-px:url(/assets/px/nav-guide.webp)}
.wrap>header nav a[href="/app"]{--nav-px:url(/assets/px/cat-apps.webp)}
.wrap>header nav a[href="/chat"]{--nav-px:url(/assets/px/help-chat.webp)}
.wrap>header nav a[href="/account"]{--nav-px:url(/assets/shtil/px-coins.webp)}
.wrap>header nav a[href*="t.me"]{--nav-px:url(/assets/shtil/px-plane.webp)}
.wrap>header nav a:hover{transform:translateY(-1px)}
html[data-theme=light] .wrap>header nav a{color:#123a22;
  background:linear-gradient(180deg,rgba(255,255,255,.46),rgba(255,255,255,.12));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),inset 0 0 0 1px rgba(255,255,255,.62),inset 0 -8px 14px -10px rgba(139,211,71,.45),
    0 0 0 1px rgba(46,122,23,.16),0 6px 14px -10px rgba(20,70,40,.45)}
html[data-theme=light] .wrap>header nav a:hover{color:#0d2c18;background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,255,255,.3))}
html[data-theme=light] .wrap>header nav a[aria-current=page]{color:#0d2c18;
  background:linear-gradient(180deg,rgba(255,255,255,.62),rgba(139,211,71,.3));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),inset 0 0 0 1px rgba(255,255,255,.62),0 0 0 1.5px rgba(46,122,23,.42),0 6px 14px -10px rgba(20,70,40,.45)}
html[data-theme=dark] .wrap>header nav a{color:#bfebcc;
  background:linear-gradient(180deg,rgba(9,22,36,.46),rgba(9,22,36,.12));
  box-shadow:inset 0 1px 0 rgba(210,225,234,.152),inset 0 0 0 1px rgba(210,225,234,.08),inset 0 -8px 14px -10px rgba(92,168,73,.4),
    0 0 0 1px rgba(92,168,73,.16),0 6px 14px -10px rgba(0,0,0,.6)}
html[data-theme=dark] .wrap>header nav a:hover{color:#cdf1d5;background:linear-gradient(180deg,rgba(9,22,36,.72),rgba(9,22,36,.3))}
html[data-theme=dark] .wrap>header nav a[aria-current=page]{color:#cdf1d5;
  background:linear-gradient(180deg,rgba(9,22,36,.62),rgba(48,84,5,.3));
  box-shadow:inset 0 1px 0 rgba(210,225,234,.152),0 0 0 1.5px rgba(92,168,73,.42),0 6px 14px -10px rgba(0,0,0,.6)}
.wrap>header nav a:focus-visible{outline:3px solid var(--lk-green);outline-offset:2px}

/* до 1150 px меню не помещается в одну строку с маркой — уходит на вторую строку плашки */
@media (max-width:1150px){
  .wrap>header{flex-wrap:wrap;row-gap:4px;padding:8px 10px 10px 16px}
  .wrap>header .ik-brand::after{display:none}
  .wrap>header>.ik-theme{order:1;margin-left:auto}
  .wrap>header>nav{order:2;flex:1 1 100%;justify-content:flex-start;margin-left:0}
}
@media (max-width:900px){
  .wrap>header{min-height:58px;padding:6px 8px 8px 12px;border-radius:18px}
  html[data-theme=light] .wrap>header{background:linear-gradient(180deg,rgba(255,255,255,.66),rgba(255,255,255,.5))}
  html[data-theme=dark] .wrap>header{background:linear-gradient(180deg,rgba(9,22,36,.66),rgba(9,22,36,.5))}
  html[data-theme] .ik-mark{width:40px;height:33px}
  html[data-theme] .ik-word b{width:107px;height:13px}
}
/* телефон: «пилюли» в одну строку с прокруткой пальцем; текущий раздел sky.js подкручивает в вид */
@media (max-width:760px){
  .wrap>header>nav{flex-wrap:nowrap;justify-content:flex-start;gap:6px;margin:0 -8px 0 -12px;padding:4px 12px 8px;
    overflow-x:auto;overscroll-behavior-x:contain;scroll-padding-inline:12px;scrollbar-width:none;
    -webkit-mask-image:linear-gradient(90deg,transparent,#000 12px,#000 calc(100% - 22px),transparent);
    mask-image:linear-gradient(90deg,transparent,#000 12px,#000 calc(100% - 22px),transparent)}
  .wrap>header>nav::-webkit-scrollbar{display:none}
  .wrap>header nav a{flex:none;min-height:40px;padding:0 13px 0 7px;font-size:13.5px}
  .wrap>header nav a::before{width:24px;height:24px}
  .wrap>header nav a:hover{transform:none}
}
@media (max-width:380px){
  html[data-theme] .ik-mark{width:36px;height:30px}
  html[data-theme] .ik-word b{width:91px;height:11px}
}

/* ════════════════════════════════════════════════════════════════════════════
   ТЕКСТ: крупные заголовки — пиксельным шрифтом, как на витрине; цены и цифры — Manrope
   (в пиксельном шрифте нет ₽)
   ════════════════════════════════════════════════════════════════════════════ */
html[data-theme] body :is(h1,h2){font-family:var(--px-font);font-weight:400;font-style:normal;font-synthesis:none;
  letter-spacing:0;word-spacing:-.4em;text-transform:none;line-height:1.45;text-wrap:balance;overflow-wrap:break-word;
  -webkit-font-smoothing:none}
html[data-theme] body h1{font-size:24px}
html[data-theme] body h2{font-size:16px}
html[data-theme=light] body :is(h1,h2){color:#123a22}
html[data-theme=dark] body :is(h1,h2){color:#e6f5ea}
@media (max-width:900px){html[data-theme] body h1{font-size:20px}}
@media (max-width:480px){
  html[data-theme] body h1{font-size:16px}
  html[data-theme] body h2{font-size:14px}
}
html[data-theme] .ik-hero .lead{color:var(--muted)}

/* кикер над заголовком: стеклянная «пилюля» с пиксельным значком */
html[data-theme] .ik-kicker{display:inline-flex;align-items:center;gap:9px;margin:0 0 14px;padding:5px 15px 5px 7px;
  border-radius:999px;font:700 13px/1.2 Manrope,"Segoe UI",sans-serif;letter-spacing:0;text-transform:none;text-shadow:none;
  color:var(--lk-text-2)}
html[data-theme] .ik-kicker::before{content:"";flex:none;width:24px;height:24px;margin:0;
  background:var(--kick-px,url(/assets/px/cat-api.webp)) center/contain no-repeat}
html[data-theme] .ik-kicker--app{--kick-px:url(/assets/px/cat-apps.webp)}
html[data-theme=light] .ik-kicker{background:rgba(255,255,255,.8);box-shadow:inset 0 0 0 1px rgba(46,122,23,.16),0 6px 16px -10px rgba(18,64,28,.35)}
html[data-theme=dark] .ik-kicker{background:rgba(9,22,36,.8);box-shadow:inset 0 0 0 1px rgba(92,168,73,.16),0 6px 16px -10px rgba(0,0,0,.5)}
/* первый экран без Штиля (кабинет) — одна колонка */
.ik-hero:not(.sh-hero){grid-template-columns:minmax(0,1fr)}

/* ════════════════════════════════════════════════════════════════════════════
   КАРТОЧКИ, КНОПКИ, ШАГИ
   ════════════════════════════════════════════════════════════════════════════ */
:is(.card,.login)::before{display:none}
html[data-theme] :is(.card,.login){border:0;border-radius:28px;
  -webkit-backdrop-filter:blur(10px) saturate(1.3);backdrop-filter:blur(10px) saturate(1.3)}
html[data-theme=light] :is(.card,.login){background:linear-gradient(180deg,rgba(255,255,255,.84),rgba(240,249,236,.7));
  box-shadow:inset 0 1px 0 #fff,inset 0 0 0 1px rgba(255,255,255,.6),0 0 0 1px rgba(46,122,23,.1),0 22px 44px -32px rgba(18,64,28,.4)}
html[data-theme=dark] :is(.card,.login){background:linear-gradient(180deg,rgba(9,22,36,.84),rgba(23,28,20,.7));
  box-shadow:inset 0 1px 0 rgba(210,225,234,.026),inset 0 0 0 1px rgba(210,225,234,.096),0 0 0 1px rgba(92,168,73,.1),0 22px 44px -32px rgba(0,0,0,.68)}
@media (max-width:720px){html[data-theme] :is(.card,.login){border-radius:22px}}

/* панель чатов: стекло во всю высоту, без скругления */
html[data-theme=light] aside{background:linear-gradient(180deg,rgba(255,255,255,.88),rgba(240,249,236,.8));
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-right-color:rgba(46,122,23,.14);box-shadow:none}
html[data-theme=dark] aside{background:linear-gradient(180deg,rgba(9,22,36,.9),rgba(13,26,41,.84));
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-right-color:rgba(126,203,108,.14);box-shadow:none}
@media (max-width:820px){
  html[data-theme=light] :is(.app aside,aside.open){background:linear-gradient(180deg,#fff,#f3f9ef);box-shadow:30px 0 80px rgba(22,52,30,.22)}
  html[data-theme=dark] :is(.app aside,aside.open){background:linear-gradient(180deg,#0d1a29,#091624);box-shadow:30px 0 80px rgba(0,0,0,.55)}
}

/* плитки кабинета */
html[data-theme] a.dash-card{border:0;border-radius:22px}
html[data-theme=light] a.dash-card{background:linear-gradient(180deg,#fff,rgba(246,251,243,.94));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.95),0 0 0 1px rgba(46,122,23,.11),0 12px 26px -20px rgba(18,64,28,.45)}
html[data-theme=light] a.dash-card:hover{box-shadow:inset 0 0 0 1px rgba(255,255,255,.95),0 0 0 1.5px rgba(46,122,23,.36),0 18px 34px -20px rgba(18,64,28,.5)}
html[data-theme=dark] a.dash-card{background:linear-gradient(180deg,rgba(13,26,41,.92),rgba(17,30,44,.86));
  box-shadow:inset 0 0 0 1px rgba(210,225,234,.08),0 0 0 1px rgba(92,168,73,.12),0 12px 26px -20px rgba(0,0,0,.6)}
html[data-theme=dark] a.dash-card:hover{box-shadow:inset 0 0 0 1px rgba(210,225,234,.1),0 0 0 1.5px rgba(126,203,108,.4),0 18px 34px -20px rgba(0,0,0,.65)}
html[data-theme] .dash-card .go{color:var(--lk-green);text-shadow:none}
html[data-theme] .dash-card .ico{filter:drop-shadow(0 4px 6px rgba(22,52,30,.2))}

/* главная кнопка — лесная зелень витрины, без бегущего блика */
html[data-theme] :is(button.primary,.btn.primary,.tf-buy){background:var(--lk-forest-bg);color:#fff;border-color:transparent;box-shadow:var(--lk-sh-forest)}
html[data-theme] :is(button.primary,.btn.primary,.tf-buy):hover:not(:disabled){background:var(--lk-forest-hi-2) linear-gradient(180deg,var(--lk-forest-hi),var(--lk-forest-hi-2));filter:none}
html[data-theme] :is(button.primary,.btn.primary)::after{display:none}
html[data-theme] :is(button.primary,.btn.primary,.tf-buy):focus-visible{outline:3px solid var(--lk-green);outline-offset:2px}

/* номер шага — пиксельный квадрат с лаймом */
html[data-theme] :is(.num,.guide ol>li::before){border:0;border-radius:0;background:var(--lk-lime);color:var(--lk-lime-ink);
  font:400 13px/1 var(--px-font);-webkit-font-smoothing:none;
  box-shadow:inset -4px -4px 0 rgba(16,32,11,.2),inset 4px 4px 0 rgba(255,255,255,.5);
  clip-path:polygon(0 4px,4px 4px,4px 0,calc(100% - 4px) 0,calc(100% - 4px) 4px,100% 4px,100% calc(100% - 4px),calc(100% - 4px) calc(100% - 4px),calc(100% - 4px) 100%,4px 100%,4px calc(100% - 4px),0 calc(100% - 4px))}
html[data-theme] .num{width:38px;height:38px;font-size:14px}
html[data-theme] .guide ol>li::before{width:28px;height:28px;font-size:11px;
  box-shadow:inset -3px -3px 0 rgba(16,32,11,.2),inset 3px 3px 0 rgba(255,255,255,.5);
  clip-path:polygon(0 3px,3px 3px,3px 0,calc(100% - 3px) 0,calc(100% - 3px) 3px,100% 3px,100% calc(100% - 3px),calc(100% - 3px) calc(100% - 3px),calc(100% - 3px) 100%,3px 100%,3px calc(100% - 3px),0 calc(100% - 3px))}
html[data-theme=dark] :is(.num,.guide ol>li::before){box-shadow:inset -3px -3px 0 rgba(0,0,0,.28),inset 3px 3px 0 rgba(255,255,255,.12)}

/* шаги инструкции и вопросы — белые карточки внутри стекла */
html[data-theme] :is(.guide ol>li,details){border:0;border-radius:16px}
html[data-theme=light] :is(.guide ol>li,details){background:linear-gradient(180deg,#fff,rgba(246,251,243,.92));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.95),0 0 0 1px rgba(46,122,23,.1),0 8px 18px -16px rgba(18,64,28,.4)}
html[data-theme=dark] :is(.guide ol>li,details){background:linear-gradient(180deg,rgba(13,26,41,.92),rgba(9,22,36,.86));
  box-shadow:inset 0 0 0 1px rgba(210,225,234,.07),0 0 0 1px rgba(92,168,73,.12),0 8px 18px -16px rgba(0,0,0,.6)}
html[data-theme] details summary{font-weight:800}
html[data-theme] details summary::marker{color:var(--lk-green)}

/* поля ввода и выбранные «чипы» */
html[data-theme=light] :is(input[type=text],input[type=password],input[type=search],select,textarea):focus{border-color:rgba(46,122,23,.5);box-shadow:var(--lk-ring);outline:none}
html[data-theme=dark] :is(input[type=text],input[type=password],input[type=search],select,textarea):focus{border-color:rgba(126,203,108,.5);box-shadow:0 0 0 3px rgba(126,203,108,.25);outline:none}
html[data-theme=light] .chip[aria-pressed=true]{box-shadow:inset 0 0 0 1.5px rgba(46,122,23,.42),0 6px 14px -10px rgba(20,70,40,.45)}
html[data-theme=dark] .chip[aria-pressed=true]{box-shadow:inset 0 0 0 1.5px rgba(126,203,108,.45)}

/* предупреждения — тёплый жёлтый днём; в чате у плашек рамка мягче */
html[data-theme=light] .note:not(.ok){background:#fff5dc;border-color:#e0a12a}
html[data-theme=light] :is(.gate,.app) :is(.hint,.note){background:#fff6e2;border-color:rgba(214,150,20,.45)}

/* тарифы на главной: цена — зелёным Manrope */
html[data-theme] .tf-plan__rub{color:var(--lk-green);font-family:Manrope,"Segoe UI",sans-serif;font-weight:800}

/* ════════════════════════════════════════════════════════════════════════════
   ЧАТ
   ════════════════════════════════════════════════════════════════════════════ */
/* Штиль в венке вместо видео-эмблемы — картинка без движения. Днём — shtil-day-scene: за кольцом прозрачна,
   без квадрата неба и свечения вокруг круга (15.11.2026, как на главной) */
html[data-theme] .ik-emblem.small{background:url(/assets/shtil/shtil-day-scene-720.webp?v=20261115) center/contain no-repeat;
  filter:drop-shadow(0 10px 18px rgba(18,64,28,.22))}
html[data-theme=dark] .ik-emblem.small{background-image:url(/assets/shtil/shtil-night-scene-720.webp?v=20261115b);filter:drop-shadow(0 10px 18px rgba(0,0,0,.45))}
.ik-emblem::before,.ik-emblem::after{display:none}
html[data-theme] .login .ik-emblem.small{max-width:150px}
html[data-theme] .hero .ik-emblem.small{max-width:138px}
html[data-theme] .gate-word{gap:8px}
html[data-theme] .gate-word b{width:150px;height:18px}
/* марка в панели чатов — меньше */
html[data-theme] .side-head .ik-mark{width:36px;height:30px}
html[data-theme] aside .ik-word b{width:100px;height:12px}
/* ссылки внизу панели и на экране входа — зелёные; плитка «Авто» зелёная — текст на ней белый */
html[data-theme=light] .side-nav button{color:#2e7a17}
html[data-theme=dark] .side-nav button{color:#9ad98a}
html[data-theme=light] .f-auto{color:#fff}

/* ════════════════════════════════════════════════════════════════════════════
   /app: ОГЛАВЛЕНИЕ И ВИДЕОИНСТРУКЦИЯ (с 15.11.2026)
   ════════════════════════════════════════════════════════════════════════════ */
html[data-theme] nav.toc{gap:6px}
html[data-theme] nav.toc a{display:inline-flex;align-items:center;min-height:38px;padding:0 15px;border:0;
  font:700 13.5px/1 Manrope,"Segoe UI",sans-serif;transition:background .2s,box-shadow .2s}
html[data-theme=light] nav.toc a{color:#123a22;background:rgba(255,255,255,.78);
  box-shadow:inset 0 1px 0 #fff,0 0 0 1px rgba(46,122,23,.16),0 6px 14px -10px rgba(20,70,40,.45)}
html[data-theme=light] nav.toc a:hover{background:#fff;box-shadow:inset 0 1px 0 #fff,0 0 0 1.5px rgba(46,122,23,.38),0 6px 14px -10px rgba(20,70,40,.45)}
html[data-theme=dark] nav.toc a{color:#bfebcc;background:rgba(9,22,36,.62);box-shadow:inset 0 1px 0 rgba(210,225,234,.08),0 0 0 1px rgba(92,168,73,.2)}
html[data-theme=dark] nav.toc a:hover{background:rgba(9,22,36,.85);box-shadow:inset 0 1px 0 rgba(210,225,234,.08),0 0 0 1.5px rgba(126,203,108,.45)}

.vid{scroll-margin-top:16px}
.vid video{display:block;width:100%;height:auto;background:#06101b;border-radius:16px}
.vid-full{position:relative;margin:4px 0 0;border-radius:18px;overflow:hidden}
.vid-full video{aspect-ratio:16/9;border-radius:0}
.vid-ch{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0}
.vid-ch button{display:inline-flex;align-items:center;gap:8px;min-height:40px;margin:0;padding:0 14px 0 6px;border:0;border-radius:999px;
  font:600 13.5px/1.2 Manrope,"Segoe UI",sans-serif;color:var(--text);cursor:pointer;text-align:left;
  transition:background .2s,box-shadow .2s}
.vid-ch b{flex:none;padding:5px 8px;border-radius:999px;font:700 12px/1 "JetBrains Mono",ui-monospace,monospace;background:var(--lk-lime);color:var(--lk-lime-ink)}
.vid-ch button:focus-visible{outline:3px solid var(--lk-green);outline-offset:2px}
html[data-theme=light] .vid-ch button{background:#fff;box-shadow:0 0 0 1px rgba(46,122,23,.16),0 6px 14px -10px rgba(20,70,40,.4)}
html[data-theme=light] .vid-ch button:hover,html[data-theme=light] .vid-ch button[aria-current]{box-shadow:0 0 0 1.5px rgba(46,122,23,.45),0 6px 14px -10px rgba(20,70,40,.4)}
html[data-theme=light] .vid-ch button[aria-current]{background:linear-gradient(180deg,#fff,rgba(139,211,71,.28))}
html[data-theme=dark] .vid-ch button{background:rgba(9,22,36,.7);box-shadow:0 0 0 1px rgba(126,203,108,.2)}
html[data-theme=dark] .vid-ch button:hover,html[data-theme=dark] .vid-ch button[aria-current]{box-shadow:0 0 0 1.5px rgba(126,203,108,.5)}
html[data-theme=dark] .vid-ch button[aria-current]{background:linear-gradient(180deg,rgba(9,22,36,.7),rgba(48,84,5,.45))}
.vid-h3{margin:26px 0 4px;font:800 17px/1.3 Manrope,"Segoe UI",sans-serif;color:var(--text)}
html.stv .vid-h3{margin-top:4px}
.vid-shorts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:14px 0 0}
.vid-short{margin:0;min-width:0}
.vid-short video{aspect-ratio:9/16;object-fit:cover}
.vid-short figcaption{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-top:8px;font-size:13.5px;line-height:1.35;color:var(--muted)}
.vid-short figcaption b{color:var(--text);font-weight:700}
.vid-short figcaption span{flex:none;font:600 12px/1 "JetBrains Mono",ui-monospace,monospace;color:var(--dim)}
html[data-theme=light] .vid-short video{box-shadow:0 0 0 1px rgba(46,122,23,.14),0 16px 30px -22px rgba(18,64,28,.5)}
html[data-theme=dark] .vid-short video{box-shadow:0 0 0 1px rgba(126,203,108,.16),0 16px 30px -22px rgba(0,0,0,.7)}
html[data-theme=light] .vid-full{box-shadow:0 0 0 1px rgba(46,122,23,.14),0 18px 36px -24px rgba(18,64,28,.5)}
html[data-theme=dark] .vid-full{box-shadow:0 0 0 1px rgba(126,203,108,.16),0 18px 36px -24px rgba(0,0,0,.7)}
@media (max-width:820px){.vid-shorts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){
  .vid-ch{display:grid;grid-template-columns:minmax(0,1fr)}
  .vid-ch button{min-height:42px}
  .vid-shorts{gap:10px}
  .vid-short figcaption{flex-direction:column;gap:3px;font-size:12.5px}
}

/* ── плашка «Светлая или тёмная?» при первом входе (с 02.11.2026) ─────────────
   Её строит theme.js один раз на посетителя. Тот же блок — в irakusa-theme.css витрины
   и шлюза. Над нижней панелью меню телефона (--ik-tabbar, на витрине) и под окнами: z-index 25. */
.ik-ask{position:fixed;right:max(16px,env(safe-area-inset-right,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:25;
  box-sizing:border-box;width:min(340px,calc(100vw - 24px));margin:0;padding:16px;
  border:0;border-radius:20px;color:var(--text);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  animation:ik-ask-in .42s cubic-bezier(.2,.8,.2,1) .6s backwards}
.ik-ask__t{margin:0 34px 6px 0;font:800 15px/1.3 Manrope,"Segoe UI",sans-serif;color:var(--text)}
.ik-ask__d{margin:0 0 14px;font-size:13px;line-height:1.45;color:var(--muted)}
.ik-ask__b{display:flex;gap:8px}
.ik-ask__b button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin:0;padding:0 12px;
  border:0;border-radius:999px;color:var(--text);
  font:inherit;font-size:14px;font-weight:700;cursor:pointer;-webkit-tap-highlight-color:transparent;
  transition:background-color .2s,box-shadow .2s}
.ik-ask svg{flex:none;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ik-ask svg.ik-ask__moon{fill:currentColor;stroke:none}
.ik-ask__x{position:absolute;top:6px;right:6px;display:grid;place-items:center;width:40px;height:40px;margin:0;padding:0;
  border:0;border-radius:50%;background:none;color:var(--muted);cursor:pointer}
.ik-ask button:focus-visible{outline:3px solid var(--lk-green);outline-offset:2px}
.ik-ask.is-out{opacity:0;transform:translateY(10px);transition:opacity .2s,transform .2s}
@keyframes ik-ask-in{from{opacity:0;transform:translateY(16px)}}
html[data-theme=light] .ik-ask{background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(243,249,239,.94));
  box-shadow:inset 0 1px 0 #fff,0 0 0 1px rgba(46,122,23,.12),0 26px 56px -28px rgba(18,64,28,.5)}
html[data-theme=light] .ik-ask__b button{background:#fff;box-shadow:0 0 0 1px rgba(46,122,23,.16),0 6px 14px -10px rgba(20,70,40,.4)}
html[data-theme=light] .ik-ask__b button:hover{box-shadow:0 0 0 1px rgba(46,122,23,.36),0 6px 14px -10px rgba(20,70,40,.4)}
html[data-theme=light] .ik-ask__b button[aria-pressed=true]{background:linear-gradient(180deg,#fff,rgba(139,211,71,.3));box-shadow:0 0 0 1.5px rgba(46,122,23,.42)}
html[data-theme=light] .ik-ask__x:hover{color:var(--text);background:rgba(46,122,23,.08)}
html[data-theme=dark] .ik-ask{background:linear-gradient(180deg,rgba(13,26,41,.97),rgba(9,22,36,.97));
  box-shadow:inset 0 1px 0 rgba(210,225,234,.08),0 0 0 1px rgba(126,203,108,.16),0 26px 60px -24px rgba(0,0,0,.8)}
html[data-theme=dark] .ik-ask__b button{background:rgba(9,22,36,.6);box-shadow:0 0 0 1px rgba(126,203,108,.2)}
html[data-theme=dark] .ik-ask__b button:hover{box-shadow:0 0 0 1px rgba(126,203,108,.42)}
html[data-theme=dark] .ik-ask__b button[aria-pressed=true]{background:linear-gradient(180deg,rgba(9,22,36,.62),rgba(48,84,5,.4));box-shadow:0 0 0 1.5px rgba(126,203,108,.45)}
html[data-theme=dark] .ik-ask__x:hover{color:var(--text);background:rgba(126,203,108,.1)}
@media (max-width:900px){
  .ik-ask{left:12px;right:12px;width:auto;bottom:calc(var(--ik-tabbar,0px) + 12px + env(safe-area-inset-bottom,0px))}
}
@media (prefers-reduced-motion:reduce){
  .ik-ask{animation:none}
  .ik-ask.is-out,.ik-ask__b button,.ik-mark,.wrap>header nav a{transition:none}
}
