/* Шрифтовете на сайта, свалени от Google Fonts на 13.10.2026 (лиценз SIL Open Font License 1.1).
   Само кирилица и латиница; браузърът тегли подмножество само ако на страницата има такива букви. */

@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/geologica-300-800-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/geologica-300-800-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/geologica-300-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/geologica-300-800-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-500-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-500-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: 500;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-500-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 900;
  font-display: swap;
  src: url(../fonts/sofia-sans-extra-condensed-700-900-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Sofia Sans Extra Condensed';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url(../fonts/sofia-sans-extra-condensed-700-900-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 900;
  font-display: swap;
  src: url(../fonts/sofia-sans-extra-condensed-700-900-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sofia Sans Extra Condensed';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url(../fonts/sofia-sans-extra-condensed-700-900-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;
}

/* Обща основа: подредба и поведение. Цветове, шрифтове и движение са в site.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; } /* място за залепения хедър */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  overflow-x: clip; /* заглавията, които се плъзгат при скрол, не бива да дават хоризонтален скрол */
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); line-height: 1.15; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap, 1160px); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; }
.skip:focus { left: 16px; top: 16px; padding: 10px 14px; background: #fff; color: #000; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.muted { color: var(--muted); }

/* Горна лента и меню */
.site-header { position: relative; z-index: 20; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex-shrink: 0; }
.nav { display: flex; align-items: center; gap: 6px 26px; }
.nav a { text-decoration: none; }
.nav-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; background: none; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; 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; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 4px; }
  .nav .btn { margin-top: 10px; text-align: center; }
}

/* Бутони */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; text-decoration: none; cursor: pointer; border: 0; }
.btn-small { min-height: 42px; padding: 0 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Начало */
.hero-in { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .hero-in { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 64px; } }
.checks { list-style: none; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Проекти: цялата карта е връзка */
.plist { list-style: none; }
.pitem { position: relative; }
.pname a { text-decoration: none; color: inherit; }
.pname a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pimg img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

.steps { list-style: none; }
.faq summary { cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }

/* Форма */
.form-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .form-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 72px; } }
.review-form { display: grid; gap: 20px; }
@media (min-width: 640px) {
  .review-form { grid-template-columns: 1fr 1fr; }
  .review-form .field:first-of-type, .field-wide, .form-submit { grid-column: 1 / -1; }
}
.field label { display: block; margin-bottom: 6px; }
.field input, .field textarea { display: block; width: 100%; min-height: 48px; }
.field textarea { resize: vertical; min-height: 110px; }
.hint, .error { margin: 6px 0 0; font-size: 15px; }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-note { margin: 0; font-size: 15px; }
.form-errors { margin-bottom: 24px; }
.form-errors ul { padding-left: 20px; }

/* Страница на проект */
.facts { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 28px 0 0; }
.facts div { min-width: 0; }
.facts dt, .facts dd { margin: 0; }
.facts-note { display: block; font-size: 14px; }
.shots { display: grid; gap: 28px; margin: 40px 0 56px; }
@media (min-width: 860px) {
  .shots-with-phone { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); align-items: start; }
  /* Телефонът е висок колкото снимката 16:10 до него, за да няма празно място под нея. Колоната на
     компютъра е 2,4/3,4 от ширината без пролуката; рамката ѝ е висока (ширина − 4) × 0,625 + 42 px
     (лента 38 и рамка 2 × 2). Телефонът има рамка 10 px и горна лента 22 px около снимка 780 × 1688,
     т.е. ширината му е (височина − 42) × 0,4621 + 20 px. */
  .shots-wide { container-type: inline-size; }
  .shots-wide .shot-phone .frame { width: min(100%, 360px, calc(((100cqw - 28px) * 2.4 / 3.4 * .625 - 2.5px) * .4621 + 20px)); }
}
.shot { margin: 0; }
.shot figcaption { margin-top: 10px; font-size: 15px; }
.shot-phone .frame { max-width: 360px; margin: 0 auto; }
.project-body { max-width: 760px; }
.svc-body { max-width: 760px; padding-bottom: 72px; }
.svc-body h2 { margin: 48px 0 14px; }
.svc-body h2:first-child { margin-top: 32px; }
.svc-body p + p { margin-top: 12px; }
.svc-others { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 48px; }
.svc-others-title { width: 100%; }
.project-body h2 { margin: 40px 0 14px; }
.project-body h2:first-child { margin-top: 0; }
.done { list-style: none; }
.project-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 56px 0 72px; padding-top: 24px; }
.prose { max-width: 760px; }
.prose h2 { margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }

.cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }

/* Заявки */
.table-scroll { overflow-x: auto; }
.requests { width: 100%; border-collapse: collapse; font-size: 15px; }
.requests th, .requests td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.requests-msg { min-width: 260px; }

/* Долу */
.footer-in { display: grid; gap: 32px; }
@media (min-width: 860px) { .footer-in { grid-template-columns: 1.2fr 1.6fr 1fr; } }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-content: start; }
.footer-contact p { margin: 0 0 4px; }

/* Скоба: графит и жълто, струбцина в логото, едри тесни заглавия. */

:root {
  --bg: #FAF9F6;
  --ink: #141414;
  --muted: #5C5A55;
  --line: #D9D5CC;
  --paper: #EFECE5;
  --yellow: #FFC21A;
  --yellow-2: #FFD359;
  --yellow-soft: #FFF3CC;
  --error: #B42318;
  --link: #141414;
  --focus: #141414;
  --btn-shadow: var(--ink);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font-body: "Geologica", "Segoe UI", system-ui, sans-serif;
  --font-head: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --w-text: 350; /* Geologica е плътен, 350 се чете като обикновен текст */
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --fs-body: 18px;
  --wrap: 1240px;
}

body { font-weight: var(--w-text); }

/* Хедърът върви със скрола; след първите пиксели става по-нисък (класът scrolled идва от site.js) */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); border-bottom: 2px solid var(--ink); transition: box-shadow .25s; }
.header-in { transition: min-height .25s var(--ease); }
.site-header.scrolled { box-shadow: 0 4px 0 rgba(20, 20, 20, .08); }
.site-header.scrolled .header-in { min-height: 62px; }
.logo-mark svg { display: block; width: 40px; height: 40px; transition: width .25s var(--ease), height .25s var(--ease); }
.site-header.scrolled .logo-mark svg { width: 36px; height: 36px; }
.logo-word { font-family: var(--font-head); font-weight: 900; font-size: 34px; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }

/* Менюто: жълта черта, която се плъзга под връзката */
.nav a { color: var(--ink); font-weight: 700; font-size: 17px; }
.nav a:not(.btn) {
  padding-bottom: 3px;
  background: linear-gradient(var(--yellow), var(--yellow)) left bottom / 0 4px no-repeat;
  transition: background-size .3s var(--ease);
}
.nav a:not(.btn):hover, .nav a[aria-current] { background-size: 100% 4px; }
.nav .nav-phone { font-family: var(--font-mono); font-weight: 500; font-size: 15px; }
.nav-toggle { border: 2px solid var(--ink); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 1020px) {
  .nav { background: var(--bg); border-bottom: 2px solid var(--ink); }
  .nav a:not(.btn) { border-bottom: 1px solid var(--line); background: none; }
}

/* Бутоните: твърда сянка, която се „натиска“ */
.btn {
  background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); font-weight: 800; font-size: 17px;
  box-shadow: 4px 4px 0 var(--btn-shadow);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s;
}
.btn:hover { background: var(--yellow-2); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--btn-shadow); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--btn-shadow); }
.btn-ghost { background: #fff; }
.btn-ghost:hover { background: var(--yellow-soft); }
.nav .btn { box-shadow: 3px 3px 0 var(--btn-shadow); }

/* Начало */
.hero { position: relative; padding: 72px 0 120px; overflow: hidden; }

/* Лентата за зареждане под началото: жълтото се пълни върху бяло, после остава със статистиката */
.loadbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40px; overflow: hidden;
  background: #fff; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.loadbar::before {
  content: ""; position: absolute; inset: 0; transform-origin: left;
  background-color: var(--yellow);
  background-image: repeating-linear-gradient(135deg, rgba(20, 20, 20, .09) 0 12px, transparent 12px 24px);
  background-size: 34px 34px;
  transition: background-image .3s;
}
.loadbar.done::before { background-image: none; }
.loadbar-in {
  position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; white-space: nowrap;
}
.loadbar-host::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; vertical-align: 1px;
  border: 2px solid var(--ink); border-radius: 50%;
}
.loadbar.done .loadbar-host::before { background: var(--ink); }
.loadbar-stats { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }

.hero h1 {
  font-size: clamp(60px, 10vw, 132px); font-weight: 900; line-height: .86;
  text-transform: uppercase; letter-spacing: -.005em; margin-bottom: 28px;
}
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em 0 .06em; margin: -.12em 0 -.06em; }
.hero h1 .w > span { display: inline-block; }
.lead { font-size: 21px; line-height: 1.55; max-width: 34em; }
.hero .actions { margin: 32px 0 18px; gap: 16px; }
.hero-phone { color: var(--muted); }
.hero-phone a { font-family: var(--font-mono); font-weight: 500; color: var(--ink); }
/* Накратко под бутоните: колко проекта, къде са клиентите, кой прави сайта */
.hero-proof { list-style: none; padding: 0; margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.hero-proof li { position: relative; padding-left: 16px; }
.hero-proof li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; background: var(--yellow); border: 1px solid var(--ink); }

.hero-box { background: #fff; border: 2px solid var(--ink); padding: 26px 28px 24px; box-shadow: 8px 8px 0 var(--ink); }
@media (min-width: 960px) { .hero-box { margin-top: 12px; } }
.hero-box h2 { font-size: 30px; font-weight: 900; text-transform: uppercase; margin-bottom: 14px; }

/* Двата пътя в началото */
.path { padding: 16px 0 18px; border-top: 1px solid var(--line); }
.path:last-child { padding-bottom: 4px; }
.path-label { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.path h3 { font-size: 30px; font-weight: 900; line-height: .95; text-transform: uppercase; margin-bottom: 8px; }
.path p { font-size: 17px; margin-bottom: 8px; }
.path a { font-weight: 800; text-decoration-color: var(--yellow); text-decoration-thickness: 4px; }

/* Какво включва прегледът: бяло каре до формата */
.form-side { display: grid; gap: 48px; align-content: start; }
.review-box { background: #fff; color: var(--ink); padding: 24px 26px 18px; box-shadow: 8px 8px 0 var(--yellow); }
.review-box h3 { font-size: 30px; font-weight: 900; line-height: .95; text-transform: uppercase; margin-bottom: 12px; }

/* Отметките: жълто квадратче с отметка */
.checks li { position: relative; display: grid; grid-template-columns: 36px 1fr; padding: 11px 0; border-top: 1px solid var(--line); line-height: 1.4; }
.checks li::before {
  content: ""; width: 20px; height: 20px; margin-top: 1px;
  border: 2px solid var(--ink); background: var(--yellow);
  transition: background-color .2s;
}
.checks li::after {
  content: ""; position: absolute; left: 7px; top: 14px; width: 6px; height: 11px;
  border: solid var(--ink); border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  transition: opacity .15s, transform .35s cubic-bezier(.3, 1.7, .5, 1);
}

.section { padding: 88px 0; }
.section-alt { background: var(--paper); }
.section-title { font-size: clamp(44px, 6vw, 76px); font-weight: 900; line-height: .9; text-transform: uppercase; margin-bottom: 40px; }
.section-title::after { content: ""; display: block; width: 96px; height: 8px; margin-top: 18px; background: var(--yellow); transform-origin: left; }
.section-head { margin-bottom: 40px; }
.section-head .section-title { margin-bottom: 0; }
.more { font-weight: 800; text-decoration-color: var(--yellow); text-decoration-thickness: 4px; }

/* Услуги: редове с номер */
.services { border-bottom: 2px solid var(--ink); }
.service { display: grid; gap: 8px 32px; padding: 32px 0; border-top: 2px solid var(--ink); }
@media (min-width: 900px) { .service { grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.5fr); } }
.service-num { font-family: var(--font-mono); font-size: 15px; color: var(--muted); padding-top: 8px; }
.service h3 { font-size: clamp(34px, 4vw, 46px); font-weight: 900; line-height: .95; text-transform: uppercase; }
.service-body { font-size: 18px; }

/* Проекти: тефтер с редове */
.plist { border-top: 2px solid var(--ink); }
.pitem { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--ink); }
.pitem:hover { background: var(--yellow-soft); box-shadow: -16px 0 0 var(--yellow-soft), 16px 0 0 var(--yellow-soft); }
.pnum { font-family: var(--font-mono); font-size: 14px; color: var(--muted); padding-top: 6px; }
.pimg img { border: 1px solid var(--ink); background: #fff; }
.pname { font-size: 36px; font-weight: 900; line-height: 1; text-transform: uppercase; margin-bottom: 6px; transition: transform .35s var(--ease); }
.ptitle { margin-bottom: 4px; font-size: 18px; line-height: 1.4; }
.pmeta { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin: 0; }
.pstatus { margin: 0; font-family: var(--font-mono); font-size: 13px; font-weight: 500; align-self: start; padding-top: 6px; }
.pstatus::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--yellow); border: 1px solid var(--ink); vertical-align: -1px; }
@media (min-width: 760px) {
  .pitem { grid-template-columns: 44px 210px minmax(0, 1fr) 140px; gap: 28px; align-items: start; }
  .plist-small .pitem { grid-template-columns: 44px 130px minmax(0, 1fr) 140px; }
  .plist-small .pname { font-size: 30px; }
}
.subhead { font-size: 32px; font-weight: 900; text-transform: uppercase; margin: 64px 0 18px; }
.subhead-first { margin-top: 0; }

