/* ==========================================================================
   Войнов ЕООД — базови стилове
   Изведени 1:1 от Figma: Войнов ЕООД / Landing page (1440px)
   ========================================================================== */

/* --- 1. Токени ----------------------------------------------------------- */
:root {
  /* цветове */
  --teal:        #227983;
  --teal-dark:   #1b626b;
  --navy:        #132243;
  --ink:         #0a142f;
  --ink-soft:    #303745;
  --black:       #000000;
  --white:       #ffffff;
  --grey-pill:   #f5f6f7;
  --overlay:     rgba(0, 0, 0, .35);

  /* типография */
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* размери */
  --container: 1008px;   /* основната колона в макета */
  --wide:      1680px;   /* хедър — горна граница; след нея съдържанието се центрира */
  --header-pad: clamp(20px, 3vw, 64px);  /* полетата на хедъра следват ширината на прозореца */
  --header-h:  118px;
  --radius:    20px;
  --gutter:    24px;

  /* сянка на картите */
  --shadow: 0 4px 24px rgba(0, 0, 0, .10);
}

/* --- 2. Ресет ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;            /* виж CSS overflow капана — clip само на body */
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* --- 3. Помощни ---------------------------------------------------------- */
.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section-title {
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1.23;
  text-transform: uppercase;
  color: var(--teal);
  text-align: center;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* --- 4. Бутони ----------------------------------------------------------- */
/* Пилюла с кръгче и стрелка ↗ — основният CTA модел от макета */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px 8px 22px;
  border: 0;
  border-radius: 27px;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: transform .18s ease;
}
.btn__icon svg { width: 13px; height: 13px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(34, 121, 131, .25); }
.btn:hover .btn__icon { transform: translate(2px, -2px); }

.btn--teal  { background: var(--teal);  color: var(--white); }
.btn--teal  .btn__icon { background: var(--white); }
.btn--teal  .btn__icon svg { stroke: var(--teal); }
.btn--teal:hover { background: var(--teal-dark); }

.btn--white { background: var(--white); color: var(--ink-soft); }
.btn--white .btn__icon { background: var(--teal); }
.btn--white .btn__icon svg { stroke: var(--white); }

/* ==========================================================================
   5. Хедър
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 1.4vw, 24px);
  height: var(--header-h);
  /* полето е течно: следва ширината на браузъра до --wide, после се центрира */
  padding-inline: max(var(--header-pad), (100% - var(--wide)) / 2);
  background: var(--white);
}

.header__logo { flex: 0 0 auto; }
.header__logo svg, .header__logo img { width: 59px; height: 47px; }

/* централната сива пилюла с навигацията — хваща се за съдържанието, не се разпъва
   и не се свива под него (иначе надписите излизат извън сивото и се качват върху логото) */
.nav {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  margin-inline: auto;
  padding: 16px clamp(16px, 2.4vw, 60px) 19px;
  border-radius: 74px;
  background: var(--grey-pill);
}
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 24px);
  font-size: clamp(12.5px, 1.02vw, 14px);
  font-weight: 600;
  line-height: 17px;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 8px 0;
  color: var(--black);
  white-space: nowrap;
  transition: color .18s ease;
}
.nav__link:hover { color: var(--teal); }
.nav__link svg { width: 10px; height: 6px; }

/* CTA-то в менюто се показва само на мобилен, където хедър бутонът е скрит */
.nav__cta { display: none; }

.nav__link--active {
  padding: 8px clamp(11px, 1.4vw, 20px);
  border-radius: 45px;
  background: var(--teal);
  color: var(--white);
}
.nav__link--active:hover { color: var(--white); }

/* CTA вдясно */
.header__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 23px);
  padding: 6px clamp(10px, 1.2vw, 20px) 6px clamp(14px, 1.8vw, 28px);
  border-radius: 59px;
  background: var(--grey-pill);
  font-size: clamp(12.5px, 1.02vw, 14px);
  font-weight: 600;
  line-height: 17px;
  color: var(--black);
  transition: background-color .18s ease;
}
.header__cta:hover { background: #e9ebee; }
.header__cta .btn__icon { background: var(--teal); width: 38px; height: 38px; }
.header__cta .btn__icon svg { width: 12px; height: 12px; stroke: var(--white); }

/* бургер — само на мобилен */
.burger {
  display: none;
  flex: 0 0 auto;
  width: 46px; height: 46px;
  padding: 0;
  border: 0; border-radius: 50%;
  background: var(--grey-pill);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 20px; height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--black);
  transition: transform .25s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   6. Герой
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 753px;
  padding: 80px max(97px, (100% - 1246px) / 2);
  background: var(--black) center / cover no-repeat;
  color: var(--white);
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: -1;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
}

.hero__title {
  width: 100%;
  max-width: 739px;
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 600;
  line-height: 1.22;
}
.hero__text {
  width: 100%;
  max-width: 609px;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 400;
  line-height: 1.35;
}

/* ==========================================================================
   7. Услуги
   ========================================================================== */
.services { padding: 100px 0 0; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 42px;
  margin-top: 45px;
}
.services__more { display: flex; justify-content: center; margin-top: 45px; }
/* вариант на фон, когато мрежата стои между два бели блока */
.services--tint { padding: 92px 0 96px; background: #f2f4f6; }
.services--related { padding: 80px 0; background: var(--white); }

/* Подбрани обекти на началната страница. */
.project-cases { padding: 88px 0; background: var(--grey-pill); }
.project-cases__lead { max-width: 760px; margin: 22px auto 0; text-align: center; font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.project-cases__grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 28px; margin-top: 42px; }
.project-case { flex: 0 0 calc((100% - 56px) / 3); min-width: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.project-case__photo { position: relative; aspect-ratio: 4 / 3; margin: 0; }
.project-case__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-case__body { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 24px; }
.project-case__category { color: var(--teal); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.project-case__title { font-size: 21px; line-height: 1.4; font-weight: 600; color: var(--navy); }
.project-case__body > p { color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.project-case__link { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: auto; padding-top: 12px; color: var(--teal); font-size: 14px; font-weight: 500; }
.project-case__link:hover { text-decoration: underline; }
.project-case__link svg { width: 16px; height: 16px; stroke: currentColor; }
.project-cases__more { display: flex; justify-content: center; margin-top: 40px; }

/* Без JavaScript снимките и надписите остават видими една до друга. */
.comparison { position: relative; }
.comparison__images { display: grid; grid-template-columns: 1fr 1fr; }
.comparison figure { min-width: 0; margin: 0; }
.comparison figure img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.comparison figcaption { padding: 8px; font-size: 11px; color: var(--ink-soft); }
.comparison__divider { display: none; }
.comparison--enhanced .comparison__images { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.comparison--enhanced figure { position: absolute; inset: 0; }
.comparison--enhanced figure img { width: 100%; height: 100%; aspect-ratio: auto; }
.comparison--enhanced figcaption { display: none; }
.comparison--enhanced .comparison__before { z-index: 2; }
.comparison--enhanced .comparison__before img { clip-path: inset(0 calc(100% - var(--comparison-position, 50%)) 0 0); }
.comparison--enhanced .comparison__after { z-index: 1; }
.comparison--enhanced .comparison__divider { display: grid; position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--comparison-position, 50%); width: 2px; background: white; place-items: center; pointer-events: none; }
.comparison__divider > span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid white; border-radius: 50%; background: var(--teal); color: white; font-size: 24px; }
.comparison__range { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.comparison--enhanced:focus-within { outline: 3px solid var(--teal); outline-offset: -3px; }
@media (max-width: 1024px) { .project-case { flex-basis: calc((100% - 28px) / 2); } }
@media (max-width: 620px) {
  .project-cases { padding: 64px 0; }
  .project-cases__lead { font-size: 16px; }
  .project-case { flex-basis: 100%; max-width: 420px; }
}
/* .services е без долно поле — когато отдолу започва цветна лента (въртележката),
   картите опират в ръба ѝ, затова добавяме бял отдих */
.services:has(+ .gallery) { padding-bottom: 80px; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0, 0, 0, .14); }

.card__media { position: relative; aspect-ratio: 308 / 162; flex-shrink: 0; }
.card__media > img { position: absolute; inset: 0; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }

/* тюркоазеното кръгче стои точно на границата снимка / бяло */
.card__icon {
  position: absolute;
  bottom: -41.5px;
  left: 26px;
  display: grid;
  place-items: center;
  width: 83px; height: 83px;
  border-radius: 50%;
  background: var(--teal);
}
/* иконите имат различни intrinsic съотношения (45×45 … 30×53) — вписваме ги
   в кутия 44×42 без да ги разтягаме */
.card__icon img {
  width: auto; height: auto;
  max-width: 44px; max-height: 42px;
  object-fit: contain;
  /* иконките идват в два комплекта — бели SVG и тюркоазени PNG от менюто;
     филтърът ги изравнява до бяло върху тюркоазеното кръгче */
  filter: brightness(0) invert(1);
}
/* PNG-тата от комплекта на менюто са нормализирани с поле — глифът пълни само
   68 от 96 px, затова при еднаква кутия изглеждат с една трета по-дребни от
   SVG-тата. По-голямата кутия ги изравнява оптически. */
.card__icon img[src$=".png"] { max-width: 62px; max-height: 60px; }

.card__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 51px 15px 25px;
  color: var(--teal);
}
.card__title {
  font-size: 24px;
  font-weight: 500;
  line-height: 29px;
}
.card__text {
  font-size: 15px;
  font-weight: 400;
  line-height: 18px;
}
.card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  font-size: 15px;
  font-weight: 500;
  line-height: 18px;
}
.card__link svg {
  width: 15px; height: 15px;
  stroke: currentColor;
  transition: transform .2s ease;
}
.card__link:hover { text-decoration: underline; }
.card:hover .card__link svg { transform: translate(2px, -2px); }

/* цялата карта е кликаема: връзката се разпъва невидимо върху нея, вместо да
   слагаме <a> около <article> — така разметката и достъпността не се променят */
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

/* ==========================================================================
   8. Ивица със статистика
   ========================================================================== */
.stats { padding: 69px 0 0; }
.stats__box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  padding: 92px 24px 58px;
  border-radius: var(--radius);
  background: var(--black) center / cover no-repeat;
  color: var(--white);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.stats__box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: -1;
}
.stats__icon { width: 53px; height: 62px; }
.stats__meta  { display: flex; flex-direction: column; gap: 8px; }
.stats__num   { font-size: 30px; font-weight: 500; line-height: 34px; }
.stats__label { font-size: 22px; font-weight: 500; line-height: 28px; }

