/* ЕСТЕТ МЕБЕЛ — черно / бяло / оранж (PANTONE 021) */

:root {
  --ink: #0b0b0b;
  --ink-soft: #1a1a1a;
  --paper: #ffffff;
  --bone: #f3ede3;
  --line: #e6ded2;
  --line-dark: #262626;
  --accent: #a8221e;
  --accent-bright: #de5147;
  --grey: #6f6a63;
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Onest', sans-serif;
  --pad: clamp(20px, 4vw, 64px);
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

::selection { background: var(--accent); color: #fff; }

/* ---------- типография ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  width: 34px; height: 2px;
  background: var(--accent);
  flex: none;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 56px);
}
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 46px);
  margin-top: 14px;
}
.section-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
  user-select: none;
  flex: none;
}
.dark .section-num { -webkit-text-stroke-color: var(--line-dark); }

/* ---------- каркас ---------- */

.wrap { max-width: 1320px; margin: 0 auto; padding-inline: var(--pad); }
section { padding-block: clamp(64px, 8vw, 120px); }
.dark { background: var(--ink); color: #f2efe9; }
.bone { background: var(--bone); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: var(--header-h);
  display: flex; align-items: center; gap: 32px;
}
.brand { flex: none; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  font-size: 13px; font-weight: 600;
  padding: 9px 11px;
  position: relative;
  letter-spacing: .01em;
  white-space: nowrap;
}
.nav .btn { margin-left: 6px; }
.nav a:not(.btn)::after {
  content: '';
  position: absolute; left: 11px; right: 11px; bottom: 4px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s cubic-bezier(.7,0,.3,1);
}
.nav a:not(.btn):hover::after,
.nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }

.burger { display: none; margin-left: auto; width: 44px; height: 44px; position: relative; }
.burger span, .burger::before, .burger::after {
  content: ''; position: absolute; left: 10px; right: 10px; height: 2px;
  background: var(--ink); transition: .3s;
}
.burger::before { top: 15px; } .burger span { top: 21px; } .burger::after { top: 27px; }
body.nav-open .burger::before { top: 21px; transform: rotate(45deg); }
body.nav-open .burger::after { top: 21px; transform: rotate(-45deg); }
body.nav-open .burger span { opacity: 0; }

/* ---------- бутони ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 16px 28px;
  background: var(--ink); color: #fff;
  border: 1px solid var(--ink);
  transition: background .25s, color .25s, border-color .25s;
}
.btn .arr { transition: transform .25s; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:hover .arr { transform: translateX(5px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.dark .btn.ghost { color: #fff; border-color: #fff3; }
.dark .btn.ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn.solid-orange { background: var(--accent); border-color: var(--accent); }
.btn.solid-orange:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light { background: #fff; border-color: #fff; color: var(--ink); }
.btn.light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.link-more {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ink);
  transition: border-color .25s, color .25s;
}
.link-more:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- hero ---------- */

.hero {
  background: var(--bone); color: var(--ink);
  position: relative; overflow: hidden;
}
.hero::before, .page-hero::before {
  content: '';
  position: absolute; top: 0; right: 0; z-index: 0;
  width: min(48vw, 560px); height: clamp(90px, 13vw, 200px);
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.hero::after, .page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; z-index: 0;
  width: min(38vw, 400px); height: clamp(60px, 9vw, 140px);
  background: #22262c;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(56px, 7vw, 110px);
  position: relative; z-index: 2;
}
.hero h1 {
  font-size: clamp(30px, 4.6vw, 62px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.06;
  margin: 22px 0 26px;
}
.hero h1 .stroke {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  display: inline-block;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lead {
  max-width: 46ch;
  color: #5d574e;
  font-size: clamp(15px, 1.3vw, 17px);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero-media { position: relative; justify-self: end; width: min(100%, 430px); }
.hero-media .frame {
  position: absolute; inset: 26px -26px -26px 26px;
  border: 2px solid var(--accent);
  z-index: 0;
}
.hero-media img {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 5 / 7; object-fit: cover;
}
.hero-media figcaption {
  position: absolute; z-index: 2;
  left: -12px; bottom: 22px;
  background: var(--accent); color: #fff;
  font-family: var(--font-display);
  font-size: 10px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  padding: 10px 16px;
}


/* ---------- ticker ---------- */

.ticker {
  background: var(--accent); color: #f8f1e7;
  overflow: hidden; white-space: nowrap;
  padding-block: 13px;
  border-block: 1px solid var(--ink);
}
.ticker-track {
  display: inline-flex;
  animation: ticker 36s linear infinite;
}
.ticker span {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  padding-inline: 20px;
}
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- стойности ---------- */

.values { border-bottom: 1px solid var(--line); padding-block: 0; }
.values .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.values .v {
  padding: clamp(24px, 3vw, 44px) 20px;
  border-left: 1px solid var(--line);
  transition: background .3s;
}
.values .v:last-child { border-right: 1px solid var(--line); }
.values .v:hover { background: var(--bone); }
.values .v b {
  font-family: var(--font-display);
  font-weight: 700; font-size: clamp(20px, 2vw, 28px);
  color: var(--accent); display: block; margin-bottom: 8px;
}
.values .v span { font-size: 13.5px; font-weight: 600; line-height: 1.4; display: block; }

/* ---------- категорийни карти ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.cat-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  padding: 26px 26px 30px;
  display: flex; flex-direction: column;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.cat-card:hover {
  border-color: var(--ink);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(11,11,11,.25);
}
.cat-card .num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 15px; color: var(--accent);
}
.cat-card figure {
  aspect-ratio: 1; overflow: hidden;
  margin-block: 18px;
  background: #fff;
}
.cat-card figure img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .5s cubic-bezier(.2,.6,.2,1);
}
.cat-card:hover figure img { transform: scale(1.06); }
.cat-card h3 { font-size: 22px; text-transform: uppercase; }
.cat-card .meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; color: var(--grey); font-size: 13.5px;
}
.cat-card .meta .arr {
  font-size: 20px; color: var(--ink);
  transition: transform .3s, color .3s;
}
.cat-card:hover .meta .arr { transform: translateX(6px); color: var(--accent); }

/* ---------- STEAM тъмна лента ---------- */

.steam .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.steam h2 { font-size: clamp(24px, 3vw, 40px); margin-block: 16px 20px; }
.steam p { color: #b8b3ab; max-width: 52ch; }
.steam .link-more { color: #fff; border-color: #fff; margin-top: 28px; }
.steam .link-more:hover { color: var(--accent); border-color: var(--accent); }
.steam figure { position: relative; }
.steam figure img {
  aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 76% 100%, 0 100%);
}

/* ---------- проекти (карти) ---------- */

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.proj-card {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.proj-card:hover {
  border-color: var(--ink);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(11,11,11,.25);
}
.proj-card figure { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.proj-card figure img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.6,.2,1);
}
.proj-card:hover figure img { transform: scale(1.05); }
.proj-card .badge {
  position: absolute; left: 0; top: 16px;
  background: var(--ink); color: #fff;
  font-family: var(--font-display);
  font-size: 10px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 8px 14px;
}
.proj-card .badge.orange { background: var(--accent); }
.proj-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.proj-card .body p { font-size: 14.5px; font-weight: 600; line-height: 1.45; flex: 1; }
.proj-card .count {
  font-size: 12.5px; color: var(--grey);
  display: flex; align-items: center; gap: 8px;
}
.proj-card .count::before { content: ''; width: 20px; height: 1.5px; background: var(--accent); }

/* ---------- CTA лента ---------- */

.cta-band { background: var(--accent); color: #faf4ea; }
.cta-band .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 28px;
}
.cta-band h2 {
  font-size: clamp(22px, 3vw, 40px);
  text-transform: uppercase;
  max-width: 22ch;
}
.cta-band .btn { background: var(--ink); border-color: var(--ink); }
.cta-band .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- за нас ---------- */

.about .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
}
.about h2 { font-size: clamp(24px, 3vw, 40px); margin-top: 14px; }
.about .cols p + p { margin-top: 1em; }
.about .cols p { color: #4a463f; }
.about .sign {
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
}

/* ---------- каталог ---------- */

.page-hero {
  background: var(--bone); color: var(--ink);
  padding-block: clamp(48px, 6vw, 90px);
  position: relative; overflow: hidden;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(30px, 4.4vw, 58px);
  text-transform: uppercase; font-weight: 700;
  margin-top: 18px;
}
.page-hero p { color: #5d574e; margin-top: 16px; max-width: 60ch; }
.page-hero .ghost-word {
  position: absolute; right: -1%; bottom: -14%;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(90px, 16vw, 230px);
  line-height: 1; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px #d8cec0;
  pointer-events: none; user-select: none; white-space: nowrap;
}

.cat-tabs {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.cat-tabs .wrap { display: flex; gap: 4px; overflow-x: auto; }
.cat-tabs button {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 18px 20px 15px;
  border-bottom: 3px solid transparent;
  color: var(--grey);
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.cat-tabs button:hover { color: var(--ink); }
.cat-tabs button.active { color: var(--ink); border-color: var(--accent); }
.cat-tabs .tab-count { color: var(--accent); margin-left: 6px; font-size: 10.5px; }

.prod-section { padding-block: clamp(40px, 5vw, 72px); }
.prod-section + .prod-section { border-top: 1px solid var(--line); }

.cat-head {
  display: flex; align-items: flex-start;
  gap: clamp(20px, 3vw, 44px);
  margin-bottom: clamp(28px, 4vw, 52px);
}
.cat-head .cat-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 10vw, 140px);
  line-height: .82;
  color: transparent;
  -webkit-text-stroke: 1.5px #d8d2c8;
  user-select: none; flex: none;
}
.cat-head h2 {
  font-size: clamp(30px, 4vw, 52px);
  text-transform: uppercase;
  margin: 10px 0 14px;
}
.cat-intro { max-width: 62ch; color: var(--grey); font-size: 15px; }
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.prod-card {
  background: #fff;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.prod-card:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -22px rgba(11,11,11,.22);
}
.prod-card .photo {
  aspect-ratio: 1; overflow: hidden; position: relative;
  border-bottom: 1px solid var(--line);
  cursor: zoom-in;
}
.prod-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.prod-card .photo img.alt {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .35s ease;
}
.prod-card:hover .photo img.alt { opacity: 1; }
.zoom-hint {
  position: absolute; right: 10px; bottom: 10px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font-size: 16px;
  opacity: 0; transition: opacity .25s, background .25s;
  z-index: 2;
}
.prod-card .photo:hover .zoom-hint,
.prod-card .photo:focus-visible .zoom-hint { opacity: 1; }
.zoom-hint:hover { background: var(--accent); }

/* голяма карта — първият модел във всяка категория */
.prod-card.feat {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-areas: "photo info" "photo thumbs";
  grid-template-rows: 1fr auto;
}
.prod-card.feat .photo {
  grid-area: photo;
  border-bottom: 0;
  border-right: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.prod-card.feat .photo img { object-fit: contain; }
.prod-card.feat .thumbs { grid-area: thumbs; padding: 0 26px 26px; }
.prod-card.feat .thumbs button { width: 48px; height: 48px; }
.prod-card.feat .info {
  grid-area: info;
  padding: 28px 26px 12px;
  gap: 8px;
  justify-content: center;
}
.prod-card.feat .info h3 { font-size: clamp(20px, 2vw, 26px); }
.prod-card.feat .info .inquiry { margin-top: 18px; }
.prod-card.feat .series { font-size: 11px; }
.prod-card .thumbs {
  display: flex; gap: 6px;
  padding: 10px 14px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.prod-card .thumbs::-webkit-scrollbar { display: none; }
.prod-card .thumbs button {
  flex: none; width: 40px; height: 40px;
  border: 1px solid var(--line);
  padding: 0; overflow: hidden;
  opacity: .75;
  transition: border-color .2s, opacity .2s;
}
.prod-card .thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.prod-card .thumbs button:hover { opacity: 1; }
.prod-card .thumbs button.active { border-color: var(--accent); opacity: 1; }
.prod-card .info { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.prod-card .series {
  font-family: var(--font-display);
  font-size: 10px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
}
.prod-card h3 { font-size: 16.5px; font-weight: 500; }
.prod-card .variant-label {
  font-size: 12.5px; color: var(--grey);
  min-height: 1.5em;
}
.prod-card .inquiry {
  margin-top: auto; padding-top: 12px;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  display: inline-flex; gap: 8px; align-items: center;
  color: var(--ink);
}
.prod-card .inquiry:hover { color: var(--accent); }

/* ---------- проекти страница ---------- */

/* ---------- проекти: кейс редове ---------- */

.case-list { display: flex; flex-direction: column; }
.case {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding-block: clamp(28px, 4vw, 56px);
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.case:last-child { border-bottom: 1px solid var(--line); }
.case:nth-child(even) .case-media { order: 2; }
.case-media { position: relative; overflow: hidden; }
.case-media img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.6,.2,1);
}
.case:hover .case-media img { transform: scale(1.04); }
.case-count {
  position: absolute; left: 0; bottom: 0;
  background: var(--ink); color: #fff;
  font-family: var(--font-display);
  font-size: 10px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 9px 14px;
}
.case-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.case-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 72px);
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1.5px #d8d2c8;
  user-select: none;
}
.case-title { font-size: clamp(19px, 1.8vw, 26px); line-height: 1.3; font-weight: 500; }
.case-loc {
  display: flex; align-items: center; gap: 10px;
  color: var(--grey); font-size: 14px; font-weight: 600;
}
.case-loc::before { content: ''; width: 22px; height: 2px; background: var(--accent); flex: none; }
.case .link-more { margin-top: 6px; pointer-events: none; }
.case:hover .link-more { color: var(--accent); border-color: var(--accent); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 4vw, 48px); }
.filter-bar button {
  font-family: var(--font-display);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 11px 18px;
  border: 1px solid var(--line);
  transition: .25s;
}
.filter-bar button:hover { border-color: var(--ink); }
.filter-bar button.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8,8,8,.96);
  display: none;
  align-items: center; justify-content: center;
  flex-direction: column;
  padding: clamp(16px, 4vw, 56px);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: calc(100vh - 180px);
  object-fit: contain;
}
.lightbox .lb-caption {
  color: #b8b3ab; font-size: 14px; margin-top: 18px;
  text-align: center; max-width: 70ch;
}
.lightbox .lb-counter {
  font-family: var(--font-display);
  color: var(--accent); font-size: 12px; letter-spacing: .2em;
  margin-top: 8px;
}
.lightbox .lb-close {
  position: absolute; top: 20px; right: 24px;
  color: #fff; font-size: 34px; line-height: 1;
  width: 48px; height: 48px;
}
.lightbox .lb-close:hover { color: var(--accent); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: #fff; font-size: 40px;
  width: 56px; height: 72px;
  display: flex; align-items: center; justify-content: center;
}
.lb-nav:hover { color: var(--accent); }
.lb-nav.prev { left: 8px; } .lb-nav.next { right: 8px; }

/* ---------- запитване ---------- */

.inquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(0px, 0vw, 0px);
  border: 1px solid var(--line);
}
.inquiry-side {
  background: var(--ink); color: #f2efe9;
  padding: clamp(28px, 4vw, 56px);
  padding-bottom: 130px;
  display: flex; flex-direction: column; gap: 28px;
  position: relative; overflow: hidden;
}
.inquiry-side > * { position: relative; z-index: 1; }
.inquiry-side h2 { font-size: clamp(22px, 2.4vw, 32px); }
.inquiry-lead { color: rgba(242, 239, 233, .72); font-size: 15px; line-height: 1.65; max-width: 36ch; margin-top: -8px; }
.inquiry-side .contact-item b {
  font-family: var(--font-display);
  display: block; font-size: 10.5px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.inquiry-side .contact-item a:hover { color: var(--accent); }
.inquiry-side .peaks-sm {
  position: absolute; bottom: 0; left: 0; right: 0; height: 90px;
  background: #191919;
  clip-path: polygon(0 100%, 0 70%, 30% 12%, 55% 88%, 75% 40%, 100% 96%, 100% 100%);
  z-index: 0; pointer-events: none;
}
.inquiry-form { padding: clamp(28px, 4vw, 56px); background: #fff; }
.inquiry-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { margin-bottom: 22px; }
.field label {
  font-family: var(--font-display);
  display: block; font-size: 10.5px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 8px; color: var(--grey);
}
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit; color: var(--ink);
  background: var(--bone);
  border: 1px solid transparent;
  border-bottom: 2px solid var(--line);
  padding: 13px 14px;
  transition: border-color .25s, background .25s;
  border-radius: 0;
  -webkit-appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  background: #fff;
  border-color: var(--line);
  border-bottom-color: var(--accent);
}
.form-note { font-size: 12.5px; color: var(--grey); margin-top: 14px; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink); color: #b8b3ab;
  padding-block: clamp(48px, 6vw, 80px) 0;
  position: relative;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: 48px;
}
.site-footer img.f-logo { height: 52px; width: auto; margin-bottom: 18px; }
.site-footer h4 {
  font-family: var(--font-display);
  color: #fff; font-size: 11px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer li { margin-bottom: 10px; font-size: 14.5px; }
.site-footer a:hover { color: var(--accent); }
.site-footer .tag { font-size: 13.5px; max-width: 34ch; line-height: 1.7; }
.site-footer .bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between;
  font-size: 12.5px;
}
.site-footer .bottom .o { color: var(--accent); }

/* ---------- reveal анимации ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* херо интро */
.hero .eyebrow, .hero h1, .hero .lead, .hero .hero-ctas {
  animation: rise .8s cubic-bezier(.2,.6,.2,1) both;
}
.hero h1 { animation-delay: .08s; }
.hero .lead { animation-delay: .16s; }
.hero .hero-ctas { animation-delay: .24s; }
.hero-media { animation: rise .9s .2s cubic-bezier(.2,.6,.2,1) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero h1, .hero .lead, .hero .hero-ctas, .hero-media { animation: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .values .wrap { grid-template-columns: repeat(3, 1fr); }
  .values .v:nth-child(n+4) { border-top: 1px solid var(--line); }
  .values .v:last-child { border-right: 0; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .case { grid-template-columns: 1fr; gap: 18px; }
  .case:nth-child(even) .case-media { order: 0; }
  .cat-head { flex-direction: column; gap: 8px; }
  .prod-card.feat {
    grid-template-columns: 1fr;
    grid-template-areas: "photo" "thumbs" "info";
    grid-template-rows: auto auto auto;
  }
  .prod-card.feat .photo { border-right: 0; border-bottom: 1px solid var(--line); }
  .prod-card.feat .thumbs { padding: 10px 14px 0; }
  .prod-card.feat .info { padding: 14px 16px 18px; }
  .inquiry-layout { grid-template-columns: 1fr; }
}

/* хамбургер меню под 1200px (9 точки + „STEM решения" не се събират на малък лаптоп) */
@media (max-width: 1200px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch;
    padding: 6px var(--pad) 22px;
    gap: 0;
    box-shadow: 0 28px 40px -26px rgba(11,11,11,.3);
    display: none;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  body.nav-open .nav { display: flex; }
  .nav a:not(.btn) { padding: 15px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { content: none; }
  .nav a[aria-current="page"]:not(.btn) { color: var(--accent); }
  .nav .btn { margin: 18px 0 0; justify-content: center; }
  .burger { display: block; }
}

@media (max-width: 560px) {
  .values .wrap { grid-template-columns: 1fr 1fr; }
  .inquiry-form .grid2 { grid-template-columns: 1fr; }
  .section-num { display: none; }
  .site-footer .cols { grid-template-columns: 1fr; }
}

/* ---------- мобилен фин пас ---------- */

@supports (height: 100dvh) {
  .lightbox img { max-height: calc(100dvh - 200px); }
}

@media (max-width: 880px) {
  :root { --header-h: 64px; }
  .brand img { height: 34px; }

  /* по-бързи reveal-и при скрол на телефон */
  .reveal { transition-delay: 0s !important; }

  /* touch размер на миниатюрите */
  .prod-card .thumbs button { width: 46px; height: 46px; }
  .prod-card.feat .thumbs button { width: 46px; height: 46px; }
}

@media (max-width: 560px) {
  .values .v:nth-child(n+3) { border-top: 1px solid var(--line); }

  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }

  .cat-tabs button { padding: 15px 12px 12px; font-size: 11px; }
  .cat-tabs .tab-count { margin-left: 4px; }

  .filter-bar {
    flex-wrap: nowrap; overflow-x: auto;
    margin-inline: calc(-1 * var(--pad));
    padding-inline: var(--pad);
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-bar button { white-space: nowrap; flex: none; }

  .page-hero .ghost-word { font-size: clamp(56px, 20vw, 230px); bottom: -6%; }

  .lightbox { padding: 64px 10px 28px; }
  .lb-nav { width: 44px; height: 60px; font-size: 30px; }
  .lightbox .lb-caption { font-size: 12.5px; }
}

@media (max-width: 560px) {
  /* футър: линковете в ред, не в колона */
  .site-footer .cols { gap: 26px; padding-bottom: 34px; }
  .site-footer h4 { margin-bottom: 10px; }
  .site-footer .f-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
  .site-footer .f-links li { margin-bottom: 0; }
  .site-footer .bottom { flex-direction: column; gap: 8px; }
}

/* ---------- таблет: запазва десктоп композицията, телефонът поема под 700px ---------- */

@media (max-width: 720px) {
  .cat-grid, .proj-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  /* херо: стакирано, без празната тъмна зона, рамката не опира в ръба */
  .hero .wrap { grid-template-columns: 1fr; padding-block: 44px 30px; gap: 36px; }
  .hero h1 { font-size: clamp(27px, 7.4vw, 42px); }
  .hero .peaks { height: 15%; }
  .hero-media { justify-self: start; width: min(calc(100% - 14px), 330px); margin-top: 8px; }
  .hero-media .frame { inset: 14px -14px -14px 14px; }
  .steam .wrap, .about .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 1020px) {
  .hero .eyebrow { font-size: 10px; letter-spacing: .2em; }
}

/* ---------- карминен акцент върху тъмно ---------- */

.dark .eyebrow, .inquiry-side .contact-item b,
.site-footer .bottom .o { color: var(--accent-bright); }
.dark .eyebrow::before { background: var(--accent-bright); }
.hero h1 .accent { color: var(--accent); }
.lightbox .lb-counter { color: var(--accent-bright); }
.hero-media .frame { border-color: var(--accent); }
.steam .link-more:hover { color: var(--accent-bright); border-color: var(--accent-bright); }
.dark .btn.ghost:hover { background: var(--accent-bright); border-color: var(--accent-bright); color: #fff; }

/* ---------- стойности с описания ---------- */

.values .v strong {
  font-family: var(--font-display);
  display: block;
  font-size: 13px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--accent);
}
.values .v span { font-weight: 400; color: var(--grey); font-size: 13px; }

/* ---------- статистики (за нас) ---------- */

.stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--line);
}
.stats b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 40px);
  color: var(--accent);
  display: block; line-height: 1.1;
  margin-bottom: 8px;
}
.stats span { font-size: 13.5px; color: var(--grey); line-height: 1.5; display: block; }

/* ---------- Estet Smart Kids Desk (типографски спотлайт) ---------- */

.smart { position: relative; overflow: hidden; }
.smart .ghost-word {
  position: absolute; right: -2%; top: 4%;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(80px, 14vw, 200px);
  line-height: 1; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px #ddd3c4;
  pointer-events: none; user-select: none; white-space: nowrap;
}
.smart .wrap { position: relative; z-index: 1; }
.smart h2 {
  font-size: clamp(28px, 4vw, 54px);
  text-transform: uppercase; font-weight: 700;
  margin: 18px 0 6px;
}
.smart h2 .accent-w { color: var(--accent); }
.smart .sub {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.4vw, 17px);
  letter-spacing: .14em; text-transform: uppercase;
  color: #8a8378;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.smart-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.smart-desc { color: #5d574e; max-width: 52ch; margin-bottom: 26px; }
.smart-benefits { display: grid; gap: 18px; }
.smart-benefits li { padding-left: 26px; position: relative; }
.smart-benefits li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 12px; height: 12px;
  border: 2px solid var(--accent);
}
.smart-benefits b {
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  display: block; margin-bottom: 2px;
}
.smart-benefits span { font-size: 14px; color: #6f6a63; }
.smart-specs { border: 1px solid #d9cfc0; background: #fff; }
.smart-specs h3 {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  padding: 16px 20px;
  border-bottom: 1px solid #e6ded2;
}
.smart-specs dl { margin: 0; }
.smart-specs div {
  display: grid; grid-template-columns: 42% 58%;
  gap: 12px;
  padding: 12px 20px;
  font-size: 13.5px;
}
.smart-specs div + div { border-top: 1px solid #efe9df; }
.smart-specs dt { color: #8a8378; }
.smart-specs dd { margin: 0; }
.smart .btn { margin-top: 26px; }

@media (max-width: 880px) {
  .smart-grid { grid-template-columns: 1fr; }
  .values .wrap { grid-template-columns: 1fr 1fr; }
  .values .v:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; gap: 20px; }
  .values .wrap { grid-template-columns: 1fr; }
  .values .v { border-left: 0; border-right: 0 !important; }
  .values .v:nth-child(n+2) { border-top: 1px solid var(--line); }
}

/* ---------- Smart серия: две продуктови карти ---------- */

.smart-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
}
.smart-card {
  background: #fff;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.smart-card:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -22px rgba(11,11,11,.22);
}
.smart-card figure {
  aspect-ratio: 2 / 1;
  border-bottom: 1px solid var(--line);
  display: grid; place-items: center;
  padding: 18px;
}
.smart-card figure img { max-height: 100%; object-fit: contain; }
.smart-card .sc-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.smart-card h3 {
  font-size: clamp(19px, 1.8vw, 24px);
  text-transform: uppercase;
}
.sc-tag {
  font-family: var(--font-display);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
  margin: 6px 0 14px;
}
.sc-desc { font-size: 14.5px; color: var(--grey); margin-bottom: 18px; }
.sc-specs { border-top: 1px solid var(--line); margin-bottom: 22px; }
.sc-specs div {
  display: grid; grid-template-columns: 38% 62%; gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #efe9df;
  font-size: 13px;
}
.sc-specs dt { color: #8a8378; }
.sc-specs dd { margin: 0; }
.smart-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- цветове и размери ---------- */

.mat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}
.mat-block { background: #fff; border: 1px solid var(--line); padding: 24px 26px 28px; }
.mat-block h3 {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.mat-block h3 + .chips { margin-bottom: 26px; }
.mat-block .chips:last-child { margin-bottom: 0; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.chips li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.chips i {
  width: 20px; height: 20px; flex: none;
  background: var(--c);
  border: 1px solid rgba(11,11,11,.18);
}
.ticks li {
  padding: 9px 0 9px 24px;
  position: relative;
  font-size: 13.5px;
  border-bottom: 1px solid #efe9df;
}
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
  content: '';
  position: absolute; left: 2px; top: 14px;
  width: 10px; height: 10px;
  border: 2px solid var(--accent);
}
.en-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.en-table th {
  font-family: var(--font-display);
  font-size: 10px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  text-align: left; color: var(--grey);
  padding: 8px 6px;
  border-bottom: 2px solid var(--ink);
}
.en-table td { padding: 8px 6px; border-bottom: 1px solid #efe9df; }
.en-table td:first-child { font-weight: 600; color: var(--accent); }

/* ---------- каталози (PDF) ---------- */

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 400px));
  gap: clamp(16px, 2vw, 28px);
}
.doc-card {
  background: #fff;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.doc-card:hover {
  border-color: var(--ink);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(11,11,11,.25);
}
.doc-cover {
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bone);
  border-bottom: 1px solid var(--line);
  padding: clamp(20px, 6%, 30px);
}
.dc-diag {
  position: absolute; top: 0; right: 0;
  width: 58%; height: 15%;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.dc-diag2 {
  position: absolute; bottom: 0; left: 0;
  width: 34%; height: 9%;
  background: #22262c;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}
/* корица = реалната първа страница на PDF-а (без кроп) */
.doc-cover.is-image { padding: 0; }
.doc-cover.is-image img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .5s cubic-bezier(.2,.6,.2,1);
}
.doc-card:hover .doc-cover.is-image img { transform: scale(1.04); }
.dc-logo { height: 30px; width: auto; align-self: flex-start; margin-bottom: 20px; }
.dc-kicker {
  font-family: var(--font-display);
  font-size: 9.5px; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 6px;
}
.dc-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700; text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
}
.dc-sub {
  font-family: var(--font-display);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  margin: 8px 0 16px;
  line-height: 1.5;
}
.dc-photo {
  flex: 1; display: block; overflow: hidden;
  border: 1px solid var(--line);
}
.dc-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.6,.2,1);
}
.doc-card:hover .dc-photo img { transform: scale(1.05); }
.dc-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px;
  position: relative; z-index: 1;
}
.dc-foot b {
  font-family: var(--font-display);
  font-weight: 700; font-size: 15px;
  color: var(--accent);
}
.dc-foot i {
  font-style: normal;
  font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--grey);
}
.doc-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.doc-body h3 { font-size: 17px; line-height: 1.35; }
.doc-meta { font-size: 12.5px; color: var(--grey); }
.doc-actions { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.doc-actions .btn { padding: 13px 22px; }
.doc-note { margin-top: clamp(28px, 4vw, 44px); font-size: 14px; color: var(--grey); }
.doc-note a { color: var(--accent); font-weight: 600; }
.doc-note a:hover { text-decoration: underline; }

/* ---------- статистики: 4 колони ---------- */

.stats { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 880px) {
  .smart-duo { grid-template-columns: 1fr; }
  .mat-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .doc-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}

/* smart картите: галерия при клик */
.smart-card figure { position: relative; cursor: zoom-in; }
.smart-card figure:hover .zoom-hint,
.smart-card figure:focus-visible .zoom-hint { opacity: 1; }
.gallery-count {
  position: absolute; left: 0; bottom: 0;
  background: var(--ink); color: #fff;
  font-family: var(--font-display);
  font-size: 10px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 8px 13px;
  opacity: 0; transition: opacity .25s;
}
.smart-card figure:hover .gallery-count { opacity: 1; }

/* ---------- сертификации ---------- */

.certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
}
.cert-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 36px);
  display: flex; gap: clamp(20px, 2.5vw, 32px);
  align-items: flex-start;
}
.cert-card h3 { font-size: 19px; margin: 6px 0 10px; }
.cert-card p { font-size: 14px; color: var(--grey); }
.iso-badge {
  flex: none;
  width: 104px; height: 104px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 15px; letter-spacing: .1em;
  color: var(--accent);
  line-height: 1.15;
}
.iso-badge b { font-weight: 700; font-size: 21px; }
.cert-thumb {
  flex: none; width: 150px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}
