/* ВходПро — the site's one stylesheet, shared by index.html, vrati.html, domoupravitel.html,
   ai-asistent.html and predstoi.html (17.11.2026, the owner's 2А: one page per package). Each page
   keeps only its tiny pre-paint script inline (theme and language from localStorage, no flash).
   privacy-policy.html stays standalone with its own small style block. The pages link it (and
   assets/site.js) with ?v=<date>: change that date in all five pages whenever this file changes, so
   a returning visitor never pairs a new page with a stylesheet the browser kept from before. */

/* ---------- fonts ----------
   One variable file per alphabet (weights 400–800 all come from it). The
   fallback is Arial resized to Sofia Sans's width and height, so the text
   does not re-wrap when the real font arrives; bold has its own ratio. */
@font-face{font-family:"Sofia Sans";font-style:normal;font-weight:1 1000;font-display:swap;
  src:url(fonts/sofia-sans-cyrillic.woff2) format("woff2");
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Sofia Sans";font-style:normal;font-weight:1 1000;font-display:swap;
  src:url(fonts/sofia-sans-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:"Sofia Sans Fallback";font-weight:100 599;
  src:local("Arial"),local("ArialMT"),local("Liberation Sans"),local("Arimo");
  size-adjust:98.8%;ascent-override:91.1%;descent-override:30.4%;line-gap-override:0%}
@font-face{font-family:"Sofia Sans Fallback";font-weight:600 1000;
  src:local("Arial Bold"),local("Arial-BoldMT"),local("Liberation Sans Bold"),local("Arimo Bold");
  size-adjust:92%;ascent-override:97.8%;descent-override:32.6%;line-gap-override:0%}
/* English text is narrower in Sofia Sans than Bulgarian, so it gets its own ratios. */
@font-face{font-family:"Sofia Sans Fallback EN";font-weight:100 599;
  src:local("Arial"),local("ArialMT"),local("Liberation Sans"),local("Arimo");
  size-adjust:95.8%;ascent-override:94%;descent-override:31.3%;line-gap-override:0%}
@font-face{font-family:"Sofia Sans Fallback EN";font-weight:600 1000;
  src:local("Arial Bold"),local("Arial-BoldMT"),local("Liberation Sans Bold"),local("Arimo Bold");
  size-adjust:91.3%;ascent-override:98.6%;descent-override:32.9%;line-gap-override:0%}

/* ---------- tokens ----------
   One accent (indigo). Only the tokens change between themes; everything
   below reads them. Dark is defined for an explicit choice AND for the OS
   preference, with the OS rule stepping aside when light was picked by hand.
   The product screenshots are light-only (the app pins its web view to
   light), so they stay light in both themes, inside their frames. */
:root{
  color-scheme:light;
  --bg:#ffffff;
  --bg-2:#f5f6f9;
  --card:#ffffff;
  --chrome:#f3f4f7;            /* browser-frame bar */
  --ink:#0e1525;               /* headings */
  --ink-2:#384255;             /* body copy */
  --muted:#5a6476;             /* secondary copy, 5.9:1 on white */
  --line:#e4e7ed;
  --line-2:#d3d8e1;
  --accent:#4338ca;            /* links, icons, eyebrows — 7.9:1 on white */
  --accent-soft:#eef0fd;
  --btn:#4338ca;
  --btn-hover:#3730a3;
  --btn-ink:#ffffff;
  --band:#0e1525;              /* the deliberately inverted „Иновации“ band */
  --band-ink:#f4f6fb;
  --band-muted:#b4bccb;
  --band-accent:#a5b4fc;       /* the same indigo, lightened for a dark ground */
  /* the AI section (07.11.2026): a calm indigo glow, glassy cards over it, and the
     three colours „Днес“ speaks in, each with its word beside it */
  --glass:rgba(255,255,255,.72);
  --glass-line:rgba(67,56,202,.15);
  --glow-a:rgba(67,56,202,.13);
  --glow-b:rgba(67,56,202,.07);
  --ring-a:rgba(67,56,202,.55);
  --ring-b:rgba(67,56,202,.22);
  --red:#c8281e;
  --red-soft:#fdeceb;
  --ok:#15803d;
  --topbar:rgba(255,255,255,.88);
  --shadow-1:0 1px 2px rgba(14,21,37,.06);
  --shadow-2:0 14px 34px -16px rgba(14,21,37,.22);
  --shadow-3:0 40px 80px -34px rgba(14,21,37,.40);
  --metal-1:#e6e9ef;           /* the laptop's base in the hero */
  --metal-2:#c3c8d2;
  --metal-3:#9aa1ae;
  --maxw:1200px;
  --r:18px;
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --bg:#0b1020;
  --bg-2:#10172a;
  --card:#141c31;
  --chrome:#1a2340;
  --ink:#eef1f7;
  --ink-2:#c7cedb;
  --muted:#9ca6b9;
  --line:#222c45;
  --line-2:#2e3a5a;
  --accent:#a5b4fc;
  --accent-soft:#1d2546;
  --btn:#a5b4fc;
  --btn-hover:#c7d2fe;
  --btn-ink:#0b1020;
  --band:#1b2550;
  --band-ink:#eef1f7;
  --band-muted:#b9c2d6;
  --topbar:rgba(11,16,32,.86);
  --glass:rgba(20,28,49,.7);
  --glass-line:rgba(165,180,252,.17);
  --glow-a:rgba(99,102,241,.28);
  --glow-b:rgba(99,102,241,.13);
  --ring-a:rgba(165,180,252,.6);
  --ring-b:rgba(165,180,252,.2);
  --red:#f87171;
  --red-soft:rgba(248,113,113,.14);
  --ok:#4ade80;
  --shadow-1:0 1px 2px rgba(0,0,0,.4);
  --shadow-2:0 14px 34px -16px rgba(0,0,0,.7);
  --shadow-3:0 40px 80px -34px rgba(0,0,0,.85);
  --metal-1:#9aa2b2;
  --metal-2:#6f7789;
  --metal-3:#4d5466;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    color-scheme:dark;
    --bg:#0b1020;
    --bg-2:#10172a;
    --card:#141c31;
    --chrome:#1a2340;
    --ink:#eef1f7;
    --ink-2:#c7cedb;
    --muted:#9ca6b9;
    --line:#222c45;
    --line-2:#2e3a5a;
    --accent:#a5b4fc;
    --accent-soft:#1d2546;
    --btn:#a5b4fc;
    --btn-hover:#c7d2fe;
    --btn-ink:#0b1020;
    --band:#1b2550;
    --band-ink:#eef1f7;
    --band-muted:#b9c2d6;
    --topbar:rgba(11,16,32,.86);
    --glass:rgba(20,28,49,.7);
    --glass-line:rgba(165,180,252,.17);
    --glow-a:rgba(99,102,241,.28);
    --glow-b:rgba(99,102,241,.13);
    --ring-a:rgba(165,180,252,.6);
    --ring-b:rgba(165,180,252,.2);
    --red:#f87171;
    --red-soft:rgba(248,113,113,.14);
    --ok:#4ade80;
    --shadow-1:0 1px 2px rgba(0,0,0,.4);
    --shadow-2:0 14px 34px -16px rgba(0,0,0,.7);
    --shadow-3:0 40px 80px -34px rgba(0,0,0,.85);
    --metal-1:#9aa2b2;
    --metal-2:#6f7789;
    --metal-3:#4d5466;
  }
}

/* ---------- base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;font-family:"Sofia Sans","Sofia Sans Fallback",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  font-size:1.125rem;line-height:1.6;color:var(--ink-2);background:var(--bg);
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;overflow-x:clip;
}
.is-en body{font-family:"Sofia Sans","Sofia Sans Fallback EN",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
/* height:auto is load-bearing: every <img> carries its file's real width and
   height, and without this rule the attribute height would stretch it. */