/* ==========================================================================
   9. Партньори
   ========================================================================== */
.partners { padding: 76px 0 0; }
/* когато партньорите идват веднага след сивата въртележка, 76px не стигат —
   заглавието опира в ръба на лентата; отдолу няма поле, затова се вдига само горното */
.gallery + .partners { padding-top: 112px; }
.partners__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 31px;
}
.partners__list a {
  display: grid;
  place-items: center;
  flex: 1 1 0;
  min-width: 0;
  /* 4 лога × 240px + 3 × 31px разстояние = 1053px, тоест 45px повече от колоната
     и четвъртото падаше на нов ред; 220px ги събира на един */
  max-width: 220px;
  height: 139px;
  opacity: .85;
  transition: opacity .2s ease, transform .2s ease;
}
.partners__list a:hover { opacity: 1; transform: translateY(-2px); }
.partners__list img { max-height: 100%; object-fit: contain; }

/* ==========================================================================
   10. За нас
   ========================================================================== */
.about { padding: 76px 0 0; }
.about__grid {
  display: grid;
  grid-template-columns: 511fr 451fr;
  gap: 46px;
  align-items: center;
  margin-top: 45px;
}
.about__body { display: flex; flex-direction: column; gap: 27px; align-items: flex-start; }
.about__text {
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--black);
}
.about__text p + p { margin-top: 1.2em; }
.about__media img {
  width: 100%;
  aspect-ratio: 451 / 582;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ==========================================================================
   11. Завършени проекти
   ========================================================================== */
.projects { padding: 96px 0 0; }
.projects__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 680px;   /* пречупва се 3 + 2 реда, както в макета */
  margin: 27px auto 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: var(--teal);
}
.projects__filter {
  padding: 0 5px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: border-color .18s ease;
}
.projects__filter:hover,
.projects__filter[aria-pressed="true"] { border-bottom-color: var(--teal); }

.projects__grid { display: flex; flex-direction: column; gap: 18px; margin-top: 45px; }
.projects__row { display: grid; gap: 18px; }
.projects__row--2 { grid-template-columns: 663fr 327fr; }
.projects__row--3 { grid-template-columns: repeat(3, 1fr); }

.projects__item {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 663 / 395;
}
.projects__row--3 .projects__item { aspect-ratio: 324 / 395; }
.projects__row--2 .projects__item:last-child { aspect-ratio: 327 / 395; }
.projects__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.projects__item:hover img { transform: scale(1.04); }

.projects__more { display: flex; justify-content: center; margin-top: 45px; }

/* ==========================================================================
   12. Футър
   ========================================================================== */
.footer { padding: 91px 0 40px; background: var(--white); color: var(--ink); }
.footer__inner {
  width: min(1065px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.footer__grid {
  display: grid;
  grid-template-columns: 78px 307px 1fr 1fr 52px;
  gap: 46px;
  align-items: start;
}
.footer__logo svg, .footer__logo img { width: 78px; height: 63px; }

.footer__about { display: flex; flex-direction: column; gap: 30px; }
.footer__desc { font-size: 12px; font-weight: 400; line-height: 15px; }

/* телефонният блок с иконка и черта отдолу */
.footer__phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 185px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--teal);
  color: var(--teal);
  font-size: 16px;
  line-height: 22px;
}
.footer__phone img { width: 20px; height: 20px; }

.footer__col-title {
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.footer__list { display: flex; flex-direction: column; gap: 8px; font-size: 12px; line-height: 20px; }
.footer__list a:hover { color: var(--teal); text-decoration: underline; }

.footer__top {
  display: grid;
  place-items: center;
  width: 52px; height: 48px;
  border-radius: 50%;
  background: var(--teal);
  justify-self: end;
  transition: background-color .18s ease, transform .18s ease;
}
.footer__top:hover { background: var(--teal-dark); transform: translateY(-3px); }
.footer__top svg { width: 14px; height: 19px; }

.footer__copy {
  margin-top: 40px;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

/* ==========================================================================
   13. Вътрешни страници — заглавна ивица
   ========================================================================== */
.page-hero {
  position: relative;
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 373px;
  padding: 152px 24px 104px;
  background: var(--black) center / cover no-repeat;
  color: var(--white);
  text-align: center;
  isolation: isolate;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: -1;
}
.page-hero__title {
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 600;
  line-height: 1.22;
  text-transform: uppercase;
}
.page-hero__crumbs { font-size: clamp(16px, 1.8vw, 24px); font-weight: 600; line-height: 29px; }
.page-hero__crumbs a:hover { text-decoration: underline; }

/* ==========================================================================
   14. За нас — трите колони с „20+"
   ========================================================================== */
.intro { padding: 127px 0 0; }
.intro__grid {
  display: grid;
  grid-template-columns: 403fr 461fr 403fr;
  gap: 14px;
  align-items: center;
  width: min(1295px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.intro__col { display: flex; flex-direction: column; gap: 25px; }
.intro__title {
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 500;
  line-height: 1.23;
  text-transform: uppercase;
  color: var(--black);
}
.intro__text {
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--black);
}
.intro__figure { text-align: center; color: var(--teal); }
.intro__number {
  font-size: clamp(90px, 14vw, 200px);
  font-weight: 600;
  line-height: 1.22;
}
.intro__caption {
  font-size: clamp(22px, 2.8vw, 40px);
  font-weight: 400;
  line-height: 1.22;
  text-transform: uppercase;
}

/* ==========================================================================
   15. За нас — разказ (текст + снимка)
   ========================================================================== */
.story { padding: 91px 0 0; }
.story__grid {
  display: grid;
  grid-template-columns: 477fr 447fr;
  gap: 83px;
  align-items: start;
}
.story__text {
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--black);
}
.story__text p + p { margin-top: 1.2em; }
.story__media img {
  width: 100%;
  aspect-ratio: 447 / 582;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ==========================================================================
   16. Какво ни отличава — тюркоазени карти
   ========================================================================== */
.features { padding: 85px 0 0; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* картите са по 2 колони = същата ширина като repeat(2, 1fr) */
  gap: 25px 28px;
  margin-top: 45px;
}
.feature { grid-column: span 2; }
/* нечетен брой карти: последната сама на реда се центрира */
@media (min-width: 861px) {
  .features__grid:has(> .feature:nth-child(5):last-child) > .feature:nth-child(5),
  .features__grid:has(> .feature:nth-child(3):last-child) > .feature:nth-child(3) { grid-column: 2 / span 2; }
}
.feature {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 218px;
  padding: 5px 31px 18px;   /* вътрешната колона в макета е 428 от 490 */
  border-radius: var(--radius);
  background: var(--teal);
  box-shadow: var(--shadow);
  color: var(--white);
  text-align: center;
}
.feature__title { font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; line-height: 1.2; }
.feature__text  { font-size: clamp(16px, 1.4vw, 20px); font-weight: 400; line-height: 1.2; }

/* ==========================================================================
   17. Как работим — бели стъпки
   ========================================================================== */
.process { padding: 135px 0 0; }
.process__rows { display: flex; flex-direction: column; gap: 25px; margin-top: 45px; }
.process__row { display: grid; gap: 28px; }
.process__row--2 { grid-template-columns: repeat(2, 317px); justify-content: center; }
.process__row--3 { grid-template-columns: repeat(3, 1fr); }

.step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 288px;
  padding: 63px 9px 77px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--teal);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0, 0, 0, .14); }
