/* Сайтово: вътрешни страници (услуги, блог, за нас, въпроси, контакти).
   Същите цветове и шрифтове като главната, без анимациите (бързо и леко). Генерират се от tools/pages.py. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(fonts/manrope-cyr.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(fonts/manrope-lat.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(fonts/unbounded-cyr.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(fonts/unbounded-lat.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #fbf7f0;
  --bg-alt: #f3ece0;
  --ink: #17201b;
  --muted: #5d665f;
  --line: #e4dac9;
  --brand: #1f5c45;
  --brand-2: #2e7a5d;
  --brand-ink: #fbf7f0;
  --accent: #e8743b;
  --accent-deep: #b84d1a;
  --card: #ffffff;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 "Manrope", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3 { line-height: 1.12; margin: 0; }
h1, h2 { font-family: "Unbounded", "Manrope", sans-serif; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
h3 { font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--brand); color: var(--brand-ink); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- горна лента ---------- */
.ph { position: sticky; top: 0; z-index: 40; background: rgba(251, 247, 240, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.ph-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 1.15rem "Unbounded", sans-serif; letter-spacing: -.02em; }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); font-size: .95rem; }
.ph-nav { display: flex; gap: 22px; margin-left: auto; font-size: .95rem; }
.ph-nav a { color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; }
.ph-nav a:hover, .ph-nav a[aria-current="page"] { color: var(--ink); }
.ph-nav .nav-new { color: var(--brand); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: 700 .98rem "Manrope", sans-serif; text-decoration: none; border: 2px solid var(--brand); background: var(--brand); color: var(--brand-ink); white-space: nowrap; }
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: .9rem; }
@media (max-width: 980px) {
  .ph { position: static; }
  .ph-in { flex-wrap: wrap; gap: 6px 16px; padding: 10px 0; }
  .ph-cta { margin-left: auto; }
  .ph-nav { order: 3; width: 100%; margin: 0; gap: 6px 16px; flex-wrap: wrap; font-size: .88rem; padding-bottom: 2px; }
}
@media (max-width: 420px) { .ph-cta { display: none; } }

/* ---------- трохи и заглавие ---------- */
.crumbs { font-size: .86rem; color: var(--muted); padding-top: 26px; }
.crumbs.wrap, .p-hero.wrap { width: min(760px, 100% - 32px); }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin: 0 6px; }
.p-hero { padding: 26px 0 40px; }
.p-hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); max-width: 20ch; }
.p-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink); max-width: 62ch; margin-top: 20px; }
.p-meta { margin-top: 16px; font-size: .9rem; color: var(--muted); }
.p-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- текст ---------- */
.prose { width: min(760px, 100% - 32px); margin-inline: auto; padding-bottom: 30px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin-top: 52px; }
.prose h3 { margin-top: 30px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose strong { font-weight: 800; }
.prose blockquote { margin: 26px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--ink); font-size: 1.08rem; }
.prose .short { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.prose .short b:first-child { display: block; font: 600 .95rem "Unbounded", sans-serif; margin-bottom: 6px; color: var(--brand); }
.tbl { width: 100%; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-alt); font-weight: 800; }
.prose tr:last-child td { border-bottom: 0; }
.prose td.num, .prose th.num { white-space: nowrap; }
.note { font-size: .9rem; color: var(--muted); }

