/* ============================================================
   WebMake — споделена визуална система
   Концепция: „маркиран коректурен отпечатък". Мастило върху
   костена хартия (светло) / костено върху мастило (тъмно).
   Един акцент: ултрамарин. Кехлибар — само за бележки в полето.
   Шрифтове: Unbounded (заглавия), IBM Plex Sans (текст),
   IBM Plex Mono (етикети и данни).
   ============================================================ */

/* ---------- ТОКЕНИ: светла палитра ---------- */
:root {
  --bg:            #ECEDE6;
  --bg-sunken:     #E1E3DA;
  --surface:       #F8F9F3;
  --surface-raised:#FFFFFF;
  --border:        rgba(22, 24, 29, 0.13);
  --border-strong: rgba(22, 24, 29, 0.28);
  --text:          #16181D;
  --text-muted:    #555248;
  --text-dim:      #8A8779;
  --accent:        #2733E8;
  --accent-2:      #4C6BFF;
  --accent-press:  #1A22C4;
  --accent-ink:    #FFFFFF;
  --accent-soft:   rgba(39, 51, 232, 0.11);
  --accent-line:   rgba(39, 51, 232, 0.28);
  --accent-glow:   rgba(39, 51, 232, 0.32);
  --warm:          #C2560F;
  --warm-soft:     rgba(194, 86, 15, 0.15);
  --ok:            #2C7A4B;

  --radius:    5px;
  --radius-lg: 10px;
  --maxw:      1180px;
  --maxw-text: 720px;
  --gutter:    clamp(20px, 5vw, 64px);
  --step:      clamp(50px, 5.5vw, 76px);

  --ff-display: "Unbounded", "IBM Plex Sans", system-ui, sans-serif;
  --ff-body:    "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --ff-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shadow: 0 1px 2px rgba(22,24,29,.05), 0 16px 40px -16px rgba(22,24,29,.16);
  color-scheme: light dark;
}

/* ---------- ТОКЕНИ: тъмна палитра ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #0A0B12;
    --bg-sunken:     #06070E;
    --surface:       #14161F;
    --surface-raised:#1B1E29;
    --border:        rgba(236, 231, 217, 0.12);
    --border-strong: rgba(236, 231, 217, 0.26);
    --text:          #ECE7D9;
    --text-muted:    #A6A295;
    --text-dim:      #6B6860;
    --accent:        #6E88FF;
    --accent-2:      #8FA6FF;
    --accent-press:  #8AA0FF;
    --accent-ink:    #0A0C16;
    --accent-soft:   rgba(110, 136, 255, 0.18);
    --accent-line:   rgba(110, 136, 255, 0.42);
    --accent-glow:   rgba(110, 136, 255, 0.45);
    --warm:          #F5A63C;
    --warm-soft:     rgba(245, 166, 60, 0.16);
    --ok:            #57C98A;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 24px 50px -20px rgba(0,0,0,.62);
  }
}
:root[data-theme="dark"] {
  --bg:            #0C0D11;
  --bg-sunken:     #08090C;
  --surface:       #14161C;
  --surface-raised:#1B1E26;
  --border:        rgba(236, 231, 217, 0.12);
  --border-strong: rgba(236, 231, 217, 0.26);
  --text:          #ECE7D9;
  --text-muted:    #A6A295;
  --text-dim:      #6B6860;
  --accent:        #5B78FF;
  --accent-press:  #7C93FF;
  --accent-ink:    #0A0C16;
  --accent-soft:   rgba(91, 120, 255, 0.14);
  --accent-line:   rgba(91, 120, 255, 0.40);
  --warm:          #E7A24C;
  --warm-soft:     rgba(231, 162, 76, 0.15);
  --ok:            #57C98A;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 24px 50px -20px rgba(0,0,0,.62);
}

/* ---------- Reset / база ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background-color: var(--bg);
  /* фина хартиена текстура — едва доловима, за дълбочина на „мастило върху хартия" */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  background-blend-mode: overlay;
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.68;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  hyphens: auto;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, .problem-statement, .calc-number { overflow-wrap: break-word; }
/* големите „дисплей" числа не наследяват височината на реда за текст */
.spec .num, .calc-number, .step .s-num, .direction .d-idx, .facts-line b { line-height: 1.04; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--radius);
  font-family: var(--ff-mono); font-size: 13px;
  transition: top .18s ease;
}
.skip:focus { top: 12px; }