img{max-width:100%;height:auto;display:block}
a{color:var(--accent);text-underline-offset:.18em}
h1,h2,h3{color:var(--ink);margin:0;font-weight:800;letter-spacing:-.015em;line-height:1.1;text-wrap:balance}
h3{font-size:1.2rem;font-weight:700;letter-spacing:-.005em;line-height:1.3}
p{margin:0}
ul,ol{margin:0;padding:0;list-style:none}
[id]{scroll-margin-top:84px}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:6px}
.sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ico{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.nw{white-space:nowrap}

/* ---------- language ----------
   Hiding only, never re-showing: each element keeps its own display, and a
   hidden <img> that is also lazy is never downloaded. */
:root:not(.is-en) .lang-en{display:none!important}
.is-en .lang-bg{display:none!important}

/* ---------- layout ---------- */
.wrap{width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:24px}
.section{padding-block:clamp(56px,10vw,136px)}
.alt{background:var(--bg-2)}
.eyebrow{display:block;font-size:.8125rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--accent);margin-bottom:14px}
.h2{font-size:clamp(2rem,3.6vw,3rem)}
.lead{font-size:clamp(1.1rem,1.5vw,1.26rem);color:var(--ink-2);margin-top:18px;max-width:40em}
.sec-head{max-width:46rem}
.sec-head.center{text-align:center;margin-inline:auto}
.sec-head.center .lead{margin-inline:auto}
.muted{color:var(--muted)}
.small{font-size:.92rem;color:var(--muted)}

/* ---------- badges ----------
   Three words only, always the same: „Работи днес“ (solid), and the two
   future ones, „Предстои“ and „В разработка“ (dashed outline + clock), so
   what is coming can never be mistaken for what works today. */
.badge{display:inline-flex;align-items:center;gap:6px;padding:4px 11px;border-radius:999px;font-size:.8rem;font-weight:700;
  letter-spacing:.02em;line-height:1.25;white-space:nowrap;vertical-align:.12em}
.badge .ico{width:14px;height:14px;stroke-width:2.2}
.badge-live{background:var(--accent-soft);color:var(--accent)}
.badge-live::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.badge-soon{border:1.5px dashed currentColor;color:var(--muted);padding:3px 10px}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5em;
  min-height:48px;padding:0 22px;border-radius:12px;border:1px solid transparent;
  font:inherit;font-weight:700;font-size:1.02rem;line-height:1.1;text-decoration:none;white-space:nowrap;cursor:pointer;
  transition:background-color .15s,border-color .15s,color .15s;
}
.btn-primary{background:var(--btn);color:var(--btn-ink)}
.btn-primary:hover{background:var(--btn-hover)}
.btn-ghost{background:var(--card);color:var(--ink);border-color:var(--line-2)}
.btn-ghost:hover{border-color:var(--ink)}
.btn-lg{min-height:54px;padding:0 28px;font-size:1.08rem}
.btn-sm{min-height:40px;padding:0 16px;font-size:.95rem;border-radius:10px}
.btn .ico{width:19px;height:19px}

/* ---------- skip link ---------- */
.skip{position:absolute;left:12px;top:-80px;z-index:100;background:var(--btn);color:var(--btn-ink);padding:10px 16px;border-radius:10px;font-weight:700;text-decoration:none}
.skip:focus{top:12px}

/* ---------- top bar ---------- */
.topbar{position:sticky;top:0;z-index:60;background:var(--topbar);border-bottom:1px solid var(--line);
  -webkit-backdrop-filter:saturate(160%) blur(12px);backdrop-filter:saturate(160%) blur(12px)}
.bar{display:flex;align-items:center;gap:12px;height:68px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);margin-right:auto;min-width:0}
.brand img{width:34px;height:34px;border-radius:9px;flex:none}
.brand-name{font-weight:800;font-size:1.22rem;letter-spacing:-.015em;white-space:nowrap}
.brand-by{font-size:.78rem;font-weight:600;color:var(--muted);white-space:nowrap;margin-left:2px}
.nav{display:flex;align-items:center;gap:12px}
.nav ul{display:flex;gap:2px}
.nav-link{display:block;padding:8px 10px;border-radius:8px;text-decoration:none;color:var(--ink-2);font-weight:600;font-size:.98rem;white-space:nowrap}
.nav-link:hover{color:var(--ink);background:var(--bg-2)}
.nav-link[aria-current="page"]{color:var(--accent);background:var(--accent-soft)}
.nav-tools{display:flex;align-items:center;gap:12px}
.nav-cta,.nav-tel{display:none}
.seg{display:inline-flex;gap:2px;padding:3px;border:1px solid var(--line-2);border-radius:10px;background:var(--card)}
.seg button{display:grid;place-items:center;min-width:34px;height:32px;padding:0 8px;border:0;border-radius:7px;background:transparent;
  font:inherit;font-weight:700;font-size:.82rem;color:var(--muted);cursor:pointer}
.seg button:hover{color:var(--ink)}
.seg button.active{background:var(--ink);color:var(--bg)}
.seg .ico{width:17px;height:17px}
.menu-btn{display:none;width:44px;height:44px;border:1px solid var(--line-2);border-radius:10px;background:var(--card);color:var(--ink);cursor:pointer;place-items:center}
@media (max-width:1139px){
  .menu-btn{display:grid}
  .nav{display:none;position:absolute;left:0;right:0;top:68px;flex-direction:column;align-items:stretch;gap:16px;
    padding:14px 24px 22px;background:var(--bg);border-bottom:1px solid var(--line);box-shadow:var(--shadow-2)}
  .nav.open{display:flex}
  .nav ul{flex-direction:column}
  .nav-link{padding:12px 10px;font-size:1.08rem}
  .nav-tools{justify-content:space-between;flex-wrap:wrap}
  .nav-cta{display:inline-flex}
  .nav-tel{display:inline-flex;align-items:center;gap:8px;color:var(--ink);font-weight:700;text-decoration:none}
}
/* Phones keep one action in the sticky bar („Демо“); the language switch
   moves into the menu to make room for it. */
.menu-lang,.lbl-short{display:none}
@media (max-width:640px){
  .bar{gap:10px}
  .bar-lang{display:none}
  .menu-lang{display:inline-flex}
  .lbl-long{display:none}
  .lbl-short{display:inline}
  .bar-cta{padding:0 16px}
}
@media (max-width:400px){ .brand-by{display:none} }

