/* ==========================================================================
   Чех Пласт — CSS на началната страница (front-page)
   Пренесен от одобреното демо home-light-new (май 2026): секции начало, числа,
   продукти, за компанията, услуги, новини, видео, запитване, партньори +
   светлите острови. Общото е в main.css. Зарежда се само на началната.
   ========================================================================== */
/* Light sections — tokenized so theme overrides могат
   да ги превръщат в dark без hardcoded values (Variant A refactor) */
.section--light {
  background: var(--section-light-bg, #F4F6FA);
  color: var(--section-light-ink, #1A2230);
  border-top: 1px solid var(--section-light-border-top, var(--accent));
  border-bottom: 1px solid var(--section-light-border-bottom, #C4CDD8);
  box-shadow: var(--section-light-shadow, inset 0 1px 0 rgba(255,255,255,0.8), inset 0 -40px 80px -40px rgba(46,117,182,0.08));
}
.section--light + .section { border-top: 1px solid var(--border); }
.section--light h2,
.section--light h3,
.section--light h4 { color: var(--section-light-heading, #0E1420); }
.section--light .section-label { color: var(--section-light-label, #5A6478); }
.section--light .section-label .num { color: var(--accent); }
.section--light .section-label .rule { background: var(--section-light-rule, #B8C2CE); }
.section--light .section-label .tag { color: var(--section-light-tag, #3A4557); }
.section--light .cat-head .right { color: var(--section-light-muted, #4A5568); }
.section--light .lede { color: var(--section-light-muted, #3A4557); }

/* cards in section--light — tokenized */
.section--light .cat-card {
  background: var(--section-light-card-bg, #fff);
  border-color: var(--section-light-card-border, #D0D7E0);
  box-shadow: var(--section-light-card-shadow, 0 2px 6px rgba(20,30,50,0.05), 0 20px 48px -18px rgba(20,30,50,0.25));
}
.section--light .cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--section-light-card-shadow-hover, 0 4px 10px rgba(20,30,50,0.08), 0 38px 72px -20px rgba(20,30,50,0.38), 0 0 0 1px var(--accent));
}
.section--light .cat-card::before { border-top-color: var(--section-light-bg, #F4F6FA); }
.section--light .cat-card .corner-mark { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.6); }
.section--light .cat-card .num { color: rgba(255,255,255,0.8); text-shadow: 0 1px 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.6); }
.section--light .cat-card .gloss {
  /* по-лек от демото: снимката остава видима, текстът има своя сянка (решение 03.09) */
  background: linear-gradient(180deg,
    rgba(14,20,32,0.08) 0%,
    rgba(14,20,32,0.18) 40%,
    rgba(14,20,32,0.42) 65%,
    rgba(14,20,32,0.66) 85%,
    rgba(14,20,32,0.80) 100%);
}
.section--light .cat-card h3,
.section--light .cat-card .meta-row { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,0.9), 0 1px 4px rgba(0,0,0,0.8); }

.section--light .news-card {
  background: var(--section-light-card-bg, #fff);
  border-color: var(--section-light-card-border, #D0D7E0);
  box-shadow: var(--section-light-card-shadow, 0 2px 6px rgba(20,30,50,0.05), 0 16px 40px -18px rgba(20,30,50,0.24));
}
.section--light .news-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: var(--section-light-card-shadow-hover, 0 4px 10px rgba(20,30,50,0.08), 0 32px 64px -22px rgba(20,30,50,0.35));
}
.section--light .news-card .n-body { color: var(--section-light-ink, #1A2230); }
.section--light .news-card h3 { color: var(--section-light-heading, #0E1420); }
.section--light .news-card .n-date { color: var(--section-light-label, #6B7789); }
.section--light .news-card .n-arrow { color: var(--accent); }
.section--light .btn--ghost { border-color: var(--section-light-border-bottom, #C4CDD8); color: var(--section-light-ink, #1A2230); }
.section--light .btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.section h2.big {
  font-size: 60px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 860px;
}
.section h2.big em {
  font-style: normal;
  color: var(--accent);
}
.section .lede {
  color: var(--ink-dim);
  font-size: 17px;
  max-width: 640px;
  margin-top: 22px;
  line-height: 1.6;
}

/* placeholder frames */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.02) 0px,
      rgba(255,255,255,0.02) 10px,
      rgba(255,255,255,0.035) 10px,
      rgba(255,255,255,0.035) 20px);
  border: 1px solid var(--border);
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  top: 12px; left: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: rgba(14,17,22,0.7);
  padding: 4px 8px;
  border: 1px solid var(--border);
}
.ph--img { background: #0E1116; }
.ph--img::after { display: none; }

/* ======= HERO ======= */
/* Hero — trimmed ~18% vertical (620→510 min, 78vh→64vh, 820→672 max) */
.hero {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  padding-bottom: 20px;
}
.hero::before {
  /* cinematic vignette overlay */
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 0% 50%, rgba(10,14,20,0.85) 0%, rgba(10,14,20,0.2) 45%, transparent 70%),
    linear-gradient(180deg, transparent 60%, rgba(14,17,22,0.6) 100%);
  z-index: 2;
  pointer-events: none;
}
.hero::after {
  /* accent light beam from right */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 100% at 90% 30%, rgba(46,117,182,0.18) 0%, transparent 60%);
  z-index: 2;
  pointer-events: none;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, #1A202B 0%, #1E2530 100%);
}
.hero-bg .ph-img {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg,
      rgba(255,255,255,0.015) 0px,
      rgba(255,255,255,0.015) 2px,
      transparent 2px,
      transparent 80px),
    repeating-linear-gradient(180deg,
      rgba(255,255,255,0.015) 0px,
      rgba(255,255,255,0.015) 2px,
      transparent 2px,
      transparent 80px);
  mix-blend-mode: screen;
}
/* removed monospace annotation — premium feel */

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 28px 0;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--border-2);
  background: rgba(22,27,34,0.6);
  border-radius: 40px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  max-width: 100%;
}
.hero-eyebrow span:not(.chip) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.hero-eyebrow .chip {
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 40px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(36px, 5.2vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-top: 22px;
  max-width: 900px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .outline {
  -webkit-text-stroke: 1.5px var(--ink-dim);
  color: transparent;
}
.hero .hero-lede {
  margin-top: 20px;
  max-width: 560px;
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.6;
  text-shadow: 0 1px 20px rgba(0,0,0,0.6);
}
.hero-cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-meta {
  position: absolute;
  left: 40px; top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex; flex-direction: column; gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-meta .vert {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex; align-items: center; gap: 16px;
}
.hero-meta .vert::before {
  content: ''; width: 1px; height: 40px; background: var(--border-2);
}

/* hero pager — minimal cinematic slider control */
.hero-pager {
  position: relative;
  z-index: 3;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 22px;
  flex-wrap: nowrap;
  overflow: visible;
}
.hero-pager-info {
  display: flex; align-items: center; gap: 20px;
  color: var(--ink);
}
.hero-pager-info .mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.hero-pager-info .pager-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.hero-pager-dots { display: flex; gap: 10px; margin-left: auto; }
.hero-pager-dots .dot {
  width: 28px; height: 4px;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: all .2s;
}
.hero-pager-dots .dot.active { background: var(--accent); width: 48px; }
.hero-pager-dots .dot:hover { background: rgba(255,255,255,0.5); }

/* hero-statband — acts as separator; next section sits immediately below with its own padding */
.hero-statband {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

/* After stat band, next section shouldn't double-border */
.hero-statband + .section { border-top: 0; padding-top: 60px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero-stat {
  padding: 8px 32px;
  border-right: 1px solid var(--border);
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child { border-right: 0; }
.hero-stat .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 42px;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.15;
  overflow: visible;
}
.hero-stat .num sup { color: var(--accent); font-size: 20px; top: -14px; position: relative; margin-left: 4px; }
.hero-stat .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 6px;
}

/* hero thumbs — legacy, hidden */
.hero-thumbs { display: none; }
.hero-nav {
  display: flex; gap: 8px; align-self: center;
  margin-left: 8px;
  flex-shrink: 0;
}
.hero-nav button {
  width: 44px; height: 44px;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #FFFFFF;
  background: rgba(255,255,255,0.05);
  display: grid; place-items: center;
  transition: all .15s;
}
.hero-nav button:hover { border-color: var(--accent); color: var(--accent); background: rgba(46,117,182,0.1); }

/* ======= CATEGORIES ======= */
.cat-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px; align-items: end;
  margin-bottom: 40px;
}
.cat-head .right { color: var(--ink-dim); max-width: 420px; font-size: 15px; }

.cat-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-template-rows: 320px 260px;
  gap: 20px;
}
/* Category card — elevated depth + richer hover (lift + accent border + image zoom) */
.cat-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s cubic-bezier(.2,.7,.2,1), border-color .25s ease;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03), 0 14px 36px -14px rgba(0,0,0,0.5);
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 34px 72px -20px rgba(0,0,0,0.72), 0 0 0 1px var(--accent);
}
.cat-card .bg {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.02) 0px,
      rgba(255,255,255,0.02) 10px,
      rgba(255,255,255,0.04) 10px,
      rgba(255,255,255,0.04) 20px);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.cat-card .gloss {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(14,17,22,0.10) 0%,
    rgba(14,17,22,0.25) 30%,
    rgba(14,17,22,0.60) 55%,
    rgba(14,17,22,0.85) 75%,
    rgba(14,17,22,0.97) 100%);
  pointer-events: none;
  z-index: 2;
}
.cat-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-top: 40px solid var(--bg);
  /* cut corner color matches page bg */
  border-left: 40px solid transparent;
  z-index: 3;
  transition: all .3s;
}
.cat-card .corner-mark {
  position: absolute;
  top: 10px; right: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.85);
  z-index: 4;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5);
}
.cat-card:hover { border-color: var(--accent); }
.cat-card:hover .bg { transform: scale(1.08); }
.cat-card:hover::before { border-top-color: var(--accent); }
.cat-card:hover .corner-mark { color: #fff; }

.cat-card .num {
  position: relative; z-index: 4;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  margin-bottom: auto;
  padding-top: 4px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5);
}
.cat-card h3 {
  position: relative; z-index: 4;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.018em;
  margin-top: 14px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.9), 0 1px 4px rgba(0,0,0,0.7), 0 0 40px rgba(0,0,0,0.5);
}
.cat-card .meta-row {
  position: relative; z-index: 4;
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.cat-card .meta-row .arrow {
  width: 32px; height: 32px;
  border: 1px solid var(--border-2);
  display: grid; place-items: center;
  transition: all .25s;
}
.cat-card:hover .meta-row .arrow { background: var(--accent); border-color: var(--accent); color: #fff; }
.cat-card.feat { grid-row: span 2; grid-column: 1; }
/* При 4 плочки (1 голяма + 3): последната заема двете колони на втория ред, без празна клетка */
.cat-grid.tiles-4 .cat-card:last-child { grid-column: 2 / span 2; }
.cat-card.feat h3 { font-size: 46px; }

.cat-grid {
  grid-template-rows: 340px 280px;
}

/* ======= ABOUT ======= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: start;
}
.about-media {
  position: relative;
  height: 560px;
}
.about-media .ph-main { position: absolute; inset: 0 60px 60px 0; }
.about-media .ph-accent {
  position: absolute;
  right: 0; bottom: 0;
  width: 55%; height: 220px;
  border: 1px solid var(--accent);
  background: rgba(46,117,182,0.08);
}
.about-media .ph-accent {
  box-shadow: inset 0 0 0 1px var(--accent);
}
.about-media .tag {
  position: absolute;
  top: -1px; left: -1px;
  background: var(--accent); color: #fff;
  padding: 10px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 2;
}

.about-copy p {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.7;
  margin-top: 22px;
}
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  margin-top: 40px;
  border: 1px solid var(--border);
}
.about-feature {
  background: var(--bg);
  padding: 24px;
}
.about-feature .k {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 28px;
  color: var(--ink);
}
.about-feature .v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 6px;
}
.about-cta { margin-top: 36px; display: flex; gap: 14px; }

/* ======= SERVICES ======= */
.srv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}
.srv-card {
  position: relative;
  padding: 48px 36px;
  border-right: 1px solid var(--border);
  transition: all .3s;
  background: var(--bg);
}
.srv-card:last-child { border-right: 0; }
.srv-card:hover {
  background: var(--surface);
  box-shadow: inset 0 2px 0 var(--accent);
}
.srv-card .ico {
  width: 56px; height: 56px;
  border: 1px solid var(--border-2);
  display: grid; place-items: center;
  color: var(--accent);
  margin-bottom: 28px;
  transition: all .25s;
}
.srv-card:hover .ico { border-color: var(--accent); background: rgba(46,117,182,0.08); }
.srv-card h3 {
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.srv-card p { color: var(--ink-dim); font-size: 14px; line-height: 1.6; }
.srv-card .plus {
  position: absolute;
  top: 32px; right: 32px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  color: var(--ink-mute);
  font-size: 18px;
  transition: all .25s;
}
.srv-card:hover .plus { color: var(--accent); transform: rotate(90deg); }

/* ======= NEWS ======= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.news-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all .3s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03), 0 10px 28px -16px rgba(0,0,0,0.4);
}
.news-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 24px 50px -20px rgba(0,0,0,0.6);
}
.news-card .n-img { height: 180px; position: relative; border-bottom: 1px solid var(--border); }
.news-card .n-body { padding: 22px 20px 24px; flex: 1; display: flex; flex-direction: column; }
.news-card .n-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.news-card .n-date .dot { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
.news-card h3 {
  font-size: 17px; font-weight: 600; line-height: 1.35;
  letter-spacing: -0.005em;
  margin-bottom: 12px;
}
.news-card .n-arrow {
  margin-top: auto;
  display: flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 18px;
  transition: color .2s;
}
.news-card:hover .n-arrow { color: var(--accent); }

/* ======= VIDEOS ======= */
.vid-head-row {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 40px;
}
.vid-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
  height: 480px;
}
.vid-card {
  position: relative;
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  box-shadow: 0 12px 32px -16px rgba(0,0,0,0.5);
  transition: all .35s ease;
}
.vid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px -20px rgba(0,0,0,0.7);
}
.vid-card .bg {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.02) 0px,
      rgba(255,255,255,0.02) 10px,
      rgba(255,255,255,0.04) 10px,
      rgba(255,255,255,0.04) 20px);
  transition: transform .5s;
}
.vid-card:hover .bg { transform: scale(1.04); }
/* Видео модал (07.09): видеото се гледа в сайта, не в YouTube */
.video-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; }
.video-modal[hidden] { display: none; }
.vm-backdrop { position: absolute; inset: 0; background: rgba(8,11,16,0.86); }
.vm-box { position: relative; width: min(1000px, 100%); background: #000; border: 1px solid var(--border-2); box-shadow: 0 40px 100px -30px rgba(0,0,0,0.9); }
.vm-frame { aspect-ratio: 16 / 9; }
.vm-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.vm-close { position: absolute; top: -44px; right: 0; width: 40px; height: 40px; background: var(--surface); border: 1px solid var(--border-2); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; transition: all .15s; }
.vm-close:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) { .video-modal { padding: 12px; } .vm-close { top: -40px; width: 36px; height: 36px; } }
.vid-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,37,48,0.2) 0%, rgba(30,37,48,0.92) 100%);
}
.vid-card .play {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(46,117,182,0.12);
  border: 1px solid var(--accent);
  display: grid; place-items: center;
  color: var(--accent);
  transition: all .25s;
}
.vid-card:hover .play {
  background: var(--accent); color: #fff;
  transform: translate(-50%, -50%) scale(1.08);
}
.vid-card .info {
  position: absolute;
  left: 24px; right: 24px; bottom: 24px;
}
.vid-card .v-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
  display: flex; gap: 14px; align-items: center;
}
.vid-card .v-meta .duration { color: var(--accent); }
.vid-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.vid-card .corner-num {
  position: absolute;
  top: 20px; right: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
}

/* ======= CONTACT ======= */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 30px 80px -30px rgba(0,0,0,0.6);
}
.contact-info {
  padding: 60px;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
}
.contact-info h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.contact-info h2 .accent { color: var(--accent); }
.contact-info p { color: var(--ink-dim); margin-bottom: 36px; line-height: 1.6; }
.contact-rows { display: flex; flex-direction: column; gap: 18px; margin-bottom: 36px; }
.contact-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: start;
}
.contact-row .ico { color: var(--accent); padding-top: 2px; }
.contact-row .k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.contact-row .v { color: var(--ink); font-size: 15px; }
.contact-map {
  border: 1px solid var(--border);
  height: 180px;
  position: relative;
  background: var(--surface);
}
.contact-map .mapgrid {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent 49.5%, var(--accent) 49.5%, var(--accent) 50.5%, transparent 50.5%) 30px 0 / 80px 100%,
    linear-gradient(90deg, transparent 49.5%, var(--border-2) 49.5%, var(--border-2) 50.5%, transparent 50.5%) 0 0 / 40px 100%,
    linear-gradient(180deg, transparent 49.5%, var(--border-2) 49.5%, var(--border-2) 50.5%, transparent 50.5%) 0 0 / 100% 40px;
  opacity: 0.5;
}
.contact-map .pin {
  position: absolute;
  top: 50%; left: 40%; transform: translate(-50%, -50%);
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(46,117,182,0.25), 0 0 0 12px rgba(46,117,182,0.15);
}
.contact-map .pin-label {
  position: absolute;
  top: 58%; left: 40%; transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: var(--bg);
  padding: 4px 8px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.contact-form { padding: 60px; }
.form-head {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.contact-form h3 {
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  line-height: 1.2;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12px; color: var(--ink-dim);
  margin: 8px 0 20px;
  line-height: 1.5;
}
.checkbox input { margin-top: 3px; accent-color: var(--accent); }

/* ======= PARTNERS ======= */
.partners {
  padding: 60px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.partners-head {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 36px;
}
.partners-head .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.partners-head .rule { flex: 1; height: 1px; background: var(--border-2); }
.partners-head .cnt { color: var(--accent); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; }

.partner-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  background: var(--surface);
}
.partner-cell {
  height: 110px;
  border-right: 1px solid var(--border);
  display: grid; place-items: center;
  padding: 20px;
  transition: background .2s;
  position: relative;
}
.partner-cell:last-child { border-right: 0; }
.partner-cell:hover { background: var(--surface-2); }
.partner-cell .logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
  transition: color .2s;
}
.partner-cell:hover .logo { color: var(--ink); }
.partner-cell .tag {
  position: absolute;
  top: 8px; left: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}

@media (max-width: 1100px) {
  :root { --gutter: 28px; }
  .hero { height: auto; min-height: 460px; padding: 52px 0; }
  .hero h1 { font-size: clamp(36px, 7vw, 56px); margin-top: 18px; }
  .hero-grid { padding: 20px 0; gap: 28px; }
  .hero .hero-lede { margin-top: 16px; font-size: 15px; }
  .hero-cta { margin-top: 22px; }
  .hero-meta { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat {
    border-right: none;
    padding: 16px 20px !important;
    position: relative;
  }
  .hero-stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .hero-stat:nth-child(1), .hero-stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .hero-stat .num { font-size: 34px; }
  .hero-statband { padding: 20px 0; }
  .cat-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 16px; }
  .cat-card { padding: 26px; }
  .cat-card.feat { grid-column: span 2; grid-row: auto; min-height: 280px; }
  .cat-grid.tiles-4 .cat-card:last-child { grid-column: span 2; }
  .cat-card h3 { font-size: 24px; }
  .cat-card.feat h3 { font-size: 34px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-media { height: 380px; }
  .srv-grid { grid-template-columns: 1fr; }
  .srv-card { border-right: 0; border-bottom: 1px solid var(--border); padding: 36px 28px; }
  .news-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .vid-grid { grid-template-columns: 1fr; height: auto; gap: 16px; }
  .vid-card { height: 260px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-info, .contact-form { padding: 36px 28px; }
  .partner-row { grid-template-columns: repeat(3, 1fr); }
  .partner-cell:nth-child(3n) { border-right: 0; }
  .partner-cell { border-bottom: 1px solid var(--border); }
  .section { padding: 52px 0; }
  .section--tight { padding: 40px 0; }
  .hero-statband + .section { padding-top: 44px; }
  .section h2.big { font-size: 38px; }
  .cat-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 28px; }
  .vid-head-row { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }



  /* Hero — tight phone layout */
  .hero { min-height: 420px; padding: 40px 0 32px; }
  .hero h1 { font-size: clamp(30px, 8.5vw, 42px); margin-top: 16px; letter-spacing: -0.03em; }
  .hero-grid { padding: 12px 0; }
  .hero-eyebrow { font-size: 10px; padding: 6px 10px 6px 6px; flex-wrap: wrap; }
  .hero-eyebrow .chip { padding: 3px 8px; }
  .hero .hero-lede { font-size: 14px; margin-top: 14px; }
  .hero-cta { margin-top: 18px; gap: 10px; }
  .hero-cta .btn { padding: 13px 18px; font-size: 12px; flex: 1 1 140px; justify-content: center; }

  /* Hero pager — compact stacked layout, hide prev/next */
  .hero-pager {
    gap: 14px;
    padding-top: 14px;
    margin-top: 18px;
    align-items: flex-start;
  }
  .hero-pager-info { gap: 12px; flex: 1 1 100%; }
  .hero-pager-info .mono { font-size: 11px; }
  .hero-pager-info .pager-title { font-size: 13px; }
  .hero-pager-dots { margin-left: 0; flex: 1 1 100%; gap: 6px; }
  .hero-pager-dots .dot { width: 20px; }
  .hero-pager-dots .dot.active { width: 32px; }
  .hero-nav { display: none; }

  /* Stats — 2×2 grid, smaller numbers so 12 400 fits */
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .hero-stat { padding: 14px 14px !important; }
  .hero-stat .num { font-size: 26px; letter-spacing: -0.02em; }
  .hero-stat .num sup { font-size: 13px; top: -8px; margin-left: 2px; }
  .hero-stat .lbl { font-size: 9px; letter-spacing: 0.1em; margin-top: 4px; }

  /* Sections — mobile spacing */
  .section { padding: 44px 0; }
  .section--tight { padding: 32px 0; }
  .hero-statband + .section { padding-top: 40px; }
  .section h2.big { font-size: 28px; max-width: 100%; }
  .section .lede { font-size: 15px; margin-top: 16px; }

  /* Section labels — tighter */
  .section-label { margin-bottom: 18px; font-size: 11px; }
  .section-label .rule { flex-basis: 24px; }

  /* Categories — single column */
  .cat-grid { grid-template-columns: 1fr; grid-template-rows: auto; gap: 14px; }
  .cat-card, .cat-card.feat { grid-column: auto; min-height: 220px; padding: 22px; }
  .cat-card h3, .cat-card.feat h3 { font-size: 22px; }

  /* News */
  .news-grid { grid-template-columns: 1fr; }

  /* About */
  .about-media { height: 300px; }
  .about-features { grid-template-columns: 1fr; }
  .about-feature { padding: 20px; }
  .about-feature .k { font-size: 22px; }
  .about-cta { flex-direction: column; align-items: stretch; }
  .about-cta .btn { justify-content: center; }

  /* Services */
  .srv-card { padding: 30px 22px; }

  /* Videos */
  .vid-card { height: 220px; }
  .vid-card .play { width: 58px; height: 58px; }
  .vid-card h3 { font-size: 18px; }

  /* Contact */
  .contact-info h2 { font-size: 30px; }
  .contact-form h3 { font-size: 22px; }
  .contact-info, .contact-form { padding: 28px 20px; }
  .contact-map { height: 140px; }

  /* Partners */
  .partner-row { grid-template-columns: 1fr 1fr; }
  .partner-cell:nth-child(2n) { border-right: 0; }
  .partner-cell { height: 90px; }

  /* Forms */
  .field-row { grid-template-columns: 1fr; }

  /* Footer */
}

@media (max-width: 380px) {
  .hero h1 { font-size: 28px; }
  .hero-stat .num { font-size: 22px; }
  .hero-stat .lbl { font-size: 8.5px; }
  .hero-cta .btn { padding: 12px 14px; font-size: 11px; }
}
/* ==========================================================
   Чех Пласт — DARK theme (pure)
   Характер: всички секции тъмни; НЯМА светли островчета
   Зарежда се СЛЕД styles-base.css
   ========================================================== */

:root {
  --accent: #2E75B6;
  --accent-hover: #3A8ACC;
  --accent-ink: #0A1A28;

  /* Dark surface palette */
  --bg:        #1E2530;
  --bg-2:      #252D3A;
  --surface:   #2B3442;
  --surface-2: #323C4C;
  --border:    #3A4556;
  --border-2:  #485264;

  /* Ink — bumped contrast за WCAG AA */
  --ink:       #F5F7FB;
  --ink-dim:   #CAD3DD;
  --ink-mute:  #98A2B0;

  /* .section--light override → dark surface (fixes Categories/News bug) */
  --section-light-bg: var(--bg-2);
  --section-light-ink: var(--ink);
  --section-light-heading: var(--ink);
  --section-light-label: var(--ink-mute);
  --section-light-muted: var(--ink-dim);
  --section-light-tag: var(--ink-dim);
  --section-light-rule: var(--border-2);
  --section-light-border-top: var(--border);
  --section-light-border-bottom: var(--border);
  --section-light-shadow: none;
  --section-light-card-bg: var(--surface);
  --section-light-card-border: var(--border);
  --section-light-card-shadow: 0 1px 0 rgba(255,255,255,0.03), 0 14px 36px -14px rgba(0,0,0,0.5);
  --section-light-card-shadow-hover: 0 1px 0 rgba(255,255,255,0.06), 0 34px 72px -20px rgba(0,0,0,0.72), 0 0 0 1px var(--accent);
}

/* Paragraph-heavy selectors — extra contrast bump (WCAG AA) */
.hero .hero-lede,
.section .lede,
.news-card h3,
.srv-card p,
.about-copy p,
.contact-info p {
  color: var(--ink-dim);
}

/* Placeholder label contrast на dark */
.ph::after { color: var(--ink-mute); }

/* ==========================================================
   .section--light оверрайди (Variant B — explicit)
   Token fallback-ът някога забива за multi-value
   shadow lists, така че override-ваме директно в dark.css.
   Това прави Categories и News секциите тъмни.
   ========================================================== */
.section--light {
  background: var(--bg-2);
  color: var(--ink);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}
.section--light h2,
.section--light h3,
.section--light h4 { color: var(--ink); }
.section--light .section-label { color: var(--ink-mute); }
.section--light .section-label .num { color: var(--accent); }
.section--light .section-label .rule { background: var(--border-2); }
.section--light .section-label .tag { color: var(--ink-dim); }
.section--light .cat-head .right { color: var(--ink-dim); }
.section--light .lede { color: var(--ink-dim); }

/* Categories cards — тъмни */
.section--light .cat-card {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.03), 0 14px 36px -14px rgba(0,0,0,0.5);
}
.section--light .cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 34px 72px -20px rgba(0,0,0,0.72), 0 0 0 1px var(--accent);
  border-color: var(--accent);
}
.section--light .cat-card::before { border-top-color: var(--bg-2); }
.section--light .cat-card:hover::before { border-top-color: var(--accent); }