/* ---------- Оформление ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--step); border-top: 1px solid var(--border); }
.section--flush { border-top: none; }
.section--sunken { background: var(--bg-sunken); }

.kicker {
  font-family: var(--ff-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim);
  display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--border-strong); }
.kicker--accent { color: var(--accent); }
.kicker--accent::before { background: var(--accent-line); }

main { counter-reset: sec; }
.sec-head {
  display: grid; gap: 18px; margin-bottom: 40px; padding-bottom: 22px;
  border-bottom: 2px solid var(--text); max-width: none;
  counter-increment: sec; position: relative; overflow: clip;
}
.sec-head > * { max-width: var(--maxw-text); position: relative; z-index: 1; }
.sec-head::after {              /* голямо „призрачно" число — редакторски индекс */
  content: counter(sec, decimal-leading-zero);
  position: absolute; right: -0.05em; top: 50%; transform: translateY(-54%);
  font-family: var(--ff-display); font-weight: 700; font-size: clamp(3.4rem, 9vw, 7rem);
  line-height: 1; letter-spacing: -0.05em; color: var(--text);
  opacity: .06; pointer-events: none; user-select: none;
}
@supports (-webkit-text-stroke: 1px red) {
  .sec-head::after {
    color: transparent; -webkit-text-stroke: 1.6px var(--accent); opacity: .16;
  }
}
.sec-head h2 {
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.06;
  letter-spacing: -0.025em; text-wrap: balance;
}
.sec-head p { color: var(--text-muted); font-size: 1.08rem; max-width: 58ch; }
.sec-head .more { justify-self: start; margin-top: 6px; }
@media (max-width: 700px) {
  .sec-head::after { font-size: 2.8rem; opacity: .05; top: 2px; transform: none; }
}

/* ---------- Регистрационни („коректорски") ъгли ---------- */
.marked { position: relative; }
.marked::before, .marked::after {
  content: ""; position: absolute; width: 15px; height: 15px;
  border: 1.5px solid var(--warm); pointer-events: none;
}
.marked::before { top: -7px; left: -7px; border-right: 0; border-bottom: 0; }
.marked::after  { bottom: -7px; right: -7px; border-left: 0; border-top: 0; }

/* ---------- Голямо изявление (ритмичен акцент) ---------- */
.statement-sec { padding-block: clamp(30px, 4.5vw, 54px); }
.statement { border-left: 3px solid var(--warm); padding: 4px 0 4px clamp(20px, 4vw, 40px); }
.statement p {
  font-family: var(--ff-display); font-weight: 500;
  font-size: clamp(1.45rem, 3.4vw, 2.35rem); line-height: 1.3; letter-spacing: -0.02em;
  max-width: 26ch; text-wrap: balance;
}
.statement p b { color: var(--warm); font-weight: 500; }

/* ---------- Ръкописно подчертаване (коректорска черта) ---------- */
.uline { position: relative; display: inline-block; }
.uline-mark {
  position: absolute; left: -2%; bottom: -0.14em; width: 104%; height: 10px;
  overflow: visible; pointer-events: none;
}
.uline-mark path {
  stroke: var(--warm); stroke-width: 3; fill: none; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
@media (prefers-reduced-motion: no-preference) {
  .uline-mark path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: udraw .7s ease .35s forwards; }
}
@keyframes udraw { to { stroke-dashoffset: 0; } }