.step__title { font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; line-height: 1.2; }
.step__num { display: block; }
.step__text { font-size: clamp(16px, 1.4vw, 20px); font-weight: 400; line-height: 1.2; }

/* ==========================================================================
   18. Реализирани проекти (галерия на вътрешна страница)
   ========================================================================== */
.gallery { padding: 136px 0 0; }
.gallery__rows { display: flex; flex-direction: column; gap: 25px; margin-top: 45px; }
.gallery__row { display: grid; gap: 28px; }
.gallery__row--a { grid-template-columns: 413fr 568fr; }
.gallery__row--b { grid-template-columns: 676fr 304fr; }
.gallery__item {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  height: 300px;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__more { display: flex; justify-content: center; margin-top: 45px; }

/* ==========================================================================
   19. Респонсив
   ========================================================================== */
/* под 1240px седемте пункта + CTA-то не се събират на един ред — минава се на бургер */
@media (max-width: 1240px) {
  :root { --header-h: 84px; }

  .burger { display: block; }
  .header { padding-inline: var(--gutter); gap: 12px; }
  .header__cta { display: none; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    padding: 20px var(--gutter) 28px;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
    transform: translateY(-140%);
    transition: transform .3s ease;
    /* редовете тръгват от левия ръб, а дългото меню се скролва вътре в панела */
    align-items: stretch;
    justify-content: flex-start;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; font-size: 16px; }
  .nav__link { padding: 12px 16px; border-radius: 12px; }
  .nav__link--active { padding: 12px 16px; }
  .nav__cta { display: block; margin-top: 12px; padding-inline: 16px; }
}

@media (max-width: 1024px) {
  .hero { padding-inline: var(--gutter); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }

  .intro { padding-top: 80px; }
  .intro__grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .intro__figure { order: -1; }
  .story { padding-top: 64px; }
  .story__grid { gap: 40px; }
  .process { padding-top: 90px; }
  .process__row--2 { grid-template-columns: repeat(2, 1fr); }
  .process__row--3 { grid-template-columns: repeat(2, 1fr); }
  .gallery { padding-top: 90px; }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer__logo { grid-column: 1 / -1; }
  .footer__about { grid-column: 1 / -1; }
  .footer__top { grid-column: 1 / -1; justify-self: center; }
}

@media (max-width: 860px) {
  .hero { min-height: 540px; padding-block: 64px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { order: -1; }
  .about__media img { aspect-ratio: 4 / 3; }
  .projects__row--2, .projects__row--3 { grid-template-columns: 1fr; }
  .projects__item,
  .projects__row--3 .projects__item,
  .projects__row--2 .projects__item:last-child { aspect-ratio: 16 / 10; }
  .projects__filters { font-size: 16px; }
  .stats__box { padding: 56px 20px 44px; }

  .page-hero { min-height: 260px; padding: 80px var(--gutter) 64px; }
  .story__grid { grid-template-columns: 1fr; }
  .story__media { order: -1; }
  .story__media img { aspect-ratio: 4 / 3; }
  .features__grid { grid-template-columns: 1fr; }
  .feature, .features__grid > .feature:nth-child(n) { grid-column: auto; }
  .gallery__row--a, .gallery__row--b { grid-template-columns: 1fr; }
  .gallery__item { height: 220px; }
}

@media (max-width: 620px) {
  .services__grid { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; }
  .partners__list { gap: 16px; }
  .partners__list a { flex: 1 1 40%; height: 90px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__phone { width: 100%; }
  .btn { font-size: 17px; padding: 7px 14px 7px 18px; }
  .btn__icon { width: 34px; height: 34px; }

  .process__row--2, .process__row--3 { grid-template-columns: 1fr; }
  .step { min-height: 0; padding: 36px 16px 40px; }
  .feature { min-height: 0; padding: 28px 16px 30px; }
}

/* --- 14. Достъпност ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   15. НОВИ КОМПОНЕНТИ (генерирани страници)
   Продължение на BEM системата отгоре. Ползват само токените от :root.
   ========================================================================== */

/* --- 15.1 Достъпност: скок към съдържанието ------------------------------ */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  padding: 10px 18px; border-radius: 999px;
  background: var(--teal); color: var(--white);
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 8px; }

/* --- 15.2 Подменю в навигацията ------------------------------------------ */
.nav__item--has-sub { position: relative; }

.subnav {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60;
  min-width: 318px; margin: 0; padding: 10px;
  list-style: none; border-radius: 16px;
  background: var(--white); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav__item--has-sub:hover .subnav,
.nav__item--has-sub:focus-within .subnav {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.subnav a {
  display: flex; align-items: center; gap: 13px;
  padding: 5px 12px 5px 5px; border-radius: 12px;
  color: var(--ink); font-size: 14.5px; font-weight: 500;
  text-decoration: none; line-height: 1.3;
  transition: background .16s ease, color .16s ease;
}
.subnav a:hover, .subnav a:focus-visible { background: #eaf2f3; color: var(--teal-dark); }

/* плочката с иконата */
.subnav__icon {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: #e2eff1;
  transition: background .16s ease;
}
.subnav__icon img {
  display: block; width: 28px; height: 28px;
  object-fit: contain;
}
.subnav a:hover .subnav__icon,
.subnav a:focus-visible .subnav__icon { background: #cde3e7; }
.subnav__label { min-width: 0; margin-right: auto; white-space: nowrap; }

/* стрелката вдясно на реда */
.subnav__arrow {
  flex: 0 0 auto; width: 9px; height: 9px;
  margin-left: 14px; color: rgba(34, 121, 131, .55);
  transform: rotate(-90deg);
  transition: color .16s ease, transform .16s ease;
}
.subnav a:hover .subnav__arrow,
.subnav a:focus-visible .subnav__arrow {
  color: var(--teal); transform: rotate(-90deg) translateY(2px);
}

/* --- 15.3 Трошки (breadcrumbs) ------------------------------------------- */
.crumbs { margin-top: 14px; }
.crumbs__list {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin: 0; padding: 0; list-style: none;
  font-size: 13px; line-height: 1.5;
}
.crumbs__item + .crumbs__item::before { content: "/"; margin-right: 6px; opacity: .55; }
.crumbs a { color: inherit; text-decoration: none; opacity: .85; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }
.crumbs [aria-current] { font-weight: 600; }

.page-hero .crumbs { color: var(--white); }
.page-hero .crumbs a { color: var(--white); }

/* --- 15.4 Заглавна ивица: текст под заглавието --------------------------- */
.page-hero__inner { max-width: 760px; }
.page-hero__text {
  margin: 14px 0 0;
  color: var(--white); font-size: 17px; line-height: 1.6; opacity: .94;
}

/* --- 15.5 Текстов блок (prose) ------------------------------------------- */
.prose-sec { padding: 64px 0; }
.prose-sec--tint { background: var(--grey-pill); }
#toploizolaciya-info .section-title { margin-bottom: 40px; }

.prose__lead {
  max-width: 820px; margin: 0 auto 32px;
  color: var(--ink-soft); font-size: 19px; line-height: 1.65; text-align: center;
}
.section-title--left + .prose__lead,
.split .prose__lead { margin-left: 0; text-align: left; }

.prose { max-width: 820px; margin: 0 auto; color: var(--ink-soft); font-size: 16px; line-height: 1.75; }
.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }
.prose p { margin: 0 0 18px; }
.prose h2 { margin: 40px 0 14px; color: var(--teal); font-size: 26px; font-weight: 600; line-height: 1.3; }
.prose h3 { margin: 32px 0 12px; color: var(--navy); font-size: 20px; font-weight: 600; line-height: 1.35; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--teal-dark); }
.prose blockquote {
  margin: 24px 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--teal); color: var(--ink-soft); font-style: italic;
}
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose code {
  padding: 2px 6px; border-radius: 6px;
  background: var(--grey-pill); font-size: .92em;
}
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid #e6e8ea; text-align: left; }
.prose thead th { background: var(--grey-pill); color: var(--navy); font-weight: 600; }

/* --- 15.6 Разделен блок текст + снимка ----------------------------------- */
.split { padding: 64px 0; }
.split__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split--rev .split__media { order: -1; }
.split__body .prose { max-width: none; margin: 0; }
.split__body .btn { margin-top: 24px; }
.split__media img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); }

.section-title--left { text-align: left; }

/* --- 15.7 Списък с отметки ----------------------------------------------- */
.checklist-sec { padding: 64px 0; background: var(--grey-pill); }
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; margin: 0; padding: 0; list-style: none; }
.checklist__item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border-radius: 14px; background: var(--white);
  color: var(--ink-soft); font-size: 15px; line-height: 1.6;
}
.checklist__icon { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; color: var(--teal); }
.checklist__item strong { color: var(--navy); font-weight: 600; }

