/* ===== DARH — premium prezentacioni sajt digitalne arhive ===== */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/Inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/Inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/assets/fonts/PlusJakartaSans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/assets/fonts/PlusJakartaSans-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; }

:root {
  --navy-950: #030716;
  --navy-900: #050a1f;
  --navy-800: #0a1333;
  --navy-700: #13204d;
  --blue: #2f6bf2;
  --blue-600: #2152d6;
  --sky: #5fb4ff;
  --indigo: #4c5be6;
  --violet: #7a5af8;
  --ink: #0d1430;
  --ink-2: #39435f;
  --muted: #5d6784;
  --line: #e2e7f2;
  --bg: #ffffff;
  --bg-alt: #f4f6fc;
  --ok: #12a46b;
  --warn: #e9a23b;
  --grad: linear-gradient(118deg, #5fb4ff 0%, #3b7bff 45%, #5b5cf0 80%, #7a5af8 100%);
  --grad-soft: linear-gradient(135deg, rgba(95, 180, 255, .16), rgba(91, 92, 240, .14));
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(13, 20, 48, .05), 0 2px 10px rgba(13, 20, 48, .05);
  --shadow: 0 14px 34px -14px rgba(13, 20, 48, .24), 0 4px 12px -6px rgba(13, 20, 48, .10);
  --shadow-lg: 0 50px 90px -34px rgba(3, 7, 22, .6), 0 20px 40px -20px rgba(3, 7, 22, .38);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-d: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
svg { flex: none; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-d); color: var(--ink); line-height: 1.14; letter-spacing: -.022em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.15rem, 4.6vw, 3.7rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.55rem); }
h3 { font-size: 1.16rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
kbd { font: 600 13px/1 var(--font); color: var(--ink); background: #fff; border: 1px solid #cfd6e8; border-bottom-width: 2px; border-radius: 7px; padding: 4px 8px; white-space: nowrap; }
code { font: 500 .88em/1.4 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; background: #eef1fa; color: #26306a; padding: .12em .4em; border-radius: 6px; word-break: break-word; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 880px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
p.center { margin-top: 36px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted-note { color: var(--muted); font-size: 15px; margin-top: 14px; }

/* ---------- dugmad ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 600 15px/1 var(--font); padding: 14px 22px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s, border-color .2s; text-decoration: none !important; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 17px 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary { color: #fff; background: var(--grad); background-size: 140% 100%; box-shadow: 0 10px 26px -10px rgba(59, 123, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .28); }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 14px 34px -10px rgba(91, 92, 240, .85), inset 0 1px 0 rgba(255, 255, 255, .3); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); background: #fff; border-color: var(--line); }
.btn-ghost:hover { border-color: #c5cde4; background: #f8faff; }
.btn-glass { color: #fff; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .32); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.linklike:hover { color: #fff; text-decoration: underline; }
.arrow-link { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.arrow-link::after { content: '→'; transition: transform .2s; }
.arrow-link:hover::after, .card-link:hover .arrow-link::after { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); color: rgba(255, 255, 255, .86); transition: background .25s, box-shadow .25s, border-color .25s; border-bottom: 1px solid transparent; }
.site-header.scrolled, body:not(.home) .site-header, .site-header.open { background: rgba(5, 10, 31, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom-color: rgba(255, 255, 255, .07); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.brand { display: inline-flex; align-items: center; text-decoration: none !important; flex: none; }
.brand img { height: 38px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a, .nav-sub-btn { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .82); font: 500 15px/1 var(--font); padding: 10px 13px; border-radius: 10px; background: none; border: 0; cursor: pointer; text-decoration: none !important; transition: color .2s, background .2s; }
.main-nav > ul > li > a:hover, .nav-sub-btn:hover, .main-nav > ul > li > a[aria-current] { color: #fff; background: rgba(255, 255, 255, .07); }
.has-sub { position: relative; }
.nav-sub-btn svg { transition: transform .2s; opacity: .8; }
.has-sub.open .nav-sub-btn svg { transform: rotate(180deg); }
.sub { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px); min-width: 340px; display: grid; gap: 2px; padding: 10px; background: #fff; border-radius: 18px; box-shadow: 0 30px 70px -20px rgba(3, 7, 22, .45), 0 0 0 1px rgba(13, 20, 48, .06); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; }
.sub::before { content: ''; position: absolute; inset: -12px 0 auto; height: 12px; }
.sub-wide { min-width: 640px; grid-template-columns: 1fr 1fr; }
.has-sub.suppress .sub { opacity: 0 !important; visibility: hidden !important; }
.has-sub.open .sub, .has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.sub a { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: start; padding: 11px 12px; border-radius: 12px; color: var(--ink); white-space: normal; }
.sub a .ico { grid-row: span 2; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--grad-soft); color: var(--blue-600); }
.sub a b { font: 700 14.5px/1.3 var(--font-d); grid-column: 2; }
.sub a span { font-size: 13px; line-height: 1.4; color: var(--muted); grid-column: 2; }
.sub a:not(:has(.ico)) b, .sub a:not(:has(.ico)) span { grid-column: 1 / -1; }
.sub a:hover, .sub a[aria-current] { background: var(--bg-alt); }
.header-cta { display: flex; align-items: center; gap: 6px; flex: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .07); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; margin-left: auto; }
.nav-toggle span { width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s, opacity .2s; }
.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.open .nav-toggle span:nth-child(2) { opacity: 0; }
.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile-cta { display: none; }

/* ---------- hero ---------- */
.hero, .page-hero { position: relative; color: rgba(255, 255, 255, .78); background: var(--navy-900); overflow: hidden; isolation: isolate; }
.hero { padding: calc(var(--header-h) + 72px) 0 56px; }
.page-hero { padding: calc(var(--header-h) + 64px) 0 72px; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.35rem); }
.hero h1, .page-hero h1, .section-dark h2, .section-dark h3, .cta-band h2 { color: #fff; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(1200px 600px at 75% -10%, #142a6e 0%, transparent 60%), radial-gradient(900px 500px at -10% 110%, #1a1550 0%, transparent 60%), var(--navy-900); }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.orb-1 { width: 520px; height: 520px; right: -120px; top: -160px; background: #2f6bf2; }
.orb-2 { width: 420px; height: 420px; left: -140px; bottom: -220px; background: #6d4df5; opacity: .4; }
.orb-3 { width: 260px; height: 260px; left: 46%; top: 30%; background: #22b8ff; opacity: .18; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; align-items: center; }
.page-hero-inner { max-width: 900px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #bcd3ff; background: rgba(95, 180, 255, .1); border: 1px solid rgba(95, 180, 255, .22); padding: 9px 14px; border-radius: 999px; margin: 0 0 22px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #5fb4ff; box-shadow: 0 0 0 4px rgba(95, 180, 255, .2); }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.2rem); line-height: 1.65; color: rgba(255, 255, 255, .76); max-width: 640px; }
.lead a { color: #a9c8ff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 28px 0 0; font-size: 14.5px; color: rgba(255, 255, 255, .7); }
.hero-chips li { display: inline-flex; align-items: center; gap: 8px; }
.hero-chips li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: rgba(18, 164, 107, .22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%2346e0a0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat; }
.hero-visual { position: relative; }
.hero-visual .shot { transform: perspective(1600px) rotateY(-7deg) rotateX(3deg); transition: transform .6s ease; }
.hero-visual:hover .shot { transform: perspective(1600px) rotateY(-2deg) rotateX(1deg); }
.hero-visual .shot figcaption { display: none; }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 16px; padding: 12px 16px; box-shadow: 0 24px 50px -18px rgba(3, 7, 22, .55); font-size: 14px; line-height: 1.3; animation: floaty 6s ease-in-out infinite; }
.float-card b { display: block; font: 700 14.5px/1.25 var(--font-d); }
.fc-sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.fc-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--grad-soft); color: var(--blue-600); flex: none; }
.fc-ico svg { width: 18px; height: 18px; }
.fc-ico.ok { background: rgba(18, 164, 107, .12); color: var(--ok); }
.fc-1 { left: -34px; bottom: 54px; }
.fc-2 { right: -18px; top: -22px; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.audience { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; list-style: none; padding: 0; margin: 64px 0 0; }
.audience li { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); padding: 8px 14px; border-radius: 999px; }

/* ---------- snimci ekrana ---------- */
.shot { margin: 0; position: relative; border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(13, 20, 48, .08); overflow: hidden; cursor: zoom-in; }
.hero .shot, .page-hero .shot, .section-dark .shot { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .1); }
.frame { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 14px; background: linear-gradient(#f7f8fc, #eef1f8); border-bottom: 1px solid #e3e7f1; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.url { flex: 1; max-width: 360px; margin: 0 auto; font-size: 12px; color: var(--muted); text-align: center; background: #fff; border: 1px solid #e3e7f1; border-radius: 7px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot img { width: 100%; height: auto; background: #f4f6fb; }
.shot figcaption { font-size: 14px; color: var(--muted); padding: 12px 16px; border-top: 1px solid var(--line); background: #fff; line-height: 1.45; }
.shot-phone { border-radius: 34px; padding: 10px; background: #0b1024; box-shadow: var(--shadow-lg), inset 0 0 0 2px #262d48; }
.shot-phone img { border-radius: 26px; }
.shot-phone figcaption { background: transparent; border: 0; color: rgba(255, 255, 255, .7); text-align: center; padding: 10px 6px 4px; font-size: 13px; }

/* ---------- sekcije ---------- */
.section { padding: 104px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy-900); color: rgba(255, 255, 255, .74); overflow: hidden; isolation: isolate; }
.section-dark-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 360px at 85% 0%, rgba(47, 107, 242, .35), transparent 70%), radial-gradient(600px 300px at 0% 100%, rgba(122, 90, 248, .28), transparent 70%); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-head-light p:last-child { color: rgba(255, 255, 255, .7); }
.kicker { display: inline-block; font: 700 13px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker-light, .page-hero .kicker, .doc-hero .kicker { background: none; color: #8fb8ff; }

/* tok (5 koraka) */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; position: relative; counter-reset: f; }
.flow::before { content: ''; position: absolute; left: 8%; right: 8%; top: 31px; height: 2px; background: linear-gradient(90deg, transparent, #c9d6f5 12%, #c9d6f5 88%, transparent); z-index: 0; }
.flow li { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 6px; padding: 0 6px; }
.flow-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: #fff; color: var(--blue-600); box-shadow: var(--shadow), 0 0 0 1px var(--line); margin-bottom: 10px; }
.flow-ico svg { width: 28px; height: 28px; }
.flow li:nth-child(odd) .flow-ico { color: var(--indigo); }
.flow b { font: 700 1.05rem/1.2 var(--font-d); color: var(--ink); }
.flow span { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* kartice */
.cards { display: grid; gap: 22px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-tight { margin-top: 28px; }
.card { position: relative; background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); transition: transform .25s ease, box-shadow .25s ease; color: var(--ink-2); }
.section-alt .card { box-shadow: var(--shadow-sm), 0 0 0 1px #e4e8f3; }
.card h3 { margin: 16px 0 8px; }
.card p { font-size: 15.5px; color: var(--muted); margin: 0; }
.card ul { font-size: 15px; color: var(--muted); margin: 10px 0 0; }
.card-big p { font-size: 16px; margin-bottom: 14px; }
.card-link { display: block; text-decoration: none !important; }
.card-link .arrow-link { margin-top: 16px; color: var(--blue-600); font-size: 15px; }
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow), 0 0 0 1px #d6def2; }
.card-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--grad-soft); color: var(--blue-600); box-shadow: inset 0 0 0 1px rgba(59, 123, 255, .14); }
.card-ico svg { width: 25px; height: 25px; }
.cards .card:nth-child(3n+2) .card-ico { color: var(--indigo); }
.cards .card:nth-child(3n) .card-ico { color: var(--violet); }

/* split */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.split-rev .split-copy { order: 2; }
.split-copy > p { color: var(--muted); }
.split-copy h2 { margin-bottom: .45em; }
.ticks { list-style: none; padding: 0; margin: 22px 0 24px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 7px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%232f6bf2' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat, var(--grad-soft); }
.ticks b { color: var(--ink); }
.ticks-sm { gap: 8px; margin: 14px 0 0; }
.ticks-sm li { font-size: 15px; padding-left: 30px; color: var(--muted); }
.ticks-sm li::before { width: 20px; height: 20px; top: 2px; }

/* brojke */
.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.stats li { padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); }
.stats b { display: block; font: 800 clamp(2.3rem, 4vw, 3.2rem)/1 var(--font-d); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; letter-spacing: -.03em; }
.stats span { font-size: 15px; line-height: 1.5; }

/* uloge */
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.role { position: relative; background: #fff; border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); overflow: hidden; }
.role::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); opacity: .9; }
.role:nth-child(2)::after { opacity: .7; } .role:nth-child(3)::after { opacity: .5; } .role:nth-child(4)::after { opacity: .3; }
.role-lvl { display: inline-block; font: 700 12px/1 var(--font); color: var(--blue-600); background: var(--grad-soft); padding: 6px 9px; border-radius: 8px; letter-spacing: .04em; }
.role-lvl::before { content: 'Nivo '; }
.role h3 { margin: 14px 0 6px; }
.role p { font-size: 15px; color: var(--muted); margin: 0; }

/* telefoni */
.phones { display: flex; justify-content: center; align-items: flex-start; gap: 34px; flex-wrap: wrap; }
.phones .shot-phone { width: 270px; }
.phones .shot-phone:nth-child(2) { transform: translateY(34px); }
.phones-4 { margin-top: 56px; }
.phones-4 .shot-phone { width: 240px; }
.phones-4 .shot-phone:nth-child(even) { transform: translateY(26px); }

/* stablo organizacije */
.tree { display: grid; gap: 22px; justify-items: center; }
.tree svg { width: 22px; height: 22px; color: var(--blue-600); }
.tree-root, .tree-node { display: grid; justify-items: center; gap: 4px; text-align: center; background: #fff; border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.tree-root { background: var(--navy-900); color: rgba(255, 255, 255, .7); box-shadow: var(--shadow); min-width: 260px; }
.tree-root b { color: #fff; font: 700 1.05rem var(--font-d); }
.tree-root svg { color: #8fb8ff; }
.tree-node b { font: 700 1rem var(--font-d); color: var(--ink); }
.tree-root span, .tree-node > span { font-size: 14px; }
.tree-node > span { color: var(--muted); }
.tree-level { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; width: 100%; position: relative; padding-top: 22px; }
.tree-level::before { content: ''; position: absolute; top: 0; left: 16.6%; right: 16.6%; height: 22px; border: 2px solid #cfd9f2; border-bottom: 0; border-radius: 14px 14px 0 0; }
.tree-node ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tree-node li { font-size: 13px; color: var(--ink-2); background: var(--bg-alt); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }
.tree-note { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; font-size: 15px; color: var(--muted); text-align: center; }

/* arhitektura */
.arch { display: grid; grid-template-columns: 1fr auto 1.2fr auto 1fr; align-items: center; gap: 18px; }
.arch-col { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 28px 22px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.arch-col b { font: 700 1.1rem var(--font-d); color: var(--ink); }
.arch-col span:last-child { font-size: 14.5px; color: var(--muted); }
.arch-main { background: var(--navy-900); box-shadow: var(--shadow); }
.arch-main b { color: #fff; }
.arch-main span:last-child { color: rgba(255, 255, 255, .7); }
.arch-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--grad-soft); color: var(--blue-600); margin-bottom: 4px; }
.arch-main .arch-ico { background: rgba(95, 180, 255, .14); color: #8fb8ff; }
.arch-ico svg { width: 26px; height: 26px; }
.arch-arrow svg { width: 28px; height: 28px; color: #9fb3e3; }

.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.specs div { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 0 0 1px var(--line); display: grid; gap: 2px; }
.specs b { font: 700 13px/1.2 var(--font); color: var(--blue-600); text-transform: uppercase; letter-spacing: .06em; }
.specs span { font-size: 15px; color: var(--ink); }

/* kod */
.code-card { background: #070d24; border-radius: var(--radius); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .06); overflow: hidden; }
.code-card pre { margin: 0; padding: 26px; overflow-x: auto; font: 13.5px/1.7 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; color: #d7e2ff; }
.code-card code { background: none; color: inherit; padding: 0; font: inherit; word-break: normal; }
.code-card .c { color: #6f7fae; }

/* grupe funkcionalnosti */
.feature-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.fgroup { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.fgroup header { display: flex; align-items: center; gap: 14px; }
.fgroup h2 { font-size: 1.2rem; margin: 0; }
.fgroup .ticks-sm { flex: 1; margin-bottom: 18px; }
.fgroup .arrow-link { font-size: 15px; }

/* galerija */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.filters button { font: 600 14px/1 var(--font); color: var(--ink-2); background: #fff; border: 1px solid var(--line); padding: 11px 16px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.filters button:hover { border-color: #c5cde4; }
.filters button[aria-pressed="true"] { color: #fff; background: var(--navy-800); border-color: var(--navy-800); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.g-wide { grid-column: 1 / -1; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm), 0 0 0 1px #d4dcf0; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font: 700 1.04rem/1.4 var(--font-d); color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 7px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' fill='none' stroke='%232f6bf2' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center/13px no-repeat, var(--grad-soft); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* CTA */
.cta-band { position: relative; padding: 96px 0; background: var(--navy-900); color: rgba(255, 255, 255, .74); overflow: hidden; isolation: isolate; }
.cta-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 380px at 90% 10%, rgba(47, 107, 242, .45), transparent 70%), radial-gradient(700px 360px at 5% 100%, rgba(122, 90, 248, .35), transparent 70%); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 48px; align-items: center; }
.cta-inner h2 { margin-bottom: .4em; }
.cta-inner p { margin: 0; max-width: 640px; font-size: 1.06rem; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }

/* putanja */
.crumbs { position: relative; z-index: 2; background: var(--navy-900); border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 14px; }
.crumbs ol { list-style: none; margin: 0; padding: 12px 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: '/'; margin: 0 10px; color: rgba(255, 255, 255, .25); }
.crumbs a { color: rgba(255, 255, 255, .6); }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: rgba(255, 255, 255, .92); font-weight: 600; }
.crumbs + .page-hero, .crumbs + .doc-hero { padding-top: 48px; }
body:not(.home) main > .crumbs { margin-top: var(--header-h); }

/* proza (pravne stranice) */
.prose h2 { font-size: 1.45rem; margin: 2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.6em 0 .5em; }
.prose li { margin-bottom: .4em; }
.table-wrap { overflow-x: auto; margin: 18px 0 24px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); background: #fff; -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.table-wrap th, .table-wrap td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap th { font: 700 13.5px/1.3 var(--font); color: var(--ink); background: #f6f8fd; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td { color: var(--ink-2); }
.keys { min-width: 0 !important; }

/* ---------- uputstvo ---------- */
.doc-hero { position: relative; padding: calc(var(--header-h) + 52px) 0 52px; background: var(--navy-900); color: rgba(255, 255, 255, .76); overflow: hidden; isolation: isolate; }
.doc-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 360px at 85% -20%, rgba(47, 107, 242, .45), transparent 70%), radial-gradient(600px 300px at 0% 120%, rgba(122, 90, 248, .3), transparent 70%); }
.doc-hero h1 { color: #fff; font-size: clamp(2rem, 3.8vw, 3rem); }
.doc-hero .lead { max-width: 780px; }
.doc-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 56px; padding-top: 48px; padding-bottom: 96px; }
.doc-aside { position: relative; }
.doc-nav-wrap { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.doc-nav-wrap > summary { display: none; }
.doc-nav-h { font: 700 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px 12px; }
.doc-nav-h:first-child { margin-top: 0; }
.doc-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.doc-nav a { display: block; padding: 7px 12px; border-radius: 9px; font-size: 14.5px; color: var(--ink-2); line-height: 1.35; }
.doc-nav a:hover { background: var(--bg-alt); text-decoration: none; }
.doc-nav a[aria-current] { background: var(--grad-soft); color: var(--blue-600); font-weight: 600; box-shadow: inset 3px 0 0 var(--blue); }
.doc { min-width: 0; font-size: 16.5px; }
.doc h2 { font-size: 1.6rem; margin: 2.2em 0 .6em; padding-top: .2em; position: relative; }
.doc h3 { font-size: 1.2rem; margin: 1.8em 0 .5em; position: relative; }
.doc h4 { font-size: 1.05rem; margin: 1.4em 0 .4em; }
.doc .anchor { position: absolute; left: -1.1em; opacity: 0; color: #9fb0d8; text-decoration: none; font-weight: 600; transition: opacity .15s; }
.doc h2:hover .anchor, .doc h3:hover .anchor { opacity: 1; }
.doc > p:first-of-type { font-size: 1.05rem; }
.doc li { margin-bottom: .35em; }
.doc li > ul, .doc li > ol { margin: .35em 0 0; }
.doc blockquote { margin: 1.2em 0; padding: 14px 18px; background: #f2f6ff; border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0; color: var(--ink-2); }
.doc blockquote p:last-child { margin: 0; }
.doc pre { background: #070d24; color: #d7e2ff; padding: 18px; border-radius: 14px; overflow-x: auto; font-size: 14px; }
.doc pre code { background: none; color: inherit; padding: 0; }
.doc-shots { display: grid; gap: 22px; margin: 4px 0 30px; }
.doc-toc { background: var(--bg-alt); border-radius: 14px; padding: 4px 18px; margin: 0 0 28px; box-shadow: 0 0 0 1px var(--line); }
.doc-toc summary { cursor: pointer; padding: 12px 0; font: 700 15px var(--font-d); color: var(--ink); }
.doc-toc ol { margin: 0 0 14px; padding-left: 1.3em; columns: 2; column-gap: 28px; font-size: 15px; }
.doc-toc li { break-inside: avoid; margin-bottom: 4px; }
.doc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 56px 0 28px; }
.doc-pager a { display: grid; gap: 4px; padding: 18px 20px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); color: var(--ink); font: 700 16px/1.3 var(--font-d); transition: box-shadow .2s, transform .2s; }
.doc-pager a:hover { text-decoration: none; box-shadow: var(--shadow-sm), 0 0 0 1px #cfd8ef; transform: translateY(-2px); }
.doc-pager small { font: 600 12.5px var(--font); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.doc-pager .next { text-align: right; grid-column: 2; }
.doc-help { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 22px 24px; border-radius: 18px; background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(59, 123, 255, .16); }
.doc-help b { color: var(--ink); font-family: var(--font-d); width: 100%; }
.doc-help span { flex: 1; min-width: 240px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.contact-card { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); color: var(--ink); text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow), 0 0 0 1px #d6def2; }
.contact-card small { display: block; color: var(--muted); font-size: 13px; }
.contact-card b { font: 700 1.1rem var(--font-d); }
.contact-info .card h3 { margin-top: 0; }
.form-card { background: #fff; border-radius: 24px; padding: 36px; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.form-card h2 { font-size: 1.6rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: 16px/1.4 var(--font); color: var(--ink); background: #fbfcff; border: 1px solid #d5dbea; border-radius: 12px; padding: 13px 14px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 107, 242, .14); background: #fff; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.captcha { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.captcha-q { font: 700 18px/1 var(--font-d); color: var(--ink); background: var(--bg-alt); border: 1px dashed #c6cfe6; padding: 12px 16px; border-radius: 12px; min-width: 96px; text-align: center; }
.captcha input { max-width: 120px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: 15px; font-weight: 500; min-height: 1.5em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #c62a3a; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .62); padding: 80px 0 30px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-brand p { margin: 18px 0 0; max-width: 380px; line-height: 1.6; }
.footer-contact { display: grid; gap: 4px; }
.footer-contact a { color: #fff; font-weight: 600; }
.site-footer h2 { font: 700 13px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .92); margin: 6px 0 16px; }
.footer-h-gap { margin-top: 28px !important; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: rgba(255, 255, 255, .62); }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255, 255, 255, .85); }
.ver { opacity: .55; font-variant-numeric: tabular-nums; }

/* ---------- kolačići ---------- */
.cc { position: fixed; z-index: 200; left: 20px; bottom: 20px; max-width: 460px; width: calc(100% - 40px); }
.cc-box { background: #fff; border-radius: 20px; padding: 22px 22px 18px; box-shadow: 0 30px 80px -20px rgba(3, 7, 22, .5), 0 0 0 1px rgba(13, 20, 48, .06); animation: ccIn .35s ease; }
@keyframes ccIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cc-head { display: flex; align-items: center; gap: 10px; color: var(--blue); margin-bottom: 8px; }
.cc-head h2 { font-size: 1.1rem; margin: 0; }
.cc p { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0 0 14px; }
.cc-prefs { display: grid; gap: 10px; margin: 0 0 14px; }
.cc-row { display: flex; gap: 14px; justify-content: space-between; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.cc-row span { display: grid; gap: 2px; font-size: 14px; color: var(--ink); }
.cc-row small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.cc-row input { width: 40px; height: 22px; appearance: none; -webkit-appearance: none; background: #d6dbe8; border-radius: 999px; position: relative; flex: none; cursor: pointer; transition: background .2s; }
.cc-row input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.cc-row input:checked { background: var(--blue); }
.cc-row input:checked::after { transform: translateX(18px); }
.cc-row input:disabled { opacity: .55; cursor: not-allowed; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1600px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(3, 7, 22, .86); backdrop-filter: blur(4px); }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: 12px; box-shadow: var(--shadow-lg); background: #fff; }
.lightbox p { color: rgba(255, 255, 255, .85); text-align: center; margin: 12px 0 0; font-size: 15px; }
.lightbox-close { position: absolute; top: -18px; right: -18px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }

/* ---------- animacije ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-visual .shot { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .main-nav a, .nav-sub-btn { padding: 10px 10px; font-size: 14.5px; }
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .site-header.open, body:not(.home) .site-header.open { background: var(--navy-900); }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0; background: var(--navy-900); padding: 18px 20px 32px; overflow-y: auto; display: none; margin: 0; }
  .open .main-nav { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a, .nav-sub-btn { width: 100%; justify-content: space-between; font-size: 17px; padding: 15px 14px; }
  .sub, .sub-wide { position: static; transform: none; min-width: 0; grid-template-columns: 1fr; background: rgba(255, 255, 255, .04); box-shadow: none; display: none; opacity: 1; visibility: visible; margin: 4px 0 8px; padding: 6px; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { transform: none; }
  .has-sub.open .sub { display: grid; transform: none; }
  .sub a { color: #fff; justify-content: start; }
  .sub a span { color: rgba(255, 255, 255, .6); }
  .sub a .ico { background: rgba(95, 180, 255, .12); color: #8fb8ff; }
  .sub a:hover, .sub a[aria-current] { background: rgba(255, 255, 255, .06); }
  .nav-mobile-cta { display: grid; gap: 10px; margin-top: 22px; }
  .hero-inner, .split, .contact-grid, .cta-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero-visual .shot { transform: none; }
  .split-rev .split-copy { order: 0; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: 1fr; gap: 0; max-width: 520px; margin: 0 auto; }
  .flow::before { left: 31px; right: auto; top: 20px; bottom: 70px; width: 2px; height: auto; background: linear-gradient(#c9d6f5, #c9d6f5); }
  .flow li { grid-template-columns: 64px 1fr; justify-items: start; text-align: left; column-gap: 18px; row-gap: 2px; padding: 0 0 26px; }
  .flow-ico { grid-row: span 2; margin: 0; }
  .flow b { align-self: end; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .doc-layout { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
  .doc-nav-wrap { position: static; max-height: none; background: var(--bg-alt); border-radius: 14px; padding: 0 16px; margin-bottom: 28px; box-shadow: 0 0 0 1px var(--line); }
  .doc-nav-wrap > summary { display: block; cursor: pointer; padding: 14px 0; font: 700 15px var(--font-d); color: var(--ink); }
  .doc-nav-wrap[open] { padding-bottom: 14px; }
  .arch { grid-template-columns: 1fr; }
  .arch-arrow { justify-self: center; transform: rotate(90deg); }
  .tree-level { grid-template-columns: 1fr; padding-top: 0; }
  .tree-level::before { display: none; }
  .gallery { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding-bottom: 44px; }
  .page-hero { padding: calc(var(--header-h) + 40px) 0 52px; }
  .hero-actions .btn { width: 100%; }
  .cards-2, .cards-3, .form-grid, .roles, .feature-groups, .specs { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .cards .card:has(> .card-ico) { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; }
  .cards .card:has(> .card-ico) > .card-ico { width: 44px; height: 44px; border-radius: 13px; }
  .cards .card:has(> .card-ico) > h3 { margin: 0; }
  .cards .card:has(> .card-ico) > :not(.card-ico):not(h3) { grid-column: 1 / -1; }
  .cards .card:has(> .card-ico) > p { margin-top: 10px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stats li { padding: 20px; }
  .fc-1 { left: 8px; bottom: -26px; padding: 10px 12px; }
  .fc-2 { right: 8px; top: -20px; padding: 10px 12px; }
  .float-card b { font-size: 13px; }
  .fc-sub { font-size: 11.5px; }
  .phones { gap: 18px; }
  .phones .shot-phone, .phones-4 .shot-phone { width: calc(50% - 9px); max-width: 240px; border-radius: 26px; padding: 7px; }
  .phones .shot-phone img { border-radius: 20px; }
  .phones .shot-phone:nth-child(2), .phones-4 .shot-phone:nth-child(even) { transform: translateY(20px); }
  .phones > .shot-phone:nth-child(3):last-child { display: none; }
  .form-card { padding: 24px 18px; border-radius: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
  .audience { margin-top: 48px; }
  .audience li { font-size: 13px; padding: 7px 12px; }
  .frame { height: 26px; padding: 0 10px; }
  .dots i { width: 8px; height: 8px; }
  .url { font-size: 11px; padding: 2px 8px; }
  .shot figcaption { font-size: 13px; padding: 10px 12px; }
  .cc { left: 10px; bottom: 10px; width: calc(100% - 20px); }
  .cc-actions .btn { flex: 1 1 auto; }
  .lightbox-close { top: -12px; right: -6px; }
  .doc-toc ol { columns: 1; }
  .doc-pager { grid-template-columns: 1fr; }
  .doc-pager .next { grid-column: 1; }
  .doc .anchor { display: none; }
  .doc h2 { font-size: 1.4rem; }
  .crumbs + .page-hero, .crumbs + .doc-hero { padding-top: 36px; }
}
.shots-2 { align-items: start; }
.phones-gallery .shot-phone:nth-child(even) { transform: none; }
@media (min-width: 981px) { .phones-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; } .phones-gallery .shot-phone { width: auto; } }
@media (max-width: 640px) { .phones-gallery > .shot-phone:nth-child(3):last-child { display: block; } }
