/* ==========================================================================
   Gavazovi Modern — Design System
   Чист, професионален, модерен дизайн за учебен център.
   ========================================================================== */

/* ---------- Design tokens — Вариант 4: Редакционна елегантност ---------- */
:root {
  /* Цветова палитра — кремаво/беж с кафяв accent */
  --brand:        #1e1b16;   /* мастилен ink — основен */
  --brand-dark:   #100e0a;
  --brand-light:  #f6efe0;
  --accent:       #8a6a3c;   /* приглушено кафяво */
  --accent-dark:  #6d5230;

  --ink:          #1e1b16;
  --ink-soft:     #6c655a;
  --ink-faint:    #9c907b;
  --line:         #d6c9ad;
  --bg:           #e9dcc4;   /* основен кремав фон */
  --surface:      #f6efe0;   /* по-светъл панел */
  --surface-2:    #eee3cf;

  /* Типография — editorial */
  --font-display: "EB Garamond", "Georgia", "Times New Roman", serif;
  --font-sans:    "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Радиуси и сенки */
  --radius:    4px;          /* почти без заоблени ъгли в editorial стил */
  --radius-sm: 2px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(30, 27, 22, .06), 0 1px 3px rgba(30, 27, 22, .05);
  --shadow:    0 14px 40px -16px rgba(30, 27, 22, .25);
  --shadow-lg: 0 30px 60px -20px rgba(30, 27, 22, .35);

  /* Лейаут */
  --container: 1140px;
  --gap:       clamp(1rem, 3vw, 2rem);
  --section-y: clamp(4rem, 9vw, 8rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }
ul, ol { padding-left: 1.2em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: .005em;
  color: var(--ink);
}
h1 { font-size: clamp(3rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h3 { font-size: 1.5rem; }
p  { color: var(--ink-soft); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section   { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.section__head { max-width: 760px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); text-align: center; }
.section__head p { font-size: 1.075rem; margin-top: .75rem; }
.eyebrow,
.kicker {
  display: inline-block;
  font-family: var(--font-sans); font-weight: 500;
  font-size: .74rem; letter-spacing: .32em;
  text-transform: uppercase; color: var(--accent);
  background: transparent; padding: 0; border-radius: 0; margin-bottom: 1rem;
}
.rule { width: 46px; height: 1px; background: var(--accent); margin: 1.2rem 0; }
.rule.center { margin: 1.2rem auto; }
.grid { display: grid; gap: var(--gap); }
.text-center { text-align: center; }

/* ---------- Buttons — editorial square ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--ink);
  display: inline-flex; align-items: center; gap: .6rem; justify-content: center;
  padding: .95rem 2rem; font-family: var(--font-sans); font-weight: 400;
  font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-border); border-radius: 0;
  cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease;
  box-shadow: none;
}
.btn { white-space: nowrap; }
.btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--accent  { --btn-bg: var(--ink); --btn-fg: var(--bg); --btn-border: var(--ink); }
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--bg); }
.btn--ghost   { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--light   { --btn-bg: transparent; --btn-fg: var(--bg); --btn-border: var(--bg); }
.btn--light:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn--lg { padding: 1.1rem 2.4rem; font-size: .88rem; }

/* ==========================================================================
   Header — editorial вариант 4
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 244, 238, .85);
  /* backdrop-filter премахнат — създаваше containing block за position:fixed children */
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
/* Backdrop-filter само когато менюто НЕ е отворено */
body:not(.nav-open) .site-header {
  backdrop-filter: saturate(180%) blur(12px);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: none; }

/* Slim topbar (запазваме контактите видими, но в editorial стил) */
.topbar {
  background: var(--ink); color: #d8cfb8;
  font-size: .75rem; letter-spacing: .04em;
}
.topbar .container { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; justify-content: space-between; padding-block: .45rem; }
.topbar a { color: #f6efe0; font-weight: 400; }
.topbar a:hover { color: var(--accent); }
.topbar__contacts { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.topbar__item { display: inline-flex; align-items: center; gap: .4rem; }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; padding-block: 1.3rem;
}
.brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--ink); }
.brand img { height: 40px; width: auto; }
.brand__name { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name strong {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.5rem; letter-spacing: .02em;
}
.brand__name span {
  font-family: var(--font-sans); font-size: .62rem;
  font-weight: 400; color: var(--ink-faint);
  letter-spacing: .28em; text-transform: uppercase;
}

.menu { display: flex; align-items: center; gap: 2rem; list-style: none; padding: 0; margin: 0; }
.menu a {
  display: inline-block; padding: .3rem 0;
  font-family: var(--font-sans); font-weight: 400; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
  border-radius: 0; background: transparent;
  position: relative; transition: color .2s ease;
}
.menu a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--accent);
  transition: width .3s ease;
}
.menu a:hover, .menu .current-menu-item > a {
  background: transparent; color: var(--ink);
}
.menu a:hover::after, .menu .current-menu-item > a::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: .6rem; }

/* ---------- Dropdown sub-menu (desktop) ---------- */
.menu .menu-item-has-children { position: relative; }
.menu .menu-item-has-children > a::after {
  content: ""; display: inline-block; margin-left: .35rem; vertical-align: middle;
  width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 4px solid currentColor; opacity: .55;
  transition: transform .2s ease;
}
.menu .menu-item-has-children:hover > a::after,
.menu .menu-item-has-children:focus-within > a::after { transform: rotate(180deg); opacity: 1; }
.menu .sub-menu {
  position: absolute; top: calc(100% + .35rem); left: 0;
  list-style: none; padding: .8rem; margin: 0;
  min-width: 240px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 0;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  z-index: 110;
}
.menu .sub-menu::before {
  content: ""; position: absolute; inset: -.5rem 0 100% 0; /* мост — закрива gap-а */
}
.menu .menu-item-has-children:hover > .sub-menu,
.menu .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear 0s;
}
.menu .sub-menu li { margin: 0; }
.menu .sub-menu a {
  padding: .65rem .85rem; border-radius: 0; white-space: nowrap;
  font-size: .78rem; font-weight: 400; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft);
}
.menu .sub-menu a::after { display: none; }
.menu .sub-menu a:hover, .menu .sub-menu .current-menu-item > a {
  background: var(--bg); color: var(--ink);
}