/* ---------- device frames ---------- */
.phone{--pr:clamp(22px,3.4vw,40px);--pp:clamp(4px,.6vw,7px);
  background:#0b0f1a;border-radius:var(--pr);padding:var(--pp);border:1px solid #2b3246;box-shadow:var(--shadow-3)}
.phone-scr{aspect-ratio:900/1948;border-radius:calc(var(--pr) - var(--pp));overflow:hidden;background:#fff}
.phone-scr img{width:100%;height:100%;object-fit:cover;object-position:top}
/* A crop of a product screen, floating over a phone or another crop. */
.float-card{margin:0;border-radius:16px;overflow:hidden;background:#f2f5f7;border:1px solid var(--line-2);box-shadow:var(--shadow-3)}
.float-card img{width:100%}

/* An Apple Watch: the case is drawn, the screens are real screenshots of the
   watch app (images/watch-1, 2 and 4.webp, 422×514), shown one after another. watch-3 (the
   „Бутон Действие“ list) is gone since 17.11.2026: it showed the owner's real address. */
.watch{container-type:inline-size;aspect-ratio:41/49;background:#0b0f1a;border-radius:30%/25%;border:1px solid #2b3246;box-shadow:var(--shadow-3)}
.watch::after{content:"";position:absolute;right:-4.5%;top:27%;width:5%;height:17%;background:#3a4258;border-radius:0 5px 5px 0}
/* Sizes inside are in cqi (1% of the watch's width), so the drawing scales as one piece. */
.watch-scr{position:relative;margin:7.5cqi;height:calc(100% - 15cqi);border-radius:24cqi;background:#000;overflow:hidden}
.watch-scr img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .7s ease}
.watch-scr img.on{opacity:1}

/* Theme-bound pictures (the recording and its poster exist in a light and a
   dark take): only the current theme's one is displayed, and since both are
   lazy, only that one is ever downloaded. */
.th-dark{display:none}
:root[data-theme="dark"] .th-light{display:none}
:root[data-theme="dark"] .th-dark{display:block}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .th-light{display:none}
  :root:not([data-theme="light"]) .th-dark{display:block}
}

/* ---------- the hero: „Витрина“ (the owner's 1А, 17.11.2026) ----------
   „Искам в сайта като Hero да има скрийншот демото от часовника, screen recording-а от телефона и
   няколко скриншота от демо дом тенанта.“ A short headline, one sentence and two buttons, centred;
   under them one large laptop with the ДЕМО ДОМ portal, its screen changing by itself every 4 s
   (Днес → Врати → AI асистент → Каса, the labelled dots under it pick one), and in front of it the
   phone with the residents' app (the owner's recording, left as it is: his 4Б) and the Apple Watch.
   The phone stands at the left, over the portal's tree, and the watch at the bottom right, so
   neither hides a button of the screens. One button stops and starts all three; under reduced
   motion nothing turns or plays by itself. Up to 640px the laptop takes the width, the dots follow
   it, and the phone and the watch stand side by side under them. */
.hero{position:relative;overflow:hidden;padding-block:clamp(32px,5vw,72px) clamp(8px,2vw,24px)}
.hero::before{content:"";position:absolute;inset:auto 0 0 0;height:74%;z-index:-1;
  background:radial-gradient(58% 52% at 50% 62%,var(--accent-soft),transparent 74%)}
.hero-head{text-align:center;max-width:64rem;margin-inline:auto}
.hero h1{font-size:clamp(2.1rem,4.2vw,3.4rem);line-height:1.05;letter-spacing:-.028em}
.hero h1 .accent{display:block;color:var(--accent);margin-top:.1em}
.hero .lead{margin:20px auto 0;max-width:35em}
.cta-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.hero .cta-row{justify-content:center}
.show{margin:clamp(36px,5vw,64px) auto 0;max-width:1080px}
.show-stage{position:relative;padding-inline:12% 7%}
/* the laptop: a lid with the screen, and a base wider than the lid with a notch */
.laptop{position:relative}
.lt-lid{position:relative;padding:1.6% 1.6% 2.1%;background:#0b0f1a;border:1px solid #2b3246;border-bottom:0;
  border-radius:clamp(9px,1.7vw,20px) clamp(9px,1.7vw,20px) 3px 3px;box-shadow:var(--shadow-3)}
.lt-lid::before{content:"";position:absolute;left:50%;top:.55%;width:.55%;aspect-ratio:1;border-radius:50%;background:#2b3246;transform:translateX(-50%)}
.lt-scr{position:relative;aspect-ratio:16/10;overflow:hidden;border-radius:2px;background:#f5f6f9}
.lt-shot{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top left;opacity:0;transition:opacity .7s ease}
.lt-shot.on{opacity:1}
.lt-base{position:relative;height:clamp(9px,1.5vw,17px);margin-inline:-6.5%;border-radius:2px 2px 50% 50% / 2px 2px 100% 100%;
  background:linear-gradient(var(--metal-1),var(--metal-2) 60%,var(--metal-3));box-shadow:0 18px 30px -18px rgba(14,21,37,.45)}
.lt-base::before{content:"";position:absolute;left:50%;top:0;width:15%;height:42%;transform:translateX(-50%);border-radius:0 0 9px 9px;background:var(--metal-2)}
.show-phone{position:absolute;left:0;bottom:0;width:19.5%;z-index:2}
.show-watch{position:absolute;right:0;bottom:11%;width:13.5%;z-index:2}
/* The recording lies over its poster and fades in only once it actually plays, so a slow,
   blocked or missing file leaves the poster showing. */
.show-phone .phone-scr{position:relative;background:var(--bg-2)}
.hero-vid{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top;
  border-radius:inherit;opacity:0;transition:opacity .4s ease}
.hero-vid.on{opacity:1}
/* the dots under the laptop: one per screen, with its name; the play/pause button first */
.show-ctrl{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;margin-top:22px;padding-bottom:4px}
.show-dot{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 13px;border:0;border-radius:999px;background:transparent;
  font:inherit;font-size:.95rem;font-weight:650;line-height:1.2;color:var(--muted);cursor:pointer;white-space:nowrap}
.show-dot::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--line-2);flex:none}
.show-dot:hover{color:var(--ink)}
.show-dot[aria-pressed="true"]{color:var(--accent);background:var(--accent-soft)}
.show-dot[aria-pressed="true"]::before{background:var(--accent)}
.show-play{display:grid;place-items:center;width:44px;height:44px;margin-right:6px;padding:0;border-radius:50%;
  border:1px solid var(--line-2);background:var(--card);color:var(--ink);box-shadow:var(--shadow-1);cursor:pointer}
.show-play:hover{border-color:var(--ink)}
.show-play[hidden]{display:none}
.show-play .ico{width:18px;height:18px;fill:currentColor;stroke:none}
.show-play .i-pause{display:none}
.show-play.playing .i-pause{display:block}
.show-play.playing .i-start{display:none}
.show figcaption{max-width:44em;margin:16px auto 0;text-align:center;font-size:.86rem;line-height:1.5;color:var(--muted)}
@media (max-width:640px){
  .cta-row .btn{flex:1 1 100%;white-space:normal;text-align:center;padding-block:12px}
  .show-stage{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);grid-template-areas:"lt lt" "ctrl ctrl" "ph wa";
    align-items:center;padding:0}
  .laptop{grid-area:lt}
  .show-ctrl{grid-area:ctrl;margin-top:14px;gap:2px}
  .show-dot{padding:0 7px;font-size:.86rem;gap:5px}
  .show-dot::before{width:7px;height:7px}
  .show-play{width:40px;height:40px;margin-right:0}
  .show-phone{grid-area:ph;position:relative;left:auto;bottom:auto;width:82%;max-width:200px;justify-self:end;margin-top:22px}
  .show-watch{grid-area:wa;position:relative;right:auto;bottom:auto;width:72%;max-width:150px;justify-self:center;margin-top:22px}
}

/* ---------- the home page's three points (the owner's 3А, 17.11.2026) ----------
   „Сейл пойнт номер 1 е Вратите, сейлф пойнт номер 2 е AI асистирания професионален домоуправител
   … когато врати, домоуправител модул и AI модул работят заедно, резултата е наистина
   впечатляващ.“ Each point: a number, the headline, one or two sentences, a link to its page, and
   the real pictures beside it; the second runs the other way round on the grey ground. */
.feat{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:clamp(32px,5vw,76px);align-items:center}
.feat.flip > .feat-copy{order:2}
.feat .h2{font-size:clamp(1.9rem,3.2vw,2.75rem)}
.feat .lead{max-width:30em}
.eyebrow .num{display:inline-grid;place-items:center;width:26px;height:26px;margin-right:10px;border-radius:50%;
  background:var(--btn);color:var(--btn-ink);font-size:.8rem;letter-spacing:0;vertical-align:.05em}
.check{display:flex;gap:10px;align-items:flex-start;margin-top:18px;max-width:32em;font-size:1rem;line-height:1.45;font-weight:650;color:var(--ink)}
.check .ico{width:20px;height:20px;margin-top:1px;color:var(--accent);stroke-width:2.6}
.chip{display:inline-flex;align-items:center;gap:8px;margin-top:22px;padding:7px 14px;border-radius:18px;
  background:var(--accent-soft);color:var(--accent);font-weight:700;font-size:.95rem;line-height:1.3}
.chip .ico{width:18px;height:18px}
.links{display:flex;flex-wrap:wrap;gap:12px 26px;margin-top:26px}
/* „Всичко за … ›“: a bigger tap area than its letters (nothing else is near it) */
.more{position:relative;display:inline-flex;align-items:center;gap:6px;font-weight:700;text-decoration:none;font-size:1.02rem}
.more::after{content:"";position:absolute;inset:-10px -8px}
.more:hover{text-decoration:underline}
.more .ico{flex:none;width:18px;height:18px}
.more-row{display:flex;justify-content:center;margin-top:36px}
/* the pictures: every frame in one grid cell, placed by its own width and margins */
.pics{display:grid;align-items:start}
.pics > *{grid-area:1/1;min-width:0}
.frame{margin:0;border-radius:14px;overflow:hidden;background:#f5f6f9;border:1px solid var(--line-2);box-shadow:var(--shadow-3)}
.frame-bar{display:flex;gap:6px;align-items:center;height:24px;padding:0 12px;background:var(--chrome);border-bottom:1px solid var(--line)}
.frame-bar i{width:8px;height:8px;border-radius:50%;background:var(--line-2)}
.frame img{width:100%}
.pics-doors .float-card{width:58%;justify-self:start;margin-top:9%}
.pics-doors .phone{width:37%;justify-self:end;margin-right:3%}
.pics-doors .watch{position:relative;width:21%;justify-self:start;align-self:end;margin:0 0 -3% 47%;z-index:2}
.pics-ai .frame{width:86%;justify-self:start}
.pics-ai .float-card{width:31%;justify-self:end;margin-top:16%}
@media (max-width:900px){
  .feat,.feat.flip{grid-template-columns:minmax(0,1fr)}
  .feat.flip > .feat-copy{order:0}
  .pics{max-width:560px;width:100%;justify-self:center}
}
/* ③ together: two cards, the residents and the manager */
.duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:1060px;margin:40px auto 0}
.duo-card{padding:26px 28px 28px;border-radius:22px;background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow-2)}
.duo-card h3{margin-top:16px;font-size:1.32rem}
.duo-card p{margin-top:8px;font-size:1.03rem;line-height:1.55}
@media (max-width:760px){ .duo{grid-template-columns:minmax(0,1fr)} .duo-card{padding:22px 20px 24px} }
.sec-head .h2 .accent{display:block;color:var(--accent);margin-top:.08em}
/* the three packages in one row (rendered by scripts/tiles.mjs from modules.json) */
.pk{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;max-width:1060px;margin:40px auto 0}
.pk-card{display:flex;flex-direction:column;gap:8px;min-width:0;padding:22px 24px 24px;border-radius:20px;background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow-1)}
.pk-kind{font-size:.74rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.pk-card h3{display:flex;align-items:center;gap:10px;font-size:1.42rem}
.pk-card h3 .ai-chip{margin-left:auto}
.pk-one{font-size:1rem;line-height:1.5}
.pk-has{font-size:.9rem;line-height:1.5;color:var(--muted)}
.pk-card .more{margin-top:auto;padding-top:8px;align-self:flex-start}
.pk-foot{max-width:46rem;margin:22px auto 0;text-align:center;font-size:1rem;color:var(--ink-2)}
@media (max-width:860px){ .pk{grid-template-columns:minmax(0,1fr)} }

/* ---------- the package pages (the owner's 2А, 17.11.2026) ----------
   „подробната информация за това какво предлага платформата трябва да е като отделни страници
   (като има бутон в менюто за да се стигне до тях)“: Врати, Домоуправител, AI асистент and Какво
   предстои, each with its own head (the words beside a picture), its pictures, its package's tiles,
   its stories and „Заявете демо“ at the end. */
.page-head{position:relative;overflow:hidden;padding-block:clamp(32px,5vw,72px) clamp(44px,6vw,88px)}
.page-head::before{content:"";position:absolute;inset:0 0 auto 0;height:100%;z-index:-1;
  background:radial-gradient(50% 60% at 78% 40%,var(--accent-soft),transparent 74%)}
.page-head h1{font-size:clamp(2.1rem,4vw,3.3rem);line-height:1.06;letter-spacing:-.025em}
.page-head h1 .accent{display:block;color:var(--accent);margin-top:.1em}
.page-head .sec-head.center{max-width:50rem}
.pics-res .phone{width:52%;justify-self:center;margin-right:8%}
.pics-res .watch{position:relative;width:29%;justify-self:start;align-self:end;margin:0 0 7% 6%;z-index:2}
.pics-res{max-width:460px;justify-self:center;width:100%}
/* three phones in a row; on a phone they slide sideways, the next one peeking in */
.phones{display:grid;grid-template-columns:repeat(var(--n,3),minmax(0,1fr));gap:clamp(18px,3vw,40px);max-width:900px;margin:44px auto 0}
.phones figure{margin:0;min-width:0}
.phones figcaption{margin-top:16px;text-align:center;font-size:.96rem;line-height:1.45;color:var(--ink-2)}
.phones figcaption b{display:block;margin-bottom:2px;font-size:1.04rem;color:var(--ink)}
@media (max-width:700px){
  .phones{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:64%;overflow-x:auto;scroll-snap-type:x mandatory;
    padding:6px 16px 18px;margin-inline:-16px;scrollbar-width:none}
  .phones::-webkit-scrollbar{display:none}
  .phones figure{scroll-snap-align:center}
}
/* a picture with its words beside it, inside a page */
.duo-pic{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(28px,4vw,56px);align-items:center;max-width:1060px;margin:56px auto 0}
.duo-pic.flip > :first-child{order:2}
.duo-pic h3{font-size:1.45rem;line-height:1.25}
.duo-pic p{margin-top:10px;font-size:1.04rem;line-height:1.55}
@media (max-width:860px){ .duo-pic,.duo-pic.flip{grid-template-columns:minmax(0,1fr)} .duo-pic.flip > :first-child{order:0} }
.two-phones{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(14px,3vw,28px);max-width:440px;width:100%;justify-self:center}
/* the AI асистент's two steps, whole panels side by side */
.panels{display:grid;grid-template-columns:repeat(2,minmax(0,300px));justify-content:center;gap:clamp(18px,3vw,40px);margin-top:44px}
.panels figure{margin:0;min-width:0}
.panels .float-card{border-radius:14px}
.panels figcaption{margin-top:14px;text-align:center;font-size:.96rem;line-height:1.45;color:var(--ink-2)}
.panels figcaption b{display:block;margin-bottom:2px;color:var(--ink)}
@media (max-width:640px){ .panels{grid-template-columns:minmax(0,300px)} }
.ai-steps{margin-top:clamp(64px,8vw,104px)}
.pic-note{max-width:44em;margin:18px auto 0;text-align:center;font-size:.88rem;line-height:1.5;color:var(--muted)}
/* the stories (the cards of the timeline that belong to this page), two to a row */
.stories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:1060px;margin:40px auto 0}
.stories > .tl-card{grid-column:auto;min-width:0}
.stories-h{grid-column:1 / -1;margin:22px 0 -4px;font-size:.8125rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--accent)}
.stories-h:first-child{margin-top:0}
@media (max-width:860px){ .stories{grid-template-columns:minmax(0,1fr)} }
@media (max-width:480px){ .stories > .tl-card{padding:16px 16px 18px} }
/* a word to the домоуправител-съсед */
.aside{display:grid;grid-template-columns:42px minmax(0,1fr);gap:16px;align-items:start;max-width:860px;margin:40px auto 0;padding:22px 24px;border-radius:20px;
  background:var(--accent-soft);color:var(--ink-2)}