/* --- 15.8 Таблица --------------------------------------------------------- */
.table-sec { padding: 64px 0; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.table { width: 100%; min-width: 520px; border-collapse: collapse; background: var(--white); font-size: 15px; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #e9ebed; }
.table thead th { background: var(--teal); color: var(--white); font-weight: 600; white-space: nowrap; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:nth-child(even) { background: #fafbfb; }
.table tbody th { color: var(--navy); font-weight: 500; }
.table td { color: var(--ink-soft); }
.table td:last-child { font-weight: 600; color: var(--teal); white-space: nowrap; }
.table-sec__note { max-width: 820px; margin: 16px auto 0; color: #6a7280; font-size: 13.5px; line-height: 1.6; }

/* --- 15.9 Често задавани въпроси ----------------------------------------- */
.faq { padding: 64px 0; }
.faq + .faq { padding-top: 0; }
.faq__list { max-width: 880px; margin: 40px auto 0; }
.faq__item {
  border: 1px solid #e4e7e9; border-radius: 14px;
  background: var(--white); margin-bottom: 12px; overflow: hidden;
}
.faq__item[open] { border-color: var(--teal); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none;
  color: var(--navy); font-size: 16.5px; font-weight: 600; line-height: 1.45;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--teal); }
.faq__icon { flex: 0 0 20px; width: 20px; height: 20px; color: var(--teal); transition: transform .2s ease; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 22px 20px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.72; }
.faq__a p { margin: 0 0 12px; }
.faq__a p:last-child { margin-bottom: 0; }
.faq__a a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.faq__a strong { color: var(--ink); font-weight: 600; }

/* --- 15.10 CTA ивица ------------------------------------------------------ */
.cta-band { padding: 24px 0 72px; }
.cta-band__box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding: 44px 48px; border-radius: var(--radius); background: var(--teal); color: var(--white);
}
.cta-band__title { margin: 0 0 8px; font-size: 27px; font-weight: 600; line-height: 1.25; }
.cta-band__text { margin: 0; max-width: 560px; font-size: 16px; line-height: 1.6; opacity: .93; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.cta-band__link { color: var(--white); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* --- 15.11 Свързани страници ---------------------------------------------- */
.related { padding: 64px 0; background: var(--grey-pill); }
.related__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0 0; padding: 0; list-style: none; }
.related__link {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 22px 24px; border-radius: 16px; background: var(--white);
  text-decoration: none; transition: transform .18s ease, box-shadow .18s ease;
}
.related__link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.related__label { color: var(--navy); font-size: 16px; font-weight: 600; line-height: 1.35; }
.related__text { color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.related__arrow { width: 26px; height: 26px; margin-top: auto; padding-top: 8px; color: var(--teal); stroke: currentColor; }
/* при точно четири връзки ги събираме на един ред — при три колони последната
   увисваше сама (така е на 39 страници) */
.related__list:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .related__list:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .related__list:has(> li:nth-child(4):last-child) { grid-template-columns: 1fr; } }

/* --- 15.12 Галерия -------------------------------------------------------- */
.gallery { padding: 64px 0; }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 45px; }
.gallery__item {
  display: block; overflow: hidden; border-radius: 14px; aspect-ratio: 4 / 3; background: var(--grey-pill);
  /* по-горе (стария блок „Реализирани проекти“) плочката е с фиксирани 300px —
     това надделява над aspect-ratio и я разпъва на 400px, тоест извън колоната */
  height: auto;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__more { margin-top: 32px; text-align: center; }

/* --- 15.12b Галерия като въртележка (gallery.carousel) -------------------- */
.gallery--slider { background: var(--grey-pill); }
/* въртележката ползва по-широка колона от останалите секции — картите са едри */
.gallery--slider > .container { width: min(1180px, 100% - 2 * var(--gutter)); }

.slider { position: relative; margin-top: 45px; }

/* прозорчето крие изнесеното вдясно, а полето отдолу пази сянката на картите */
.slider__viewport { overflow: hidden; padding: 4px 4px 12px; margin: -4px -4px -12px; }

.slider__track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }

/* по три в екрана; портретни карти, защото и снимките са портретни */
.slider__slide {
  flex: 0 0 calc((100% - 2 * 22px) / 3);
  scroll-snap-align: start;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.slider__slide:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0, 0, 0, .14); }
.slider__slide img {
  width: 100%; height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
/* вътре във въртележката плочката не е сивото каре от мрежата */
.slider__slide.gallery__item { overflow: visible; height: auto; background: var(--white); }
.slider__slide.gallery__item:hover img { transform: none; }

.slider__arrow {
  position: absolute;
  top: calc(50% - 26px);          /* точките отдолу не бива да местят стрелките */
  z-index: 2;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  padding: 0;
  border: 0; border-radius: 50%;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .16);
  color: var(--teal);
  cursor: pointer;
  transition: background .16s ease, color .16s ease, opacity .16s ease;
}
.slider__arrow:hover { background: var(--teal); color: var(--white); }
.slider__arrow[disabled] { opacity: .35; cursor: default; }
.slider__arrow[disabled]:hover { background: var(--white); color: var(--teal); }
.slider__arrow svg { width: 16px; height: 10px; }
.slider__arrow--prev { left: -26px; transform: translateY(-50%); }
.slider__arrow--next { right: -26px; transform: translateY(-50%); }
.slider__arrow--prev svg { transform: rotate(90deg); }
.slider__arrow--next svg { transform: rotate(-90deg); }

.slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
/* `display` по-горе бие [hidden], затова се изключва изрично, когато всичко се вижда наведнъж */
.slider__arrow[hidden], .slider__dots[hidden] { display: none; }
.slider__dot {
  width: 9px; height: 9px; padding: 0;
  border: 0; border-radius: 999px;
  background: #c9d2d4;
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.slider__dot[aria-selected="true"] { width: 26px; background: var(--teal); }

@media (max-width: 1080px) {
  .slider__slide { flex-basis: calc((100% - 22px) / 2); }
  .slider__arrow--prev { left: -12px; }
  .slider__arrow--next { right: -12px; }
}
@media (max-width: 640px) {
  .slider__slide { flex-basis: 100%; }
  .slider__arrow { width: 42px; height: 42px; }
  .slider__arrow--prev { left: -8px; }
  .slider__arrow--next { right: -8px; }
}

/* --- 15.13 Проекти: надпис под снимката ---------------------------------- */
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.projects__item { display: block; text-decoration: none; }
.projects__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.projects__caption {
  display: block; margin-top: 10px;
  color: var(--navy); font-size: 15px; font-weight: 500; line-height: 1.45;
}
.projects__item:hover .projects__caption { color: var(--teal); }

/* --- 15.14 Статии: карти -------------------------------------------------- */
.posts { padding: 64px 0; }
.posts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 16px; background: var(--white); box-shadow: var(--shadow);
  transition: transform .18s ease;
}
.post-card:hover { transform: translateY(-3px); }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--grey-pill); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; }
.post-card__cat {
  align-self: flex-start; padding: 4px 12px; border-radius: 999px;
  background: var(--grey-pill); color: var(--teal); font-size: 12px; font-weight: 600;
}
.post-card__title { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.35; }
.post-card__title a { color: var(--navy); text-decoration: none; }
.post-card__title a:hover { color: var(--teal); }
.post-card__text { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.post-card__date { margin-top: auto; padding-top: 6px; color: #7b828c; font-size: 13px; }

/* --- 15.15 Статия --------------------------------------------------------- */
.container--narrow { width: min(760px, 100% - 48px); margin-inline: auto; }
.article__head { padding: 40px 0 8px; }
.article__head .crumbs { margin: 0 0 20px; color: var(--ink-soft); }
.article__cat {
  display: inline-block; margin-bottom: 12px; padding: 5px 14px; border-radius: 999px;
  background: var(--grey-pill); color: var(--teal); font-size: 12.5px; font-weight: 600;
}
.article__title { margin: 0 0 14px; color: var(--navy); font-size: 40px; font-weight: 600; line-height: 1.2; }
.article__meta { margin: 0 0 20px; color: #7b828c; font-size: 14px; }
.article__lead { margin: 0 0 28px; color: var(--ink-soft); font-size: 19px; line-height: 1.65; font-weight: 500; }
.article__cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-bottom: 32px; }
.prose--article { max-width: none; margin: 0 0 56px; font-size: 16.5px; }

.toc { margin: 0 0 36px; padding: 22px 26px; border-radius: 16px; background: var(--grey-pill); }
.toc__title { margin: 0 0 12px; color: var(--navy); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.toc__list { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 15px; line-height: 1.9; }
.toc__list a { color: var(--ink-soft); text-decoration: none; }
.toc__list a:hover { color: var(--teal); text-decoration: underline; }

/* --- 15.16 Контакти и форма ---------------------------------------------- */
.contact { padding: 64px 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact__list { margin: 24px 0 0; padding: 0; list-style: none; }
.contact__list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid #e9ebed;
  color: var(--ink-soft); font-size: 15.5px; line-height: 1.6;
}
.contact__list svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; color: var(--teal); stroke: currentColor; }
.contact__list a { color: var(--navy); font-weight: 500; text-decoration: none; }
.contact__list a:hover { color: var(--teal); }
.contact__list em { color: #8b929b; font-style: normal; font-size: 13.5px; }

.contact__form { padding: 34px 36px; border-radius: var(--radius); background: var(--grey-pill); }
.contact__form-title { margin: 0 0 6px; color: var(--navy); font-size: 23px; font-weight: 600; }
.contact__form-note { margin: 0 0 24px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }

.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; color: var(--navy); font-size: 14px; font-weight: 500; }
.field label span { color: #c0392b; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 15px; border: 1px solid #d9dde0; border-radius: 12px;
  background: var(--white); color: var(--ink); font-family: var(--font); font-size: 15px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(34, 121, 131, .14);
}
.field textarea { resize: vertical; min-height: 110px; }
.field--check { display: flex; gap: 10px; align-items: flex-start; }
.field--check input { width: auto; margin-top: 3px; }
.field--check label { margin: 0; color: var(--ink-soft); font-size: 13.5px; font-weight: 400; line-height: 1.55; }
.field--check a { color: var(--teal); }
.contact__status { margin: 14px 0 0; font-size: 14.5px; font-weight: 500; }
.contact__status[data-state="ok"] { color: #1e7d4e; }
.contact__status[data-state="err"] { color: #c0392b; }

/* --- 15.17 Карта ---------------------------------------------------------- */
.map-sec { padding: 0 0 64px; }
.map-sec__frame { display: block; width: 100%; height: 420px; border: 0; }

/* --- 15.18 Лайтбокс ------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: none; align-items: center; justify-content: center;
  padding: 40px 24px; background: rgba(6, 12, 24, .93);
}
.lightbox[data-open="true"] { display: flex; }
.lightbox__img { max-width: 100%; max-height: 100%; border-radius: 10px; object-fit: contain; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center;
  width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: var(--white);
  font-size: 26px; line-height: 1; cursor: pointer;
  transition: background .16s ease;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .24); }
.lightbox__close { top: 20px; right: 22px; }
.lightbox__prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__counter {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, .8); font-size: 14px; letter-spacing: .04em;
}

/* --- 15.19 Футър: SEO връзки и работно време ----------------------------- */
.footer__col-title--sp { margin-top: 26px; }
.footer__list--plain li { color: rgba(255, 255, 255, .78); }
.footer__seo { margin-top: 44px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, .14); }
.footer__seo-list {
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  margin: 14px 0 0; padding: 0; list-style: none;
}
.footer__seo-list a {
  display: inline-block; padding: 6px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .8); font-size: 12.5px; text-decoration: none;
  transition: background .16s ease, color .16s ease;
}
.footer__seo-list a:hover { background: rgba(255, 255, 255, .16); color: var(--white); }
.footer__copy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* --- 15.20 Респонсив за новите компоненти -------------------------------- */
@media (max-width: 1024px) {
  .related__list, .posts__grid, .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .split__grid { grid-template-columns: 1fr; gap: 32px; }
  .split--rev .split__media { order: 0; }
  .article__title { font-size: 33px; }
}

@media (max-width: 1240px) {
  .subnav {
    position: static; min-width: 0; margin: 6px 0 4px 12px; padding: 0;
    opacity: 1; visibility: visible; transform: none;
    background: transparent; box-shadow: none;
  }
  .subnav a {
    gap: 10px; padding: 5px 10px 5px 5px;
    color: var(--ink); font-size: 14px;
  }
  .subnav a:hover, .subnav a:focus-visible { background: #eaf2f3; color: var(--teal-dark); }
  .subnav__icon {
    width: 32px; height: 32px; border-radius: 9px;
    background: #e2eff1;
  }
  .subnav a:hover .subnav__icon,
  .subnav a:focus-visible .subnav__icon { background: #cde3e7; }
  .subnav__icon img { width: 24px; height: 24px; }
  .subnav__arrow { display: none; }
  /* пълните имена на услугите са дълги — на телефон се пренасят вместо да излизат извън екрана */
  .subnav__label { white-space: normal; }
}

@media (max-width: 700px) {
  .prose-sec, .checklist-sec, .table-sec, .faq, .related, .gallery, .posts, .contact, .split { padding: 44px 0; }
  .checklist { grid-template-columns: 1fr; }
  .related__list, .posts__grid, .projects__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 16px 0 52px; }
  .cta-band__box { flex-direction: column; align-items: flex-start; padding: 32px 26px; }
  .cta-band__title { font-size: 23px; }
  .prose__lead { font-size: 17px; }
  .article__title { font-size: 27px; }
  .prose h2 { font-size: 22px; }
  .contact__form { padding: 26px 22px; }
  .map-sec__frame { height: 320px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
  .lightbox__prev { left: 30px; }
  .lightbox__next { right: 30px; }
  .lightbox__counter { bottom: 36px; }
}

/* --- 15.21 Корекции след визуален преглед -------------------------------- */
/* картите в мрежата да са с еднаква височина и с подравнени връзки */
.services__grid { align-items: stretch; }
.card { display: flex; flex-direction: column; }
.card__body { display: flex; flex-direction: column; flex: 1; }
.card__link { margin-top: auto; padding-top: 12px; }

/* --- 15.22 Стъпки „Как работим“ на генерираните страници ----------------- */
/* Шаблонът реди <li> направо в <ol>, без row-обвивките от оригиналния макет. */
.process { padding: 64px 0; }
/* Гридът е на 6 колони, а всяка карта заема по 2 — така недовършеният последен
   ред може да се измести с една колона и да застане в центъра на горния. */
ol.process__rows {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px;
  margin: 40px 0 0; padding: 0; list-style: none;
}
ol.process__rows > li { display: flex; grid-column: span 2; }

/* 5 стъпки: последните две се центрират под трите отгоре */
ol.process__rows:has(> li:nth-child(5):last-child) > li:nth-child(4) { grid-column: 2 / span 2; }
/* 4 стъпки: последната застава точно в средата */
ol.process__rows:has(> li:nth-child(4):last-child) > li:nth-child(4) { grid-column: 3 / span 2; }
ol.process__rows .step {
  justify-content: flex-start; gap: 8px;
  min-height: 0; width: 100%; padding: 30px 26px 32px;
  text-align: left;
}
ol.process__rows .step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-bottom: 6px; border-radius: 50%;
  background: var(--teal); color: var(--white); font-size: 15px; font-weight: 600;
}
ol.process__rows .step__title { margin: 0; font-size: 19px; line-height: 1.3; color: var(--navy); }
ol.process__rows .step__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

@media (max-width: 900px) {
  ol.process__rows { grid-template-columns: repeat(4, 1fr); }
  /* по две в ред — центрирането на последния ред важи само при нечетен брой */
  ol.process__rows:has(> li:nth-child(5):last-child) > li:nth-child(4) { grid-column: span 2; }
  ol.process__rows:has(> li:nth-child(5):last-child) > li:nth-child(5) { grid-column: 2 / span 2; }
  ol.process__rows:has(> li:nth-child(4):last-child) > li:nth-child(4) { grid-column: span 2; }
}
@media (max-width: 600px) {
  ol.process__rows { grid-template-columns: repeat(2, 1fr); }
  ol.process__rows > li,
  ol.process__rows:has(> li:nth-child(5):last-child) > li:nth-child(4),
  ol.process__rows:has(> li:nth-child(5):last-child) > li:nth-child(5),
  ol.process__rows:has(> li:nth-child(4):last-child) > li:nth-child(4) { grid-column: span 2; }
}

/* --- 15.23 „Поток“ — техническа спецификация вместо мрежа от карти ---------
   Нарочно без карти, без сенки и почти без заобляния: разделителите са
   косъмни линии, както в архитектурен каталог. Единственият „плътен“ обект
   е снимката отляво — тя носи характера, а разрезът във фона дава дълбочина. */
.flow {
  --hair: rgba(19, 34, 67, .13);
  --muted: #6a7382;
  position: relative;
  padding: 92px 0 96px;
  background: #f2f4f6;
  overflow: hidden;
}

/* разрезът — маска, за да се управлява цветът от CSS */
.flow__plate {
  position: absolute;
  left: min(0px, calc(50% - 640px));
  bottom: -18px;
  width: 330px;
  height: min(1180px, 96%);
  background: var(--flow-plate) no-repeat left bottom / contain;
  opacity: .55;
  pointer-events: none;
}

/* --- широка скица: плочата покрива цялата секция, а не тясна ивица отляво --- */
.flow__plate--wide {
  inset: 0;
  width: auto;
  height: auto;
  background: var(--flow-plate) no-repeat center center / cover;
  opacity: 1;
}

/* Скици с много свободен център не се раздуват според височината на секцията. */
.flow__plate--wide.flow__plate--compact {
  background-size: 100% auto;
  background-position: center 58%;
}

.flow > .container { position: relative; }
.container--flow { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.flow__title { color: var(--navy); }
.flow__lead {
  max-width: 620px;
  margin: 14px auto 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

/* --- стъпките: само номер и текст, разделени с линии --- */
.flow__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 52px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hair);
}
.flow__step { padding: 30px 34px 34px; border-left: 1px solid var(--hair); }
.flow__step:first-child { padding-left: 0; border-left: 0; }
.flow__step:last-child { padding-right: 0; }
.flow__step-num {
  display: block;
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.flow__step-label { margin: 13px 0 7px; color: var(--navy); font-size: 23px; font-weight: 600; line-height: 1.2; }
.flow__step-note { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }

/* --- основната част: снимка отляво, спецификация отдясно --- */
.flow__main {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 0 48px;
  margin-top: 46px;
  align-items: stretch;
}

.flow__feature {
  margin: 0;
  border-radius: 2px;
  background: var(--white);
  box-shadow: 0 18px 46px rgba(19, 34, 67, .16);
  overflow: hidden;
}
.flow__feature img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: 58% 45%; }
.flow__feature-body { padding: 22px 24px 26px; }
.flow__feature-kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--teal);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.flow__feature-title { margin: 0 0 8px; color: var(--navy); font-size: 20px; font-weight: 600; line-height: 1.28; }
.flow__feature-text { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }

/* --- спецификацията: две колони, разделени само с линии --- */
.flow__specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;          /* трите реда делят височината на снимката поравно */
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.flow__spec {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 26px 26px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 4px 18px rgba(19, 34, 67, .07);
  transition: transform .18s ease, box-shadow .18s ease;
}
.flow__spec:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(19, 34, 67, .12); }
.flow__spec-icon { flex: 0 0 auto; width: 42px; height: 42px; object-fit: contain; }
.flow__spec-number {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.flow__spec-title { margin: 1px 0 7px; color: var(--navy); font-size: 17px; font-weight: 600; line-height: 1.25; }
.flow__spec-text { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
/* при нечетен брой картите не оставят самотна плочка на последния ред */
.flow__spec:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* --- 15.24 Широка мрежа с услуги (services_grid.wide) -------------------- */
/* при много позиции ги разстиламе по ширината на екрана, за да са по-малко редове */
.services--wide > .container { width: min(1560px, 100% - 2 * var(--gutter)); }
/* тук мрежата е flex, а не grid: непълният последен ред се центрира сам,
   вместо да увисва вляво */
.services--wide .services__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 34px 26px;
}
.services--wide .card { flex: 0 0 calc((100% - 4 * 26px) / 5); }
.services--wide .card__title { font-size: 18px; }
.services--wide .card__body { padding-inline: 22px; }

/* без иконка горното поле от 51px няма какво да заобикаля — заглавието се вдига */
.card--flat .card__body { padding-top: 24px; gap: 12px; }

@media (max-width: 1620px) { .services--wide .card { flex-basis: calc((100% - 3 * 26px) / 4); } }
@media (max-width: 1300px) { .services--wide .card { flex-basis: calc((100% - 2 * 26px) / 3); } }
@media (max-width: 1024px) { .services--wide .card { flex-basis: calc((100% - 26px) / 2); } }
@media (max-width: 620px)  { .services--wide .card { flex-basis: 100%; max-width: 340px; } }

/* --- затварящият ред: вляво под спецификацията, не центриран --- */
.flow__close {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.flow__close-icon { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 1px; color: var(--teal); }

/* --- вариант с много позиции (над 6): снимката се разпъва по цялата колона --- */
@media (min-width: 1081px) {
  /* редовете са с естествена височина и НЕ се разпъват — иначе снимката
     диктува височината на реда и плочките се надуват с празнина отдолу */
  .flow--tall .flow__specs { grid-auto-rows: auto; align-content: start; gap: 14px; }
  .flow--tall .flow__spec { padding: 18px 22px 20px; gap: 14px; }
  .flow--tall .flow__spec-icon { width: 40px; height: 40px; }
  .flow--tall .flow__spec-title { margin: 0 0 5px; font-size: 16px; }
  .flow--tall .flow__spec-text { font-size: 14px; line-height: 1.5; }
  .flow--tall .flow__feature { display: flex; flex-direction: column; }
  /* height:0 + flex:1 — снимката запълва каквото остане от колоната,
     без да добавя собствената си височина към реда */
  .flow--tall .flow__feature img { flex: 1 1 auto; height: 0; min-height: 320px; aspect-ratio: auto; }
}

@media (max-width: 1080px) {
  .flow__main { grid-template-columns: 1fr; gap: 40px; }
  .flow__feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; }
  .flow__feature img { height: auto; aspect-ratio: 4 / 3; }
  .flow__feature-body { padding: 26px 30px; }
  .flow__plate { opacity: .3; }
  .flow__plate--wide { opacity: 1; }
}
@media (max-width: 900px) {
  .flow { padding: 66px 0 72px; }
  .flow__steps { grid-template-columns: repeat(2, 1fr); }
  .flow__step { padding: 24px 24px 26px; }
  .flow__step-label { font-size: 20px; }
  .flow__step:nth-child(odd) { padding-left: 0; border-left: 0; }
  .flow__step:nth-child(even) { padding-right: 0; }
  .flow__step:nth-child(n + 3) { border-top: 1px solid var(--hair); }
  .flow__plate { display: none; }
}
@media (max-width: 620px) {
  .flow__steps { grid-template-columns: 1fr; }
  .flow__step { padding: 16px 0 18px; border-left: 0; }
  .flow__step + .flow__step { border-top: 1px solid var(--hair); }
  .flow__feature { grid-template-columns: 1fr; }
  .flow__feature img { aspect-ratio: 4 / 3; }
  .flow__specs { grid-template-columns: 1fr; }
  .flow__specs { grid-auto-rows: auto; }
}

/* --- 15.25 Видео блок ------------------------------------------------------ */
.video-sec { padding: 64px 0; }
.video-sec__frame {
  max-width: 820px; margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; background: #000;
}
.video-sec__frame video { display: block; width: 100%; height: auto; }
@media (max-width: 620px) {
  .video-sec { padding: 44px 0; }
}

/* --- 15.26 Непълен последен ред: картите се центрират --------------------- */
/* CSS grid подравнява последния ред вляво и при 5 карти в 3 колони двете
   отдолу увисваха вляво. Затова мрежите с карти минават на flex — ширините
   на картите се смятат по същата формула като при grid, така че редовете
   изглеждат идентично, но непълният ред застава в средата.
   Броят колони живее в `--cols`, разстоянието между тях — в `--col-gap`;
   респонсивът по-долу сменя само `--cols`. */
.related__list,
.services__grid,
.posts__grid,
.projects__grid {
  display: flex;
  flex-direction: row;         /* .projects__grid носи стар `column` от секция 11 */
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}
.related__list  { --cols: 3; --col-gap: 16px; }
.services__grid { --cols: 3; --col-gap: 42px; }
.posts__grid    { --cols: 3; --col-gap: 26px; }
.projects__grid { --cols: 3; --col-gap: 20px; }

.related__list > *,
.services__grid > *,
.posts__grid > *,
.projects__grid > * {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--col-gap)) / var(--cols));
  min-width: 0;                /* дългите заглавия да не разпъват картата */
}

