/* ==========================================================================
   NIKET — site styles
   ========================================================================== */
:root {
  /* цветове от логото: бордо #8C0052 и сиво #A7A9AC */
  --brand: #8c0052;
  --brand-2: #a3196b;
  --brand-dark: #6a003e;
  --brand-ink: #ffffff;
  --gray: #a7a9ac;
  --gray-light: #d3d4d6;
  --ink: #2a0f1f;
  --ink-2: #381829;
  --ink-3: #4a2138;
  --paper: #f6f5f5;
  --paper-2: #eceaeb;
  --white: #ffffff;
  --text: #231f20;
  --muted: #6b6d70;
  --muted-light: rgba(255, 255, 255, .7);
  --line: rgba(35, 31, 32, .12);
  --line-light: rgba(255, 255, 255, .14);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -28px rgba(42, 15, 31, .45);
  --font-d: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
svg { width: 1em; height: 1em; flex: none; }
h1, h2, h3, h4 { font-family: var(--font-d); font-weight: 800; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 4.4rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.8rem); letter-spacing: -.02em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); font-weight: 400; }
.center { text-align: center; }

.kicker {
  display: inline-flex; align-items: center; gap: .6em;
  font: 600 .78rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.1rem;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; opacity: .6; }
.kicker.center { display: flex; justify-content: center; }
.kicker-brand { color: var(--brand); }
.kicker .dot { display: none; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted-light); max-width: 40em; }
.lead-dark { font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink); font-weight: 500; }

