:root {
  --ink: #1d2a35;
  --ink-2: #4a5966;
  --bg: #ffffff;
  --bg-alt: #f4f1ea;
  --line: #e2ddd2;
  --accent: #f2a007;
  --accent-ink: #1d2a35;
  --accent-dark: #c98200;
  --viber: #7360f2;
  --viber-dark: #5a48d6;
  --call: #1f8a4c;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(29, 42, 53, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: #0b5cad; }
h1, h2, h3, .h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.75rem, 4.2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin-top: 1.2em; }
h3, .h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.section { padding: 40px 0; }
.wrap.section { padding: 40px 16px; }
.alt { background: var(--bg-alt); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.small { font-size: .9rem; color: var(--ink-2); }
.note { color: var(--ink-2); font-size: .95rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px; z-index: 100; }

/* бутони */
.btn {
  display: inline-flex; align-items: center; gap: .45em; justify-content: center;
  padding: .75em 1.2em; border-radius: var(--radius); border: 0;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  line-height: 1.2; min-height: 48px;
}
.btn-lg { font-size: 1.1rem; padding: .9em 1.4em; }
.btn svg { flex: none; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-viber { background: var(--viber); color: #fff; }
.btn-viber:hover { background: var(--viber-dark); }
.btn-call { background: var(--call); color: #fff; }
.btn-call:hover { background: #17703c; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 1em 0; }
.btns.center { justify-content: center; }
.btns.col { flex-direction: column; align-items: stretch; }

/* горна лента и хедър */
.topbar { background: var(--ink); color: #fff; font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.top-contacts { display: flex; gap: 14px; }
.top-viber { background: var(--viber); padding: 0 .6em; border-radius: 6px; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; line-height: 1.1; }
.logo small { display: block; font-weight: 500; font-size: .75rem; color: var(--ink-2); }
#nav { margin-left: auto; }
#nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
#nav a { color: var(--ink); text-decoration: none; padding: .5em .6em; border-radius: 6px; font-weight: 600; font-size: .95rem; }
#nav a:hover, #nav a[aria-current] { background: var(--bg-alt); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .5em .8em; font: inherit; font-weight: 600; min-height: 44px; }

.crumbs { font-size: .88rem; color: var(--ink-2); padding-top: 14px; }
.crumbs a { color: var(--ink-2); }

/* начало */
.hero { background: linear-gradient(180deg, var(--bg-alt), #fff); padding: 40px 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.eyebrow { font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; }
/* бутоните в началото – еднаква ширина; на тесен екран един под друг */
.btns-eq { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.btns-eq .btn { white-space: nowrap; }

.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 24px; padding-bottom: 8px; }
.promise { border-top: 4px solid var(--accent); }
.promise p { margin: 0; color: var(--ink-2); }

/* карти и решетки */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2c { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow);
}
a.card:hover { border-color: var(--accent); }
.card p { color: var(--ink-2); margin-bottom: .6em; }
.more { font-weight: 700; color: var(--accent-dark); }
.svc .thumb { margin: -18px -18px 14px; border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 3 / 2; }

.why { padding: 4px 0; }
.why h3::before { content: "✔ "; color: var(--call); }
.why p { color: var(--ink-2); }

.steps { list-style: none; counter-reset: s; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: s; background: #fff; border-radius: var(--radius); padding: 16px 16px 16px 60px; position: relative; border: 1px solid var(--line); }
.steps li::before {
  content: counter(s); position: absolute; left: 14px; top: 14px; width: 34px; height: 34px;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800;
  display: grid; place-items: center;
}
.steps strong { display: block; }
.steps span { color: var(--ink-2); font-size: .95rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1em; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4em .9em; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.chip:hover { border-color: var(--accent); }

.ba { margin: 0; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ba-pair .photo { aspect-ratio: 1 / 1; }
.ba figcaption { font-size: .9rem; color: var(--ink-2); margin-top: 6px; }

/* снимки (показват се само ако файлът е в snimki/) */
.photo { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 3 / 2; }
.hero-photo { aspect-ratio: 16 / 10; }
.grid3 > *, .grid2c > *, .ba-pair > *, .two-col > *, .cta-grid > *, .hero-grid > * { min-width: 0; }
/* без снимка до текста – текстът заема реда, но с четима ширина */
.hero-grid > :only-child, .two-col > :only-child { grid-column: 1 / -1; max-width: 820px; }

/* страници на услуги/градове */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.gallery { display: grid; gap: 14px; }
.wrap.section.page-head { padding-bottom: 0; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 1.6em; position: relative; margin-bottom: .4em; }
.ticks li::before { content: "✔"; position: absolute; left: 0; color: var(--call); font-weight: 700; }
.inline { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.cols2 { columns: 2; }
.side { background: var(--bg-alt); border-radius: var(--radius); padding: 20px; }
.offer { display: flex; flex-wrap: wrap; gap: 14px; margin: 1em 0; }
.offer div { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 16px 20px; }
.offer strong { display: block; font-size: 1.4rem; color: var(--accent); }

details { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; margin-bottom: 10px; background: #fff; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
details p { color: var(--ink-2); }

.article { max-width: 820px; }
.article .photo { margin: 1em 0 1.5em; }
.meta { color: var(--ink-2); font-size: .9rem; }

/* призив + форма */
.cta-band { background: var(--ink); color: #fff; padding: 48px 0; }
.cta-band h2 { margin-top: 0; }
.cta-band .note { color: #c7d0d8; }
.cta-band a { color: #fff; }
.cta-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
.phone-big { font-size: 1.6rem; font-weight: 800; }
.phone-big a { text-decoration: none; color: inherit; }
.form-box { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-box a { color: #0b5cad; }
.lead-form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 12px; }
.lead-form input:not([type=checkbox]), .lead-form select, .lead-form textarea {
  display: block; width: 100%; margin-top: 4px; padding: .65em .7em; font: inherit;
  border: 1px solid #c9c2b4; border-radius: 8px; background: #fff; color: var(--ink); min-height: 46px;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 3px solid rgba(242, 160, 7, .35); border-color: var(--accent); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.opt { font-weight: 400; color: var(--ink-2); }
.consent { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; }
.consent input { margin-top: .35em; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -5000px; }
.form-note { font-size: .88rem; color: var(--ink-2); margin: 10px 0 0; }
.form-status { font-weight: 700; margin: 10px 0 0; }
.form-status.err { color: #b3261e; }

/* футър */
.site-footer { background: #13202a; color: #c7d0d8; padding: 40px 0 90px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 24px; }
.f-name { color: #fff; font-weight: 800; font-size: 1.1rem; }
.f-h { color: #fff; font-weight: 700; }
.plain { list-style: none; padding: 0; }
.plain li { margin-bottom: 4px; }
.copy { border-top: 1px solid #2a3a47; margin-top: 24px; padding-top: 16px; font-size: .85rem; }

/* долна лента за телефон */
.mobile-bar { display: none; }

@media (max-width: 960px) {
  .hero-grid, .two-col, .cta-grid { grid-template-columns: 1fr; }
  .grid3, .steps { grid-template-columns: 1fr 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  #nav { display: none; width: 100%; order: 3; margin: 0; }
  #nav.open { display: block; }
  #nav ul { flex-direction: column; padding-bottom: 10px; }
  .hdr-cta { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid3, .grid2c, .steps, .promises, .grid2 { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .topbar .area { display: none; }
  .topbar .wrap { justify-content: flex-end; }
  .btns .btn { flex: 1 1 100%; }
  .cols2 { columns: 1; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 30; box-shadow: 0 -2px 10px rgba(0, 0, 0, .15);
    padding-bottom: env(safe-area-inset-bottom); background: var(--ink);
  }
  .mobile-bar a { color: #fff; text-align: center; font-weight: 800; text-decoration: none; padding: 15px 8px; }
  .mb-call { background: var(--call); }
  .mb-viber { background: var(--viber); }
}