.nav-toggle {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--ink); border-radius: 0;
  background: transparent; cursor: pointer; padding: 0; place-items: center;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
  position: relative; z-index: 115;
}
.nav-toggle:hover { background: var(--ink); }
.nav-toggle:hover span,
.nav-toggle:hover span::before,
.nav-toggle:hover span::after { background: var(--bg); }
/* Когато менюто е отворено — скриваме хамбургера; close X идва от .menu-close вътре в panel-а */
.nav-open .nav-toggle { visibility: hidden; }

/* Close chevron бутон вътре в menu panel-а — горен десен ъгъл (mobile only) */
.menu-close {
  display: none;
  position: absolute;
  top: .6rem; right: .6rem;
  width: 44px; height: 44px;
  background: var(--surface); border: 1px solid var(--line); padding: 0; margin: 0;
  cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
  border-radius: 0; transition: color .2s ease, background .2s ease, border-color .2s ease;
  z-index: 10;
}
.menu-close:hover { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.menu-close svg { display: block; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease; position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; } .nav-toggle span::after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Hero — editorial
   ========================================================================== */
.hero { position: relative; background: var(--bg); }
.hero .container {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem);
}
.hero__title { margin: 1.4rem 0 1.6rem; font-style: italic; }
.hero__title .accent { font-style: normal; color: var(--ink); }
.hero__lead { font-size: 1.18rem; max-width: 42ch; margin-bottom: 2.4rem; color: var(--ink-soft); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 0; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: 0; box-shadow: none;
}
.hero__badge {
  position: absolute; bottom: -1px; left: -1px; right: -1px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 0;
  box-shadow: none; padding: 1.4rem 1.6rem;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  font-weight: 400;
}
.hero__badge-stat { display: block; }
.hero__badge-stat .num {
  font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--ink);
}
.hero__badge-stat .lbl {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint);
}
@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 440px; }
}

/* ==========================================================================
   Strip stats (под hero) — editorial
   ========================================================================== */
.trustbar,
.strip { border-block: 1px solid var(--line); background: transparent; }
.trustbar .container,
.strip .container {
  display: flex; flex-wrap: wrap; justify-content: space-around;
  gap: 1.5rem; padding-block: 2.2rem; text-align: center;
}
.strip__item,
.trustbar__item { display: block; }
.strip__item .num,
.trustbar__item .num {
  font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--ink);
}
.strip__item .lbl,
.trustbar__item .lbl {
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-faint); margin-top: .3rem;
}
.trustbar__item svg { display: none; }

/* ==========================================================================
   Course list — editorial row layout (вариант 4)
   ========================================================================== */