/* News cards — тъмни */
.section--light .news-card {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.03), 0 10px 28px -16px rgba(0,0,0,0.4);
}
.section--light .news-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 28px 56px -22px rgba(0,0,0,0.65);
}
.section--light .news-card .n-body { color: var(--ink); }
.section--light .news-card h3 { color: var(--ink); }
.section--light .news-card .n-date { color: var(--ink-mute); }
.section--light .news-card .n-arrow { color: var(--ink-mute); }
.section--light .news-card:hover .n-arrow { color: var(--accent); }

/* Ghost button във секции .section--light */
.section--light .btn--ghost { border-color: var(--border-2); color: var(--ink); }
.section--light .btn--ghost:hover { border-color: var(--accent); color: var(--accent); }


/* ==========================================================
   Чех Пласт — LIGHT overlay (MINIMAL — v3)
   Стратегия: ТЪМЕН сайт с ДВА светли островчета.
   Dark дава всичко. Тук инверсираме САМО:
   - Categories (section--light, id=products) — светла
   - News (section--light, id=news) — светла
   Всичко останало (header, hero, About, Services, Videos,
   Contact, Partners, Footer, topbar) остава ТЪМНО.
   ========================================================== */

body {
  --light-bg:        #F4F6FA;
  --light-surface:   #FFFFFF;
  --light-border:    #D8DEE7;
  --light-border-2:  #B9C2CE;
  --light-ink:       #1A2230;
  --light-ink-dim:   #3A4556;
  --light-ink-mute:  #6B7688;
}

