/* ── Цветове и размери ───────────────────────────────────── */
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #18201b;
  --ink-soft: #3d4741;
  --muted: #66706a;
  --line: #e2e0d8;
  --brand: #166534;
  --brand-dark: #14532d;
  --brand-soft: #e7f2ea;
  --accent: #f59e0b;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(16 24 20 / .06), 0 8px 24px rgb(16 24 20 / .06);
  --container: 1160px;
  --prose: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.075rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-soft); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; margin: 0 0 .9rem; font-size: .8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
}
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ── Бутони ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.25rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: .975rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: .95rem 1.6rem; font-size: 1.075rem; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--ghost { border-color: rgb(255 255 255 / .7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--light { background: #fff; color: var(--brand-dark); }
.btn--light:hover { background: var(--accent); color: var(--ink); }

/* ── Хедър ───────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.logo:hover { color: var(--ink); }
.logo__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--brand); color: #fff; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  display: block; padding: .5rem .8rem; border-radius: 8px;
  color: var(--ink-soft); font-weight: 600; text-decoration: none;
}
.site-nav ul a:hover { background: var(--bg); color: var(--ink); }
.site-nav ul a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; border-radius: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .75rem;
    padding: 1rem 20px 1.25rem; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgb(0 0 0 / .08);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: .75rem .8rem; font-size: 1.05rem; }
}

/* ── Hero (начална) ──────────────────────────────────────── */
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(78vh, 640px); display: flex; align-items: flex-end; overflow: hidden; }
.hero__img, .page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(10 20 14 / .25) 0%, rgb(10 20 14 / .55) 45%, rgb(10 20 14 / .88) 100%);
}
.hero__inner { padding-top: 6rem; padding-bottom: 4rem; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .eyebrow { color: #a7f3c0; }
.hero__lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); max-width: 40ch; color: rgb(255 255 255 / .9); margin-bottom: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__actions--center { justify-content: center; }

/* ── Статистика ──────────────────────────────────────────── */
.stats { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 1.5rem 1rem; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 800; color: var(--brand); line-height: 1.2; }
.stat span { color: var(--muted); font-size: .925rem; }
@media (max-width: 720px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ── Секции ──────────────────────────────────────────────── */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section--tight { padding-top: 1rem; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section__head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.075rem; }

/* ── Текстово съдържание ─────────────────────────────────── */
.prose { max-width: calc(var(--prose) + 40px); color: var(--ink-soft); }
.prose h2 { margin-top: 2.2em; padding-top: .2em; }
.prose h3 { margin-top: 1.8em; }
.prose h4 { margin-top: 1.5em; }
.prose > :first-child { margin-top: 0; }
.prose strong { color: var(--ink); }
.prose a strong { color: inherit; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--brand); }
.prose .btn { margin-block: .5rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: .7em .9em; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--brand-soft); color: var(--ink); font-weight: 700; }
.prose tbody tr:last-child td { border-bottom: 0; }

/* ── Услуги ──────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 2.5rem; }
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.feature h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
.feature__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); margin-bottom: 1rem; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ── Вътрешни страници ───────────────────────────────────── */
.page-hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; }
.page-hero__inner { padding-top: 5rem; padding-bottom: 2.75rem; }
.page-hero h1 { color: #fff; max-width: 20ch; font-size: clamp(1.9rem, 4.5vw, 2.85rem); }
.page-hero__lead { font-size: 1.15rem; color: rgb(255 255 255 / .9); margin: 0; }

.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; }
.page-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.85rem); max-width: 22ch; }
.page-head__lead { color: var(--muted); font-size: 1.15rem; max-width: 60ch; margin: 0; }

/* ── Контакти ────────────────────────────────────────────── */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 1rem auto 3rem; max-width: 960px; }
.contact-card {
  display: flex; flex-direction: column; gap: .35rem; padding: 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink-soft); box-shadow: var(--shadow);
  transition: transform .15s, border-color .15s;
}
.contact-card:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--ink-soft); }
.contact-card .feature__icon { margin-bottom: .5rem; }
.contact-card__label { font-size: .95rem; }
.contact-card__value { color: var(--brand); font-size: 1.25rem; }
@media (max-width: 780px) { .contact-cards { grid-template-columns: 1fr; } }

/* ── Блог ────────────────────────────────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
.post-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(16 24 20 / .06), 0 16px 32px rgb(16 24 20 / .1); }
.post-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.4rem 1.5rem; }
.post-card time { font-size: .85rem; color: var(--muted); margin-bottom: .4rem; }
.post-card h2 { font-size: 1.2rem; margin-bottom: .6rem; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--brand); }
.post-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.post-card__more { font-weight: 700; text-decoration: none; }

.post__head { max-width: calc(var(--prose) + 40px); padding-top: clamp(2rem, 5vw, 3.5rem); }
.post__head h1 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); }
.post__meta { color: var(--muted); font-size: .95rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.post__image { max-width: calc(960px + 40px); margin-block: 1.5rem 2.5rem; }
.post__image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.post-nav { max-width: calc(var(--prose) + 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-block: 2rem 4rem; }
.post-nav__link {
  display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.2rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); font-weight: 600; text-decoration: none; line-height: 1.4;
}
.post-nav__link span { font-size: .85rem; color: var(--brand); font-weight: 700; }
.post-nav__link:hover { border-color: var(--brand); color: var(--ink); }
.post-nav__link--next { text-align: right; }
@media (max-width: 620px) { .post-nav { grid-template-columns: 1fr; } .post-nav__link--next { text-align: left; } }

/* ── CTA лента ───────────────────────────────────────────── */
.cta { background: var(--brand-dark); color: #fff; padding: 3rem 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .3rem; }
.cta p { margin: 0; color: rgb(255 255 255 / .85); }

/* ── 404 ─────────────────────────────────────────────────── */
.error-page { min-height: 60vh; display: grid; place-items: center; }
.error-page__code { font-size: clamp(5rem, 15vw, 8rem); font-weight: 800; color: var(--brand); line-height: 1; margin: 0 0 1rem; }

/* ── Футър ───────────────────────────────────────────────── */
.site-footer { background: #101713; color: #b9c2bc; font-size: .95rem; padding-top: 3.5rem; }
.site-footer a { color: #e6ece8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.site-footer__brand { color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: .5rem; }
.site-footer__title { color: #fff; font-weight: 700; margin-bottom: .75rem; }
.site-footer ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer address { font-style: normal; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; border-top: 1px solid #26302a; padding-block: 1.25rem; font-size: .875rem; }
.site-footer__bottom p { margin: 0; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ── Плаващ бутон „Обадете се“ (само мобилни) ────────────── */
.call-fab { display: none; }
@media (max-width: 900px) {
  .site-nav__phone { width: 100%; }
  .call-fab {
    position: fixed; right: 16px; bottom: 16px; z-index: 60;
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .85rem 1.2rem; border-radius: 999px;
    background: var(--brand); color: #fff; font-weight: 700; text-decoration: none;
    box-shadow: 0 8px 24px rgb(20 83 45 / .4);
  }
  .call-fab:hover { color: #fff; background: var(--brand-dark); }
  .site-footer { padding-bottom: 4.5rem; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__actions .btn { width: 100%; }
  .cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