/* --- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .65em; cursor: pointer;
  padding: .95em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .95rem/1 var(--font); letter-spacing: .01em; transition: transform .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-brand { background: var(--brand); color: var(--brand-ink); }
.btn-brand:hover { background: var(--brand-2); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-3); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .4); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); }
.btn-sm { padding: .7em 1.15em; font-size: .86rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.center-row { display: flex; justify-content: center; margin-top: 3rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; border-bottom: 2px solid var(--brand); padding-bottom: 2px; }
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

.chip {
  display: inline-flex; align-items: center; gap: .4em; padding: .42em .8em; border-radius: 999px;
  font: 600 .74rem/1 var(--font); letter-spacing: .03em;
}
.chip-glass { background: rgba(11, 22, 32, .55); color: var(--white); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.18); }

/* --- header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(11, 22, 32, .92); color: var(--white);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background .3s, box-shadow .3s;
}
.has-hero .site-header { position: fixed; left: 0; right: 0; background: transparent; }
.has-hero .site-header.is-solid { background: rgba(11, 22, 32, .92); box-shadow: 0 1px 0 var(--line-light); }
.header-row { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--white); }
.logo-mark { width: 34px; height: 34px; color: var(--brand); }
.logo-word { font: 700 1.3rem/1 var(--font-d); letter-spacing: .06em; display: flex; flex-direction: column; }
.logo-word small { font: 500 .58rem/1 var(--font); letter-spacing: .22em; text-transform: uppercase; opacity: .6; margin-top: 5px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav > a { padding: .55em .85em; border-radius: 999px; font-weight: 600; font-size: .93rem; color: rgba(255,255,255,.82); transition: color .2s, background .2s; }
.main-nav > a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.main-nav > a.is-active { color: var(--white); }
.main-nav > a.is-active::after { content: ""; display: block; height: 2px; background: var(--brand); margin-top: 3px; border-radius: 2px; }
.main-nav .nav-strong { color: var(--white); }
.main-nav .nav-na { font-size: .82rem; color: rgba(255,255,255,.55); }
.nav-mobile-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { font: 700 .8rem/1 var(--font); letter-spacing: .08em; padding: .7em .75em; border-radius: 999px; border: 1px solid var(--line-light); }
.lang-switch:hover { border-color: var(--white); }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle svg { width: 26px; height: 26px; }

/* --- hero ---------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; color: var(--white); background: var(--ink);
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 32px;
}
.hero-bg, .page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg { animation: kenburns 24s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,22,32,.65) 0%, rgba(11,22,32,.1) 30%, rgba(11,22,32,.25) 55%, rgba(11,22,32,.92) 100%),
    linear-gradient(90deg, rgba(11,22,32,.7) 0%, rgba(11,22,32,0) 65%);
}
.hero-inner { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.hero-copy { max-width: 820px; }
.hero h1 { margin-bottom: .4em; }
.hero-tag {
  position: relative; display: grid; gap: 4px; min-width: 250px; padding: 18px 56px 18px 20px;
  border-radius: var(--radius); background: rgba(11, 22, 32, .5); border: 1px solid var(--line-light);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: background .2s, border-color .2s;
}
.hero-tag:hover { background: rgba(11, 22, 32, .7); border-color: var(--brand); }
.hero-tag-label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.hero-tag strong { font: 600 1.1rem/1.2 var(--font-d); }
.hero-tag-power { color: var(--muted-light); font-size: .9rem; }
.hero-tag > svg { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--brand); }

.stats {
  position: relative; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-light);
}
.stats > div { padding: 22px 24px 4px 0; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--line-light); }
.stats dt { font: 600 clamp(1.8rem, 3.4vw, 2.9rem)/1 var(--font-d); letter-spacing: -.03em; }
.stats dd { margin: 10px 0 0; color: var(--muted-light); font-size: .9rem; }
.stats dd b { color: var(--brand); font-weight: 700; }

/* --- sections ------------------------------------------------------------ */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .section-lead { color: var(--muted-light); }
.section-soft { background: var(--paper-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 64px; margin-bottom: clamp(32px, 4vw, 52px); flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 16em; }
.section-head.compact { margin-bottom: 28px; }
.section-lead { max-width: 30em; color: var(--muted); margin: 0; font-size: 1.05rem; }

/* --- project cards ------------------------------------------------------- */
.pcard {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  background: var(--ink); color: var(--white); min-height: 320px; isolation: isolate;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.pcard-img { position: absolute; inset: 0; margin: 0; z-index: -2; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.pcard::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,22,32,.15) 0%, rgba(11,22,32,0) 35%, rgba(11,22,32,.88) 100%);
  transition: opacity .3s;
}
.pcard:hover .pcard-img img { transform: scale(1.06); }
.pcard-top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.pcard-top svg { width: 13px; height: 13px; }
.pcard-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 70px 22px 22px; }
.pcard-power { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.pcard-power b { font: 600 clamp(1.9rem, 3vw, 2.6rem)/1 var(--font-d); letter-spacing: -.03em; color: var(--brand); }
.pcard-power span { font: 600 .95rem/1 var(--font-d); color: var(--brand); opacity: .9; }
.pcard h3 { margin: 0 0 .5em; font-size: 1.08rem; line-height: 1.25; }
.pcard-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: .83rem; color: rgba(255,255,255,.75); }
.pcard-meta span { display: inline-flex; align-items: center; gap: 5px; }
.pcard-meta svg { width: 14px; height: 14px; opacity: .8; }
.pcard-go {
  position: absolute; right: 18px; bottom: 22px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  transition: background .25s, color .25s, transform .25s;
}
.pcard-go svg { width: 18px; height: 18px; }
.pcard:hover .pcard-go { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); transform: rotate(-45deg); }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 300px; gap: 16px; }
.bento .pcard { min-height: 0; }
.bento .pcard-xl { grid-column: span 2; grid-row: span 2; }
.bento .pcard-xl .pcard-body { padding: 32px 90px 32px 32px; }
.bento .pcard-xl .pcard-power b { font-size: clamp(2.8rem, 5.5vw, 4.6rem); }
.bento .pcard-xl .pcard-power span { font-size: 1.3rem; }
.bento .pcard-xl h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
.bento .pcard-xl .pcard-go { width: 54px; height: 54px; right: 28px; bottom: 32px; }
.bento .pcard-wide { grid-column: span 2; }

.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pgrid .pcard { min-height: 0; aspect-ratio: 4 / 3.6; }
.pgrid .pcard.is-hidden { display: none; }