.courses-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
@media (max-width: 760px) {
  .courses-grid { grid-template-columns: 1fr; }
}
.course-card {
  position: relative; background: transparent; border: none; border-top: 1px solid var(--line);
  border-radius: 0; padding: 2rem 1rem;
  display: flex; align-items: center; gap: 1.5rem;
  transition: padding-left .3s ease, background .3s ease;
  overflow: hidden; text-decoration: none; color: var(--ink);
}
.course-card::after { content: none; }
.course-card:hover {
  padding-left: 1.8rem; background: var(--surface);
  transform: none; box-shadow: none; border-color: var(--line);
}
.course-card__badge {
  align-self: center; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 500; font-size: 2.2rem;
  background: transparent; color: var(--accent);
  width: auto; height: auto; min-width: 80px;
  display: block; place-items: initial; border-radius: 0;
  box-shadow: none; padding: 0;
}
.course-card--accent .course-card__badge { color: var(--accent-dark); }
.course-card__body { flex: 1; display: flex; flex-direction: column; gap: .15rem; }
.course-card h3 { margin-top: 0; font-size: 1.35rem; }
.course-card p { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.course-card__link {
  margin-left: auto; flex-shrink: 0;
  font-family: var(--font-display); font-size: 1.6rem; color: var(--ink-faint);
  transition: color .3s ease, transform .3s ease;
  font-weight: 400;
}
.course-card:hover .course-card__link {
  color: var(--accent); transform: translateX(4px);
}
.course-card__link svg { display: none; }

/* ==========================================================================
   Steps / Как протича
   ========================================================================== */
.steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step__num {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.25rem;
  color: var(--brand); background: var(--brand-light); margin-bottom: 1rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.step p { font-size: .95rem; }

/* ==========================================================================
   Features / Защо нас
   ========================================================================== */
.features { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature { display: flex; gap: 1rem; }
.feature__icon {
  flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-light); color: var(--brand);
}
.feature h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.feature p { font-size: .95rem; }

/* ==========================================================================
   Article / News cards — editorial vertical layout
   ========================================================================== */
.articles-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 2.5rem;
}
.article-card {
  display: flex; flex-direction: column; gap: 1rem;
  text-decoration: none; color: var(--ink);
  border-top: 1px solid var(--line); padding-top: 1.5rem;
  transition: transform .3s ease;
}
.article-card:hover { transform: translateY(-3px); }
.article-card__media {
  display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--surface);
}
.article-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.article-card:hover .article-card__media img { transform: scale(1.04); }
.article-card__date {
  font-family: var(--font-sans); font-size: .72rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint);
}
.article-card h3 {
  font-size: 1.45rem; line-height: 1.25;
  font-style: normal;
}
.article-card h3 a { color: var(--ink); }
.article-card h3 a:hover { color: var(--accent); }
.article-card p { font-size: .95rem; color: var(--ink-soft); }
.article-card__link {
  margin-top: auto; font-family: var(--font-sans); font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: .4rem;
}
.article-card__link::after { content: "→"; transition: transform .3s ease; }
.article-card:hover .article-card__link::after { transform: translateX(4px); }

/* ==========================================================================
   Section head — editorial (с centered rule)
   ========================================================================== */
.head {
  text-align: center; max-width: 620px;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}
.head p { margin-top: .8rem; }

/* ==========================================================================
   Values — Защо Гавазови (3-col Roman numerals)
   ========================================================================== */
.values {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem;
}
.value { text-align: center; }
.value .n {
  font-family: var(--font-display); font-size: 1.6rem; color: var(--accent);
}
.value h3 { font-size: 1.35rem; margin: .6rem 0 .5rem; }
.value p { font-size: .94rem; }
@media (max-width: 760px) {
  .values { grid-template-columns: 1fr; gap: 2.2rem; }
}

/* ==========================================================================
   CTA band — dark editorial
   ========================================================================== */