.cert-thumb img { width: 100%; height: auto; }
.cert-thumb:hover .zoom-hint { opacity: 1; }
@media (max-width: 880px) {
  .certs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cert-card { flex-direction: column; }
}

/* решения: описателен текст в кейс редовете */
.case-text { font-size: 14.5px; color: var(--grey); max-width: 52ch; }

.dc-foot { gap: 14px; }
.dc-foot i { text-align: right; line-height: 1.5; }

/* ---------- страница „Училищна техника" ---------- */

.teh-section { padding-block: clamp(40px, 5vw, 68px); }
.teh-section:nth-child(even) { background: var(--bone); }
.teh-head { margin-bottom: clamp(24px, 3vw, 40px); }
.teh-head h2 {
  font-size: clamp(24px, 3vw, 38px);
  text-transform: uppercase;
  margin-top: 10px;
}
.teh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.teh-card {
  background: #fff;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  color: var(--ink); text-decoration: none;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.teh-card:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -22px rgba(11,11,11,.2);
}
.teh-photo {
  aspect-ratio: 1 / 1;
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.teh-photo img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.teh-info { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.teh-info .series {
  font-family: var(--font-display);
  font-size: 9px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
}
.teh-info h3 {
  font-family: var(--font-body);
  font-weight: 600; font-size: 15.5px;
  color: var(--ink); line-height: 1.3;
}
.teh-specs { margin: 6px 0 0; }
.teh-specs div {
  display: grid; grid-template-columns: 42% 58%; gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 11.5px; line-height: 1.45;
}
.teh-specs dt { color: var(--grey); }
.teh-specs dd { margin: 0; color: var(--ink); }
.teh-specs dd.full { grid-column: 1 / -1; color: var(--grey); }
.teh-cta {
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 10px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink);
  transition: color .25s;
}
.teh-card:hover .teh-cta { color: var(--accent); }
  .teh-info .teh-cta { color: var(--accent-bright); }
}
}