/* ---------- блокове за услугите ---------- */
.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 22px; padding: 0; list-style: none; }
.prose .feat { padding-left: 0; }
.feat li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 20px; margin: 0; }
.feat li::marker { content: none; }
.feat b { display: block; margin-bottom: 4px; }
.feat span { color: var(--muted); font-size: .95rem; }
.price-card { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; background: var(--ink); color: var(--bg); border-radius: 20px; padding: 26px 28px; margin-top: 26px; }
.price-card h3 { font: 600 1.15rem "Unbounded", sans-serif; }
.price-card p { color: #c9d1cb; font-size: .95rem; grid-column: 1; }
.price-card .pc-price { grid-row: 1 / span 2; grid-column: 2; font: 600 clamp(1.8rem, 4vw, 2.6rem) "Unbounded", sans-serif; white-space: nowrap; color: #fff; }
.price-card .pc-price small { display: block; font: 600 .8rem "Manrope", sans-serif; color: #c9d1cb; text-align: right; }
.price-card a { color: #fff; }
@media (max-width: 560px) { .price-card { grid-template-columns: 1fr; } .price-card .pc-price { grid-row: auto; grid-column: 1; } .price-card .pc-price small { text-align: left; } }
.demo-fig { margin: 26px 0 0; }
.demo-fig > a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.demo-fig figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }

/* ---------- въпроси ---------- */
.faq { margin-top: 18px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 1.3rem/1 "Unbounded", sans-serif; color: var(--brand); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; color: var(--ink); }

/* ---------- блог: списък ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; padding: 0 0 50px; list-style: none; margin: 0; }
.posts a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.posts a:hover { border-color: var(--brand); }
.posts h2 { font-size: 1.15rem; line-height: 1.25; }
.posts p { color: var(--muted); font-size: .95rem; }
.posts .more { margin-top: auto; color: var(--brand); font-weight: 800; font-size: .92rem; }

/* ---------- свързани и призив ---------- */
.related { width: min(760px, 100% - 32px); margin: 10px auto 0; padding: 26px 0 10px; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.05rem; font-family: "Manrope", sans-serif; font-weight: 800; letter-spacing: 0; }
.related ul { margin: 12px 0 0; padding-left: 1.2em; }
.related li + li { margin-top: 6px; }
.p-cta { background: var(--brand); color: var(--brand-ink); margin-top: 50px; padding: 56px 0; }
.p-cta-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px 50px; align-items: center; }
.p-cta h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.p-cta p { margin-top: 12px; color: #d9e6df; max-width: 52ch; }
.p-cta-btns { display: grid; gap: 10px; }
.p-cta .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.p-cta .btn:hover { background: #fff; border-color: #fff; }
.p-cta .btn-ghost { background: transparent; color: var(--bg); border-color: rgba(251, 247, 240, .6); }
.p-cta .btn-ghost:hover { background: rgba(251, 247, 240, .12); color: #fff; }
@media (max-width: 760px) { .p-cta-in { grid-template-columns: 1fr; } }

/* ---------- контакти ---------- */
.contact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; }
.prose .contact-list { padding-left: 0; }
.contact-list li { margin: 0; }
.contact-list a { display: block; height: 100%; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.contact-list a:hover { border-color: var(--brand); }
.contact-list b { display: block; font-size: .85rem; color: var(--muted); font-weight: 700; }
.contact-list span { font-weight: 800; font-size: 1.05rem; overflow-wrap: anywhere; }

/* ---------- долна част ---------- */
.pf { background: var(--ink); color: #b9c2bc; padding: 54px 0 30px; font-size: .93rem; }
.pf-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; }
.pf h2 { font: 800 .8rem "Manrope", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #8b968f; margin-bottom: 12px; }
.pf ul { list-style: none; margin: 0; padding: 0; }
.pf li + li { margin-top: 8px; }
.pf a { color: var(--bg); text-decoration: none; }
.pf a:hover { text-decoration: underline; }
.pf .logo { color: var(--bg); }
.pf-about p { margin-top: 14px; max-width: 34ch; }
.pf-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #2c3731; font-size: .86rem; }
@media (max-width: 900px) { .pf-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pf-grid { grid-template-columns: 1fr; } }

/* ---------- лента за връзка на телефон ---------- */
.m-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 72px; }
  .m-bar { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(251, 247, 240, .97); border-top: 1px solid var(--line); }
  .m-bar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; font-weight: 800; font-size: .92rem; text-decoration: none; border: 2px solid var(--ink); color: var(--ink); }
  .m-bar a.main { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
}

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.crumbs.wrap.wide, .p-hero.wrap.wide { width: min(1120px, 100% - 32px); }
@media (max-width: 560px) {
  /* таблиците на телефон стават карти: всяка клетка с етикет от заглавието на колоната (data-label) */
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose thead { display: none; }
  .prose tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .prose tr:last-child { border-bottom: 0; }
  .prose td { border: 0; padding: 3px 16px; }
  .prose td:first-child { font-size: 1.02rem; font-weight: 800; padding-bottom: 6px; }
  .prose td:first-child[data-label]::before { display: none; }
  .prose td[data-label]::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 700; color: var(--muted); }
  .prose td[data-label=""]::before { display: none; }
}
.feat.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } /* 10 карти: 2 колони = без празни места */