/* Снимката, която следва мишката. Когато я има, редовете са без миниатюри. */
.ppreview {
  position: fixed; left: 0; top: 0; z-index: 30; width: 440px;
  border: 2px solid var(--ink); background: #fff; box-shadow: 8px 8px 0 var(--ink);
  pointer-events: none; opacity: 0; transition: opacity .2s;
}
.ppreview.on { opacity: 1; }
.ppreview img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.ppreview .frame-bar { height: 30px; gap: 10px; padding: 0 10px; }
.ppreview .frame-address { height: 20px; line-height: 16px; font-size: 11px; }
@media (min-width: 900px) {
  .anim.hover .plist-small .pimg { display: none; }
  .anim.hover .plist-small .pitem { grid-template-columns: 44px minmax(0, 1fr) 150px; padding: 26px 0; }
  .anim.hover .plist-large .pitem { grid-template-columns: 44px 260px minmax(0, 1fr) 150px; padding: 26px 0; }
  .anim.hover .pname { font-size: 52px; }
  .anim.hover .plist-small .pname { font-size: 40px; }
  .anim.hover .pitem:hover .pname { transform: translateX(12px); }
}

/* Процес: четири колони, всяка под дебела линия */
.steps { counter-reset: step; display: grid; gap: 32px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
/* Линията отгоре (на телефон отляво) се пълни при скрол и пали номерата: --p е от 0 до 1 */
.steps-wrap { position: relative; }
.anim .steps-wrap { --p: 0; }
.steps-line { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--line); }
.steps-line span { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 1)); }
.step { counter-increment: step; position: relative; padding-top: 36px; }
.step::before {
  content: counter(step, decimal-leading-zero); position: absolute; top: -10px; left: 0;
  display: grid; place-items: center; width: 34px; height: 26px;
  border: 2px solid var(--ink); background: var(--yellow);
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  transition: background-color .3s, transform .3s var(--ease);
}
.step h3 { font-size: 30px; font-weight: 900; line-height: .95; text-transform: uppercase; margin-bottom: 12px; transition: color .4s; }
.step p { font-size: 17px; transition: color .4s; }
@media (max-width: 759px) {
  .steps-line { left: 14px; right: auto; bottom: 0; width: 6px; height: auto; }
  .steps-line span { transform-origin: top; transform: scaleY(var(--p, 1)); }
  .step { padding: 0 0 0 56px; }
  .step::before { top: 0; }
}

.note { background: var(--yellow); border: 2px solid var(--ink); padding: 18px 22px; margin: 44px 0 0; font-weight: 700; font-size: 19px; }

/* Въпроси */
.faq { border-top: 2px solid var(--ink); max-width: 980px; }
.faq details { border-bottom: 1px solid var(--ink); }
.faq summary { position: relative; padding: 20px 56px 20px 0; font-family: var(--font-head); font-size: 30px; font-weight: 800; line-height: 1.05; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 16px; font-family: var(--font-mono); font-size: 28px; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 56px 22px 0; font-size: 18px; max-width: 46em; }