.cta {
  background: var(--ink); color: var(--bg);
  border-radius: 0; padding: clamp(3.5rem, 8vw, 6rem) 2rem;
  text-align: center; position: relative; overflow: hidden;
}
.cta::before { content: none; }
.cta > * { position: relative; }
.cta .kicker { color: var(--accent); }
.cta h2 { color: var(--bg); margin: 1rem 0; font-style: italic; }
.cta p { color: #c9c1b2; font-size: 1.1rem; max-width: 46ch; margin: 0 auto 2.2rem; }
.cta .bg,
.cta .btn-group {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.testimonial {
  background: var(--surface); border: 1px solid var(--line); border-radius: 0;
  padding: 2rem 1.75rem; box-shadow: none;
}
.testimonial__stars { color: var(--accent); letter-spacing: 2px; margin-bottom: .75rem; font-size: 1.1rem; }
.testimonial p {
  color: var(--ink); font-size: 1.05rem;
  font-family: var(--font-display); font-style: italic; line-height: 1.5;
}
.testimonial__author { display: flex; align-items: center; gap: .75rem; margin-top: 1.25rem; }
.testimonial__avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2);
  display: grid; place-items: center; font-weight: 500; color: var(--accent);
  font-family: var(--font-display); font-size: 1.1rem;
}
.testimonial__author strong { display: block; font-size: .95rem; font-weight: 500; }
.testimonial__author span {
  font-size: .72rem; color: var(--ink-faint);
  letter-spacing: .14em; text-transform: uppercase;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg); color: var(--ink-soft);
  padding-block: clamp(3rem, 6vw, 4rem) 0; font-size: .95rem;
  border-top: 1px solid var(--line);
}
.footer__cta-link { color: var(--accent) !important; font-weight: 500; }
.footer__cta-link:hover { color: var(--accent-dark) !important; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--accent); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem;
  align-items: start;
}
.footer h4 {
  color: var(--ink-faint); font-family: var(--font-sans);
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 500; margin-bottom: 1.2rem;
}
.footer ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.footer .brand__name strong {
  color: var(--ink); font-family: var(--font-display);
  font-size: 1.5rem; letter-spacing: .02em;
}
.footer .brand__name span { color: var(--ink-faint); letter-spacing: .28em; }
.footer__about p { color: var(--ink-soft); margin-top: 1.2rem; max-width: 34ch; }
.footer__contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer__contact svg { color: var(--accent); flex: none; margin-top: 3px; }
.footer__social { display: flex; gap: .8rem; margin-top: 1rem; }
.footer__social a {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: 0; color: var(--ink-soft);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.footer__social a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.footer__bottom {
  border-top: 1px solid var(--line); margin-top: 3rem;
  padding-block: 1.6rem; display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; font-size: .78rem;
  letter-spacing: .06em; color: var(--ink-faint);
}
@media (max-width: 680px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Single course (CPT „course")
   ========================================================================== */
.course-single { background: var(--bg); }
.course-hero {
  background: var(--surface);
  padding-block: clamp(3rem, 7vw, 5rem);
  position: relative; overflow: hidden;
}
.course-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(55% 55% at 90% 0%, rgba(138, 106, 60, .08), transparent 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(214, 201, 173, .25), transparent 60%);
}
.course-hero .container { position: relative; z-index: 1; max-width: 920px; }
.course-hero__badge {
  display: block; place-items: initial; width: auto; height: auto;
  border-radius: 0; font-family: var(--font-display); font-weight: 500;
  font-size: 3rem; color: var(--accent);
  background: transparent; box-shadow: none;
  margin-bottom: 1rem; line-height: 1;
}
.course-hero--accent .course-hero__badge { color: var(--accent-dark); background: transparent; }
.course-hero__title {
  margin-bottom: 1rem; font-style: italic;
}
.course-hero__lead {
  font-size: 1.18rem; max-width: 52ch; margin-bottom: 1.75rem;
  color: var(--ink-soft);
}
.course-hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.course-meta {
  display: flex; flex-wrap: wrap; gap: 1.5rem 3rem;
  margin: 1.5rem 0 2rem; padding: 1.5rem 0;
  border-block: 1px solid var(--line);
}
.course-meta__item dt {
  font-family: var(--font-sans); font-size: .72rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: .35rem; font-weight: 500;
}
.course-meta__item dd {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 500;
  color: var(--ink); margin: 0; line-height: 1;
}

.course-image { margin-block: clamp(2rem, 5vw, 3rem); }
.course-image img { width: 100%; border-radius: 0; box-shadow: none; }

.course-content { max-width: 760px; margin-inline: auto; }
.course-content h2, .course-content h3 { margin-top: 2rem; }
.course-content p, .course-content ul, .course-content ol { margin-bottom: 1.1rem; }

/* ==========================================================================
   Single course — dual currency price + installments
   ========================================================================== */
.course-meta__price-eur {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 500;
  color: var(--ink); display: inline; line-height: 1;
}
.course-meta__price-bgn {
  font-size: .85rem; color: var(--ink-soft); margin-left: .5rem;
  letter-spacing: .04em;
}

.course-installments-note {
  margin-top: 1.25rem; font-size: .92rem; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.1rem; background: rgba(138, 106, 60, .08);
  border-left: 2px solid var(--accent); border-radius: 0;
}
.course-installments-note a { font-weight: 500; color: var(--accent); }
.course-installments-note a:hover { color: var(--accent-dark); }

/* ==========================================================================
   Pricing page (page-ceni.php)
   ========================================================================== */
.pricing-warning {
  background: rgba(138, 106, 60, .08);
  border-top: 1px solid rgba(138, 106, 60, .2);
  border-bottom: 1px solid rgba(138, 106, 60, .2);
}
.pricing-warning .container {
  display: flex; align-items: center; gap: 1rem;
  padding-block: 1.1rem;
}
.pricing-warning__icon { color: var(--accent); flex: none; }
.pricing-warning p {
  color: var(--ink); font-weight: 400; font-size: .98rem; margin: 0;
  letter-spacing: .02em;
}
.pricing-warning strong { color: var(--accent-dark); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
}

.price-card {
  position: relative; background: transparent;
  border: none; border-top: 1px solid var(--line); border-radius: 0;
  padding: 2.5rem 1.75rem 2rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  box-shadow: none;
  transition: background .3s ease;
  overflow: hidden;
}
.price-card::after { content: none; }
.price-card:hover { transform: none; box-shadow: none; background: var(--surface); border-color: var(--line); }

.price-card__head {
  display: flex; align-items: baseline; gap: 1rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.price-card__badge {
  flex: none; width: auto; height: auto;
  font-family: var(--font-display); font-weight: 500; font-size: 2.4rem;
  color: var(--accent); background: transparent;
  border-radius: 0; box-shadow: none; padding: 0;
  display: block; place-items: initial;
  min-width: 60px; line-height: 1;
}
.price-card--accent .price-card__badge { color: var(--accent-dark); }
.price-card__title {
  font-size: 1.35rem; margin: 0;
  font-family: var(--font-display); font-style: italic; font-weight: 500;
}

.price-card__price {
  padding: 0; background: transparent;
  border-radius: 0; text-align: left;
}
.price-card__price-eur {
  font-family: var(--font-display); font-weight: 500;
  font-size: 2.6rem; color: var(--ink); line-height: 1;
}
.price-card__price-bgn {
  font-size: .85rem; font-weight: 400; color: var(--ink-soft);
  margin-top: .4rem; letter-spacing: .04em;
}
.price-card__price-placeholder {
  font-family: var(--font-display); font-size: 1.3rem;
  font-weight: 400; color: var(--ink-faint); font-style: italic;
}

.price-card__installments { font-size: .9rem; }
.price-card__installments-title {
  font-family: var(--font-sans);
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: .65rem; font-weight: 500;
}
.price-card__installments ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.price-card__installments li {
  position: relative; padding-left: 1rem; color: var(--ink-soft);
  font-size: .88rem; line-height: 1.5;
}
.price-card__installments li::before {
  content: ""; position: absolute; left: 0; top: .65rem; width: 6px; height: 1px;
  border-radius: 0; background: var(--accent);
}

.price-card__cta {
  margin-top: auto; align-self: stretch; justify-content: center;
}

.pricing-footnote {
  text-align: center; color: var(--ink-faint); font-size: .92rem;
  margin-top: 2.5rem; font-style: italic;
  font-family: var(--font-display);
}

/* Много малки екрани — допълнително свиване на нав-бара */
@media (max-width: 380px) {
  /* Много тесни екрани — още по-компактен бутон */
  .nav__actions .btn { padding: .5rem .8rem; font-size: .68rem; letter-spacing: .08em; }
  .brand img { height: 34px; }
  .brand__name strong { font-size: .85rem; }
  .nav { gap: .4rem; }
}

@media (max-width: 400px) {
  .nav__actions .btn { padding: .5rem .85rem; font-size: .85rem; }
  .brand img { height: 34px; }
  .brand__name strong { font-size: .88rem; }
  .nav { gap: .4rem; }
  .nav-toggle { width: 40px; height: 40px; }
  /* Плаващият call FAB пада малко по-ниско за да не закрива бутона */
  .call-fab { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}

@media (max-width: 480px) {
  .price-card { padding: 1.5rem 1.3rem 1.3rem; }
  .price-card__price-eur { font-size: 1.7rem; }
}

/* ==========================================================================
   Floating call button (мобилно)
   ========================================================================== */
.call-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: var(--ink); color: var(--bg); display: none; place-items: center; box-shadow: var(--shadow-lg);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(138, 106, 60, .45);} 50% { box-shadow: 0 0 0 14px rgba(138, 106, 60, 0);} }

/* ==========================================================================
   Page hero (вътрешни страници)
   ========================================================================== */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-hero .container {
  padding-block: clamp(3rem, 7vw, 4.5rem);
  text-align: center; max-width: 820px;
}
.page-hero h1 {
  font-style: italic; margin-block: .25rem;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
}
.page-hero .eyebrow,
.page-hero .kicker { margin-bottom: 0; }
.breadcrumbs {
  font-family: var(--font-sans); font-size: .72rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 1rem;
}
.breadcrumbs a { color: var(--ink-soft); transition: color .2s ease; }
.breadcrumbs a:hover { color: var(--accent); }

/* Прости текстови страници / статии */
.prose { max-width: 880px; margin-inline: auto; }
.prose h2, .prose h3 { margin-top: 2rem; }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.3; }
.prose h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.35; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.1rem; }
.prose img { border-radius: var(--radius); margin-block: 1.5rem; }