/* ---------- Редакторски списък: число | заглавие | текст (пълна ширина) ---------- */
.ed-list { border-top: 1px solid var(--border); }
.ed-item {
  display: grid;
  grid-template-columns: 3rem minmax(9rem, 15rem) minmax(0, 1fr);
  column-gap: 34px; row-gap: 4px;
  padding: 30px 0; border-bottom: 1px solid var(--border); align-items: start;
}
.ed-item .ed-n {
  grid-column: 1; font-family: var(--ff-display); font-weight: 600; font-size: 1.3rem; line-height: 1.1;
  color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.ed-item.-warm .ed-n { color: var(--warm); }
.ed-item h3 {
  grid-column: 2; font-family: var(--ff-display); font-weight: 500; font-size: 1.24rem;
  letter-spacing: -0.015em; line-height: 1.2;
}
.ed-item p { grid-column: 3; color: var(--text-muted); max-width: 62ch; }
.ed-item .ed-sub { grid-column: 3; margin-top: 12px; font-family: var(--ff-mono); font-size: 12px; color: var(--text-dim); line-height: 1.85; }
.ed-item .inline-link { grid-column: 3; margin-top: 14px; }
.ed-list--tight .ed-item { padding: 24px 0; }
.ed-list--tight .ed-item h3 { font-size: 1.1rem; }
.ed-list--tight .ed-item p { font-size: .96rem; }

/* факти в един ред */
.facts-line {
  display: flex; flex-wrap: wrap; gap: 18px 40px;
  border-block: 1px solid var(--border); padding: 26px 0;
}
.facts-line span { display: inline-flex; align-items: baseline; gap: 12px; font-family: var(--ff-mono); font-size: 13px; color: var(--text-muted); }
.facts-line b { font-family: var(--ff-display); font-weight: 600; color: var(--accent); font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1; }

/* дефиниционен списък (какво определя офертата) */
.deflist { border-top: 1px solid var(--border); }
.deflist > div { display: grid; grid-template-columns: 220px 1fr; gap: 10px 36px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.deflist dt { font-family: var(--ff-display); font-weight: 500; font-size: 1.08rem; letter-spacing: -0.01em; }
.deflist dd { color: var(--text-muted); }

.prose p { color: var(--text-muted); max-width: 65ch; }
.prose p + p { margin-top: 1.1em; }

.inline-link {
  color: var(--accent); font-family: var(--ff-mono); font-size: 13.5px;
  letter-spacing: .03em; display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--accent-line); padding-bottom: 2px;
  transition: gap .16s ease, border-color .16s ease;
}
.inline-link:hover { gap: 12px; border-color: var(--accent); }
.inline-link svg { width: 14px; height: 14px; }

/* ---------- Бутони ---------- */
.btn {
  --pad-y: 15px; --pad-x: 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--ff-mono); font-size: 13.5px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
  border-radius: var(--radius); border: 1px solid transparent;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 6px 20px -8px var(--accent-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 12px 30px -8px var(--accent-glow), 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
}
.btn--ghost { border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn--block { width: 100%; padding-block: 17px; }

/* ---------- Хедър ---------- */
header.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
header.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 70px; }
.brand {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--ff-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.02em;
}
.brand .tag {
  font-family: var(--ff-mono); font-size: 10px; font-weight: 500; letter-spacing: .12em;
  color: var(--accent); border: 1px solid var(--accent-line); border-radius: 3px;
  padding: 2px 5px; text-transform: uppercase; transform: translateY(-2px);
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-family: var(--ff-mono); font-size: 13px; letter-spacing: .03em;
  color: var(--text-muted); position: relative; padding-block: 6px;
  transition: color .16s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width .2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  color: var(--text-muted); transition: color .16s ease, border-color .16s ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--text); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

.burger { display: none; width: 40px; height: 40px; place-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius); }
.burger svg { width: 20px; height: 20px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  padding: 100px var(--gutter) 40px; display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--ff-display); font-size: 1.55rem; font-weight: 500;
  padding: 16px 0; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu a .n { font-family: var(--ff-mono); font-size: .78rem; color: var(--text-dim); }
.mobile-menu .btn { margin-top: 26px; }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--border); padding-block: 72px 32px; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 44px; }
.foot-brand .brand { font-size: 1.3rem; }
.foot-brand p { color: var(--text-muted); margin-top: 16px; max-width: 34ch; font-size: .95rem; }
.foot-social { display: flex; gap: 16px; margin-top: 22px; font-family: var(--ff-mono); font-size: 12px; }
.foot-social a { color: var(--text-dim); }
.foot-social a:hover { color: var(--accent); }
.foot-col h4 { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; }
.foot-col ul { display: grid; gap: 11px; }
.foot-col a { font-size: .93rem; color: var(--text-muted); }
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  font-family: var(--ff-mono); font-size: 11.5px; color: var(--text-dim);
}
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-bottom a:hover { color: var(--text); }
.foot-sign { color: var(--accent); }

/* ---------- Page hero (подстраници) ---------- */
.page-hero { padding-block: clamp(56px, 9vw, 108px) clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 100%; z-index: -1;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
          mask-image: linear-gradient(180deg, #000, transparent 85%);
  opacity: .6;
}
.page-hero .crumb { font-family: var(--ff-mono); font-size: 12px; color: var(--text-dim); margin-bottom: 20px; }
.page-hero .crumb a:hover { color: var(--accent); }
.page-hero h1 {
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(2.2rem, 5.4vw, 3.7rem); line-height: 1.05; letter-spacing: -0.032em;
  text-wrap: balance; max-width: 24ch;
}
.page-hero .intro { margin-top: 24px; font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--text-muted); max-width: 58ch; }
.page-hero .intro + .intro { margin-top: 1em; font-size: 1.02rem; }

/* ---------- HOME hero ---------- */
.hero { position: relative; padding-block: clamp(52px, 8vw, 96px) var(--step); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -1px 0 auto 0; height: 640px; z-index: -1;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  opacity: .7;
}
/* --- Прожектор, който следва курсора („уау" ефект) --- */
.hero .spot {
  position: absolute; z-index: -1; pointer-events: none;
  width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%;
  left: 80%; top: 8%;                     /* спокойна позиция преди мишката */
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 62%);
  transition: left .45s cubic-bezier(.2,.6,.2,1), top .45s cubic-bezier(.2,.6,.2,1);
}
@media (prefers-reduced-motion: reduce) { .hero .spot { transition: none; } }
@media (pointer: coarse), (max-width: 700px) { .hero .spot { display: none; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr); gap: 48px; align-items: start; }
.hero h1 {
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(2.05rem, 4.4vw, 3.25rem); line-height: 1.06;
  letter-spacing: -0.03em; text-wrap: balance; max-width: 24ch; margin-top: 24px;
}
.hero h1 .u { color: var(--accent); }
.hero-sub { margin-top: 28px; font-size: clamp(1.06rem, 1.7vw, 1.26rem); color: var(--text-muted); max-width: 52ch; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--ff-mono); font-size: 12.5px; color: var(--text-dim); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: "✓"; color: var(--accent); }