/* Форма: тъмен блок */
.section-form { background: var(--ink); color: #F3F1EC; --focus: var(--yellow); --btn-shadow: rgba(255, 255, 255, .35); }
.section-form .section-title { color: #fff; }
.form-lead { font-size: 20px; max-width: 36em; margin-bottom: 32px; color: #DDD9D0; }
.field label { font-weight: 700; font-size: 16px; color: #fff; }
.optional { font-weight: var(--w-text); color: #B5B1A8; }
.field input, .field textarea { padding: 11px 14px; border: 2px solid #fff; background: #fff; color: var(--ink); font-size: 17px; border-radius: 0; }
.field input:focus, .field textarea:focus { border-color: var(--yellow); outline: 3px solid var(--yellow); outline-offset: 0; }
.hint { color: #B5B1A8; }
.has-error input, .has-error textarea { border-color: #FF8A7A; }
.error { color: #FFB4A8; font-weight: 700; }
.form-note { color: #B5B1A8; }
.form-note a, .section-form a { color: #fff; }
.section-form .btn { border-color: var(--yellow); }
.form-errors { border: 2px solid #FF8A7A; padding: 16px 20px; }
.form-errors p { font-weight: 800; margin-bottom: 6px; }
.form-errors a { color: #FFB4A8; }

.contact { border-left: 4px solid var(--yellow); padding-left: 28px; align-self: start; }
.contact-title { font-size: 40px; font-weight: 900; text-transform: uppercase; margin-bottom: 18px; color: #fff; }
.contact-name { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.contact p { margin-bottom: 6px; }
.contact-phone a { font-family: var(--font-head); font-size: 52px; font-weight: 900; line-height: 1.05; color: var(--yellow); text-decoration: none; }
.contact-phone a:hover { text-decoration: underline; }
.contact-email a { font-family: var(--font-mono); font-size: 16px; }
.contact-viber { margin-top: 4px; }
.contact-viber a { font-weight: 800; color: #fff; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.contact-where { color: #B5B1A8; margin-top: 16px; }

/* Вътрешни страници */
.page-head { padding: 64px 0 20px; }
.page-head h1 { font-size: clamp(56px, 9vw, 120px); font-weight: 900; line-height: .86; text-transform: uppercase; margin-bottom: 18px; }
.section-tight { padding: 32px 0 88px; }
.crumbs { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.project-title { font-size: 24px; line-height: 1.35; max-width: 32em; }
.facts { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 14px 0; gap: 14px 48px; }
.facts dt { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.facts dd { font-weight: 800; }
.facts-note { font-weight: var(--w-text); color: var(--muted); }
/* Снимките в прозорец на браузър или в телефон */
.frame { position: relative; border: 2px solid var(--ink); background: #fff; overflow: hidden; }
.frame img { display: block; width: 100%; }
.frame-bar {
  position: relative; display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 14px;
  border-bottom: 2px solid var(--ink); background: var(--paper);
}
.frame-dots { display: flex; gap: 6px; flex: none; }
.frame-dots span { width: 11px; height: 11px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; }
.frame-dots span:first-child { background: var(--yellow); }
.frame-address {
  flex: 1; min-width: 0; max-width: 440px; margin: 0 auto; padding: 0 12px; height: 24px; line-height: 20px;
  border: 2px solid var(--ink); background: #fff; text-align: center;
  font-family: var(--font-mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.frame-progress { position: absolute; left: 0; right: 0; top: 36px; z-index: 2; height: 4px; background: var(--yellow); transform-origin: left; opacity: 0; }
/* Отгоре има тъмна лента като статус лентата на телефон, за да не покрива нищо от снимката */
.frame-phone { border: 10px solid var(--ink); border-radius: 34px; padding-top: 22px; background: var(--ink); }
.frame-phone::before { content: ""; position: absolute; top: 8px; left: 50%; z-index: 2; width: 46px; height: 6px; transform: translateX(-50%); background: #3A3934; border-radius: 3px; }
.frame-phone .frame-progress { top: 0; }
.shot figcaption { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.project-body h2 { font-size: 44px; font-weight: 900; text-transform: uppercase; line-height: .95; }
.svc-head .lead { margin-top: 4px; }
.svc-actions { margin-top: 28px; }
.svc-body h2 { font-size: 44px; font-weight: 900; text-transform: uppercase; line-height: .95; }
.svc-body p, .svc-body li { font-size: 18px; }
/* „Полезно“: списъкът със статиите и самата статия */
.alist { list-style: none; padding: 0; border-top: 2px solid var(--ink); }
.aitem { padding: 22px 0; border-bottom: 1px solid var(--ink); }
.aname { font-size: 30px; font-weight: 900; line-height: 1.05; text-transform: uppercase; margin-bottom: 8px; }
.aname a { text-decoration: none; }
.aname a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 4px; }
.aitem p { max-width: 46em; color: var(--muted); }
.article .article-title { font-size: clamp(44px, 6.5vw, 84px); }
.article-meta { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.svc-others + .svc-others { margin-top: 18px; }

/* „Кой стои зад Скоба“ в началото: заглавие вляво, текст вдясно */
.about-teaser { display: grid; gap: 8px 48px; align-items: start; }
.about-teaser .section-title { margin-bottom: 0; }
.about-teaser-text p + p { margin-top: 12px; font-size: 18px; }
.about-teaser-text .more { display: inline-block; margin-top: 16px; }
@media (min-width: 900px) { .about-teaser { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
.svc-others-title { font-family: var(--font-mono); font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.svc-others a { font-weight: 800; text-decoration-color: var(--yellow); text-decoration-thickness: 4px; }
.service-body .more { display: inline-block; margin-top: 10px; }
.done li { position: relative; padding: 8px 0 8px 30px; border-bottom: 1px solid var(--line); }
.done li::before { content: ""; position: absolute; left: 0; top: .95em; width: 12px; height: 12px; background: var(--yellow); border: 1px solid var(--ink); }
.project-nav { border-top: 2px solid var(--ink); font-weight: 800; }
.project-related { margin-top: 24px; font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.project-related a { font-family: var(--font-body, inherit); font-weight: 800; color: var(--ink); text-decoration-color: var(--yellow); text-decoration-thickness: 4px; }
.project-nav a { text-decoration-color: var(--yellow); text-decoration-thickness: 4px; }
.prose h2 { font-size: 36px; font-weight: 900; text-transform: uppercase; line-height: .95; }
.page-thanks { padding: 96px 0 112px; }
.page-thanks .actions { margin-top: 32px; }

.cta-band { background: var(--yellow); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 48px 0; }
.cta-band h2 { font-size: clamp(38px, 5vw, 56px); font-weight: 900; line-height: .9; text-transform: uppercase; margin-bottom: 10px; }
.cta-band .btn { background: var(--ink); color: var(--yellow); }
.cta-band .btn:hover { background: #333; }

/* Демонстрацията на каталога на КОНЕЛ: затворено каре в края на страницата */
.demo { margin: 36px 0 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.demo summary {
  position: relative; cursor: pointer; list-style: none; padding: 18px 48px 18px 0;
  font-family: var(--font-head); font-size: 30px; font-weight: 800; line-height: 1.05;
}
.demo summary::-webkit-details-marker { display: none; }
.demo summary::after { content: "+"; position: absolute; right: 8px; top: 14px; font-family: var(--font-mono); font-size: 28px; transition: transform .3s var(--ease); }
.demo[open] summary::after { transform: rotate(45deg); }
.demo-in { padding: 0 0 24px; }
.demo-lead { color: var(--muted); }
.demo-form { display: grid; gap: 16px; margin: 18px 0 20px; }
@media (min-width: 760px) { .demo-form { grid-template-columns: 1fr 1.4fr 1fr; } }
.demo-form label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 15px; color: var(--ink); }
.demo-form input, .demo-form select {
  display: block; width: 100%; min-height: 48px; padding: 10px 12px;
  border: 2px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); font-size: 17px;
}
.demo-form select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23141414' stroke-width='2.5'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.demo-form input:focus, .demo-form select:focus { outline: 3px solid var(--yellow); outline-offset: 0; }
.demo-count { font-family: var(--font-mono); font-size: 14px; margin-bottom: 10px; }
.demo-results { height: 380px; overflow: auto; border-top: 1px solid var(--ink); }
.demo-results .demo-count { position: sticky; top: 0; z-index: 2; margin: 0; padding: 10px 0; background: var(--bg); }
.demo-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.demo-table th {
  position: sticky; top: 40px; z-index: 1; background: var(--bg); text-align: left;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--muted);
  padding: 8px 10px; border-bottom: 2px solid var(--ink);
}
.demo-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.demo-table .num { text-align: right; white-space: nowrap; }
.demo-table td.brand { font-weight: 800; }
.demo-table td.frc { font-weight: 800; font-variant-numeric: tabular-nums; }
.demo-table mark { background: var(--yellow); color: inherit; }
@media (max-width: 700px) {
  .demo-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .demo-table tr {
    display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid var(--line);
    grid-template-areas: "brand frc" "model num" "type type";
  }
  .demo-table td { padding: 0; border: 0; }
  .demo-table td.brand { grid-area: brand; }
  .demo-table td.model { grid-area: model; }
  .demo-table td.type { grid-area: type; }
  .demo-table td.frc { grid-area: frc; }
  .demo-table td.num { grid-area: num; }
  .demo-table td.frc::before { content: "№ FRC "; font-weight: var(--w-text); color: var(--muted); }
  .demo-table td.frc, .demo-table td.num { text-align: right; }
  .demo-table td.type { color: var(--muted); }
}

/* Долу: продължение на тъмния блок */
.site-footer { background: var(--ink); color: #DDD9D0; padding-top: 56px; border-top: 1px solid #3A3936; }
.site-footer .logo { color: #fff; }
.footer-brand p { color: #B5B1A8; margin-top: 12px; }
.footer-nav a, .footer-contact a { color: #fff; font-weight: 700; }
.footer-person { font-weight: 800; color: #fff; }
.footer-legal { margin-top: 40px; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid #3A3936; font-family: var(--font-mono); font-size: 12px; color: #9A968D; }


/* ---------- Движение ----------
   Всичко е под .anim: head.js го слага само ако посетителят не е изключил движението
   от настройките на устройството. Без .anim страницата е в крайното си състояние. */

@keyframes rise { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes box-in {
  from { opacity: 0; transform: translate(28px, 16px); box-shadow: 0 0 0 var(--ink); }
  to { opacity: 1; transform: none; box-shadow: 8px 8px 0 var(--ink); }
}
@keyframes fill { 0% { transform: scaleX(0); } 30% { transform: scaleX(.42); } 55% { transform: scaleX(.58); } 100% { transform: scaleX(1); } }
@keyframes stripes { to { background-position: 34px 0; } }
@keyframes screw { from { transform: translateY(4px); } to { transform: none; } }
@keyframes handle { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.12); } }
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Заглавието излиза дума по дума, после текстът, бутоните и карето */
.anim .hero h1 .w > span { transform: translateY(112%); animation: rise .9s var(--ease) forwards; }
.anim .hero h1 .w:nth-child(2) > span { animation-delay: .07s; }
.anim .hero h1 .w:nth-child(3) > span { animation-delay: .14s; }
.anim .hero h1 .w:nth-child(4) > span { animation-delay: .21s; }
.anim .hero h1 .w:nth-child(5) > span { animation-delay: .28s; }
.anim .hero h1 .w:nth-child(6) > span { animation-delay: .35s; }
.anim .hero h1 .w:nth-child(n+7) > span { animation-delay: .42s; }
.anim .hero-fade { opacity: 0; animation: fade-up .8s var(--ease) forwards; }
.anim .hero .lead { animation-delay: .55s; }
.anim .hero .actions { animation-delay: .7s; }
.anim .hero-phone { animation-delay: .85s; }
.anim .hero-proof { animation-delay: .95s; }
.anim .hero-box { opacity: 0; animation: box-in .9s .6s var(--ease) forwards; }

/* Лентата за зареждане се пълни (1,4 s след 0,3 s), а райетата текат, докато не стигне края */
.anim .loadbar::before { animation: fill 1.4s .3s both, stripes .6s linear infinite; }
.anim .loadbar.done::before { animation: fill 1.4s .3s both; }

/* Струбцината затяга при зареждане и при посочване: винтът се качва, дръжката се върти */
.clamp-screw, .clamp-handle { transform-box: fill-box; transform-origin: center; }
.anim .tighten .clamp-screw { animation: screw .9s var(--ease) both; }
.anim .tighten .clamp-handle { animation: handle .3s linear 3; }

/* Отметките чакат своя ред */
.anim .checks li:not(.is-checked)::before { background: #fff; }
.anim .checks li:not(.is-checked)::after { opacity: 0; transform: rotate(45deg) scale(.2); }

/* Поява при скрол: съдържанието се вижда и преди това, само се плъзга на мястото си */
.anim [data-reveal] { transform: translateY(32px); transition: transform .8s var(--ease); }
.anim [data-reveal].is-in { opacity: 1; transform: none; }
.anim .section-title::after { transform: scaleX(0); transition: transform .8s .3s cubic-bezier(.65, 0, .25, 1); }
.anim .is-in .section-title::after, .anim .section-title.is-in::after { transform: none; }
/* Стъпките чакат линията: докато не стигне до тях, номерът е бял, а текстът по-блед */
.anim .step:not(.lit)::before { background: #fff; }
.anim .step.lit::before { transform: translateY(-2px); }
.anim .step:not(.lit) h3, .anim .step:not(.lit) p { color: var(--muted); }

/* Снимките се „зареждат“: жълтата линия се пълни и изображението се изостря */
@keyframes frame-load { 0% { transform: scaleX(0); opacity: 1; } 45% { transform: scaleX(.6); } 85% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.anim [data-load] img { filter: blur(6px) saturate(.3); opacity: .75; transition: filter .6s .8s, opacity .6s .8s; }
.anim [data-load].is-in img { filter: none; opacity: 1; }
.anim [data-load].is-in .frame-progress { animation: frame-load 1.2s .1s cubic-bezier(.3, .1, .2, 1) both; }

/* Големите заглавия се плъзгат леко встрани при скрол; --shift идва от site.js */
.anim .section-title { translate: var(--shift, 0px) 0; }

/* Преходи между страниците: менюто стои, съдържанието се сменя, а името на проекта прелита в заглавието */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.site-header { view-transition-name: site-header; }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(root) { animation: vt-out .25s ease-in both; }
::view-transition-new(root) { animation: vt-in .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(26px); } }
.vt-konel { view-transition-name: p-konel; }
.vt-kamsolar { view-transition-name: p-kamsolar; }
.vt-mpv-logistics { view-transition-name: p-mpv-logistics; }
.vt-taksi-izpit { view-transition-name: p-taksi-izpit; }
.vt-idbg { view-transition-name: p-idbg; }
.vt-cgbg { view-transition-name: p-cgbg; }
.vt-gnar-shop { view-transition-name: p-gnar-shop; }
.vt-slideworks { view-transition-name: p-slideworks; }
.vt-ffx-runner { view-transition-name: p-ffx-runner; }

/* Новите редове в търсачката */
.anim .demo-table tbody tr { animation: row-in .35s var(--ease) both; }

/* Преди и след с плъзгач (_predi-sled.php): горната снимка („преди“) се изрязва до --pos */
.bs { position: relative; --pos: 50%; user-select: none; -webkit-user-select: none; }
.bs img { display: block; width: 100%; height: auto; }
.bs .bs-before { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: left top; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.bs-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--yellow); box-shadow: 0 0 0 1px var(--ink); pointer-events: none; }
.bs-handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); font-size: 20px; font-weight: 800; color: var(--ink); }
.bs-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.bs:focus-within .bs-handle::after { outline: 3px solid var(--ink); outline-offset: 3px; }
.bs-tag { position: absolute; bottom: 10px; padding: 3px 10px; border: 2px solid var(--ink); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; pointer-events: none; }
.bs-tag-before { left: 10px; background: #fff; }
.bs-tag-after { right: 10px; background: var(--yellow); }
.frame-phone .bs-tag { bottom: 12px; padding: 2px 7px; font-size: 11px; }
.bs-notes { display: grid; gap: 24px 48px; max-width: 980px; }
@media (min-width: 760px) { .bs-notes { grid-template-columns: 1fr 1fr; } }
.bs-notes-title { margin-bottom: 6px; font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; color: var(--muted); }
.bs-x { list-style: none; }
.bs-x li { position: relative; padding: 8px 0 8px 30px; border-bottom: 1px solid var(--line); }
.bs-x li::before { content: "\2715"; position: absolute; left: 0; top: 8px; font-weight: 800; }
.bs-fake { margin-top: 20px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

