/* ==========================================================================
   Адвокат Пламен Червенков - стилове
   Модернистична система: етърско виолетово, модулна мрежа, чиста геометрия.
   ========================================================================== */

/* Шрифтове: хостват се от самия сайт (без заявки към трети страни).
   Sofia Sans е български шрифт с български форми на кирилицата. */
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("fonts/jetbrains-mono-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("fonts/jetbrains-mono-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"; font-style: normal; font-weight: 400 700; 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: 400 700; 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 Extra Condensed"; font-style: normal; font-weight: 700 800; font-display: swap;
  src: url("fonts/sofia-sans-extra-condensed-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 Extra Condensed"; font-style: normal; font-weight: 700 800; font-display: swap;
  src: url("fonts/sofia-sans-extra-condensed-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 {
  --violet: #5b2a8c;          /* етърско виолетово */
  --violet-700: #47206f;
  --violet-900: #1f0e36;
  --violet-400: #8a5cc2;
  --lilac: #d9c8f0;
  --lav: #efe8f8;
  --paper: #faf8fd;
  --ink: #140a22;
  --ink-2: #463a57;
  --muted: #6e6382;
  --sun: #ffc933;             /* допълващ акцент */
  --line: rgba(20, 10, 34, 0.16);
  --line-soft: rgba(20, 10, 34, 0.07);
  --line-light: rgba(255, 255, 255, 0.24);

  /* цветове на пиктограмите - сменят се според фона */
  --a: var(--violet);
  --b: var(--sun);
  --c: var(--ink);

  --display: "Sofia Sans Extra Condensed", "Sofia Sans", "Arial Narrow", sans-serif;
  --sans: "Sofia Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --nav-h: 74px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  color-scheme: only light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Без тъмна тема: и при тъмен режим на устройството палитрата остава светла.
   Наличието на това правило подсказва на браузърите с „принудително потъмняване“,
   че сайтът сам се грижи за цветовете си. */
@media (prefers-color-scheme: dark) {
  html { color-scheme: only light; }
  body { background: var(--paper); color: var(--ink); }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h2 {
  font: 800 clamp(3.2rem, 7.4vw, 6.4rem) / 0.88 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.002em;
}

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
::selection { background: var(--violet); color: #fff; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: #fff; padding: 0.7rem 1rem; text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 1rem; }

.ico { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }

/* водещи линии на мрежата */
.guides {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.guides i { border-left: 1px solid var(--line-soft); }
.guides i:last-child { border-right: 1px solid var(--line-soft); }

/* малки геометрични знаци */
.g { display: inline-block; flex: none; width: 0.72em; height: 0.72em; background: var(--sun); }
.g--circle { border-radius: 50%; }
.g--tri { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.g--half { height: 0.36em; border-radius: 999px 999px 0 0; }

.mono-label {
  margin: 0;
  font: 500 0.74rem/1.4 var(--mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}

/* пиктограми */
.picto { width: 64px; height: 64px; overflow: visible; flex: none; }
.pa { fill: var(--a); transition: fill 0.35s var(--ease); }
.pb { fill: var(--b); }
.pc { fill: none; stroke: var(--c); stroke-width: 3; transition: stroke 0.35s var(--ease); }
.pw { fill: none; stroke: var(--paper); stroke-width: 3; }

/* снимки: черно-бели, цветът се връща при посочване */
.photo { margin: 0; overflow: hidden; background: var(--lilac); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); transition: filter 0.7s var(--ease), transform 0.9s var(--ease); }
@media (hover: hover) {
  .photo:hover img { filter: grayscale(0) contrast(1); transform: scale(1.025); }
}
/* на сензорен екран няма посочване: докато снимката е на екрана,
   цветът се появява и отшумява по таймер */
.no-hover .photo.is-live img { animation: photo-bloom 9s var(--ease-io) infinite; }
@keyframes photo-bloom {
  0%, 20% { filter: grayscale(1) contrast(1.08); }
  36%, 78% { filter: grayscale(0) contrast(1); }
  94%, 100% { filter: grayscale(1) contrast(1.08); }
}

/* ───────────── Бутони и връзки ───────────── */

.btn {
  display: inline-flex; align-items: stretch;
  padding: 0; border: 0;
  background: var(--violet); color: #fff;
  font: 600 1rem/1 var(--sans); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn__label { display: inline-flex; align-items: center; gap: 0.6em; padding: 1.12em 1.5em; }
.btn__arrow {
  display: grid; place-items: center; min-width: 3.3em;
  background: var(--sun); color: var(--ink); font-size: 1.15em;
  transition: text-indent 0.3s var(--ease);
}
.btn:hover { background: var(--ink); }
.btn:hover .btn__arrow { text-indent: 8px; }
.btn--small .btn__label { padding: 0.82em 1.1em; font-size: 0.92rem; }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun .btn__arrow { background: #fff; }
.btn--sun:hover { background: #fff; color: var(--ink); }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-light); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1.5px #fff; }

.link-arrow {
  font-weight: 600; font-size: 1rem; text-decoration: none;
  padding-bottom: 0.3em;
  background: linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 2px no-repeat;
  transition: color 0.25s;
}
.link-arrow::after { content: "↓"; display: inline-block; margin-left: 0.5em; transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--violet); }
.link-arrow:hover::after { transform: translateY(3px); }

/* ───────────── Навигация ───────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: border-color 0.3s;
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-h); gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.brand__mark { flex: none; width: 44px; height: 44px; overflow: visible; }
.logo__block { fill: var(--violet); transition: fill 0.3s var(--ease); }
.logo__letters { fill: #fff; }
.logo__dot { fill: var(--sun); transform-box: fill-box; transform-origin: center; transition: transform 0.35s var(--ease); }
.brand:hover .logo__block { fill: var(--ink); }
.brand:hover .logo__dot { transform: scale(1.5); }
.brand__text { display: grid; line-height: 1.15; }
.brand__name { font: 800 1.5rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.brand__role { font: 500 0.64rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 0.2rem; }

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav__links > a:not(.btn) {
  display: inline-flex; align-items: baseline; gap: 0.45em;
  font-size: 0.95rem; font-weight: 600; text-decoration: none; color: var(--ink);
  padding: 0.4em 0;
  background: linear-gradient(var(--violet), var(--violet)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.3s var(--ease), color 0.2s;
}
.nav__links > a:not(.btn) i { font: 500 0.66rem/1 var(--mono); color: var(--violet-400); }
.nav__links > a:not(.btn):hover { color: var(--violet); background-size: 100% 2px; }

.nav__toggle {
  display: none; place-items: center;
  width: 44px; height: 44px; border: 0;
  background: var(--ink); cursor: pointer;
}
.nav__toggle-bars,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  display: block; width: 18px; height: 2px; background: #fff;
  transition: transform 0.3s var(--ease), background 0.2s;
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -6px; }
.nav__toggle-bars::after { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ───────────── Начало (hero) ───────────── */

.hero { padding: clamp(1.4rem, 3vw, 2.2rem) 0 clamp(3.5rem, 7vw, 6rem); }

.hero__meta {
  display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
  padding-bottom: 0.9rem; margin-bottom: clamp(2rem, 5vw, 3.6rem);
  border-bottom: 2px solid var(--ink);
  font: 500 0.74rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.hero__meta span:first-child::before {
  content: ""; display: inline-block; width: 0.62em; height: 0.62em; margin-right: 0.7em;
  border-radius: 50%; background: var(--violet);
}

.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__title {
  font: 800 clamp(5.4rem, 12vw, 10.4rem) / 0.82 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.004em;
  margin-bottom: 0.26em;
}
.hero__title span { display: block; }
.hero__first { color: var(--paper); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.hero__last { color: var(--violet); }

.hero__lead {
  max-width: 35em;
  font-size: clamp(1.08rem, 1.4vw, 1.22rem); line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 2.1rem;
}
.hero__lead mark {
  color: var(--ink); font-weight: 600; padding: 0 0.12em;
  background: linear-gradient(transparent 58%, var(--sun) 58%);
}

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; }
.hero__actions .status { margin: 0; }

/* избор на аудитория */
.audience { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.3rem; margin-top: 1.9rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.audience__links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.audience__link {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.72em 1.1em; font-weight: 600; font-size: 0.98rem; text-decoration: none;
  background: #fff; box-shadow: inset 0 0 0 2px var(--ink);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.audience__link svg { width: 1.15em; height: 1.15em; fill: currentColor; }
.audience__link:hover { background: var(--ink); color: #fff; }

.status {
  display: inline-flex; align-items: center; gap: 0.65rem;
  margin: 1.8rem 0 0;
  font: 500 0.76rem/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted);
}
.status[hidden] { display: none; }
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: #a79fb3; flex: none; }
.status.is-open .status__dot { background: #2f9e62; box-shadow: 0 0 0 4px rgba(47, 158, 98, 0.18); animation: pulse 2.4s var(--ease-io) infinite; }
.status--light { color: rgba(255, 255, 255, 0.78); margin: 0 0 2.4rem; }
.status--light.is-open .status__dot { background: #7ce3a6; box-shadow: 0 0 0 4px rgba(124, 227, 166, 0.22); }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(47, 158, 98, 0); } }

/* геометричната композиция */
.hv { position: relative; width: 100%; max-width: 540px; margin-left: auto; aspect-ratio: 1 / 1.1; }
.hv > * { position: absolute; }
.hv__circle { top: 0; right: -3%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: var(--violet); }
.hv__dots { top: 10%; right: 7%; width: 25%; aspect-ratio: 1; background: radial-gradient(circle, #fff 1.7px, transparent 2.2px) 0 0 / 14px 14px; opacity: 0.85; }
.hv__quarter { left: -5%; bottom: -4%; width: 30%; aspect-ratio: 1; border-radius: 0 100% 0 0; background: var(--lilac); }
.hv__stripes { right: 0; bottom: 3%; width: 24%; aspect-ratio: 1; background: repeating-linear-gradient(135deg, var(--ink) 0 2px, transparent 2px 9px); }
.hv__photo { left: 4%; bottom: 3%; width: 70%; aspect-ratio: 4 / 5; z-index: 2; }
.hv__photo img { object-position: 88% 50%; }
.hv__sun { top: 9%; left: -2%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: var(--sun); z-index: 3; }

.badge { right: 1%; bottom: 29%; width: 28%; z-index: 4; overflow: visible; }
.badge__bg { fill: var(--ink); }
.badge__spin { transform-origin: 100px 100px; animation: spin 26s linear infinite; }
.badge__text { font: 600 17px var(--sans); letter-spacing: 0.06em; fill: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────────── Бягаща лента ───────────── */

.ticker { background: var(--violet-900); color: var(--lilac); overflow: hidden; padding: 1.05rem 0; }
.ticker__track {
  display: flex; align-items: center; gap: 2.4rem; padding-right: 2.4rem;
  width: max-content;
  animation: ticker 46s linear infinite;
}
.ticker span { font: 800 clamp(1.7rem, 3vw, 2.5rem) / 1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; }
.ticker .g { font-size: 1.35rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ───────────── Числа ───────────── */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-bottom: 2px solid var(--ink); }
.stats__item { position: relative; padding: 2.2rem 1.4rem 2rem; border-left: 1px solid var(--line); }
.stats__item:first-child { border-left: 0; padding-left: 0; }
.stats__item .g { position: absolute; top: 2.3rem; right: 1.4rem; font-size: 1.5rem; background: var(--violet); }
.stats__item:nth-child(2) .g { background: var(--sun); }
.stats__item:nth-child(3) .g { background: var(--ink); }
.stats__item:nth-child(4) .g { background: var(--violet-400); }
.stats dt { font: 800 clamp(3.6rem, 7vw, 6rem) / 0.86 var(--display); letter-spacing: -0.01em; margin-bottom: 0.7rem; }
.stats dd { margin: 0; font: 500 0.72rem/1.5 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); max-width: 14em; }

/* ───────────── Секции ───────────── */

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--tint { background: var(--lav); }
[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

.sec-head { margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.sec-mark {
  display: flex; align-items: center; gap: 0.9rem; margin: 0 0 1.5rem;
  font: 500 0.76rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.sec-mark b { background: var(--violet); color: #fff; font-weight: 500; padding: 0.5em 0.7em; }
.sec-mark span { display: inline-flex; align-items: center; gap: 0.9rem; }
.sec-mark span::before { content: ""; width: 2.4rem; height: 2px; background: var(--ink); }
.sec-mark--light b { background: var(--sun); color: var(--ink); }
.sec-mark--light span::before { background: #fff; }

.sec-head--row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 6vw, 5rem); align-items: end; }
.sec-intro { margin: 0; color: var(--ink-2); font-size: 1.08rem; max-width: 32em; padding-left: 1.4rem; border-left: 2px solid var(--violet); }

/* ───────────── § 01 За адвоката ───────────── */

.about { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }

.idcard { display: flex; align-items: center; gap: 2.2rem; margin: 0 0 2.6rem; }
.idcard__photo { position: relative; width: 116px; height: 116px; flex: none; overflow: visible; background: none; }
.idcard__photo::before { content: ""; position: absolute; inset: 12px -12px -12px 12px; background: var(--violet); }
.idcard__photo img { position: relative; }
.idcard figcaption { display: grid; gap: 0.3rem; }
.idcard strong { font: 800 2.1rem/0.95 var(--display); text-transform: uppercase; }
.idcard span { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet); }


.about__body p { color: var(--ink-2); max-width: 39em; }
.about__body .lede { font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.34; font-weight: 500; color: var(--ink); letter-spacing: -0.005em; margin-bottom: 1.3em; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(3rem, 6vw, 5rem); border-top: 2px solid var(--ink); }
.value { padding: 2rem clamp(1.2rem, 2.4vw, 2rem) 0.5rem; border-left: 1px solid var(--line); }
.value:first-child { border-left: 0; padding-left: 0; }
.value .picto { width: 80px; height: 80px; margin-bottom: 1.6rem; }
.value h3 { font: 800 2.2rem/0.95 var(--display); text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 0.7rem; }
.value p { margin: 0; font-size: 0.97rem; color: var(--ink-2); }

.generations {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(2.5rem, 6vw, 5rem); align-items: end;
  margin-top: clamp(4rem, 8vw, 7rem);
}
.generations__photo { position: relative; overflow: visible; background: none; }
.generations__photo::before { content: ""; position: absolute; inset: 22px 22px -22px -22px; background: var(--violet); }
.generations__photo::after {
  content: ""; position: absolute; right: -34px; top: -34px; width: 110px; height: 110px;
  border-radius: 50%; background: var(--sun); z-index: 2;
}
.generations__photo img { position: relative; aspect-ratio: 3 / 2.1; object-position: 50% 22%; }
.generations__num { display: block; font: 800 clamp(7rem, 13vw, 11rem) / 0.78 var(--display); color: var(--paper); -webkit-text-stroke: 4px var(--violet); paint-order: stroke fill; margin-bottom: 1.2rem; }
.generations__title { font: 800 clamp(2.2rem, 3.6vw, 3rem) / 0.95 var(--display); text-transform: uppercase; margin-bottom: 0.9rem; }
.generations__copy p:last-child { margin: 0; color: var(--ink-2); max-width: 26em; }

/* ───────────── § 02 Практика ───────────── */

/* табове: за граждани / за фирми */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.tab {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0.5rem 1.5rem;
  padding: 1.5rem 1.8rem 1.6rem; border: 0;
  background: #fff; color: var(--ink);
  font: inherit; text-align: left; cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.tab::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 7px; background: var(--sun);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.tab__num { grid-column: 1 / -1; font: 500 0.74rem/1 var(--mono); letter-spacing: 0.08em; color: var(--muted); transition: color 0.3s; }
.tab__label { grid-column: 1; font: 800 clamp(2.5rem, 4.6vw, 4rem) / 0.88 var(--display); text-transform: uppercase; letter-spacing: 0.005em; }
.tab__hint { grid-column: 1; font-size: 0.93rem; line-height: 1.4; color: var(--ink-2); transition: color 0.3s; }
.tab__icon { grid-column: 2; grid-row: 2 / 4; width: 62px; height: 62px; fill: var(--lilac); transition: fill 0.3s var(--ease); }
.tab:not([aria-selected="true"]):hover { background: var(--lilac); }
.tab:not([aria-selected="true"]):hover .tab__icon { fill: var(--violet); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; cursor: default; }
.tab[aria-selected="true"]::before { transform: scaleX(1); }
.tab[aria-selected="true"] .tab__num { color: var(--sun); }
.tab[aria-selected="true"] .tab__hint { color: rgba(255, 255, 255, 0.78); }
.tab[aria-selected="true"] .tab__icon { fill: var(--sun); }

.panel { animation: panel-in 0.55s var(--ease); }
.panel[hidden] { display: none; }
.panel:focus-visible { outline-offset: 6px; }
@keyframes panel-in { from { opacity: 0; transform: translateY(16px); } }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tiles--4 { grid-template-columns: repeat(4, 1fr); }
.tiles--4 .tile h3 { font-size: clamp(1.9rem, 2.5vw, 2.35rem); }

.pt { font: 700 15px var(--sans); fill: var(--c); transition: fill 0.35s var(--ease); }
.pt--ink { font-size: 21px; fill: var(--ink); }

.tile.tile--cta { position: relative; background: var(--violet-900); color: #fff; }
.tile.tile--cta:hover { background: var(--violet); }
.tile.tile--cta .tile__num { color: var(--sun); }
.tile.tile--cta p { color: rgba(255, 255, 255, 0.8); }
.tile__link { margin-top: 1.2rem; font: 800 2rem/1 var(--display); letter-spacing: 0.02em; color: var(--sun); text-decoration: none; }
.tile__link::after { content: ""; position: absolute; inset: 0; }
.tile__link span { display: inline-block; transition: transform 0.3s var(--ease); }
.tile--cta:hover .tile__link span { transform: translateX(6px); }
.tile {
  display: flex; flex-direction: column;
  min-height: 292px; padding: 1.6rem 1.6rem 1.7rem;
  background: #fff; color: var(--ink);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.tile__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; padding-bottom: 2rem; }
.tile__num { font: 500 0.74rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: color 0.35s; }
.tile .picto { width: 88px; height: 88px; }
.tile h3 { font: 800 clamp(2.1rem, 2.8vw, 2.6rem) / 0.94 var(--display); text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 0.7rem; }
.tile p { margin: 0; font-size: 0.97rem; color: var(--ink-2); transition: color 0.35s; }

.tile:hover, .tile--feature { background: var(--violet); color: #fff; --a: #fff; --c: #fff; }
.tile:hover p, .tile--feature p { color: rgba(255, 255, 255, 0.84); }
.tile:hover .tile__num, .tile--feature .tile__num { color: var(--sun); }

.tile--feature { grid-column: span 2; grid-row: span 2; padding: 2rem 2.2rem 2.2rem; position: relative; overflow: hidden; }
.tile--feature::before {
  content: ""; position: absolute; right: -90px; bottom: -90px; width: 300px; height: 300px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 46px rgba(255, 255, 255, 0.05), 0 0 0 92px rgba(255, 255, 255, 0.03);
  pointer-events: none;
}
.tile--feature:hover { background: var(--violet-700); }
.tile--feature .picto { width: 112px; height: 112px; }
.tile--feature h3 { font-size: clamp(3.4rem, 6vw, 5.4rem); line-height: 0.86; margin-bottom: 1rem; }
.tile--feature > p { font-size: 1.1rem; max-width: 30em; }

.chips { position: relative; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.8rem; }
.chips li {
  padding: 0.55em 0.95em; border-radius: 999px;
  font-size: 0.9rem; font-weight: 500; line-height: 1.2;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.42);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.chips li:hover { background: var(--sun); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--sun); }

/* преобразуване: диаграми */
.transform {
  display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 2.38fr);
  gap: clamp(1.8rem, 4vw, 3.4rem);
  margin-top: 12px; padding: clamp(1.6rem, 3vw, 2.4rem);
  background: #fff;
}
.transform__head h3 { font: 800 clamp(2.2rem, 3vw, 2.8rem) / 0.92 var(--display); text-transform: uppercase; margin: 0.9rem 0 0.8rem; }
.transform__head p:last-child { margin: 0; font-size: 0.95rem; color: var(--ink-2); }

.diagrams { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.dg svg { width: 100%; height: auto; background: var(--lav); margin-bottom: 1.1rem; }
.dg h4 { font: 800 1.7rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 0.4rem; }
.dg p { margin: 0; font-size: 0.88rem; line-height: 1.5; color: var(--ink-2); }

.dg circle { transform-box: fill-box; transform-origin: center; }
.dg__a { fill: var(--violet); }
.dg__b { fill: var(--sun); }
.dg__c { fill: var(--violet-400); }
.dg__ghost { fill: none; stroke: var(--violet-400); stroke-width: 1.5; stroke-dasharray: 4 5; opacity: 0.7; }

.dg--in .dg__move { animation: dg-in 5.5s var(--ease-io) infinite; }
.dg--merge .dg__left { animation: dg-merge-l 5.5s var(--ease-io) infinite; }
.dg--merge .dg__right { animation: dg-merge-r 5.5s var(--ease-io) infinite; }
.dg--merge .dg__new { animation: dg-new 5.5s var(--ease-io) infinite; }
.dg--split .dg__old { animation: dg-old 5.5s var(--ease-io) infinite; }
.dg--split .dg__left { animation: dg-split-l 5.5s var(--ease-io) infinite; }
.dg--split .dg__right { animation: dg-split-r 5.5s var(--ease-io) infinite; }
.dg--spin .dg__move { animation: dg-spin 5.5s var(--ease-io) infinite; }

@keyframes dg-in {
  0%, 16% { transform: translateX(0) scale(1); opacity: 1; }
  52% { transform: translateX(114px) scale(1); opacity: 1; }
  64%, 90% { transform: translateX(114px) scale(0.3); opacity: 0; }
  91% { transform: translateX(0) scale(0.5); opacity: 0; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}
@keyframes dg-merge-l {
  0%, 16% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(74px); opacity: 1; }
  60%, 90% { transform: translateX(74px); opacity: 0; }
  91% { transform: translateX(0); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes dg-merge-r {
  0%, 16% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(-74px); opacity: 1; }
  60%, 90% { transform: translateX(-74px); opacity: 0; }
  91% { transform: translateX(0); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes dg-new {
  0%, 46% { transform: scale(0); opacity: 0; }
  64%, 88% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}
@keyframes dg-old {
  0%, 18% { transform: scale(1); opacity: 1; }
  44%, 88% { transform: scale(0.55); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes dg-split-l {
  0%, 22% { transform: translateX(80px) scale(0.3); opacity: 0; }
  58%, 88% { transform: translateX(0) scale(1); opacity: 1; }
  100% { transform: translateX(80px) scale(0.3); opacity: 0; }
}
@keyframes dg-split-r {
  0%, 22% { transform: translateX(-80px) scale(0.3); opacity: 0; }
  58%, 88% { transform: translateX(0) scale(1); opacity: 1; }
  100% { transform: translateX(-80px) scale(0.3); opacity: 0; }
}
@keyframes dg-spin {
  0%, 18% { transform: translateX(-100px) scale(0.3); opacity: 0; }
  58%, 88% { transform: translateX(0) scale(1); opacity: 1; }
  100% { transform: translateX(-100px) scale(0.3); opacity: 0; }
}

/* как протича работата */
.process { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.process__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 1.6rem; }
.process__list li { position: relative; padding: 2rem 2rem 0 0; border-top: 2px solid var(--ink); }
.process__list li::before {
  content: ""; position: absolute; left: 0; top: -9px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 2px var(--ink);
}
.process__list li:nth-child(2)::before { border-radius: 0; background: var(--violet); }
.process__list li:nth-child(3)::before { background: var(--ink); }
.process__num { display: block; font: 800 4.2rem/0.85 var(--display); color: var(--violet); margin-bottom: 0.9rem; }
.process h4 { font: 700 1.12rem/1.3 var(--sans); margin-bottom: 0.4rem; }
.process p:not(.mono-label) { margin: 0; font-size: 0.96rem; color: var(--ink-2); max-width: 24em; }

/* ───────────── § 03 Кантората ───────────── */

.office { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 8vw, 7rem); align-items: center; }
.office__visual { position: relative; padding: 0 0 26px 26px; }
.office__block { position: absolute; left: 0; bottom: 0; width: 58%; height: 62%; background: var(--sun); }
.office__ring { position: absolute; right: -38px; top: -38px; width: 132px; height: 132px; border-radius: 50%; border: 22px solid var(--violet); z-index: 2; }

/* дуотон във виолетово */
.duo { position: relative; margin: 0; overflow: hidden; isolation: isolate; background: var(--lilac); }
.duo img { width: 100%; aspect-ratio: 1 / 1.04; object-fit: cover; object-position: 40% 60%; filter: grayscale(1) contrast(1.2) brightness(1.06); mix-blend-mode: multiply; }
.duo::after { content: ""; position: absolute; inset: 0; background: var(--violet-700); mix-blend-mode: lighten; pointer-events: none; }

.office__copy .sec-head { margin-bottom: 1.8rem; }
.office__copy > p { color: var(--ink-2); max-width: 34em; }

.week { margin-top: 2.2rem; max-width: 30rem; }
.week__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 2.6rem; }
.week__day { display: grid; gap: 0.55rem; justify-items: center; }
.week__bar { position: relative; width: 100%; height: 92px; background: var(--violet); }
.week__day--off .week__bar { background: repeating-linear-gradient(135deg, var(--line) 0 2px, transparent 2px 8px); box-shadow: inset 0 0 0 1px var(--line); }
.week__day b { font: 500 0.74rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.week__day.is-today b { color: var(--ink); font-weight: 700; }
.week__day.is-today .week__bar::before {
  content: "днес"; position: absolute; left: 50%; top: -1.75rem; transform: translateX(-50%);
  font: 500 0.66rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--sun); color: var(--ink); padding: 0.35em 0.5em;
}
.week__day.is-today .week__bar::after { content: ""; position: absolute; inset: 0 0 auto; height: 10px; background: var(--sun); }
.week__legend { margin: 1.2rem 0 0; font-size: 0.97rem; color: var(--ink-2); }
.week__legend strong { display: block; color: var(--ink); font-size: 1.08rem; }

.note { margin-top: 1.3rem; padding-left: 1rem; border-left: 2px solid var(--sun); font-size: 0.93rem; color: var(--muted); }

/* ───────────── § 04 Контакти ───────────── */

.contact { position: relative; overflow: hidden; padding: clamp(4.5rem, 9vw, 8rem) 0; background: var(--violet); color: #fff; }
.contact__ring { position: absolute; right: -14vw; top: -18vw; width: 52vw; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.16); box-shadow: 0 0 0 5vw rgba(255, 255, 255, 0.04); pointer-events: none; }
.contact__half { position: absolute; right: -80px; bottom: 0; width: 260px; height: 130px; border-radius: 260px 260px 0 0; background: var(--sun); pointer-events: none; }
.contact__dots { position: absolute; left: 46%; top: 8%; width: 140px; height: 140px; background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 1.7px, transparent 2.2px) 0 0 / 16px 16px; pointer-events: none; }

.contact__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact__phone {
  display: inline-block; margin: 1.6rem 0 1rem;
  font: 800 clamp(4.4rem, 10.5vw, 9rem) / 0.86 var(--display);
  letter-spacing: -0.005em; white-space: nowrap;
  color: var(--sun); text-decoration: none;
  transition: color 0.25s;
}
.contact__phone:hover { color: #fff; }

.contact__list { margin: 0 0 2.4rem; border-top: 1px solid var(--line-light); }
.contact__list > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-light); }
.contact__list dt { font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.66); padding-top: 0.3em; }
.contact__list dd { margin: 0; line-height: 1.5; }
.contact__list a { text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.contact__list a:hover { color: var(--sun); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* форма за запитване */
.form {
  position: relative; display: grid; gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: #fff; color: var(--ink);
  box-shadow: 14px 14px 0 var(--violet-900);
}
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__head h3 { margin-top: 0.7rem; font: 800 clamp(2.5rem, 3.8vw, 3.3rem) / 0.9 var(--display); text-transform: uppercase; }
.form__who { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; border: 0; }
.form__who legend { padding: 0; margin-bottom: 0.65rem; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; }
.pill span {
  display: inline-flex; padding: 0.62em 1.15em; font-weight: 600; font-size: 0.96rem; cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--ink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.pill input:checked + span { background: var(--ink); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--violet-400); outline-offset: 2px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field label { font: 500 0.72rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field label b { color: var(--violet); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; padding: 0.82em 0.85em;
  border: 0; border-bottom: 2px solid var(--ink); border-radius: 0;
  background: var(--lav); color: var(--ink); font: inherit;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 7.5rem; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--violet); box-shadow: 0 2px 0 var(--violet); }
.field [aria-invalid="true"] { border-color: #b3261e; background: #fdf0ee; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; font-size: 0.88rem; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; accent-color: var(--violet); }
.check input[aria-invalid="true"] { outline: 2px solid #b3261e; outline-offset: 2px; }
.form__submit { justify-self: start; }
.form__submit[disabled] { opacity: 0.6; cursor: progress; }
.form__status { margin: 0; padding: 0.9rem 1rem; font-weight: 600; font-size: 0.95rem; line-height: 1.45; }
.form__status[hidden] { display: none; }
.form__status.is-ok { background: #e3f5ea; color: #17603a; }
.form__status.is-error { background: #fdecea; color: #8f2418; }
.form__status a { color: inherit; }
.form__note { margin: 0; font-size: 0.82rem; line-height: 1.5; color: var(--muted); }

.contact__map { position: relative; margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.map { position: relative; aspect-ratio: 16 / 6; min-height: 300px; background: var(--violet-900); box-shadow: 14px 14px 0 var(--violet-900); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.1rem; padding: 2rem; text-align: center;
  background:
    linear-gradient(rgba(31, 14, 54, 0.8), rgba(31, 14, 54, 0.8)),
    repeating-linear-gradient(32deg, transparent 0 46px, rgba(217, 200, 240, 0.5) 46px 47px),
    repeating-linear-gradient(118deg, transparent 0 72px, rgba(217, 200, 240, 0.5) 72px 73px);
}
.map__pin { width: 44px; height: 44px; fill: var(--sun); }
.map__addr { margin: 0; font: 800 2rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.map__note { margin: 0; max-width: 24em; font-size: 0.78rem; line-height: 1.5; color: rgba(255, 255, 255, 0.6); }

/* ───────────── Футър ───────────── */

.footer { background: var(--ink); color: rgba(255, 255, 255, 0.78); padding: 3.2rem 0 2.2rem; font-size: 0.93rem; overflow: hidden; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.8rem 3rem; }
.footer__brand { display: flex; align-items: center; gap: 1rem; }
.footer__brand div { display: grid; gap: 0.2rem; }
.footer__brand strong { font: 800 1.7rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; color: #fff; }
.footer__brand div span { font-size: 0.86rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; }
.footer__nav a { text-decoration: none; font-weight: 500; transition: color 0.2s; }
.footer__nav a:hover { color: var(--sun); }
.footer__word {
  margin: 2.6rem 0 0; text-align: center; white-space: nowrap;
  font: 800 min(23.2vw, 25rem) / 0.8 var(--display); text-transform: uppercase; letter-spacing: -0.005em;
  color: var(--ink); -webkit-text-stroke: 3px #4b3a68; paint-order: stroke fill;
  user-select: none;
}
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 2rem;
  margin-top: 1.6rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.14);
  font: 400 0.7rem/1.6 var(--mono); letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.5);
}
.footer__legal p { margin: 0; }

/* ───────────── Лента за обаждане (мобилни) ───────────── */

.callbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  background: var(--sun); color: var(--ink);
  font-weight: 700; letter-spacing: 0.01em; text-decoration: none;
  box-shadow: 0 -10px 30px rgba(20, 10, 34, 0.25);
  transition: transform 0.4s var(--ease);
}
.js .callbar:not(.is-visible) { transform: translateY(110%); }

/* ───────────── Появяване при скрол ───────────── */

.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.hero__lead, .tiles .tile:nth-child(2), .values .value:nth-child(2) { transition-delay: 0.07s; }
.hero__actions, .tiles .tile:nth-child(3), .values .value:nth-child(3), .hv { transition-delay: 0.14s; }
.audience, .tiles--4 .tile:nth-child(4) { transition-delay: 0.21s; }
.tiles--4 .tile:nth-child(7) { transition-delay: 0.14s; }
.tiles--4 .tile:nth-child(8) { transition-delay: 0.21s; }
.tiles .tile:nth-child(5) { transition-delay: 0.07s; }
.tiles .tile:nth-child(6) { transition-delay: 0.14s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ticker__track, .badge__spin, .dg circle, .status__dot, .photo img { animation: none !important; }
}

/* ───────────── Адаптивност ───────────── */

@media (max-width: 1100px) {
  .tiles, .tiles--4 { grid-template-columns: repeat(2, 1fr); }
  .tile--feature { grid-row: auto; }
  .transform { grid-template-columns: 1fr; }
  .diagrams { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .hero__grid, .about, .generations, .office, .contact__grid, .sec-head--row { grid-template-columns: 1fr; }
  .hero__title { font-size: min(21.5vw, 10rem); }
  .hv { margin-inline: auto; max-width: 460px; }
  .sec-intro { max-width: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item { padding-left: 1.2rem; }
  .stats__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stats__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .generations { align-items: start; }
  .generations__photo { margin-left: 22px; }
  .generations__photo::after { right: -10px; top: -30px; width: 84px; height: 84px; }
  .generations__num { font-size: 6rem; margin-bottom: 0.6rem; }
  .diagrams { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .office__visual { max-width: 560px; margin-right: 38px; }
  .map { aspect-ratio: 4 / 3; margin-right: 14px; }
  .form { margin-right: 14px; }
  .tab { padding: 1.2rem 1.2rem 1.3rem; }
  .tab__icon { width: 46px; height: 46px; }
}

@media (max-width: 820px) {
  :root { --nav-h: 64px; }
  .nav__toggle { display: grid; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.4rem var(--gutter) 1.5rem;
    background: var(--paper); border-bottom: 2px solid var(--ink);
    box-shadow: 0 24px 40px -20px rgba(20, 10, 34, 0.3);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav__links.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav__links > a:not(.btn) { padding: 0.9rem 0; font: 800 2.1rem/1 var(--display); text-transform: uppercase; border-bottom: 1px solid var(--line); background: none; gap: 0.7em; }
  .nav__links > a:not(.btn) i { font-size: 0.72rem; }
  .nav__links .btn { margin-top: 1.3rem; justify-content: center; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 1.32rem; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; padding-bottom: 3.6rem; }
  .callbar { display: flex; }
  .hero__meta span:last-child { display: none; }
  .hero__first { -webkit-text-stroke-width: 3px; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .btn__label { flex: 1; }
  .values { grid-template-columns: 1fr; }
  .value { border-left: 0; padding: 1.6rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr; column-gap: 1.2rem; }
  .value:first-child { border-top: 0; }
  .value .picto { grid-row: span 2; margin: 0; }
  .tiles, .tiles--4 { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .tabs { gap: 8px; }
  .tab { grid-template-columns: 1fr; padding: 1rem 0.9rem 1.1rem; }
  .tab__label { font-size: min(7.4vw, 2.1rem); white-space: nowrap; }
  .tab__hint, .tab__icon { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .form__submit { justify-self: stretch; }
  .form__submit .btn__label { flex: 1; }
  .audience__links { width: 100%; }
  .audience__link { flex: 1; justify-content: center; }
  .tile__top { padding-bottom: 1.6rem; }
  .tile--feature { grid-column: auto; padding: 1.6rem; }
  .tile--feature .picto { width: 84px; height: 84px; }
  .process__list { grid-template-columns: 1fr; }
  .process__list li { padding: 1.6rem 0 1.8rem; }
  .process__num { font-size: 3.4rem; }
  .contact__list > div { grid-template-columns: 1fr; gap: 0.2rem; }
  .contact__actions .btn { width: 100%; }
  .contact__actions .btn__label { flex: 1; justify-content: center; }
  .contact__dots { display: none; }
  .map { aspect-ratio: 1 / 1.05; }
  .footer__legal { flex-direction: column; }
}

/* ───────────── Фини детайли ───────────── */

picture { display: contents; }

/* по-равномерно пренасяне на заглавия и без „висящи“ думи в абзаците */
h1, h2, h3, h4, .lede, .hero__lead, .tab__label { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

/* бягащата лента спира при посочване */
.ticker:hover .ticker__track { animation-play-state: paused; }

/* активният раздел в навигацията */
.nav__links > a[aria-current="true"]:not(.btn) { color: var(--violet); background-size: 100% 2px; }

/* връзка към „Поверителност“ във формата и футъра */
.check a, .footer__legal a { color: inherit; text-underline-offset: 0.2em; }
.check a:hover { color: var(--violet); }
.footer__legal a:hover { color: var(--sun); }

/* без JavaScript: двата таба се показват един под друг, превключвателят се скрива */
html:not(.js) .tabs,
html:not(.js) [data-map-load],
html:not(.js) .map__note { display: none; }
html:not(.js) .panel[hidden] { display: block; margin-top: 2.5rem; }
html:not(.js) .panel::before {
  content: attr(data-title); display: block; margin-bottom: 12px;
  font: 800 clamp(2.5rem, 4.6vw, 4rem) / 0.9 var(--display); text-transform: uppercase;
}

/* ───────────── Вътрешни страници (404, поверителност) ───────────── */

.page { min-height: 72vh; padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(4rem, 9vw, 7rem); }
.page h1 { font: 800 clamp(3.2rem, 8.5vw, 6.6rem) / 0.86 var(--display); text-transform: uppercase; margin-bottom: 1.6rem; }
.page__code {
  display: block; margin-bottom: 0.4rem;
  font: 800 clamp(8rem, 30vw, 19rem) / 0.78 var(--display);
  color: var(--paper); -webkit-text-stroke: 4px var(--violet); paint-order: stroke fill;
}
.page__lead { max-width: 34em; font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--ink-2); margin-bottom: 2.2rem; }
.page__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.nav__back { font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.nav__back:hover { color: var(--violet); }

.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 0.95; margin: 2.6rem 0 0.9rem; padding-top: 1.4rem; border-top: 2px solid var(--ink); }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { list-style: square; padding-left: 1.3rem; margin-bottom: 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--violet); }
.prose a { color: var(--violet); text-underline-offset: 0.2em; }
.prose .mono-label { margin-top: 2.6rem; }

/* ───────────── Печат ───────────── */

@media print {
  .nav, .ticker, .callbar, .guides, .audience, .tabs, .badge, .hv > span,
  .map, .contact__map, .form, .contact__actions, .contact__ring, .contact__half, .contact__dots,
  .footer__word, .footer__nav, .status { display: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  * { animation: none !important; transition: none !important; }
  body { background: #fff; color: #000; font-size: 10.5pt; padding: 0; }
  .panel[hidden] { display: block !important; margin-top: 1.5rem; }
  .section, .contact { padding: 1.4rem 0; }
  .section--tint, .contact, .footer, .tile, .tile--feature, .transform { background: #fff !important; color: #000 !important; }
  .contact *, .footer *, .tile *, .tile--feature * { color: #000 !important; }
  .tile, .tile--feature { border: 1px solid #999; --a: #000; --c: #000; }
  .chips li { box-shadow: inset 0 0 0 1px #999; }
  .tile, .value, .dg, .transform, .process__list li, .generations, .office { break-inside: avoid; }
  .hero__first { -webkit-text-stroke-color: #000; }
  .contact__phone { font-size: 3.2rem; }
  .photo img { filter: grayscale(1); }
}
.link-arrow--plain::after { content: none; }

/* ───────────── Удостоверения (в „За мен“) ───────────── */

.creds { display: grid; gap: 12px; }
.cred { padding: 1.25rem 1.4rem 1.35rem; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--violet); }
.cred:nth-child(2) { border-left-color: var(--sun); }
.cred__text { margin: 0.7rem 0 0.85rem; font-size: 0.97rem; line-height: 1.5; color: var(--ink-2); }
.cred__text strong { color: var(--ink); }
.cred__link { font-weight: 600; font-size: 0.92rem; color: var(--violet); text-underline-offset: 0.2em; }
.cred__link:hover { color: var(--ink); }

/* ───────────── Отзиви ───────────── */

.reviews[hidden] { display: none; }
.reviews__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.reviews__head h2 { margin-bottom: 2rem; }
.rating { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.7rem; }
.rating[hidden] { display: none; }
.rating__num { font: 800 5.6rem/0.8 var(--display); color: var(--violet); }
.rating__stars { display: inline-block; padding: 0.22em 0.55em 0.28em; background: var(--ink); color: var(--sun); font-size: 1.15rem; letter-spacing: 0.14em; line-height: 1; }
.rating__count { display: block; margin-top: 0.5rem; font: 500 0.74rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.reviews__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.review { display: flex; flex-direction: column; gap: 1.1rem; padding: 1.7rem 1.7rem 1.5rem; background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--violet); }
.review:nth-child(2n) { border-top-color: var(--sun); }
.review__mark { height: 1.7rem; font: 800 5.2rem/0.62 var(--display); color: var(--lilac); }
.review__text { flex: 1; margin: 0; font-size: 1.22rem; line-height: 1.4; font-weight: 500; }
.review__by { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.95rem; }
.review__by span { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.review__by .review__stars { margin-left: auto; padding: 0.3em 0.5em; background: var(--ink); color: var(--sun); letter-spacing: 0.1em; }

@media (max-width: 900px) {
  .reviews__grid { grid-template-columns: 1fr; }
}
/* докато отзивът е само един, той получава повече тежест */
.review:only-child { max-width: 34rem; padding: 2.2rem 2.2rem 1.8rem; }
.review:only-child .review__text { font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.reviews__note { margin: 1.6rem 0 0; max-width: 26em; font-size: 0.82rem; line-height: 1.5; color: var(--muted); }