.aside b{display:block;margin-bottom:4px;font-size:1.12rem;color:var(--ink)}
.aside p{font-size:1.02rem;line-height:1.5}
.aside .rule-ico{background:var(--card)}
/* „Заявете демо“ at the end of every page */
.cta-band{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px 36px;padding:clamp(28px,4.5vw,52px);border-radius:28px;background:var(--accent-soft)}
.cta-band > div:first-child{flex:1 1 26rem;min-width:0}
.cta-band .h2{font-size:clamp(1.6rem,2.7vw,2.25rem)}
.cta-band p{margin-top:10px;font-size:1.06rem}
.cta-band .cta-row{margin-top:0}
@media (max-width:640px){ .cta-band{padding:28px 22px;border-radius:22px} }

/* ---------- the AI assistant ----------
   The owner (07.11.2026): say plainly that ВходПро is built around the AI
   assistant, the manager's first helper for every вход. A calm indigo glow
   behind glassy cards; the foundation in one statement, then BgGPT; the demo firm's
   morning as a live mock in HTML; the assistant's day in four steps; the four
   rules it keeps; a pointer, marked „Предстои“, to what is planned. */
.ai{position:relative;isolation:isolate;overflow:hidden;background:var(--bg-2);border-block:1px solid var(--line)}
.ai::before{content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;
  background:radial-gradient(42% 24% at 10% 3%,var(--glow-a),transparent 70%),
             radial-gradient(40% 22% at 94% 22%,var(--glow-a),transparent 72%),
             radial-gradient(46% 20% at 18% 58%,var(--glow-b),transparent 72%),
             radial-gradient(44% 18% at 88% 86%,var(--glow-b),transparent 72%)}
.ai .sec-head .h2{max-width:20em;margin-inline:auto}
.anchor{display:block;height:0}
.glass{background:var(--glass);border:1px solid var(--glass-line);box-shadow:var(--shadow-2)}
/* the foundation, in one statement */
.ai-found{display:grid;grid-template-columns:56px minmax(0,1fr);gap:20px;align-items:center;max-width:880px;margin:44px auto 0;padding:24px 28px;border-radius:22px}
.f-ico{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;color:var(--btn-ink);background:linear-gradient(140deg,var(--btn),var(--btn-hover))}
.f-ico .ico{width:26px;height:26px}
.ai-found h3{font-size:1.3rem}
.ai-found p{margin-top:6px;font-size:1.04rem;line-height:1.55}
/* BgGPT (07.11.2026): a second statement right under the foundation, in the same glass,
   with a text badge in the site's own font and colours (no INSAIT or BgGPT logo) and a
   plain link */