/* тъмно херо за техниката */
.page-hero.dark-hero { background: var(--ink); color: #f2efe9; }
.page-hero.dark-hero::after { background: #2c1210; }
.page-hero.dark-hero h1 { color: #f2efe9; }
.page-hero.dark-hero p { color: #b8b3ab; }
.page-hero.dark-hero .eyebrow { color: var(--accent-bright); }
.page-hero.dark-hero .eyebrow::before { background: var(--accent-bright); }
.page-hero.dark-hero .ghost-word { -webkit-text-stroke-color: #2a2a2a; }

/* навигиращ кейс ред в Решения */
.case-link { text-decoration: none; color: inherit; }
.case-link .link-more { pointer-events: none; }
.case-link:hover .link-more { color: var(--accent); border-color: var(--accent); }
.case-link:hover .case-media img { transform: scale(1.04); }

/* ---------- форма: honeypot, статус, потвърждение ---------- */
.inquiry-form .hp { position: absolute !important; left: -9999px !important; opacity: 0; width: 0; height: 0; }
.form-status { margin-top: 14px; font-size: 13.5px; font-weight: 600; }
.form-status.err { color: var(--accent); }
.form-success { text-align: center; padding: clamp(20px, 4vw, 40px) 0; }
.form-success .fs-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; margin-bottom: 20px;
  border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 30px; line-height: 1;
}
.form-success h3 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 12px; }
.form-success p { color: var(--grey); max-width: 42ch; margin: 0 auto 26px; }

.h-captcha { margin-bottom: 18px; }

/* ---------- „За нас" снимки ---------- */
.about-media {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.5vw, 20px);
  margin-bottom: clamp(30px, 4vw, 52px);
}
.about-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 560px) { .about-media { grid-template-columns: 1fr; } }

/* ---------- Услуги ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.service-card {
  background: #fff; border: 1px solid var(--line);
  padding: clamp(26px, 3vw, 40px);
  position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.service-card:hover { border-color: var(--ink); transform: translateY(-4px); }
.service-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 5vw, 64px); line-height: .9;
  color: transparent; -webkit-text-stroke: 1.5px var(--line);
  display: block; margin-bottom: 14px;
}
.service-card:hover .service-num { -webkit-text-stroke-color: var(--accent); }
.service-card h3 { font-size: clamp(20px, 2vw, 26px); text-transform: uppercase; margin-bottom: 12px; }
.service-card p { color: var(--grey); font-size: 14.5px; }
@media (max-width: 700px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Полезно / Блог ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.blog-card {
  background: #fff; border: 1px solid var(--line);
  padding: clamp(24px, 2.5vw, 34px);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 200px;
}
.blog-tag {
  align-self: flex-start;
  font-family: var(--font-display); font-size: 9.5px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent);
  padding: 5px 10px;
}
.blog-card h3 { font-size: 18px; line-height: 1.35; margin-top: auto; }
.blog-card p { color: var(--grey); font-size: 14px; }
@media (max-width: 880px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- Контакти: карта ---------- */
.map-section { padding: 0; }
.map-embed {
  display: block; width: 100%; height: clamp(320px, 45vh, 480px);
  border: 0; border-top: 1px solid var(--line);
  filter: grayscale(1) contrast(1.05);
  transition: filter .4s;
}
.map-embed:hover { filter: none; }

/* ---------- контакти карти + празно състояние ---------- */
.contacts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); }
.contact-card {
  background: #fff; border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: var(--ink);
  transition: border-color .3s, transform .3s;
}
a.contact-card:hover { border-color: var(--ink); transform: translateY(-4px); }
.cc-label {
  font-family: var(--font-display); font-size: 10px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
}
.cc-value { font-size: clamp(15px, 1.5vw, 18px); font-weight: 600; word-break: break-word; }
a.contact-card:hover .cc-value { color: var(--accent); }
.contacts-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px; margin-top: clamp(28px, 4vw, 44px);
  padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line);
}
.contacts-cta p { color: var(--grey); font-size: 15px; max-width: 48ch; }
@media (max-width: 700px) { .contacts-grid { grid-template-columns: 1fr; } }