/* Когато страницата съдържа .listovki-iframe-wrap — пусни prose-а на пълна ширина за iframe-а */
.prose:has(.listovki-iframe-wrap) { max-width: none; }
.listovki-iframe-wrap { margin-top: 1.5rem; }
.listovki-iframe-wrap iframe { width: 100%; min-height: 950px; border: 0; display: block; }

/* Lightbox hint — cursor + hover effect на кликаемите снимки */
.wp-block-gallery a.glightbox,
.wp-block-image a.glightbox { cursor: zoom-in; display: block; }
.wp-block-gallery a.glightbox img,
.wp-block-image a.glightbox img { transition: opacity .2s ease; }
.wp-block-gallery a.glightbox:hover img,
.wp-block-image a.glightbox:hover img { opacity: .85; }

/* ==========================================================================
   Registration form (page-forma-za-zapisvania.php)
   ========================================================================== */
.reg-layout {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem;
  align-items: start;
}
@media (max-width: 880px) {
  .reg-layout { grid-template-columns: 1fr; }
}

.reg-layout__form {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: none;
}

.reg-form { display: flex; flex-direction: column; gap: 1.5rem; }
.reg-form__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem;
}
@media (max-width: 600px) {
  .reg-form__grid { grid-template-columns: 1fr; }
}