.ai-found + .ai-found{margin-top:16px}
.ai-found .f-more{margin-top:10px;font-size:.98rem;line-height:1.4}
.f-more a{position:relative;font-weight:700;text-decoration:none}
/* a bigger tap area on a phone (the text is 19px high); nothing else is near it */
.f-more a::after{content:"";position:absolute;inset:-12px -8px}
.f-more a:hover{text-decoration:underline}
@media (max-width:560px){ .ai-found{grid-template-columns:minmax(0,1fr);gap:14px;padding:22px 20px} .f-ico{width:48px;height:48px;border-radius:14px} }
/* The BgGPT text badge (the owner, 07.11.2026: „а ок, без логото, аз ще им пратя мейл да
   попитам дали може да използвам логото“): our own words in Sofia Sans on the site's indigo,
   where the server icon was. Not INSAIT's or BgGPT's logo, colours or letter shapes; the
   real logos take this place once INSAIT agrees in writing. Its own box, not .f-ico, which
   is a fixed square; on a phone it sits above the title at its own width. */
/* A label in the site's soft tokens, not a filled button: it is not a link, and a filled
   „BgGPT / by INSAIT“ would read like an official „powered by“ mark. */
.f-badge{display:flex;flex-direction:column;align-items:center;justify-content:center;justify-self:start;max-width:100%;
  min-height:56px;padding:8px 14px;border-radius:16px;text-align:center;line-height:1.1;
  color:var(--accent);background:var(--accent-soft);border:1.5px solid var(--glass-line)}
.f-badge b{font-size:1.3rem;font-weight:800;letter-spacing:-.01em;color:var(--ink)}
.f-badge small{margin-top:3px;font-size:.75rem;font-weight:700;letter-spacing:.02em}
/* both statements share one first column, so their titles and texts start at the same place */
@media (min-width:561px){
  .ai-found,.ai-found.ai-found-badge{grid-template-columns:9rem minmax(0,1fr)}
  .ai-found .f-ico,.f-badge{justify-self:center}
}
@media (max-width:560px){ .ai-found.ai-found-badge{grid-template-columns:minmax(0,1fr)} }

/* „Днес“ as the demo firm sees it in the portal's look since 3.5.15/3.5.16
   (16.11.2026): real text, not a picture — light paper, white cards, the
   small-capital section labels, the firm's one accent (the site's indigo
   stands in for the firm's colour), the app's own bar and strip at the top
   and, on a phone, its bottom bar of five (all three decorative). Its lines
   come in one after another when it reaches the screen (with scripts,
   without reduced motion); otherwise all are there. --mk-warn is the amber
   diamond of „Просрочие“ and „изтича скоро“, the one state colour this page
   has no token for. */
.mk{max-width:1060px;margin:48px auto 0;--mk-warn:#9a6700}
:root[data-theme="dark"] .mk{--mk-warn:#e3b341}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .mk{--mk-warn:#e3b341} }
.mk-win{border-radius:22px;overflow:hidden;border:1px solid transparent;box-shadow:var(--shadow-3);
  background:linear-gradient(var(--bg-2),var(--bg-2)) padding-box,
             linear-gradient(140deg,var(--ring-a),var(--line) 34%,var(--line) 66%,var(--ring-b)) border-box}
.mk-bar{display:flex;align-items:center;gap:7px;height:38px;padding:0 16px;background:var(--chrome);border-bottom:1px solid var(--line)}
.mk-bar i{width:10px;height:10px;border-radius:50%;background:var(--line-2)}
/* the app's bar: the firm's mark and name, the red chip, „Врати“ with its dots, „AI асистент“ */
.mk-app{display:flex;align-items:center;gap:8px;padding:8px 16px;background:var(--card);border-bottom:1px solid var(--line);font-size:.8rem;color:var(--ink)}
.mk-mark{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:var(--btn);color:var(--btn-ink)}
.mk-mark .ico{width:16px;height:16px}
.mk-app > b{font-weight:700;margin-right:auto;white-space:nowrap}
.mk-chip{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:999px;background:var(--bg-2);font-weight:600;white-space:nowrap}
.mk-chip .ico{width:13px;height:13px;stroke-width:2.2}
.mk-chip i{width:7px;height:7px;border-radius:50%;background:var(--ok)}
.mk-chip i.bad{background:var(--red)}
.mk-chip.bad{background:var(--red-soft);color:var(--red)}
/* the strip of the parts the firm has, „Настройки“ at its end after a thin line */
.mk-strip{display:flex;gap:2px;padding:6px 10px;background:var(--card);border-bottom:1px solid var(--line);font-size:.8rem;font-weight:600;color:var(--ink-2);overflow:hidden}
.mk-strip span{padding:5px 8px;border-radius:8px;white-space:nowrap}
.mk-strip .on{color:var(--accent);background:var(--accent-soft)}
.mk-strip .set{margin-left:auto;border-left:1px solid var(--line);border-radius:0;padding-left:14px}
.mk-body{display:flex;flex-direction:column;gap:14px;padding:16px 26px 26px;font-size:.95rem;line-height:1.45;color:var(--ink-2)}
.mk-crumbs{font-size:.78rem;color:var(--muted)}
.mk-crumbs b{color:var(--ink-2);font-weight:600}
.mk-head{margin-top:-6px}
.mk-head b{display:block;font-size:1.3rem;font-weight:700;letter-spacing:-.01em;line-height:1.25;color:var(--ink)}
.mk-head .dim{color:var(--muted);font-weight:500}
.mk-place{margin-top:-10px;font-size:.86rem;color:var(--muted)}
.mk-card{border-radius:12px;border:1px solid var(--line);background:var(--card);box-shadow:var(--shadow-1)}
/* the plan sentence: one quiet card with the AI асистент's mark */
.mk-plan{display:flex;gap:12px;align-items:flex-start;padding:14px 16px}
.mk-plic{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:var(--accent-soft);color:var(--accent);margin-top:2px}
.mk-plic .ico{width:18px;height:18px}
.mk-plan .mk-txt{font-size:1.02rem;color:var(--ink)}
.mk-stamp{margin-top:4px;font-size:.8rem;color:var(--muted)}
.mk-lbl{margin:4px 0 -6px;font-size:.76rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
/* „Чака вашето решение“: a bar at the card's left says who speaks — the accent for the AI асистент, red for a door */
.mk-wait{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,300px));gap:12px}
.mk-w{position:relative;display:flex;flex-direction:column;gap:3px;padding:12px 14px 12px 18px}
.mk-w::before{content:"";position:absolute;left:0;top:12px;bottom:12px;width:4px;border-radius:0 3px 3px 0;background:var(--accent)}
.mk-w-door::before{background:var(--red)}
.mk-src{display:flex;align-items:center;gap:6px;font-size:.78rem;color:var(--muted)}
.mk-sq{display:inline-block;flex:none;width:8px;height:8px;background:var(--red)}
.mk-wt{font-size:.98rem;font-weight:700;color:var(--ink)}
.mk-w-door .mk-wt{color:var(--red)}
.mk-ws{font-size:.84rem;color:var(--muted)}
.mk-wl{font-size:.88rem;color:var(--ink-2)}
.mk-go{margin-top:6px;font-weight:600;color:var(--accent)}
.mk-acts{margin-top:8px}
.mk-btn{display:inline-block;padding:6px 13px;border-radius:9px;border:1px solid var(--line-2);background:var(--card);font-size:.86rem;font-weight:600;color:var(--ink)}
.mk-btn.fill{border-color:transparent;background:var(--btn);color:var(--btn-ink)}
/* the tiles: the doors wide, then one per part the firm has */
.mk-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.mk-tile{display:flex;flex-direction:column;gap:9px;padding:14px 15px 13px;border-radius:16px}
.mk-tile-wide{grid-column:span 2;background:linear-gradient(180deg,var(--accent-soft),var(--card) 55%)}
.mk-th{display:flex;align-items:flex-start;gap:9px}
.mk-tic{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:var(--bg-2);color:var(--ink-2)}
.mk-tic .ico{width:17px;height:17px}
.mk-tn{flex:1;min-width:0}
.mk-tn b{display:block;font-size:1rem;font-weight:700;line-height:1.3;color:var(--ink)}
.mk-tn small{display:block;font-size:.8rem;color:var(--muted)}
.mk-chev{flex:none;color:var(--muted);font-weight:700}
.mk-doors{display:flex;flex-direction:column;gap:8px}
.mk-door{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;border:1px solid var(--line);background:var(--card)}
.mk-dic{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:var(--bg-2);color:var(--ink-2)}
.mk-dic .ico{width:18px;height:18px}
.mk-door .grow{flex:1;min-width:0}
.mk-door .t{display:block;font-size:.93rem;font-weight:700;color:var(--ink)}
.mk-door .s{display:block;font-size:.8rem;color:var(--muted)}
.mk-door .s::before{content:"";display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;background:var(--ok);vertical-align:1px}
.mk-tfoot{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin-top:auto;padding-top:2px}
.mk-tlink{margin-left:auto;font-size:.86rem;font-weight:600;color:var(--accent);white-space:nowrap}
.mk-tlink + .mk-tlink{margin-left:0}
.mk-num{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px}
.mk-num b{font-size:1.8rem;font-weight:700;letter-spacing:-.02em;line-height:1;color:var(--ink);font-variant-numeric:tabular-nums}
.mk-num small{font-size:.82rem;color:var(--muted)}
.mk-rows li{display:flex;align-items:flex-start;gap:8px;padding:6px 0;border-top:1px solid var(--line);font-size:.88rem;line-height:1.35}
.mk-rows .t{flex:1;min-width:0;color:var(--ink)}
.mk-rows .v{flex:none;font-weight:600;color:var(--ink-2);white-space:nowrap;font-variant-numeric:tabular-nums}
.mk-rows small{display:block;font-size:.78rem;color:var(--muted)}
.mk-rows li.bad small{color:var(--red)}
.mk-dot{display:inline-block;flex:none;width:8px;height:8px;margin-top:6px;border-radius:50%;background:var(--muted)}
.mk-dot.bad{background:var(--red);border-radius:1px}
.mk-dot.warn{background:var(--mk-warn);border-radius:1px;transform:rotate(45deg) scale(.85)}
/* „Изисква внимание днес“ beside „Ново от вчера“: a red square and the entrance, the why, then its reasons, each with the part it comes from */
.mk-cols{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:14px 30px;align-items:start}
.mk-col{display:flex;flex-direction:column;gap:12px;min-width:0}
.mk-ent{padding:12px 14px 6px}
.mk-top{display:flex;align-items:center;gap:8px}
.mk-top b{font-size:1rem;color:var(--ink)}
.mk-why{margin-top:6px;color:var(--ink-2)}
.mk-rs{margin-top:6px}
.mk-rs li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0;border-top:1px solid var(--line);font-size:.86rem;line-height:1.35;color:var(--ink)}
.mk-rs li > span{flex:1;min-width:0}
.mk-rs small{display:block;font-size:.76rem;color:var(--muted)}
.mk-rs li::after,.mk-new li::after{content:"›";content:"›"/"";color:var(--muted);font-weight:700}
.mk-new{padding:4px 14px}
.mk-new li{display:flex;flex-wrap:wrap;align-items:center;gap:3px 8px;padding:9px 0;border-top:1px solid var(--line)}
.mk-new li:first-child{border-top:0}
.mk-new .t{flex:1 1 100%;font-weight:700;color:var(--ink)}
.mk-new .k{font-size:.72rem;font-weight:600;line-height:1.3;padding:1px 7px;border-radius:999px;border:1px solid var(--line-2);color:var(--ink-2);white-space:nowrap}
.mk-new .k.bad{border-color:var(--red);background:var(--red-soft);color:var(--red)}
.mk-new .s{flex:1;font-size:.78rem;color:var(--muted)}
/* the phone's bottom bar of five (Днес · Врати · AI асистент · Проблеми · Още), in place of the strip up to 560px */
.mk-tabs{display:none;justify-content:space-around;align-items:flex-end;padding:8px 6px 10px;background:var(--card);border-top:1px solid var(--line);font-size:.68rem;font-weight:600;color:var(--ink-2)}
.mk-tabs span{display:flex;flex-direction:column;align-items:center;gap:3px;flex:1;min-width:0}
.mk-tabs .ico{width:20px;height:20px}
.mk-tabs .on{color:var(--accent)}
.mk-tabs .mid .ico{width:40px;height:40px;padding:10px;margin-top:-22px;border-radius:50%;background:var(--btn);color:var(--btn-ink);box-shadow:var(--shadow-2)}
.mk figcaption{max-width:44em;margin:16px auto 0;text-align:center;font-size:.9rem;line-height:1.5;color:var(--muted)}
/* „Състояние на входа“ is a second, smaller window: in the portal it lives in the entrance's Дневник, not in „Днес“;
   the bar at its left says who wrote it (green: the AI асистент), and the legend under it reads the marks:
   since 3.5.17 (16.11.2026) each source has its own shape, as in the app — the platform a hollow grey
   ring, the manager a square in the firm's colour, the AI асистент a green dot */