.proof {
  position: relative; font-family: var(--ff-mono); font-size: 12px; line-height: 1.5;
  color: var(--warm); padding-left: 20px; max-width: 34ch; margin-top: 32px;
}
.proof::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 2px; background: var(--warm); }
.proof b { font-weight: 600; }

.hero-panel {
  justify-self: end; width: 100%; max-width: 344px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow);
  padding: 22px 22px 20px; font-family: var(--ff-mono); font-size: 12.5px;
}
.hero-panel .hp-head { display: flex; align-items: center; gap: 9px; padding-bottom: 14px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.hero-panel .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .hero-panel .dot { animation: none; } }
.hero-panel dl { display: grid; grid-template-columns: 1fr auto; gap: 13px 16px; margin: 16px 0; }
.hero-panel dt { color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; font-size: 10.5px; align-self: center; }
.hero-panel dd { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.hero-panel .hp-foot { padding-top: 14px; border-top: 1px solid var(--border); color: var(--accent); font-size: 11px; line-height: 1.7; }

.spec {
  margin-top: 68px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden;
}
.spec > div { padding: 28px 24px; border-right: 1px solid var(--border); }
.spec > div:last-child { border-right: none; }
.spec .num { font-family: var(--ff-display); font-weight: 600; font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.spec .lbl { font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--text-dim); margin-top: 8px; text-transform: uppercase; }

/* ---------- Маркетизирана лента ---------- */
.marquee { border-block: 1px solid var(--border); padding: 20px 0; overflow: hidden; }
.marquee-row { display: flex; align-items: center; gap: 44px; width: max-content; animation: slide 40s linear infinite; }
.marquee:hover .marquee-row { animation-play-state: paused; }
.marquee-row span { font-family: var(--ff-mono); font-size: 13px; letter-spacing: .04em; color: var(--text-dim); white-space: nowrap; display: inline-flex; gap: 44px; align-items: center; }
.marquee-row span::after { content: "◆"; font-size: 7px; color: var(--accent); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-row { animation: none; } }

/* ---------- Проблем (кратко) ---------- */
.problem-statement {
  font-family: var(--ff-display); font-weight: 500;
  font-size: clamp(1.4rem, 3.3vw, 2.15rem); line-height: 1.24; letter-spacing: -0.02em;
  max-width: 22ch; text-wrap: balance;
}
.problem-statement .u { color: var(--accent); }
.problem-points { border-top: 1px solid var(--border); margin-top: 40px; }
.problem-points article {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) minmax(11rem, 17rem);
  column-gap: 34px; row-gap: 6px;
  padding: 28px 0; border-bottom: 1px solid var(--border); align-items: start;
}
.problem-points .pc { grid-column: 1; font-family: var(--ff-mono); font-size: 12px; color: var(--warm); padding-top: .35em; }
.problem-points p { grid-column: 2; font-size: 1.05rem; }
.problem-points .cost { grid-column: 3; font-family: var(--ff-mono); font-size: 12px; color: var(--text-dim); align-self: center; }

/* ---------- „Провери сайта си" (интерактивен self-check) ---------- */
.checklist {
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow);
  padding: clamp(26px, 4vw, 48px);
  display: grid; grid-template-columns: 1.35fr .9fr; gap: clamp(30px, 5vw, 60px); align-items: start;
}
.checklist-items { display: grid; }
.check {
  display: grid; grid-template-columns: 24px 1fr; gap: 16px; align-items: start;
  padding: 15px 0; border-bottom: 1px solid var(--border); cursor: pointer;
}
.check:first-child { padding-top: 0; }
.check:last-child { border-bottom: none; padding-bottom: 0; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box {
  width: 24px; height: 24px; border: 1.5px solid var(--border-strong); border-radius: 6px;
  display: grid; place-items: center; margin-top: 1px; transition: background-color .14s ease, border-color .14s ease;
}
.check .box svg { width: 15px; height: 15px; stroke: var(--accent-ink); opacity: 0; transition: opacity .14s ease; }
.check input:checked ~ .box { background: var(--accent); border-color: var(--accent); }
.check input:checked ~ .box svg { opacity: 1; }
.check input:focus-visible ~ .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check .t { font-size: .99rem; line-height: 1.45; }
.check input:checked ~ .t { color: var(--text-dim); }
.checklist-result {
  border-left: 1px solid var(--border); padding-left: clamp(24px, 4vw, 40px);
  display: grid; gap: 14px; align-content: start;
}
.checklist-result .r-label { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-dim); }
.checklist-score { font-family: var(--ff-display); font-weight: 600; font-size: clamp(2.6rem, 6vw, 3.8rem); letter-spacing: -0.03em; line-height: 1; color: var(--text-dim); }
.checklist-score b { color: var(--accent); }
.checklist-msg { color: var(--text-muted); font-size: 1rem; }
.checklist-result .btn { margin-top: 8px; }