.reg-form__field { display: flex; flex-direction: column; gap: .4rem; }
.reg-form__field--wide { grid-column: 1 / -1; }
.reg-form__field label {
  font-family: var(--font-sans); font-size: .72rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
  display: flex; align-items: baseline; gap: .35rem;
}
.reg-form__field label small {
  font-size: .75rem; font-weight: 400; color: var(--ink-faint);
  letter-spacing: .08em; text-transform: none;
}
.reg-form__field .req { color: var(--accent); font-weight: 600; }
.reg-form__field input,
.reg-form__field textarea,
.reg-form__field select {
  width: 100%; padding: .85rem 1rem;
  border: 1px solid var(--line); border-radius: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: 1rem; font-weight: 300;
  transition: border-color .2s ease, background .2s ease;
}
.reg-form__field textarea { resize: vertical; min-height: 110px; }
.reg-form__field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c655a' stroke-width='2.5'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center; background-size: 16px 16px;
  padding-right: 2.5rem;
}
.reg-form__field input:focus,
.reg-form__field textarea:focus,
.reg-form__field select:focus {
  outline: 0; border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 3px rgba(138, 106, 60, .14);
}
.reg-form__field input:invalid:not(:placeholder-shown):not(:focus),
.reg-form__field--error input,
.reg-form__field--error textarea,
.reg-form__field--error select {
  border-color: #dc2626;
}
.reg-form__error {
  font-size: .85rem; font-weight: 600; color: #dc2626; margin-top: .15rem;
  display: flex; align-items: center; gap: .35rem;
}
.reg-form__error::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%; background: #dc2626;
  display: inline-block; flex: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3'%3e%3cline x1='12' y1='9' x2='12' y2='13'/%3e%3cline x1='12' y1='17' x2='12.01' y2='17'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: center; background-size: 10px;
}

.reg-form__error-banner {
  padding: 1rem 1.25rem; border-radius: 12px;
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  font-weight: 600;
}

.reg-form__consent {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: 1rem 1.25rem; background: var(--bg); border-radius: 0;
  font-size: .9rem; color: var(--ink-soft); line-height: 1.5;
  cursor: pointer;
  border: 1px solid var(--line);
}
.reg-form__consent:hover { border-color: var(--line); }
.reg-form__consent--error { border-color: #fca5a5; background: #fef2f2; }
.reg-form__consent input[type="checkbox"] {
  flex: none; width: 20px; height: 20px; margin-top: 1px;
  accent-color: var(--accent);
  cursor: pointer;
}

.reg-form__submit { align-self: flex-start; min-width: 220px; }

.reg-form__note {
  font-size: .85rem; color: var(--ink-faint); margin-top: -.5rem;
}

/* Success state */
.reg-form-success {
  display: grid; place-items: center; gap: 1rem;
  text-align: center; padding: 3rem 2rem;
  background: rgba(138, 106, 60, .06);
  border: 1px solid var(--accent);
  border-radius: 0;
  animation: regSuccessIn .5s cubic-bezier(.2,.7,.3,1.3);
}
.reg-form-success__icon {
  display: grid; place-items: center;
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--accent); color: var(--bg);
  box-shadow: 0 8px 24px rgba(138, 106, 60, .3);
  animation: regSuccessPop .6s .15s cubic-bezier(.2,.7,.3,1.5) backwards;
}
.reg-form-success h3 {
  font-size: 1.8rem; color: var(--ink); margin: 0;
  font-style: italic;
}
.reg-form-success p {
  max-width: 52ch; color: var(--ink-soft); margin: 0;
  font-family: var(--font-sans);
}