.mk-win.mk-j{max-width:660px;margin:22px auto 0}
.mk-st{padding:14px 16px;border-left:4px solid var(--ok)}
.mk-sth{margin-bottom:6px;font-size:1.02rem;font-weight:700;color:var(--ink)}
.mk-st .mk-txt{color:var(--ink)}
.mk-fix{display:inline-block;margin-top:8px;font-weight:600;color:var(--accent)}
.mk-legend{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:-4px;font-size:.8rem;color:var(--ink-2)}
.mk-legend span{display:inline-flex;align-items:center;gap:6px}
.mk-legend i{width:10px;height:10px;box-sizing:border-box;border-radius:50%;border:2px solid var(--muted);background:transparent}
.mk-legend i.mgr{border:0;border-radius:2px;background:var(--accent)} .mk-legend i.ai{border:0;background:var(--ok)}
@media (max-width:860px){
  .mk-body{padding:16px 16px 22px}
  .mk-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mk-cols{grid-template-columns:minmax(0,1fr)}
  .mk-strip .set{display:none}
}
/* on a phone: the strip gives way to the bottom bar, the chips to the red one, every tile and
   card takes the width, and each entrance keeps its first three reasons, so the example stays readable */
@media (max-width:560px){
  .mk-strip,.mk-app .mk-chip:not(.bad){display:none}
  .mk-tabs{display:flex}
  .mk-tiles,.mk-wait{grid-template-columns:minmax(0,1fr)}
  .mk-tile-wide{grid-column:auto}
  .mk-rs li:nth-child(n+4){display:none}
}
@media (max-width:480px){ .mk{margin-inline:-6px} .mk-body{padding:14px 12px 18px;font-size:.92rem} .mk-head b{font-size:1.15rem} }

/* the assistant's day: four steps along one line (two rows on a tablet, a
   column on a phone, the line then running down the left) */
.day{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;max-width:1060px;margin:72px auto 0}
.day::before{content:"";position:absolute;left:28px;right:calc(25% - 46px);top:27px;height:2px;border-radius:2px;
  background:linear-gradient(90deg,var(--accent),var(--line-2))}
.day li{position:relative}
.day-ico{position:relative;z-index:1;width:56px;height:56px;border-radius:50%;display:grid;place-items:center;
  background:var(--card);border:1px solid var(--glass-line);color:var(--accent);box-shadow:var(--shadow-2)}
.day-time{display:inline-block;margin-top:16px;padding:3px 10px;border-radius:999px;font-size:.82rem;font-weight:800;letter-spacing:.04em;
  color:var(--accent);background:var(--accent-soft)}
.day h3{margin-top:10px;font-size:1.14rem}
.day p{margin-top:6px;font-size:.98rem;line-height:1.5}
@media (max-width:960px){ .day{grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 28px} .day::before{display:none} }
@media (max-width:560px){
  .day{grid-template-columns:minmax(0,1fr);gap:28px;margin-top:56px}
  .day li{display:grid;grid-template-columns:48px minmax(0,1fr);gap:0 16px}
  .day-ico{width:48px;height:48px}
  .day-time{margin-top:10px}
  .day::before{display:block;left:23px;right:auto;top:24px;bottom:24px;width:2px;height:auto;background:linear-gradient(180deg,var(--accent),var(--line-2))}
}

/* the rules it keeps; then the one careful sentence of the research, and
   the way to what is planned */