/* при точно четири връзки ги събираме на един ред — виж 15.11 */
.related__list:has(> li:nth-child(4):last-child) { --cols: 4; }

@media (max-width: 1024px) {
  .related__list, .posts__grid, .projects__grid, .services__grid { --cols: 2; }
  .related__list:has(> li:nth-child(4):last-child) { --cols: 2; }
}
@media (max-width: 700px) {
  .related__list, .posts__grid, .projects__grid { --cols: 1; }
  .related__list:has(> li:nth-child(4):last-child) { --cols: 1; }
}
@media (max-width: 620px) {
  .services__grid { --cols: 1; }
}

/* --- 15.27 Отзиви от Google ----------------------------------------------- */
.reviews { padding: 64px 0; }
.reviews--tint { background: var(--grey-pill); }

.reviews__head {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.reviews__intro { flex: 1 1 460px; }
.reviews__intro .section-title { margin-bottom: 0; }
.reviews__intro .prose__lead { margin: 14px 0 0; text-align: left; }

/* без значка секцията е центрирана като останалите на сайта */
.reviews__head--solo { display: block; }
.reviews__head--solo .reviews__intro .prose__lead { margin: 14px auto 0; text-align: center; }

/* значката с общата оценка — води към профила в Google */
.reviews__badge {
  display: flex; align-items: center; gap: 16px; flex: 0 0 auto;
  padding: 16px 22px; border-radius: var(--radius);
  background: var(--white); border: 1px solid #e6e8ea;
  box-shadow: 0 10px 30px rgba(10, 20, 47, .07);
  color: inherit; text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.reviews__badge:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(10, 20, 47, .12); }
.reviews__badge .g-logo { width: 34px; height: 34px; flex: none; }
.reviews__badge-body { display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 10px; }
.reviews__badge-score { color: var(--navy); font-size: 30px; font-weight: 600; line-height: 1; }
.reviews__badge-count { grid-column: 1 / -1; color: var(--ink-soft); font-size: 14px; }

/* звездички: сив ред отдолу, златен отгоре, отрязан до --pct */
.stars { position: relative; display: inline-flex; line-height: 0; }
.stars__row { display: flex; gap: 3px; }
.stars__row svg { width: 15px; height: 14px; flex: none; }
.stars__row--bg { color: #dfe3e6; }
.stars__row--on {
  position: absolute; inset: 0; width: var(--pct, 100%);
  overflow: hidden; color: #F5A623;
}

/* картата с отзива */
.review {
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px 26px 28px; border-radius: var(--radius);
  background: var(--white); border: 1px solid #e6e8ea; height: auto;
}
.review:hover { transform: none; box-shadow: 0 14px 36px rgba(10, 20, 47, .1); }
.review__top { display: flex; align-items: center; gap: 12px; }
.review__avatar {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal); color: var(--white); font-size: 19px; font-weight: 600;
}
/* въртележката разпъва всяка снимка в слайда (.slider__slide img — 0,2,0);
   аватарът е изключение и се нуждае от по-специфично правило */
.slider__slide.review .review__avatar--photo {
  width: 44px; height: 44px; object-fit: cover; background: var(--grey-pill);
}
.review__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.review__author {
  color: var(--navy); font-size: 16px; font-weight: 600; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.review__date { color: var(--ink-soft); font-size: 13px; }
.review__top .g-logo { width: 20px; height: 20px; flex: none; margin-left: auto; }
.review__text {
  margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden;
}
.review__text.is-open { -webkit-line-clamp: unset; }
.review__more {
  align-self: flex-start; padding: 0; border: 0; background: none;
  color: var(--teal); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.review__more:hover { color: var(--teal-dark); }
.reviews__more { margin-top: 32px; text-align: center; }

@media (max-width: 860px) {
  .reviews__head { justify-content: flex-start; }
  .reviews__badge { padding: 14px 18px; }
  .reviews__badge-score { font-size: 26px; }
}

/* ==========================================================================
   21. За нас — герой с голямото число и лента със статистики
   Оформлението следва макета, подаден от клиента (28.08.2026): страницата
   тръгва направо със заглавието, без тъмната заглавна ивица със снимка.
   ========================================================================== */
.ahero__wrap,
.statrow__wrap { width: min(1295px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.ahero { padding: clamp(24px, 3vw, 40px) 0 clamp(24px, 3vw, 40px); }
.ahero .crumbs { margin: 0 0 clamp(16px, 2.2vw, 28px); color: var(--ink-soft); font-size: 14px; }

.ahero__grid {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.ahero__body { display: flex; flex-direction: column; align-items: flex-start; }

.ahero__eyebrow {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal);
  color: var(--teal);
  font-size: clamp(12.5px, 1vw, 14px);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.ahero__title {
  margin-top: clamp(20px, 2.4vw, 32px);
  color: var(--navy);
  font-size: clamp(31px, 3.9vw, 56px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.01em;
}

/* голямото „20+" с вертикалната черта и надписа вдясно */
.ahero__figure {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  margin-top: clamp(16px, 2vw, 26px);
  color: var(--teal);
}
.ahero__number {
  font-size: clamp(72px, 10vw, 148px);
  font-weight: 600;
  line-height: .92;
  letter-spacing: -.02em;
}
.ahero__caption {
  max-width: 5.5em;
  padding-left: clamp(16px, 2.2vw, 32px);
  border-left: 2px solid rgba(34, 121, 131, .35);
  font-size: clamp(19px, 2vw, 29px);
  font-weight: 500;
  line-height: 1.18;
  text-transform: uppercase;
}

/* картата вдясно: текст отляво, реален кадър от обект отдясно */
.ahero__card {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 28px);
  margin: 0;
  padding: clamp(18px, 2.1vw, 28px);
  border-radius: var(--radius);
  background: var(--grey-pill);
}
.ahero__card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding-left: clamp(4px, .8vw, 12px);
}
.ahero__card-title {
  color: var(--navy);
  font-size: clamp(21px, 2.2vw, 31px);
  font-weight: 600;
  line-height: 1.18;
  text-transform: uppercase;
}
.ahero__card-text {
  color: var(--ink-soft);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
}
.ahero__card-img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  object-position: center 26%;
  border-radius: 14px;
}

/* лентата с трите числа */
.statrow { padding: 0 0 clamp(14px, 1.8vw, 26px); }
.statrow__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: clamp(18px, 2.2vw, 30px) clamp(10px, 1.6vw, 22px);
  border: 1px solid #e4e7e9;
  border-radius: var(--radius);
  background: var(--white);
}
.statrow__item {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
  padding-inline: clamp(10px, 1.6vw, 26px);
}
.statrow__item + .statrow__item { border-left: 1px solid #e4e7e9; }
.statrow__icon { flex: 0 0 auto; color: var(--teal); }
.statrow__icon svg { width: clamp(36px, 3.2vw, 48px); height: clamp(36px, 3.2vw, 48px); }
.statrow__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.statrow__num {
  color: var(--navy);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.06;
}
.statrow__label {
  color: var(--ink-soft);
  font-size: clamp(13.5px, 1.1vw, 17px);
  font-weight: 500;
  line-height: 1.35;
}
.statrow__note { color: #6a7280; font-size: clamp(12px, .95vw, 14.5px); line-height: 1.35; }

/* бял бутон с контур — третият вариант на пилюлата */
.btn--outline {
  background: var(--white);
  border: 1.5px solid #dfe3e6;
  color: var(--navy);
}
.btn--outline .btn__icon { background: var(--teal); }
.btn--outline .btn__icon svg { stroke: var(--white); }
.btn--outline:hover { border-color: var(--teal); color: var(--teal); }

/* разказът под лентата стъпва на същата лява граница като героя */
.split--wide > .container { width: min(1295px, 100% - 2 * var(--gutter)); }
.split--wide .split__grid { gap: clamp(32px, 4vw, 72px); align-items: stretch; }
.split--wide .split__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.split--wide .split__media img { height: 100%; max-height: 620px; object-position: center 22%; }

/* водещото изречение под заглавието е обещанието на страницата — носи се от тежестта */
.split .prose__lead {
  margin: 14px 0 26px;
  color: var(--navy);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 600;
  line-height: 1.45;
}

@media (max-width: 1024px) {
  .ahero__grid { grid-template-columns: 1fr; }
  .statrow__list { grid-template-columns: 1fr; padding: 6px clamp(14px, 3vw, 24px); }
  .statrow__item { padding: 18px 0; }
  .statrow__item + .statrow__item { border-left: 0; border-top: 1px solid #e4e7e9; }
  .split--wide > .container { width: min(1008px, 100% - 2 * var(--gutter)); }
}

@media (max-width: 700px) {
  .ahero { padding-top: 26px; }
  .ahero__card { grid-template-columns: 1fr; }
  .ahero__card-body { order: 2; padding: 0 4px 4px; }
  .ahero__card-img { min-height: 0; aspect-ratio: 16 / 10; }
  .ahero__figure { gap: 16px; }
  .ahero__caption { max-width: 6em; font-size: 17px; }
}

/* --- 23. Самостоятелна галерия ------------------------------------------ */
.photo-library { padding: 64px 0 70px; }
.photo-library__container { --container: 1180px; }
.photo-library__intro { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 32px; }
.photo-library__eyebrow { color: var(--teal); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.photo-library__intro h2 { color: var(--ink); font-weight: 500; font-size: clamp(26px, 3vw, 38px); line-height: 1.25; }
.photo-library__intro > p { max-width: 430px; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.photo-library__filters { display: flex; flex-wrap: wrap; gap: 9px; padding-block: 22px; border-block: 1px solid #e2e7e8; }
.photo-library__filters button { display: inline-flex; gap: 9px; align-items: center; border: 1px solid transparent; padding: 11px 15px; border-radius: 32px; background: var(--grey-pill); color: var(--ink-soft); font-size: 13px; cursor: pointer; }
.photo-library__filters button:hover { border-color: var(--teal); }
.photo-library__filters button[aria-pressed="true"] { background: var(--teal); color: white; }
.photo-library__filters button span { font-size: 11px; opacity: .75; }
.photo-library__status { margin: 20px 0; font-size: 12px; color: #657078; }
.photo-library__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 22px; }
.photo-library__card { margin: 0; min-width: 0; }
.photo-library .photo-library__image { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 14px; background: var(--grey-pill); overflow: hidden; }
.photo-library__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.photo-library__image:hover img { transform: scale(1.035); }
.photo-library__zoom { position: absolute; bottom: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: white; font-size: 22px; }
.photo-library__card figcaption { padding: 15px 2px 0; }
.photo-library__category { display: block; color: var(--teal); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 7px; }
.photo-library__card figcaption a, .photo-library__name { display: block; font-size: 13px; font-weight: 500; line-height: 1.6; }
.photo-library__card figcaption a:hover { color: var(--teal); text-decoration: underline; }
.photo-library__more { display: flex; justify-content: center; margin-top: 42px; }
.photo-library__more button { border: 0; cursor: pointer; }
.photo-library__projects { margin-top: 42px; padding-top: 26px; border-top: 1px solid #e2e7e8; display: flex; justify-content: space-between; gap: 20px; font-size: 13px; line-height: 1.7; }
.photo-library__projects a { color: var(--teal); font-weight: 600; }
.photo-library [hidden] { display: none !important; }
.video-library { padding: 64px 0; background: var(--grey-pill); }
.video-library .photo-library__eyebrow, .video-library__lead { text-align: center; }
.video-library__lead { max-width: 600px; margin: 20px auto 34px; font-size: 14px; color: var(--ink-soft); line-height: 1.8; }
.video-library__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.video-library__card { margin: 0; min-width: 0; }
.video-library video { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #142027; border-radius: 14px; }
.video-library__card figcaption { padding: 18px 0 0; }
.video-library h3 { font-size: 16px; font-weight: 500; line-height: 1.5; }
.video-library__card p { margin-top: 8px; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.lightbox { padding: 74px 82px 105px; }
.lightbox__caption { position: absolute; bottom: 53px; left: 18%; right: 18%; text-align: center; color: white; font-size: 13px; line-height: 1.5; }
.lightbox__btn[hidden] { display: none; }
@media (min-width: 1241px) {
  .nav { padding-inline: clamp(14px, 1.8vw, 32px); }
  .nav__list { gap: clamp(9px, 1.05vw, 18px); }
}
@media (max-width: 900px) {
  .photo-library__intro { display: block; }
  .photo-library__intro > p { margin-top: 18px; max-width: 600px; }
  .photo-library__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-library__projects { flex-direction: column; gap: 8px; }
}
@media (max-width: 620px) {
  .photo-library, .video-library { padding-block: 40px; }
  .photo-library__grid { gap: 25px 14px; }
  .photo-library__filters { gap: 7px; }
  .photo-library__filters button { padding: 10px 12px; font-size: 12px; }
  .photo-library__card figcaption a, .photo-library__name { font-size: 12px; }
  .photo-library__category { font-size: 9px; letter-spacing: .04em; }
  .photo-library__zoom { width: 27px; height: 27px; font-size: 18px; bottom: 8px; right: 8px; }
  .video-library__grid { grid-template-columns: 1fr; gap: 30px; max-width: 400px; margin-inline: auto; }
  .lightbox { padding: 76px 14px 150px; }
  .lightbox__caption { bottom: 90px; left: 18px; right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-library__image img { transition: none; }
}
@media (min-width: 1241px) and (max-width: 1350px) {
  .nav { padding-inline: 14px; }
  .nav__list { gap: 10px; }
}

/* --- 24. Мобилен преглед: навигация, четимост и ширини -------------------- */
.header__phone, .nav__toggle { display: none; }
.page-hero__inner { width: 100%; min-width: 0; }
.crumbs__item { min-width: 0; overflow-wrap: anywhere; }
h1, h2, h3 { overflow-wrap: anywhere; hyphens: auto; }
.flow__main > *, .flow__specs, .flow__spec, .flow__spec-body { min-width: 0; }
.prose, .contact__info, .contact__form { min-width: 0; overflow-wrap: anywhere; }
.table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; margin-bottom: 24px; }
.prose .table-scroll table { min-width: 520px; margin-bottom: 0; overflow-wrap: normal; }
.table-scroll__hint { display: none; }
.field input, .field select, .field textarea { min-width: 0; font-size: 16px; }
.field--check input { flex: 0 0 20px; width: 20px; height: 20px; accent-color: var(--teal); }
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

@media (max-width: 1240px) {
  .header__phone { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 8px 15px; margin-left: auto; border: 1px solid #d6e5e7; border-radius: 30px; color: var(--teal); font-size: 13px; font-weight: 600; }
  .nav { visibility: hidden; pointer-events: none; overflow-x: hidden; }
  .nav[data-open="true"] { visibility: visible; pointer-events: auto; }
  .nav__link { width: 100%; min-height: 44px; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
  .nav__item--has-sub > .nav__link { padding-right: 52px; }
  .nav__item--has-sub > .nav__link > svg { display: none; }
  .nav__toggle { display: grid; place-items: center; position: absolute; right: 0; top: 3px; width: 44px; height: 44px; padding: 0; border: 1px solid #d6e5e7; border-radius: 12px; background: white; color: var(--teal); cursor: pointer; }
  .nav__toggle svg { width: 12px; height: 8px; transition: transform .2s ease; }
  .nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .nav .subnav { display: none; margin-left: 4px; padding-block: 6px 12px; }
  .nav__item--has-sub[data-sub-open="true"] > .subnav { display: block; }
  .subnav__link { min-height: 44px; }
  .nav__cta .btn { width: 100%; justify-content: space-between; }
}
@media (max-width: 860px) {
  .features__grid { grid-template-columns: minmax(0, 1fr); }
  .features__grid > .feature { min-width: 0; }
}
@media (max-width: 700px) {
  .table-scroll__hint { display: block; margin: 0 0 10px !important; font-size: 12px; line-height: 1.5; color: var(--teal); }
  .slider__dots { flex-wrap: wrap; gap: 2px; margin-top: 16px; }
  .slider__dot, .slider__dot[aria-selected="true"] { display: grid; place-items: center; width: 32px; height: 44px; background: transparent; }
  .slider__dot::before { content: ''; width: 9px; height: 9px; border-radius: 20px; background: #9caeb2; }
  .slider__dot[aria-selected="true"]::before { width: 24px; background: var(--teal); }
  .slider__arrow { min-width: 44px; min-height: 44px; }
  .photo-library__filters button, .projects__filter { min-height: 44px; }
  .review__more { min-height: 44px; }
  .footer__list a { display: inline-block; padding-block: 7px; }
  .footer__seo-list a { display: inline-block; padding-block: 5px; }
}
@media (max-width: 620px) {
  .section-title { font-size: clamp(23px, 6.4vw, 28px); line-height: 1.3; }
  .page-hero__title { font-size: clamp(27px, 7.2vw, 34px); }
  .services { padding-top: 52px; }
  .services--tint { padding-bottom: 52px; }
  .services:has(+ .gallery) { padding-bottom: 52px; }
  .features { padding-top: 48px; }
  .gallery + .partners { padding-top: 52px; }
  .flow__main, .flow__specs { grid-template-columns: minmax(0, 1fr); }
  .flow__feature-body { padding: 22px; }
  .flow__spec { gap: 14px; padding: 22px 18px; }
  .flow__spec-title { overflow-wrap: anywhere; }
  .cta-band__actions, .cta-band__actions .btn { width: 100%; }
  .cta-band__actions .btn { justify-content: space-between; font-size: 15px; }
  .cta-band__link { display: inline-flex; align-items: center; min-height: 44px; }
  .contact__list li { flex-wrap: wrap; column-gap: 10px; }
  .contact__list a { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html, .slider__track { scroll-behavior: auto; }
  .nav, .nav__toggle svg { transition: none; }
}