.empty-state { text-align: center; }
.empty-state .eyebrow { justify-content: center; }
.empty-state h2 { font-size: clamp(24px, 3vw, 40px); margin: 16px 0 12px; }
.empty-state p { color: var(--grey); max-width: 48ch; margin: 0 auto 28px; }

/* ---------- Услуги: „Какво още предлагаме" ---------- */
.more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 1.8vw, 24px); }
.more-card {
  background: #fff; border: 1px solid var(--line);
  padding: clamp(22px, 2.5vw, 32px);
  border-left: 3px solid var(--accent);
  transition: transform .3s, box-shadow .3s;
}
.more-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -20px rgba(11,11,11,.2); }
.more-card h3 { font-size: 18px; margin-bottom: 8px; }
.more-card p { color: var(--grey); font-size: 14px; }
@media (max-width: 700px) { .more-grid { grid-template-columns: 1fr; } }

/* ---------- Плаващи бутони за контакт (WhatsApp / телефон / имейл) ---------- */
.fab-stack {
  position: fixed; right: 20px; bottom: 20px; z-index: 300;
  display: flex; flex-direction: column; gap: 12px;
}
.fab {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 8px 22px -6px rgba(11,11,11,.4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fab svg { width: 27px; height: 27px; fill: currentColor; }
.fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 30px -8px rgba(11,11,11,.5); }
.fab.viber { background: #7360F2; }
.fab.tel { background: var(--accent); }
.fab.mail { background: var(--ink); }
@media (max-width: 700px) {
  .fab-stack { right: 13px; bottom: 13px; gap: 10px; }
  .fab { width: 48px; height: 48px; border-radius: 14px; }
  .fab svg { width: 24px; height: 24px; }
}

/* ---------- Контакти на началната страница ---------- */
.home-contact-grid {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: clamp(18px, 2.4vw, 34px); align-items: stretch;
}
.hc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.home-contact .contact-card {
  background: #fff; border: 1px solid var(--line);
  padding: clamp(18px, 2vw, 26px); display: flex; flex-direction: column; gap: 6px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
a.contact-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 16px 34px -20px rgba(11,11,11,.25); }
.home-contact .cc-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.home-contact .cc-value { font-size: clamp(15px, 1.5vw, 18px); word-break: break-word; }
.home-contact .map-embed {
  width: 100%; min-height: 300px; height: 100%; border: 0;
  filter: grayscale(1); transition: filter .4s;
}
.home-contact .map-embed:hover { filter: grayscale(0); }
@media (max-width: 900px) {
  .home-contact-grid { grid-template-columns: 1fr; }
  .home-contact .map-embed { min-height: 260px; }
}
@media (max-width: 460px) { .hc-cards { grid-template-columns: 1fr; } }

/* ---------- Продуктова страница ---------- */
.detail { padding: clamp(88px, 11vw, 130px) 0 clamp(50px, 7vw, 90px); }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--grey); margin-bottom: 26px; }
.back-link:hover { color: var(--accent); }
.detail-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(26px, 4vw, 58px); align-items: start; }
.detail-gallery { position: sticky; top: 96px; }
.dg-main {
  position: relative; background: var(--bone); border: 1px solid var(--line);
  aspect-ratio: 1 / 1; display: grid; place-items: center; cursor: zoom-in; overflow: hidden;
}
.dg-main img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.dg-main .zoom-hint {
  position: absolute; right: 14px; bottom: 14px; opacity: .85;
  background: rgba(11,11,11,.82); color: #fff; font-size: 12px; padding: 6px 11px;
  border-radius: 20px; letter-spacing: .02em;
}
.dg-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.dg-thumbs button {
  width: 68px; height: 68px; border: 1px solid var(--line); background: #fff;
  padding: 5px; cursor: pointer; transition: border-color .2s, transform .2s;
}
.dg-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.dg-thumbs button.active { border-color: var(--accent); }
.dg-thumbs button:hover { transform: translateY(-2px); }
.detail-info .eyebrow { color: var(--accent); }
.detail-info h1 { font-size: clamp(28px, 4vw, 46px); line-height: 1.06; margin: 10px 0 18px; }
.detail-desc { color: var(--grey); font-size: 16px; line-height: 1.7; max-width: 54ch; }
.detail-chips { margin: 26px 0; }
.chips-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.ds-title { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 28px 0 6px; }
.detail-specs { margin: 0 0 8px; }
.detail-specs > div { display: grid; grid-template-columns: 38% 62%; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail-specs > div:first-child { border-top: 1px solid var(--line); }
.detail-specs dt { color: var(--grey); font-size: 14px; }
.detail-specs dd { font-size: 15px; font-weight: 500; }
.detail-modules { list-style: none; display: grid; gap: 10px; margin: 4px 0 8px; padding: 0; }
.detail-modules li { display: grid; gap: 3px; padding: 13px 15px; background: var(--bone); border-left: 3px solid var(--accent); }
.detail-modules b { font-size: 14.5px; }
.detail-modules span { font-size: 13.5px; color: var(--grey); line-height: 1.5; }
.detail-features { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 9px; }
.detail-features li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.detail-features li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.size-wrap { overflow-x: auto; }
.size-table { width: 100%; border-collapse: collapse; margin: 4px 0 10px; font-size: 14px; min-width: 340px; }
.size-table th, .size-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.size-table thead th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.size-table tbody td:first-child { font-weight: 500; }
.size-table tbody td { color: var(--ink-soft); }
.size-note { font-size: 12.5px; color: var(--grey); margin-top: 6px; }
.detail-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 16px; }
.detail-note { font-size: 13px; color: var(--grey); max-width: 52ch; }
@media (max-width: 820px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-gallery { position: static; }
}