.ai .rules{grid-template-columns:repeat(2,minmax(0,1fr));max-width:1060px;margin-top:64px}
.ai .rules li{background:var(--glass);border-color:var(--glass-line);box-shadow:var(--shadow-2)}
.ai-proof{display:flex;gap:10px;align-items:flex-start;max-width:860px;margin:40px auto 0;font-size:1rem;line-height:1.5;font-weight:650;color:var(--ink)}
.ai-proof .ico{width:20px;height:20px;margin-top:2px;color:var(--accent);stroke-width:2.6}
.ai-proof .muted{font-weight:500}
.ai-proof > span{min-width:0;overflow-wrap:break-word}
.ai-next{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;max-width:1060px;margin:32px auto 0;padding:16px 22px;border-radius:18px;border:1.5px dashed var(--line-2)}
.ai-next p{flex:1 1 24em;font-size:1rem;line-height:1.45}
.ai-next a{display:inline-flex;align-items:center;gap:6px;font-weight:700;text-decoration:none;white-space:normal}
.ai-next a:hover{text-decoration:underline}
.ai-next a .ico{flex:none;width:18px;height:18px}
.rules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;max-width:1040px;margin:40px auto 0}
.rules li{display:grid;grid-template-columns:42px minmax(0,1fr);gap:14px;align-items:start;padding:20px 22px;border-radius:18px;
  background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow-1)}
.rule-ico{width:42px;height:42px;border-radius:12px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center}
.rule-ico .ico{width:22px;height:22px}
.rules b{display:block;color:var(--ink);font-size:1.06rem;line-height:1.3;margin-bottom:4px}
.rules span{font-size:.96rem;color:var(--ink-2);line-height:1.45}
.rules .rule-ico{color:var(--accent)}   /* .rules span would otherwise grey the icon */
@media (max-width:860px){ .rules,.ai .rules{grid-template-columns:1fr} }

/* ---------- timeline ----------
   One line from „Работи днес“ down to the last planned version. What
   works today is solid; what is planned is dashed with a clock, as the
   badges have always been on this page. On a wide screen the cards
   alternate left and right of the line; on a phone the line moves to the
   left and every card sits right of it. With scripts, each card fades in
   as it reaches the screen and the line fills down to where the visitor
   has scrolled; without scripts, and under reduced motion, everything is
   simply there. */
.tl{position:relative;max-width:1040px;margin:56px auto 0;padding-block:8px}
.tl-line{position:absolute;left:50%;top:0;bottom:0;width:3px;margin-left:-1.5px;border-radius:3px;background:var(--line-2)}
.tl-fill{position:absolute;left:0;top:0;width:100%;height:0;background:var(--accent);border-radius:3px;transition:height .25s linear}
/* a heading on the line: „Работи днес“, then „Предстои“ */
.tl-head{position:relative;z-index:1;display:flex;justify-content:center;margin-block:8px 36px}
.tl-head .badge{font-size:.95rem;padding:9px 18px;box-shadow:0 0 0 8px var(--bg)}
.tl-head .badge-live{background:var(--btn);color:var(--btn-ink)}
.tl-head .badge-soon{background:var(--bg);border-width:2px;color:var(--ink)}
.tl-head .badge-soon .ico{color:var(--muted)}
.tl-item{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:0 64px;margin-top:28px}
/* consecutive cards sit on opposite sides, so they may overlap a little and the line reads as one piece */
.tl-item + .tl-item{margin-top:-36px}
.tl-item::before{content:"";position:absolute;left:50%;top:26px;width:18px;height:18px;margin-left:-9px;border-radius:50%;
  background:var(--accent);box-shadow:0 0 0 5px var(--bg);z-index:1}
.tl-item.next::before{background:var(--bg);border:3px dashed var(--muted)}
.tl-card{grid-column:2;display:flex;flex-direction:column;gap:10px;padding:22px 24px 24px;border-radius:20px;
  background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow-1)}
.tl-item.left .tl-card{grid-column:1}
.tl-item.next .tl-card{border:1.5px dashed var(--line-2);background:transparent;box-shadow:none}
.tl-top{display:flex;align-items:center;gap:12px}
.tl-ico{width:44px;height:44px;border-radius:13px;background:var(--btn);color:var(--btn-ink);display:grid;place-items:center;flex:none}
.tl-ico .ico{width:22px;height:22px}
.tl-item.next .tl-ico{background:transparent;border:1.5px dashed var(--line-2);color:var(--accent)}
.tl-card h3{font-size:1.22rem;line-height:1.25}
/* „AI“ (the owner, 07.11.2026): on every card where the AI assistant plays a
   part — filled on what works today, dashed on what is planned, as the rest
   of the timeline speaks */
.ai-chip{flex:none;display:inline-grid;place-items:center;height:24px;padding:0 8px;border-radius:7px;font-size:.74rem;font-weight:800;letter-spacing:.06em;
  color:var(--btn-ink);background:linear-gradient(140deg,var(--btn),var(--btn-hover))}
.tl-top .ai-chip{margin-left:auto}
.tl-item.next .ai-chip{background:transparent;color:var(--accent);border:1.5px dashed var(--accent);padding:0 7px}
/* On a narrow phone the title keeps the row beside its icon and the „AI“ and
   moves under it, so nothing is pushed past the screen's edge. */
@media (max-width:480px){
  .tl-top{flex-wrap:wrap;row-gap:8px}
  .tl-top h3{flex:1 1 calc(100% - 62px)}
  .tl-top .ai-chip{margin-left:56px}
}
/* the narrowest phones: a smaller icon, so a long word („собствениците“) still fits beside it */
@media (max-width:360px){
  .tl-top{column-gap:10px}
  .tl-ico,.tl-item.next .tl-ico{width:38px;height:38px;border-radius:11px}
  .tl-ico .ico{width:20px;height:20px}
  .tl-top h3{flex-basis:calc(100% - 54px)}
  .tl-item.next h3{font-size:1.04rem}
  .tl-top .ai-chip{margin-left:48px}
  .tl-top h3{min-width:0}
  .tl-item.next .tl-top h3{font-size:.96rem}
}
/* „BgGPT“ in the tile of „Български AI на нашите сървъри“ (07.11.2026): the word alone, the
   small line is in the big badge in #ai. The tile is wider than the 44px icon, so on a
   narrow phone the title and the „AI“ under it are measured from its own width. */
.tl-ico.tl-badge{width:58px}
/* capped in px: the tile is a fixed 58px, so large browser text must not push the word past it */
.tl-badge b{font-size:min(.8rem,13px);font-weight:800;letter-spacing:.01em;line-height:1}
@media (max-width:480px){
  .tl-top.tl-top-badge h3{flex-basis:calc(100% - 70px)}
  .tl-top.tl-top-badge .ai-chip{margin-left:70px}
}
@media (max-width:360px){
  .tl-ico.tl-badge{width:52px}
  .tl-badge b{font-size:min(.72rem,11.5px)}
  .tl-top.tl-top-badge h3{flex-basis:calc(100% - 62px)}
  .tl-top.tl-top-badge .ai-chip{margin-left:62px}
}
.tl-card p{font-size:1.02rem;line-height:1.5;color:var(--ink-2)}
.tl-card .note{display:flex;gap:8px;align-items:flex-start;font-weight:650;color:var(--ink);font-size:.98rem;line-height:1.4}
.tl-card .note .ico{width:18px;height:18px;color:var(--accent);stroke-width:2.6;flex:none;margin-top:2px}
/* the planned rows are shorter: version, title, one sentence */
.tl-item.next .tl-card{padding:16px 20px 18px;gap:8px}
.tl-item.next h3{font-size:1.1rem}
.tl-item.next p{font-size:.97rem}
.tl-end{position:relative;z-index:1;display:flex;justify-content:center;margin-top:36px}
.tl-end .badge{box-shadow:0 0 0 8px var(--bg);background:var(--bg)}
@media (max-width:860px){
  .tl{margin-top:40px}
  .tl-line{left:21px}
  .tl-head,.tl-end{justify-content:flex-start}
  .tl-head .badge,.tl-end .badge{box-shadow:0 0 0 6px var(--bg)}
  .tl-item,.tl-item + .tl-item{grid-template-columns:minmax(0,1fr);padding-left:56px;margin-top:20px}
  .tl-item::before{left:21px;top:22px;width:14px;height:14px;margin-left:-7px}
  .tl-item.next::before{border-width:2.5px}
  .tl-card,.tl-item.left .tl-card{grid-column:1;padding:18px 18px 20px}
}
/* motion: cards rise in, dots pop; the hidden starting state exists only
   with scripts and only for visitors who did not ask for reduced motion,
   so nothing can stay hidden */