/* ---------- Направления: число | заглавие | текст (пълна ширина) ---------- */
.directions { border-top: 1px solid var(--border); }
.direction {
  display: grid;
  grid-template-columns: 3.6rem minmax(10rem, 17rem) minmax(0, 1fr);
  column-gap: 36px; row-gap: 12px;
  padding: 38px 0; border-bottom: 1px solid var(--border); align-items: start;
}
.direction .d-idx { grid-column: 1; grid-row: 1; font-family: var(--ff-display); font-weight: 600; font-size: 1.5rem; line-height: 1.1; color: var(--accent); letter-spacing: -0.02em; }
.direction h3 { grid-column: 2; grid-row: 1; font-family: var(--ff-display); font-weight: 500; font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.15; }
.direction p { grid-row: 1; }
.direction .d-list { grid-row: 2; }
.direction .inline-link { grid-row: 3; }
.direction p, .direction .d-list, .direction .inline-link { grid-column: 3; }
.direction p { color: var(--text-muted); font-size: 1rem; max-width: 60ch; }
.direction .d-list { font-family: var(--ff-mono); font-size: 12px; color: var(--text-dim); line-height: 1.9; }

/* ---------- „Защо" / принципи: число | заглавие | текст ---------- */
.why-grid, .principles { border-top: 1px solid var(--border); }
.why, .principle {
  display: grid;
  grid-template-columns: 3rem minmax(9rem, 15rem) minmax(0, 1fr);
  column-gap: 34px; row-gap: 6px;
  padding: 24px 0; border-bottom: 1px solid var(--border); align-items: start;
}
.why .w-idx, .principle .p-n { grid-column: 1; font-family: var(--ff-display); font-weight: 600; font-size: 1.16rem; line-height: 1.35; color: var(--text-dim); }
.principle .p-n { color: var(--warm); }
.why h3, .principle h3 { grid-column: 2; font-family: var(--ff-display); font-weight: 500; font-size: 1.14rem; letter-spacing: -0.01em; line-height: 1.3; }
.why p, .principle p { grid-column: 3; color: var(--text-muted); font-size: .97rem; }

/* фин hover за редакторските редове */
@media (hover: hover) {
  .direction, .why, .principle, .ed-item, .problem-points article, .deflist > div { transition: background-color .16s ease; }
  .direction:hover, .why:hover, .principle:hover, .ed-item:hover,
  .problem-points article:hover, .deflist > div:hover {
    background: color-mix(in srgb, var(--warm) 6%, transparent);
  }
  .direction:hover .d-idx, .why:hover .w-idx, .principle:hover .p-n, .ed-item:hover .ed-n { color: var(--warm); }
}

/* ---------- Ангажимент ---------- */
.pledge {
  border: 1px solid var(--accent-line); border-radius: var(--radius-lg);
  background: var(--accent-soft); padding: clamp(32px, 5vw, 56px);
  display: grid; gap: 20px; max-width: 940px;
}
.pledge .kicker { color: var(--accent); }
.pledge .kicker::before { background: var(--accent-line); }
.pledge p { font-size: 1.14rem; color: var(--text); max-width: 66ch; }
.pledge .sign { font-family: var(--ff-mono); font-size: 13px; color: var(--text-muted); }
.pledge .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pledge .chips span { font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; border: 1px solid var(--accent-line); border-radius: 40px; padding: 7px 14px; color: var(--accent); }

/* ---------- Финален CTA ---------- */
.cta-band { text-align: left; }
.cta-band h2 {
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.08; letter-spacing: -0.025em;
  text-wrap: balance; max-width: 20ch;
}
.cta-band p { color: var(--text-muted); margin-top: 20px; max-width: 52ch; }
.cta-band .hero-cta { margin-top: 34px; }