@keyframes regSuccessIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes regSuccessPop {
  0%   { transform: scale(.4); opacity: 0; }
  60%  { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

/* CAPTCHA блок (Cloudflare Turnstile) */
.reg-form__captcha {
  margin: 1.25rem 0;
  display: flex; flex-direction: column; gap: .5rem;
}
.reg-form__captcha .cf-turnstile { min-height: 65px; }

/* Global error banner (когато формата е reload-ната с ?reg_status=error) */
.reg-form__error-banner {
  background: rgba(220, 38, 38, .06); border: 1px solid rgba(220, 38, 38, .35);
  color: #991b1b;
  padding: 1rem 1.25rem; border-radius: 0; margin-bottom: 1.25rem;
  font-weight: 500; display: flex; align-items: center; gap: .75rem;
  letter-spacing: .02em;
}
.reg-form__error-banner::before {
  content: '!'; flex: 0 0 28px; height: 28px; border-radius: 50%;
  background: #dc2626; color: #fff; display: grid; place-items: center;
  font-size: .9rem; font-weight: 700;
}

/* Side cards — editorial */
.reg-side-card {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 0;
  padding: 1.75rem 1.6rem;
  margin-bottom: 1.25rem;
  box-shadow: none;
}
.reg-side-card h3 {
  font-size: 1.4rem; margin-bottom: .75rem;
  font-style: italic;
}
.reg-side-card p { font-size: .95rem; margin-bottom: 1rem; color: var(--ink-soft); }
.reg-side-card__contacts { list-style: none; padding: 0; display: grid; gap: .65rem; margin-bottom: 1rem; }
.reg-side-card__contacts li { display: flex; align-items: center; gap: .7rem; font-weight: 400; }
.reg-side-card__contacts svg { color: var(--accent); flex: none; }
.reg-side-card__contacts a { color: var(--ink); }
.reg-side-card__contacts a:hover { color: var(--accent); }
.reg-side-card__hours { font-size: .9rem; color: var(--ink-soft); margin: 0; }

.reg-side-card--accent {
  background: var(--ink);
  color: var(--bg); border: 0;
}
.reg-side-card--accent h3 { color: var(--bg); }
.reg-side-card--accent ol { padding-left: 1.5rem; display: grid; gap: .85rem; margin: 0; }
.reg-side-card--accent li { color: rgba(246, 239, 224, .85); font-size: .95rem; line-height: 1.5; }
.reg-side-card--accent li::marker {
  color: var(--accent);
  font-family: var(--font-display); font-size: 1.05rem;
}

/* ==========================================================================
   Search form
   ========================================================================== */
.search-form {
  display: flex; gap: .5rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .3rem .3rem .3rem 1.2rem;
  box-shadow: var(--shadow-sm);
  max-width: 520px; margin: 0 auto;
}
.search-form__input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; padding: .6rem 0; color: var(--ink);
}
.search-form__input::placeholder { color: var(--ink-faint); }
.search-form__btn {
  flex: none; padding: .65rem 1.25rem; font-size: .95rem;
}
.search-form__btn svg { margin-right: .35rem; }

/* ==========================================================================
   Reveal анимации при скрол
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: grid; }

  /* Backdrop — затъмнява останалата част от viewport-а */
  body.nav-open::before {
    content: ""; position: fixed; inset: 0;
    background: rgba(30, 27, 22, .5);
    z-index: 95;
    animation: navBackdropIn .25s ease;
  }
  @keyframes navBackdropIn { from { opacity: 0; } to { opacity: 1; } }

  /* Заключи фоновия скрол + скрий topbar */
  body.nav-open { overflow: hidden; }
  body.nav-open .topbar { visibility: hidden; }

  /* Side panel slide-in от ляво с икони — fixed full-viewport height */
  .menu {
    position: fixed; top: 0; left: 0;
    width: min(320px, 85vw);
    height: 100vh; height: 100dvh;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface);
    border-right: 1px solid var(--line);
    padding: 3.5rem 0 2rem;
    box-shadow: 20px 0 50px -16px rgba(30, 27, 22, .35);
    transform: translateX(-100%); transition: transform .35s ease;
    overflow-y: auto; overscroll-behavior: contain;
    z-index: 110;
  }
  /* Когато WordPress admin bar-ът е активен — менюто започва под него */
  body.admin-bar .menu {
    top: 46px;
    height: calc(100vh - 46px); height: calc(100dvh - 46px);
  }

  /* Hamburger toggle вляво на header-а (вместо вдясно) */
  .nav-toggle { order: -1; }
  /* X close button — видим само на mobile, в горния десен ъгъл на menu panel-а */
  .menu-close { display: inline-flex; }

  /* Тънка разделителна линия под X-областта (между X-а и първия item) */
  .menu::before {
    content: "";
    display: block;
    width: 100%; height: 0;
    border-top: 1px solid var(--line);
    margin-bottom: .5rem;
    flex-shrink: 0;
  }

  /* Скриваме „Запиши се" CTA от хедъра когато менюто е отворено */
  body.nav-open .nav__actions { visibility: hidden; }
  .nav-open .menu { transform: none; }

  .menu > li { width: 100%; }
  .menu a {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.5rem;
    font-family: var(--font-sans); font-weight: 400;
    font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink-soft);
    border-bottom: 1px solid rgba(214, 201, 173, .5);
    transition: color .2s ease, background .2s ease;
  }
  .menu a:hover, .menu .current-menu-item > a {
    background: var(--bg); color: var(--ink);
  }
  .menu a::after { display: none; }
  .menu > li:last-child > a { border-bottom: none; }

  /* Иконка ляво на всеки item */
  .menu a::before {
    content: ""; width: 22px; height: 22px; flex-shrink: 0;
    background: no-repeat center / 20px 20px;
    opacity: .65;
  }

  /* Per-item икони — Feather-style line icons */
  .menu li.menu-item-home > a::before,
  .menu a[rel="home"]::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e1b16' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12l9-9 9 9'/><path d='M5 10v10a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1V10'/></svg>");
  }
  .menu a[href*="about-us"]::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e1b16' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/><circle cx='9' cy='7' r='4'/><path d='M23 21v-2a4 4 0 0 0-3-3.87'/><path d='M16 3.13a4 4 0 0 1 0 7.75'/></svg>");
  }
  .menu a[href*="/news"]::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e1b16' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-9h4'/><path d='M18 14h-8'/><path d='M15 18h-5'/><path d='M10 6h8v4h-8z'/></svg>");
  }
  .menu a[href*="contacts"]::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e1b16' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/></svg>");
  }
  .menu a[href*="kursove"]::before,
  .menu a[href*="kategoria"]::before,
  .menu a[href*="motokari"]::before,
  .menu a[href*="kontrolni-tochki"]::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e1b16' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/><path d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/></svg>");
  }
  .menu a[href*="ceni"]::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e1b16' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><line x1='12' y1='1' x2='12' y2='23'/><path d='M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6'/></svg>");
  }
  .menu a[href*="avtopark"]::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e1b16' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M5 17h-2v-4l1-5h12l3 5v4h-2'/><circle cx='7' cy='17' r='2'/><circle cx='17' cy='17' r='2'/></svg>");
  }
  .menu a[href*="listovki"]::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e1b16' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/><polyline points='14 2 14 8 20 8'/><line x1='9' y1='13' x2='15' y2='13'/><line x1='9' y1='17' x2='15' y2='17'/></svg>");
  }
  .menu a[href*="forma-za-zapisvania"]::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e1b16' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M12 20h9'/><path d='M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4z'/></svg>");
  }

  /* CTA бутон остава видим, но компактен — приоритетна конверсия */
  .nav__actions .btn {
    padding: .55rem 1rem; font-size: .72rem;
    letter-spacing: .1em; white-space: nowrap;
  }
  .nav { gap: .6rem; padding-block: .7rem; }
  .brand img { height: 38px; }
  .brand__name strong { font-size: .95rem; }
  .brand__name span { display: none; }     /* подзаглавието „Шофьорски курсове · Пловдив" е твърде дълго */
  .topbar__contacts { display: none; }
  .call-fab { display: grid; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Mobile: nested sub-menus always visible, indented as accordion list. */
  .menu .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: 0; box-shadow: none; padding: 0;
    margin: .15rem 0 .35rem 1rem;
    transition: none;
  }
  .menu .sub-menu::before { display: none; }
  .menu .sub-menu a {
    padding: .65rem 1rem; font-size: .98rem;
    border-left: 2px solid var(--line);
  }
  .menu .sub-menu a:hover, .menu .sub-menu .current-menu-item > a {
    border-left-color: var(--brand);
  }
  .menu .menu-item-has-children > a::after { transform: rotate(180deg); }
}