@media (prefers-reduced-motion:no-preference){
  .js .tl-item{opacity:0;transform:translateY(28px);transition:opacity .6s ease,transform .6s ease}
  .js .tl-item::before{transform:scale(.3);transition:transform .45s cubic-bezier(.34,1.56,.64,1) .15s}
  .js .tl-item.in{opacity:1;transform:none}
  .js .tl-item.in::before{transform:none}
  .js .tl-head,.js .tl-end,.js .rules li{opacity:0;transition:opacity .6s ease,transform .6s ease}
  .js .rules li{transform:translateY(18px)}
  .js .rules li:nth-child(2){transition-delay:.12s}
  .js .rules li:nth-child(3){transition-delay:.24s}
  .js .rules li:nth-child(4){transition-delay:.36s}
  .js .ai-found,.js .day li{opacity:0;transform:translateY(18px);transition:opacity .6s ease,transform .6s ease}
  .js .day li:nth-child(2){transition-delay:.12s}
  .js .day li:nth-child(3){transition-delay:.24s}
  .js .day li:nth-child(4){transition-delay:.36s}
  .js .ai-found.in,.js .day li.in{opacity:1;transform:none}
  .js .mk .mk-r{opacity:0;transform:translateY(10px);transition:opacity .45s ease,transform .45s ease;transition-delay:calc(var(--i,0) * 130ms + 100ms)}
  .js .mk.in .mk-r{opacity:1;transform:none}
  .js .tl-head.in,.js .tl-end.in,.js .rules li.in{opacity:1;transform:none}
  .js .tile{opacity:0;transform:translateY(18px);transition:opacity .6s ease,transform .6s ease;transition-delay:calc(var(--i,0) * 70ms)}
  .js .tile.in{opacity:1;transform:none}
}

/* ---------- the tiles („Какво включва ВходПро“, 3.5.14, 16.11.2026) ----------
   The owner's ask (15.11.2026), like livo.me: every part of ВходПро is a tile on the site, the
   same tiles and sentences as Настройки → За фирмата in the portal. The grid between the two
   marker comments is rendered by scripts/tiles.mjs from modules.json (the app's manage.py
   export_modules); the words around it are written in the section. The tiles speak as the
   timeline does: solid is what works today, dashed with the clock is what is planned. The doors
   come first and take two columns, so „само вратите“ reads first; the AI assistant takes two
   as the site's accent. Since 3.5.18 „Пакетите“ (17.11.2026, the owner's 3А) the groups are the
   three packages — Врати, Домоуправител, AI — and „Винаги включени“: each under its name, with a
   small „Пакет“ before it and a rule after, and one sentence under it. AI (one wide tile) and
   „Винаги включени“ (Хора) share one row of the three columns on a wide screen (.tg-row, with a
   subgrid so the two names and the two grids line up); from 999px down they stack again. */
.tiles{padding-top:clamp(24px,4vw,56px)}
.tg{max-width:1060px;margin:48px auto 0}
.tg + .tg,.tg + .tg-row,.tg-row + .tg{margin-top:44px}
.tg-h{display:flex;align-items:baseline;gap:12px;margin:0;font-size:1.42rem;font-weight:800;letter-spacing:-.01em;line-height:1.2;color:var(--ink)}
.tg-h::after{content:"";flex:1;align-self:center;min-width:24px;height:1px;background:var(--line-2)}
.tg-kind{font-size:.74rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.tg-one{margin-top:6px;max-width:76ch;font-size:1rem;line-height:1.5;color:var(--ink-2);text-wrap:pretty}
.tg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:16px}
.tg-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:16px;max-width:1060px;margin:48px auto 0}
.tg-row > .tg{grid-column:span var(--span,1);display:grid;grid-row:span 2;grid-template-rows:subgrid;align-content:start;margin:0}
.tg-row .tg-grid{grid-template-columns:repeat(var(--span,1),minmax(0,1fr))}
.tile{display:flex;flex-direction:column;gap:10px;min-width:0;padding:20px 22px 22px;border-radius:20px;
  background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow-1)}
.tile-wide{grid-column:span 2}
.tile-soon{background:transparent;border:1.5px dashed var(--line-2);box-shadow:none}
/* the icon and the badge share the first row and the name has the whole width under them, as the
   value cards do: a tile is a third of the page, so a name beside the badge would collide with it */
.tile-top{display:flex;align-items:center;gap:8px}
.tile-ico{width:44px;height:44px;border-radius:13px;background:var(--btn);color:var(--btn-ink);display:grid;place-items:center;flex:none}
.tile-ico .ico{width:22px;height:22px}
.tile-soon .tile-ico{background:transparent;border:1.5px dashed var(--line-2);color:var(--accent)}
.tile h4{margin:2px 0 0;font-size:1.14rem;font-weight:700;line-height:1.25;letter-spacing:-.005em;color:var(--ink);text-wrap:balance}
.tile-top .badge{margin-left:auto;font-size:.74rem;padding:3px 9px}
.tile-top .ai-chip{margin-left:auto}
.tile-top .ai-chip + .badge{margin-left:0}
.tile-one{font-size:.98rem;line-height:1.5;color:var(--ink-2)}
.tile-fits,.tile-of{margin-top:auto;padding-top:2px;font-size:.88rem;line-height:1.4;color:var(--muted)}
.tile-fits b{color:var(--ink);font-weight:700}
@media (max-width:999px){ .tg-grid{grid-template-columns:repeat(2,minmax(0,1fr))} .tile-wide{grid-column:auto}
  .tg-row{grid-template-columns:repeat(2,minmax(0,1fr))} .tg-row > .tg{grid-column:auto} .tg-row .tg-grid{grid-template-columns:minmax(0,1fr)} }
@media (max-width:600px){ .tg-grid{grid-template-columns:minmax(0,1fr);gap:12px} .tile{padding:18px 18px 20px} .tg + .tg,.tg + .tg-row,.tg-row + .tg{margin-top:36px}
  .tg-h{font-size:1.28rem} .tg-one{font-size:.97rem} .tg-row{display:block} .tg-row > .tg{display:block} .tg-row > .tg + .tg{margin-top:36px} }

/* a page's only group, narrower than three columns (the AI package's one wide tile), stands in the middle */
.tg-alone{max-width:calc(var(--span,1) * 356px)}
.tg-alone .tg-grid{grid-template-columns:repeat(var(--span,1),minmax(0,1fr))}
.tg-alone .tile-wide{grid-column:1 / -1}

/* ---------- demo ---------- */
.cta-sec{padding-block:clamp(40px,6vw,80px) clamp(56px,8vw,104px)}
.demo-panel{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:40px 56px;align-items:center;
  background:var(--accent-soft);border-radius:28px;padding:clamp(32px,6vw,72px)}
.demo-panel .lead{max-width:30em}
.start{grid-column:1 / -1;display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:.94rem;color:var(--ink-2)}
.start > b{color:var(--ink);margin-right:4px}
.step{padding:5px 12px;border-radius:999px;background:var(--card);border:1px solid var(--line-2);font-weight:600;color:var(--ink);line-height:1.3}
.start .ico{width:16px;height:16px;color:var(--muted)}
.demo-actions{display:flex;flex-direction:column;gap:12px;width:100%;max-width:400px;justify-self:end}
.demo-actions .btn{justify-content:flex-start}
@media (max-width:900px){ .demo-panel{grid-template-columns:1fr} .demo-actions{justify-self:start;max-width:none} }
/* On a phone the four steps read top to bottom. */
@media (max-width:640px){
  .demo-panel{padding:32px 22px;border-radius:22px}
  .start{flex-direction:column;align-items:flex-start;gap:6px}
  .start > b{margin:0 0 4px}
  .start .ico{transform:rotate(90deg);margin-left:16px}
}


/* ---------- footer ---------- */
.footer{background:var(--bg-2);border-top:1px solid var(--line);padding-block:56px 36px;font-size:.98rem}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:36px}
.footer .brand{margin:0 0 12px}
.footer h2{font-size:.82rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:12px}
.footer li{margin-bottom:8px}
.footer a{color:var(--ink-2);text-decoration:none}
.footer a:hover{color:var(--accent);text-decoration:underline}
.footer .brand,.footer .brand:hover{color:var(--ink);text-decoration:none}
.foot-legal{margin-top:40px;padding-top:22px;border-top:1px solid var(--line);font-size:.88rem;color:var(--muted);display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:space-between}
@media (max-width:800px){ .foot-grid{grid-template-columns:1fr} }


@media (max-width:480px){
  .wrap{padding-inline:16px}
  .nav{padding-inline:16px}
  .tl-card,.tl-item:nth-child(even) .tl-card{padding:16px 16px 18px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none!important;animation:none!important}
}