/* filter bar */
.filterbar {
  position: sticky; top: calc(var(--header-h) + 10px); z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px; margin-bottom: 26px; border-radius: 999px;
  background: rgba(245, 243, 238, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn {
  cursor: pointer; border: 0; padding: .7em 1.1em; border-radius: 999px; background: transparent;
  font-weight: 600; font-size: .9rem; color: var(--muted); transition: background .2s, color .2s;
}
.chip-btn i { font-style: normal; font-size: .75em; opacity: .7; margin-left: 2px; }
.chip-btn:hover { color: var(--ink); background: rgba(11,22,32,.06); }
.chip-btn.is-on { background: var(--ink); color: var(--white); }
.sort { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); padding-right: 8px; }
.sort select { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: .55em 2em .55em 1em; font-weight: 600; color: var(--ink); appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23231f20' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7em center; background-size: 14px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* --- page hero ----------------------------------------------------------- */
.page-hero { position: relative; background: var(--ink); color: var(--white); padding: clamp(70px, 10vw, 130px) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.page-hero.has-image .page-hero-bg { opacity: .28; filter: saturate(.7); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 85% 0%, rgba(140,0,82,.45), transparent 55%); pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 14em; }
.hero-mini-stats { display: flex; gap: 48px; margin: 36px 0 0; flex-wrap: wrap; }
.hero-mini-stats dt { font: 600 2.2rem/1 var(--font-d); color: var(--brand); letter-spacing: -.03em; }
.hero-mini-stats dd { margin: 8px 0 0; color: var(--muted-light); font-size: .9rem; }

/* --- project detail ------------------------------------------------------ */
.proj-hero { position: relative; min-height: 78vh; color: var(--white); background: var(--ink); display: flex; align-items: flex-end; overflow: hidden; padding: calc(var(--header-h) + 40px) 0 110px; }
.proj-hero .hero-bg { animation-duration: 18s; }
.proj-hero-inner { position: relative; }
.proj-hero h1 { margin: .35em 0 .25em; max-width: 15em; }
.proj-hero-loc { display: flex; align-items: center; gap: 8px; color: var(--muted-light); font-size: 1.05rem; margin: 0; }
.crumbs { display: flex; gap: 10px; font-size: .85rem; color: var(--muted-light); margin-bottom: 22px; }
.crumbs a:hover { color: var(--white); }
.specbar-wrap { position: relative; z-index: 2; margin-top: -64px; }
.specbar {
  margin: 0; display: flex; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.specbar > div { flex: 1 1 0; min-width: 0; padding: 24px 26px; border-left: 1px solid var(--line); }
.specbar > .spec-power { flex-grow: 1.4; }
.specbar > div:first-child { border-left: 0; }
.specbar dt { display: flex; align-items: center; gap: 7px; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.specbar dt svg { width: 16px; height: 16px; color: var(--brand); }
.specbar dd { margin: 0; font: 600 1.15rem/1.2 var(--font-d); }
.spec-power { background: var(--ink); color: var(--white); }
.spec-power dt { color: var(--muted-light); }
.spec-power dd { color: var(--brand); font-size: 1.3rem; }
.spec-power dd b { font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -.03em; }
.proj-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.proj-text .rich { color: #2c3842; }
.proj-aside { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 30px; }
.proj-aside .kicker { color: var(--brand); }
.proj-aside h3 { font-size: 1.3rem; }
.proj-aside p { color: var(--muted-light); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; }
.g-item { position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--paper-2); cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .3s; }
.g-item:hover img { transform: scale(1.05); }
.g-wide { grid-column: span 2; grid-row: span 2; }
.pn { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; }
.pn-link { display: grid; gap: 4px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.pn-link:hover { border-color: var(--ink); background: var(--white); }
.pn-link span { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.pn-link strong { font: 600 1.05rem/1.25 var(--font-d); }
.pn-link small { color: var(--brand); font-weight: 700; }
.pn-next { text-align: right; justify-items: end; }
.pn-all { align-self: center; padding: .9em 1.4em; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 600; font-size: .9rem; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6, 12, 18, .95); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 6px; margin: 0 auto; }
.lightbox figcaption { color: var(--muted-light); font-size: .85rem; margin-top: 12px; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.1); border: 0; color: var(--white); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lb-close:hover, .lb-nav:hover { background: var(--brand); color: var(--brand-ink); }
.lb-close svg, .lb-nav svg { width: 22px; height: 22px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* --- services ------------------------------------------------------------ */
.svc-feature { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-card { background: var(--ink-2); border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; }
.svc-card figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.svc-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.svc-card:hover img { transform: scale(1.05); }
.svc-card > div { padding: 24px 26px 28px; }
.svc-num { font: 600 .8rem/1 var(--font-d); color: var(--brand); display: block; margin-bottom: 12px; }
.svc-card p { color: var(--muted-light); margin: 0; font-size: .95rem; }
.svc-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.svc-list li { min-width: 0; overflow-wrap: anywhere; hyphens: auto; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line-light); font-weight: 600; font-size: .93rem; line-height: 1.3; }
.svc-list svg { width: 22px; height: 22px; color: var(--brand); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-tile { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.svc-tile figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.svc-tile img { width: 100%; height: 100%; object-fit: cover; }
.svc-tile-body { position: relative; padding: 34px 24px 24px; }
.svc-icon { position: absolute; top: -26px; left: 22px; width: 52px; height: 52px; border-radius: 14px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(140,0,82,.6); }
.svc-icon svg { width: 26px; height: 26px; }
.svc-tile p { color: var(--muted); margin: 0; font-size: .95rem; }

/* --- about --------------------------------------------------------------- */
.about-teaser { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.about-teaser h2 { max-width: 13em; }
.iso-stack { display: grid; gap: 14px; }
.iso-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 18px; align-items: center; padding: 22px 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.iso-card span { grid-row: span 2; width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: var(--brand); display: grid; place-items: center; font: 700 .85rem/1 var(--font-d); }
.iso-card b { font: 600 1.35rem/1.1 var(--font-d); }
.iso-card small { color: var(--muted); font-weight: 600; }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.prose p { color: #2c3842; }
.prose .lead-dark { color: var(--ink); }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--paper); }
.timeline b { font: 600 1.5rem/1 var(--font-d); display: block; margin-bottom: 8px; }
.timeline p { color: var(--muted); margin: 0; }
.om-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.om-block { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line-light); background: var(--ink-2); }
.om-block h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.om-block h3 svg { color: var(--brand); width: 24px; height: 24px; }
.om-bars { display: grid; gap: 12px; }
.om-bar { display: grid; grid-template-columns: 1fr 90px; align-items: center; gap: 14px; }
.om-bar span { height: 12px; border-radius: 6px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; }
.om-bar span::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 6px; }
.om-hydro span::after { background: linear-gradient(90deg, #8d8f92, var(--gray-light)); }
.om-bar b { font: 600 .95rem/1 var(--font-d); text-align: right; }

/* --- clients ------------------------------------------------------------- */
.section-clients { border-top: 1px solid var(--line); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 55s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-tile { width: 180px; height: 96px; flex: none; display: grid; place-items: center; padding: 18px 24px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); font: 600 .95rem/1.2 var(--font-d); text-align: center; color: var(--muted); }
.logo-tile img, .logo-cell img { max-height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.logo-tile:hover img, .logo-cell:hover img { filter: none; opacity: 1; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.logo-cell { height: 120px; display: grid; place-items: center; padding: 20px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); text-align: center; font: 600 .95rem/1.2 var(--font-d); color: var(--muted); }
.brand-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-cloud span { padding: .8em 1.3em; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font: 600 .95rem/1 var(--font-d); }
.partner-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.partner { padding: 28px; border-radius: var(--radius); background: var(--ink); color: var(--white); display: grid; gap: 8px; transition: transform .2s; }
.partner:hover { transform: translateY(-3px); }
.partner b { font: 600 1.25rem/1.2 var(--font-d); }
.partner span { color: var(--brand); font-size: .9rem; }

/* --- software ------------------------------------------------------------ */
.sw-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.sw-shot { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.sw-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sw-cards article { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.sw-cards p { color: var(--muted); margin: 0; }
.module-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.module-list li { display: flex; gap: 12px; align-items: baseline; padding: 12px 16px; background: var(--white); border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--muted); }
.module-list b { font-family: var(--font-d); font-weight: 600; color: var(--ink); min-width: 9.5em; }
.video { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.video iframe { width: 100%; height: 100%; border: 0; }

/* --- contact ------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.ccard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; }
.ccard .kicker { margin-bottom: 4px; }
.ccard a, .ccard-addr { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; }
.ccard a:hover { color: var(--brand); }
.ccard svg { color: var(--brand); width: 18px; height: 18px; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4); }
.cform { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); display: grid; gap: 16px; scroll-margin-top: 100px; }
.cform h2 { font-size: 1.7rem; }
.cform label { display: grid; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--muted-light); }
.cform input, .cform textarea { width: 100%; border: 1px solid var(--line-light); background: rgba(255,255,255,.05); border-radius: var(--radius-sm); padding: .9em 1em; color: var(--white); transition: border-color .2s, background .2s; }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--brand); background: rgba(255,255,255,.08); }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.frow-end { grid-template-columns: 180px 1fr; align-items: end; }
.cform .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; line-height: 1.45; }
.cform .check input { width: 20px; height: 20px; flex: none; accent-color: var(--brand); margin-top: 2px; }
.cform .btn { justify-self: start; border: 0; }
.hp { position: absolute; left: -9999px; }
.flash { padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; margin: 0; }
.flash-ok { background: rgba(70, 190, 120, .16); color: #b6f0cd; border: 1px solid rgba(70,190,120,.4); }
.flash-error { background: rgba(230, 80, 60, .14); color: #ffc5bc; border: 1px solid rgba(230,80,60,.4); }
.flashes { padding-top: 20px; }
.flashes .flash-ok { color: #1f7a45; }
.flashes .flash-error { color: #a02a1a; }

/* --- footer -------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--white); padding-top: clamp(56px, 7vw, 96px); }
.footer-cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-bottom: 56px; border-bottom: 1px solid var(--line-light); }
.footer-cta h2 { max-width: 15em; margin: 0; }
.footer-cta-links { display: grid; gap: 10px; }
.big-link { display: inline-flex; align-items: center; gap: 12px; font: 600 clamp(1.1rem, 2vw, 1.5rem)/1.2 var(--font-d); transition: color .2s; }
.big-link svg { color: var(--brand); width: 22px; height: 22px; }
.big-link:hover { color: var(--brand); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1fr; gap: 40px; padding: 56px 0; }
.footer-brand p { color: var(--muted-light); margin-top: 18px; max-width: 26em; font-size: .93rem; }
.footer-iso { font-weight: 700; color: var(--brand) !important; font-size: .8rem !important; letter-spacing: .08em; }
.site-footer h4 { font: 700 .75rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .93rem; }
.site-footer ul a:hover { color: var(--brand); }
.footer-contact li, .footer-contact a { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.82); }
.footer-contact svg { margin-top: 4px; color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 22px 0 28px; border-top: 1px solid var(--line-light); font-size: .82rem; color: var(--muted-light); }
.footer-bottom a { color: var(--white); }

/* --- reveal -------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 1180px) {
  .main-nav .nav-na { display: none; }
  .svc-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--ink);
    flex-direction: column; align-items: stretch; gap: 0; padding: 20px var(--gutter) 40px;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; overflow-y: auto;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .main-nav > a { font: 600 1.4rem/1.2 var(--font-d); padding: 16px 0; border-bottom: 1px solid var(--line-light); border-radius: 0; color: var(--white); }
  .main-nav > a:hover { background: none; color: var(--brand); }
  .main-nav > a.is-active::after { display: none; }
  .main-nav > a.is-active { color: var(--brand); }
  .main-nav .nav-na { display: block; font-size: 1rem; font-family: var(--font); }
  .nav-mobile-extra { display: grid; gap: 14px; margin-top: 28px; }
  .nav-mobile-extra a { display: flex; align-items: center; gap: 10px; color: var(--muted-light); }
  .nav-mobile-extra svg { color: var(--brand); }
  body.menu-open .site-header { background: var(--ink) !important; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 280px; }
  .bento .pcard-wide { grid-column: span 1; }
  .pgrid, .svc-grid, .sw-cards { grid-template-columns: repeat(2, 1fr); }
  .svc-feature { grid-template-columns: 1fr 1fr; }
  .svc-feature .svc-card:first-child { grid-column: span 2; }
  .about-teaser, .about-grid, .proj-body, .sw-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
  .om-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .hero-inner { flex-direction: column; align-items: stretch; margin-bottom: 28px; }
  .hero-tag { min-width: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div { padding: 18px 12px 10px 0; }
  .stats > div + div { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line-light); }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line-light); }
  .stats dt { font-size: 1.9rem; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento .pcard, .bento .pcard-wide { grid-column: auto; grid-row: auto; min-height: 300px; }
  .bento .pcard-xl { grid-column: auto; grid-row: auto; min-height: 420px; }
  .bento .pcard-xl .pcard-body { padding: 22px 70px 22px 22px; }
  .bento .pcard-xl .pcard-power b { font-size: 3rem; }
  .bento .pcard-xl .pcard-go { width: 44px; height: 44px; right: 18px; bottom: 22px; }
  .pgrid, .svc-grid, .sw-cards, .svc-feature, .partner-row { grid-template-columns: 1fr; }
  .svc-feature .svc-card:first-child { grid-column: span 1; }
  .svc-list { grid-template-columns: 1fr 1fr; }
  .svc-list li { padding: 14px; font-size: .86rem; }
  .filterbar { border-radius: var(--radius); position: static; }
  .filterbar .chips { overflow-x: auto; flex-wrap: nowrap; }
  .chip-btn { white-space: nowrap; }
  .specbar { flex-wrap: wrap; }
  .specbar > div { flex: 1 1 50%; }
  .specbar > .spec-power { flex-basis: 100%; }
  .specbar > div { border-left: 0; border-top: 1px solid var(--line); }
  .specbar .spec-power { border-top: 0; }
  .specbar > div:nth-child(odd):not(.spec-power) { border-left: 1px solid var(--line); }
  .specbar > div:nth-child(even) { border-left: 0; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; gap: 8px; }
  .pn { grid-template-columns: 1fr 1fr; }
  .pn-all { grid-column: span 2; grid-row: 1; justify-self: center; }
  .frow, .frow-end { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .logo-word small { display: none; }
  .om-bar { grid-template-columns: 1fr 74px; }
}


/* ==========================================================================
   Бранд: бял хедър по цялата ширина + акценти на тъмен фон в сивото от логото
   ========================================================================== */
body { color: var(--text); }
.site-header, .has-hero .site-header, .has-hero .site-header.is-solid {
  position: sticky; top: 0; left: auto; right: auto; background: var(--white); color: var(--text);
  box-shadow: 0 1px 0 var(--line); backdrop-filter: none; -webkit-backdrop-filter: none;
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: linear-gradient(90deg, var(--brand) 0 50%, var(--gray) 50% 100%); }
.site-header.is-solid { box-shadow: 0 8px 30px -18px rgba(42,15,31,.35); }
.header-row { width: 100%; max-width: none; padding: 0 clamp(16px, 3vw, 48px); gap: clamp(16px, 2.5vw, 40px); }
.logo img { height: 46px; width: auto; }
.main-nav { flex: 1; justify-content: space-evenly; margin-left: 0; }
.main-nav > a { color: var(--text); font-size: .98rem; font-weight: 700; padding: .6em 1em; }
.main-nav > a:hover { color: var(--brand); background: rgba(140,0,82,.06); }
.main-nav > a.is-active { color: var(--brand); }
.main-nav > a.is-active::after { background: var(--brand); }
.main-nav .nav-strong { color: var(--text); }
.main-nav .nav-na { color: var(--muted); font-weight: 600; }
.lang-switch { border-color: var(--line); color: var(--text); }
.lang-switch:hover { border-color: var(--brand); color: var(--brand); }
.menu-toggle { color: var(--text); }
.btn-brand { background: var(--brand); color: var(--white); }
.btn-brand:hover { background: var(--brand-dark); }
.btn-ink:hover { background: var(--brand); }

.hero { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); padding-top: 64px; }
.hero-shade { background:
  linear-gradient(180deg, rgba(42,15,31,.35) 0%, rgba(42,15,31,.15) 35%, rgba(42,15,31,.9) 100%),
  linear-gradient(90deg, rgba(42,15,31,.75) 0%, rgba(42,15,31,0) 65%); }
.proj-hero { min-height: calc(78vh - var(--header-h)); padding-top: 64px; }

/* акценти върху тъмен фон */
.hero .kicker-brand, .page-hero .kicker-brand, .section-dark .kicker-brand, .site-footer .kicker-brand, .proj-aside .kicker { color: var(--gray-light); }
.stats dd b, .hero-mini-stats dd b { color: var(--gray-light); }
.hero-mini-stats dt { color: var(--white); }
.pcard-power b { color: var(--white); }
.pcard-power span { color: var(--gray-light); }
.pcard-power::before { content: ""; width: 4px; align-self: stretch; background: var(--brand); border-radius: 2px; margin-right: 6px; }
.pcard:hover .pcard-go { background: var(--brand); border-color: var(--brand); color: var(--white); }
.chip-glass { background: rgba(42, 15, 31, .6); }
.spec-power dd { color: var(--white); }
.spec-power dd b { color: var(--white); }
.spec-power { background: var(--brand); }
.spec-power dt { color: rgba(255,255,255,.75); }
.svc-num, .svc-list svg, .om-block h3 svg, .big-link svg, .footer-contact svg, .nav-mobile-extra svg { color: var(--gray); }
.svc-icon { color: var(--white); }
.footer-iso { color: var(--gray) !important; }
.big-link:hover, .site-footer ul a:hover { color: var(--gray-light); }
.iso-card span { background: var(--brand); color: var(--white); }
.pn-link small { color: var(--brand); }
.pn-all:hover { background: var(--brand); }
.chip-btn.is-on { background: var(--brand); }
.lb-close:hover, .lb-nav:hover { color: var(--white); }
.partner { background: var(--brand); }
.partner span { color: rgba(255,255,255,.8); }
.cform input:focus, .cform textarea:focus { border-color: var(--gray); }
.cform .check input { accent-color: var(--brand); }
.flash-ok { color: #c8f0d8; }
.site-footer { background: var(--ink); }
.footer-brand .logo img { height: 50px; width: auto; }

@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .logo img { height: 38px; }
  .main-nav { background: var(--white); justify-content: flex-start; }
  .main-nav > a { color: var(--text); border-bottom-color: var(--line); font-weight: 800; }
  .main-nav > a:hover { color: var(--brand); background: none; }
  .main-nav > a.is-active { color: var(--brand); }
  .main-nav .nav-na { color: var(--muted); }
  .nav-mobile-extra a { color: var(--text); }
  .nav-mobile-extra svg { color: var(--brand); }
  body.menu-open .site-header { background: var(--white) !important; }
}
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { grid-column: span 2; border-left: 0; padding-left: 0; }
  .logo img { height: 34px; }
}


/* --- слайдер в началото ---------------------------------------------------- */
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero .hero-bg { opacity: 0; transition: opacity 1.2s ease; animation: none; transform: scale(1.06); }
.hero .hero-bg.is-active { opacity: 1; animation: kenburns 9s ease-out both; }
.hero-texts { display: grid; }
.hero-text { grid-area: 1 / 1; opacity: 0; transform: translateY(16px); visibility: hidden;
  transition: opacity .7s ease, transform .7s ease, visibility 0s linear .7s; }
.hero-text.is-active { opacity: 1; transform: none; visibility: visible; transition: opacity .8s ease .25s, transform .8s ease .25s; }
.hero .h1 { font-size: clamp(2.1rem, 5.2vw, 4.4rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: .4em; }
.hero-text .lead { min-height: 3.2em; }
.hero-controls { display: flex; align-items: center; gap: 14px; flex: none; }
.hero-arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(42,15,31,.35);
  color: var(--white); display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.hero-arrow:hover { background: var(--brand); border-color: var(--brand); }
.hero-arrow svg { width: 20px; height: 20px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dot { width: 42px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.hero-dot i { display: block; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; position: relative; }
.hero-dot i::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--white); }
.hero-dot.is-active i::after { animation: dotfill var(--slide-ms, 6500ms) linear forwards; }
.hero.is-paused .hero-dot.is-active i::after { animation-play-state: paused; }
@keyframes dotfill { to { width: 100%; } }
@media (max-width: 720px) {
  .hero-controls { justify-content: space-between; }
  .hero-dot { width: 30px; }
  .hero-arrow { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-text, .hero .hero-bg { transition: none !important; }
}