/* ---------- Услуги (страница) ---------- */
.svc-group { border-top: 1px solid var(--border); padding-top: 48px; margin-top: 64px; }
.svc-group:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }
.svc-group-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 60ch; }
.svc-group-head .g-idx { font-family: var(--ff-mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; }
.svc-group-head h2 { font-family: var(--ff-display); font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -0.02em; }
.svc-group-head p { color: var(--text-muted); font-size: 1rem; }

.svc-list { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.svc {
  background: var(--bg); padding: 36px clamp(28px, 4vw, 44px);
  display: grid; grid-template-columns: 120px 1fr; gap: 8px 40px; align-items: start;
  transition: background-color .18s ease;
}
.svc:hover { background: var(--surface); }
.svc .s-meta { display: grid; gap: 8px; align-content: start; }
.svc .s-code { font-family: var(--ff-mono); font-size: 11.5px; color: var(--text-dim); letter-spacing: .06em; }
.svc .s-tag { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent-line); border-radius: 3px; padding: 2px 6px; width: max-content; }
.svc .s-body h3 { font-family: var(--ff-display); font-weight: 500; font-size: 1.28rem; letter-spacing: -0.015em; line-height: 1.2; }
.svc .s-body p { color: var(--text-muted); font-size: .99rem; margin-top: 12px; max-width: 64ch; }
.svc .s-get { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border); display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
.svc .s-get li { font-family: var(--ff-mono); font-size: 11.5px; color: var(--text-dim); padding-left: 16px; position: relative; }
.svc .s-get li::before { content: "+"; position: absolute; left: 0; color: var(--accent); }
.svc .s-fit { margin-top: 14px; font-family: var(--ff-mono); font-size: 11.5px; color: var(--text-muted); }
.svc .s-fit b { color: var(--text-dim); font-weight: 500; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.filters button {
  font-family: var(--ff-mono); font-size: 12.5px; letter-spacing: .04em;
  padding: 10px 16px; border: 1px solid var(--border-strong); border-radius: 40px;
  color: var(--text-muted); text-transform: uppercase; transition: all .16s ease;
}
.filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.filters button:hover { color: var(--text); }
.filters button[aria-pressed="true"]:hover { color: var(--bg); }
.svc-group.is-hidden { display: none; }

/* ---------- Процес (страница) ---------- */
.steps { display: grid; border-top: 1px solid var(--border); }
.step { display: grid; grid-template-columns: 110px 1fr; gap: 36px; padding: 44px 0; border-bottom: 1px solid var(--border); align-items: start; }
.step .s-num { font-family: var(--ff-display); font-weight: 600; font-size: 2.3rem; letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1; }
.step h3 { font-family: var(--ff-display); font-weight: 500; font-size: 1.4rem; letter-spacing: -0.015em; }
.step .dur { font-family: var(--ff-mono); font-size: 11.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }
.step .s-desc { color: var(--text-muted); margin-top: 16px; max-width: 62ch; }
.step .s-desc + .s-desc { margin-top: .9em; }
.step .s-out { margin-top: 18px; font-family: var(--ff-mono); font-size: 12px; color: var(--text); display: flex; gap: 10px; align-items: baseline; }
.step .s-out::before { content: "→"; color: var(--accent); }
.step-note { margin-top: 40px; font-family: var(--ff-mono); font-size: 13px; color: var(--text-muted); display: flex; gap: 12px; align-items: baseline; }
.step-note::before { content: "//"; color: var(--accent); }

/* ---------- Оферта (страница) ---------- */
.approach { border-top: 1px solid var(--border); }
.approach-item {
  display: grid; grid-template-columns: minmax(0, 15rem) 1fr; column-gap: 44px; row-gap: 10px;
  padding: 34px 0; border-bottom: 1px solid var(--border);
}
.approach-item .a-name { font-family: var(--ff-display); font-weight: 500; font-size: 1.4rem; letter-spacing: -0.02em; line-height: 1.15; }
.approach-item .a-for { font-family: var(--ff-mono); font-size: 12px; color: var(--text-dim); margin-top: 8px; }
.approach-item .a-body p { color: var(--text-muted); max-width: 60ch; }
.approach-item .a-incl { margin-top: 14px; font-family: var(--ff-mono); font-size: 12px; color: var(--text-dim); line-height: 1.9; }
.approach-item .a-price { margin-top: 12px; font-family: var(--ff-mono); font-size: 12.5px; color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 46px 26px 0; position: relative;
  font-family: var(--ff-display); font-weight: 500; font-size: 1.1rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 26px; font-family: var(--ff-mono); font-size: 1.4rem; color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 46px 28px 0; color: var(--text-muted); }
.faq .a p + p { margin-top: .8em; }

/* ---------- Контакти (страница) ---------- */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.next-steps { display: grid; gap: 0; }
.next-step { display: grid; grid-template-columns: 40px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.next-step:first-child { padding-top: 0; }
.next-step .ns-n { font-family: var(--ff-mono); font-size: 13px; color: var(--accent); }
.next-step h3 { font-family: var(--ff-display); font-weight: 500; font-size: 1.05rem; }
.next-step p { color: var(--text-muted); font-size: .93rem; margin-top: 4px; }
.contact-direct { margin-top: 34px; display: grid; gap: 12px; font-family: var(--ff-mono); font-size: 13px; }
.contact-direct a { color: var(--text); border-bottom: 1px solid var(--accent-line); padding-bottom: 2px; width: max-content; }
.contact-direct span { color: var(--text-dim); }
.contact-tips { margin-top: 34px; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.contact-tips h4 { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; }
.contact-tips ul { display: grid; gap: 9px; }
.contact-tips li { font-size: .9rem; color: var(--text-muted); padding-left: 18px; position: relative; }
.contact-tips li::before { content: "–"; position: absolute; left: 0; color: var(--accent); }

form.enquiry { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.field label .opt { text-transform: none; color: var(--text-dim); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .96rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 13px 15px; width: 100%; transition: border-color .16s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-family: var(--ff-mono); font-size: 11.5px; color: var(--text-dim); }
.form-note a { border-bottom: 1px solid var(--accent-line); }
.form-ok { border: 1px solid var(--ok); border-radius: var(--radius); padding: 15px 17px; font-family: var(--ff-mono); font-size: 13px; color: var(--ok); }

/* ---------- Бисквитки ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120;
  max-width: 440px; margin-inline: auto;
  background: var(--surface-raised); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 18px 20px; display: grid; gap: 14px; font-size: .88rem; color: var(--text-muted);
}
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { --pad-y: 10px; --pad-x: 16px; font-size: 12px; flex: 1; }

/* ---------- Анатомия (визуален акцент на началната страница) ---------- */
.anatomy-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.anatomy-copy .kicker { margin-bottom: 22px; }
.anatomy-copy h2 {
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance;
}
.anatomy-copy p { color: var(--text-muted); margin-top: 18px; max-width: 42ch; }
.anatomy-copy .legend { margin-top: 26px; display: grid; gap: 10px; }
.anatomy-copy .legend li { font-family: var(--ff-mono); font-size: 12.5px; color: var(--text-muted); display: flex; gap: 12px; align-items: baseline; }
.anatomy-copy .legend li b { color: var(--warm); font-weight: 600; flex: none; }
.anatomy-fig {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow);
  padding: clamp(16px, 3vw, 32px);
}
.anatomy-fig svg { width: 100%; height: auto; }
.anatomy-fig .wire { stroke: currentColor; fill: none; }
.anatomy-fig .fillw { fill: currentColor; }
.anatomy-fig .acc { fill: var(--accent); }
.anatomy-fig .acc-s { stroke: var(--accent); fill: none; }
.anatomy-fig .mark { stroke: var(--warm); fill: none; stroke-linecap: round; }
.anatomy-fig .note { fill: var(--warm); font-family: var(--ff-mono); font-size: 12px; }

/* ---------- Страница „За нас" ---------- */
.about-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 64px); align-items: center; }
.stamp { width: min(240px, 60vw); height: auto; color: var(--warm); justify-self: center; transform: rotate(-7deg); }
.stamp text { font-family: var(--ff-mono); fill: currentColor; }
.stamp .ring { fill: none; stroke: currentColor; }

.manifesto { max-width: 62ch; }
.manifesto p { font-size: clamp(1.1rem, 1.8vw, 1.32rem); line-height: 1.6; }
.manifesto p + p { margin-top: 1.1em; color: var(--text-muted); font-size: 1.06rem; }
.manifesto .em { color: var(--accent); }

.disciplines { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.discipline { border-top: 2px solid var(--text); padding: 26px 0 34px; display: grid; gap: 12px; align-content: start; }
.discipline .d-role { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.discipline h3 { font-family: var(--ff-display); font-weight: 500; font-size: 1.3rem; letter-spacing: -0.015em; }
.discipline p { color: var(--text-muted); font-size: .97rem; }

/* ---------- Движение ----------
   Съдържанието е видимо винаги. Единствената анимация е лек
   вход на hero-а при зареждане — без скрол-observer, без скрито съдържание. */
@media (prefers-reduced-motion: no-preference) {
  .hero .kicker { animation: rise .6s ease both; }
  .hero h1      { animation: rise .6s ease .06s both; }
  .hero-sub     { animation: rise .6s ease .12s both; }
  .hero-cta     { animation: rise .6s ease .18s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Адаптивност ---------- */
@media (max-width: 1080px) {
  .anatomy-grid { grid-template-columns: 1fr; gap: 40px; }
  .anatomy-copy p { max-width: none; }
}
@media (max-width: 720px) {
  /* на тесен екран схемата остава чиста — бележките ги дублира списъкът вляво */
  .anatomy-fig .note, .anatomy-fig .mark { display: none; }
  .anatomy-fig { padding: 14px; }
}
/* среден екран: редакторските списъци стават 2 колони (число | съдържание) */
@media (max-width: 900px) {
  .direction, .why, .principle, .ed-item {
    grid-template-columns: 3rem minmax(0, 1fr); column-gap: 28px;
  }
  .direction h3, .why h3, .principle h3, .ed-item h3 { grid-column: 2; grid-row: auto; }
  .direction p, .direction .d-list, .direction .inline-link,
  .why p, .principle p, .ed-item p, .ed-item .ed-sub, .ed-item .inline-link { grid-column: 2; }
  .direction h3 { margin-bottom: 4px; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-panel { justify-self: start; max-width: 460px; }
  .spec { grid-template-columns: repeat(2, 1fr); }
  .spec > div:nth-child(2) { border-right: none; }
  .spec > div:nth-child(1), .spec > div:nth-child(2) { border-bottom: 1px solid var(--border); }
  .checklist { grid-template-columns: 1fr; }
  .checklist-result { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 28px; }
  .problem-points article { grid-template-columns: 3.4rem minmax(0,1fr); }
  .problem-points p { grid-column: 2; }
  .problem-points .cost { grid-column: 2; align-self: start; margin-top: 6px; }
  .disciplines { grid-template-columns: 1fr; column-gap: 0; }
  .discipline { border-top-width: 1px; }
  .discipline:first-child { border-top: 2px solid var(--text); }
  .deflist > div, .approach-item { grid-template-columns: 1fr; gap: 6px; }
  .about-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .stamp { justify-self: start; width: 190px; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  :root { --step: clamp(64px, 15vw, 96px); }
  body { font-size: 16px; }
  .nav-actions > .btn { display: none; }        /* CTA живее в мобилното меню */
  .nav-inner { height: 62px; }
  .spec { grid-template-columns: 1fr; }
  .spec > div { border-right: none; border-bottom: 1px solid var(--border); padding: 22px 20px; }
  .spec > div:last-child { border-bottom: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  /* редакторските списъци: всичко в една колона на тесен екран */
  .ed-item, .direction, .why, .principle, .problem-points article {
    grid-template-columns: 1fr; column-gap: 0; row-gap: 6px; align-items: start;
  }
  .ed-item > *, .ed-item h3, .ed-item p, .ed-item .ed-sub, .ed-item .inline-link,
  .direction > *, .direction h3, .direction p, .direction .d-list, .direction .inline-link,
  .why > *, .why h3, .why p, .principle > *, .principle h3, .principle p,
  .problem-points article > *, .problem-points p, .problem-points .cost { grid-column: 1; }
  .ed-item .ed-n, .direction .d-idx, .why .w-idx, .principle .p-n, .problem-points .pc {
    grid-row: auto; font-size: 1.1rem; margin-bottom: 2px; padding-top: 0;
  }
  .direction .d-idx { font-size: 1.25rem; }
  .direction h3, .why h3, .principle h3, .ed-item h3 { grid-row: auto; }
  .problem-points .cost { align-self: start; margin-top: 4px; }
  .facts-line { gap: 14px 28px; }
  .foot-bottom { gap: 10px; }
  .field-row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .step .s-num { font-size: 1.7rem; }
  .svc { grid-template-columns: 1fr; gap: 14px; }
  .svc .s-get { grid-template-columns: 1fr; }
  .sec-head { margin-bottom: 40px; }
  /* бутоните стават на цял ред, за да не излизат от екрана */
  .hero-cta, .cta-band .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn, .cta-band .hero-cta .btn { width: 100%; }
  .checklist { padding: 24px 18px; }
  .checklist-result .btn { width: 100%; }
  .pledge, .contact-tips { padding: 26px 22px; }
}
@media (max-width: 420px) {
  :root { --gutter: 18px; }
  .hero h1 { font-size: 1.95rem; line-height: 1.07; letter-spacing: -0.03em; }
  .page-hero h1 { font-size: 1.85rem; line-height: 1.08; }
  .sec-head h2, .anatomy-copy h2, .cta-band h2, .svc-group-head h2 { font-size: 1.62rem; }
  .brand { font-size: 1.06rem; }
  .brand .tag { display: none; }
  .kicker { font-size: 11.5px; letter-spacing: .1em; }
  .spec .num { font-size: 1.9rem; }
  .hero-panel { font-size: 12px; }
  .hero-panel dt { font-size: 10px; }
}
/* по-едри мишени за докосване на тъч устройства */
@media (pointer: coarse) {
  .nav-links a, .foot-col a, .foot-bottom a, .mobile-menu a { min-height: 44px; display: flex; align-items: center; }
  .foot-col ul { gap: 4px; }
  .check { padding: 18px 0; }
  .check .box { width: 26px; height: 26px; }
  .theme-toggle, .burger { width: 44px; height: 44px; }
}