/* ===== CATEGORIES + NEWS (.section--light) — светла ===== */
.section--light {
  background: var(--light-bg) !important;
  color: var(--light-ink) !important;
  border-top: 1px solid var(--light-border) !important;
  border-bottom: 1px solid var(--light-border) !important;
  box-shadow: none !important;
}
.section--light h2, .section--light h3, .section--light h4 { color: var(--light-ink) !important; }
.section--light .section-label { color: var(--light-ink-mute) !important; }
.section--light .section-label .num { color: var(--accent) !important; }
.section--light .section-label .rule { background: var(--light-border-2) !important; }
.section--light .section-label .tag { color: var(--light-ink-dim) !important; }
.section--light .lede { color: var(--light-ink-dim) !important; }
.section--light .cat-head .right { color: var(--light-ink-dim) !important; }

/* Categories cards — бели */
.section--light .cat-card {
  background: var(--light-surface) !important;
  border-color: var(--light-border) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,1), 0 10px 30px -12px rgba(20,30,50,0.18) !important;
}
.section--light .cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1px 0 rgba(255,255,255,1), 0 28px 60px -18px rgba(20,30,50,0.32), 0 0 0 1px var(--accent) !important;
  border-color: var(--accent) !important;
}
.section--light .cat-card::before { border-top-color: var(--light-bg) !important; }
.section--light .cat-card:hover::before { border-top-color: var(--accent) !important; }
.section--light .cat-card .gloss {
  /* по-лек от демото: снимката остава видима, текстът има своя сянка (решение 03.09) */
  background: linear-gradient(180deg,
    rgba(10,14,20,0.08) 0%,
    rgba(10,14,20,0.18) 40%,
    rgba(10,14,20,0.42) 65%,
    rgba(10,14,20,0.66) 85%,
    rgba(10,14,20,0.80) 100%) !important;
}
.section--light .cat-card h3 { color: #ffffff !important; text-shadow: 0 2px 16px rgba(0,0,0,0.95), 0 1px 4px rgba(0,0,0,0.9) !important; }
.section--light .cat-card .meta-row { color: #ffffff !important; text-shadow: 0 1px 8px rgba(0,0,0,0.9) !important; }
.section--light .cat-card .corner-mark { color: #ffffff !important; text-shadow: 0 1px 8px rgba(0,0,0,0.9) !important; }
.section--light .cat-card .num { color: rgba(255,255,255,0.85) !important; text-shadow: 0 1px 8px rgba(0,0,0,0.9) !important; }

/* News cards — бели */
.section--light .news-card {
  background: var(--light-surface) !important;
  border-color: var(--light-border) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,1), 0 8px 24px -12px rgba(20,30,50,0.15) !important;
}
.section--light .news-card:hover {
  border-color: var(--accent) !important;
  transform: translateY(-5px);
  box-shadow: 0 1px 0 rgba(255,255,255,1), 0 24px 48px -20px rgba(20,30,50,0.28) !important;
}
.section--light .news-card h3 { color: var(--light-ink) !important; }
.section--light .news-card .n-body { color: var(--light-ink) !important; }
.section--light .news-card .n-date { color: var(--light-ink-mute) !important; }
.section--light .news-card .n-arrow { color: var(--light-ink-mute) !important; }
.section--light .news-card:hover .n-arrow { color: var(--accent) !important; }

.section--light .btn--ghost { border-color: var(--light-border-2) !important; color: var(--light-ink) !important; }
.section--light .btn--ghost:hover { border-color: var(--accent) !important; color: var(--accent) !important; }

.section--light .ph::after { color: var(--light-ink-mute) !important; }




/* Адаптации за WordPress: плочките и видеата са връзки; статус на формата */
a.cat-card, a.vid-card { display: block; color: inherit; }
.news-card h3 a { color: inherit; }
.contact-row .v a { color: inherit; }
.contact-row .v a:hover { color: var(--accent); }
.form-status { font-size: 13px; margin: 0 0 12px; padding: 10px 12px; border-radius: var(--radius); }
.form-status.ok { background: rgba(46,117,182,0.12); border: 1px solid var(--accent); }
.form-status.err { background: rgba(216,74,74,0.12); border: 1px solid var(--danger); }
