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

: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-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; }
.service-example { margin-top: 14px; }
.service-example a { font-weight: 800; text-decoration-color: var(--yellow); text-decoration-thickness: 4px; }

/* Проекти: тефтер с редове */
.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 .pimg { display: none; }
  .anim.hover .pitem, .anim.hover .plist-small .pitem { grid-template-columns: 44px 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-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; }
.frame-phone::before { content: ""; position: absolute; top: 0; left: 50%; z-index: 2; width: 88px; height: 18px; transform: translateX(-50%); background: var(--ink); border-radius: 0 0 12px 12px; }
.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; }
.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-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-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-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; }
