/* =========================================================
   Вътрешни страници + общите блокове за SEO/GEO
   ========================================================= */

.container-narrow { max-width: 780px; }
.mt-10 { margin-top: 2.5rem; }

.text-link { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.card-text a, .page-body a, .short-answer a, .page-lead a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

.section-heading-sm { font-size: var(--font-size-2xl); font-weight: 800; margin: 2rem 0 1rem; }
.section-heading-sm .count { color: var(--muted); font-weight: 600; }

/* Страница */
.page { padding: 1.5rem 0 1rem; }
.page-head { padding: 1rem 1rem 1.5rem; }
.page-kicker { margin: 0 0 0.5rem; font-weight: 700; color: var(--brand); }
.page-title { font-size: clamp(1.6rem, 4vw + 0.8rem, 2.5rem); overflow-wrap: break-word; font-weight: 800; line-height: 1.2; margin: 0 0 1rem; }
.page-lead { font-size: 1.1rem; line-height: 1.65; color: var(--ink-soft); }
.page-body { line-height: 1.7; color: var(--ink-soft); }
.page-body h2 { font-size: 1.5rem; color: var(--ink); margin: 2.25rem 0 0.75rem; line-height: 1.3; }
.page-body p { margin: 0 0 1rem; }
.page-photo { width: 100%; height: auto; border-radius: var(--radius-xl); box-shadow: var(--shadow-card); margin-bottom: 1rem; }

/* „Накратко“ — изречения, писани да се цитират (speakable) */
.short-answer {
  background: var(--bg); border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm); padding: 1rem 1.25rem; box-shadow: var(--shadow-soft);
}
.short-answer p { margin: 0; line-height: 1.7; color: var(--ink); }
.short-answer-title { font-size: 1rem; font-weight: 800; color: var(--brand); margin: 0 0 0.5rem; text-transform: uppercase; letter-spacing: 0.04em; }

.check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li { position: relative; padding-left: 1.75rem; margin-bottom: 0.5rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }

.note { background: var(--brand-soft); border-radius: var(--radius-lg); padding: 1rem 1.25rem; margin: 1.5rem 0; color: var(--ink); }
.note p { margin: 0; }

.cta-box { background: var(--brand); color: #fff; border-radius: var(--radius-xl); padding: 1.5rem; margin: 2.5rem 0; }
.cta-box h2 { color: #fff; margin-top: 0; }
.cta-box p { margin: 0; }
.cta-box a { color: #fff; font-weight: 700; }
.cta-box :focus-visible { outline-color: #fff; }

.related ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
@media (min-width: 640px) { .related ul { grid-template-columns: 1fr 1fr; } }
.related a { display: block; padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); text-decoration: none; font-weight: 600; }
.related a:hover { border-color: var(--brand); }

.card-badge { margin: 1rem 0 0; font-size: 0.8rem; font-weight: 700; color: var(--brand); }

/* Въпроси и отговори — <details>; триъгълникът се маха на трите места */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; font-weight: 700; color: var(--brand); flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-q { font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--ink); }
.faq-a { margin: 0; padding: 0 1.25rem 1.25rem; line-height: 1.7; color: var(--ink-soft); }

/* Цитати на началната */
.quote-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .quote-grid { grid-template-columns: 1fr 1fr; } }
.quote-card { margin: 0; background: var(--bg); border: 1px solid rgba(30, 64, 175, 0.2); border-radius: var(--radius-xl); padding: 1.25rem 1.5rem; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.quote-card blockquote { margin: 0; }
.quote-card p { margin: 0; line-height: 1.6; font-style: italic; }
.quote-card figcaption { font-size: 0.9rem; color: var(--muted); }
.quote-card figcaption strong { color: var(--ink); }

/* Писмата: карта = лист хартия отгоре, цитат, клиент отдолу. Цялата карта се
   натиска — връзката на листа е „разпъната“ върху картата (::after). */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.letters-city { margin-top: 2.5rem; }
.letters-city > h2 { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem; }
.letters-city .count { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 0.6rem; border-radius: 999px; background: var(--bg); border: 1px solid rgba(30, 64, 175, .2); color: var(--brand); font-size: 0.85rem; font-weight: 800; } /* бяла: страницата е --brand-soft */
.letters-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 640px) { .letters-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .letters-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Писмата в страница на услуга: тясната колона (780px) побира две карти, не три.
   .page-body a/p биха подчертали връзката и раздалечили подписа — връщат се. */
.service-proof .letters-grid { margin: 1.5rem 0 1rem; }
@media (min-width: 1024px) { .service-proof .letters-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.page-body .letter-thumb { text-decoration: none; }
.page-body .letter-meta { margin: 0; }
.service-proof-more { font-weight: 700; }

.letter-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
}
.letter-card:hover { transform: translateY(-6px); border-color: rgba(59, 130, 246, .45); box-shadow: 0 18px 40px rgba(30, 64, 175, .16); }
.letter-card:focus-within { outline: 3px solid var(--brand); outline-offset: 3px; }
.letter-thumb:focus-visible { outline: none; }
.letter-thumb::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Листът: леко завъртян, с още един лист отзад; при посочване се изправя */
.letter-thumb {
  display: flex; align-items: center; justify-content: center; height: 200px;
  background:
    radial-gradient(circle at 1px 1px, rgba(30, 64, 175, .12) 1px, transparent 0) 0 0 / 14px 14px,
    linear-gradient(160deg, var(--brand-soft) 0%, #F4F7FC 100%);
  border-bottom: 1px solid var(--line);
}
.letter-thumb img {
  width: 116px; height: auto; max-height: 164px; object-fit: cover; object-position: top;
  background: #fff; border-radius: 3px; transform: rotate(-4deg);
  box-shadow: 7px 7px 0 -1px #fff, 7px 7px 0 0 rgba(30, 64, 175, .15), 0 14px 28px rgba(15, 30, 74, .22);
  transition: transform .45s cubic-bezier(.2, .7, .3, 1);
}
.letter-card:hover .letter-thumb img { transform: rotate(0) scale(1.06); }
.letter-open {
  position: absolute; top: 148px; right: 12px; z-index: 2; pointer-events: none;
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.8rem;
  font-size: 0.8rem; font-weight: 700; color: #fff; background: var(--brand); border-radius: 999px;
  box-shadow: 0 6px 14px rgba(30, 64, 175, .35);
  transition: background-color var(--transition-speed), transform var(--transition-speed);
}
.letter-open svg { fill: currentColor; }
.letter-card:hover .letter-open { background: var(--brand-700); transform: translateY(-2px); }

.letter-body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 1.5rem 1.5rem 1.25rem; overflow-wrap: anywhere; }
.letter-quote { position: relative; margin: 0 0 1.25rem; padding-top: 1.5rem; }
.letter-quote::before { content: "“"; content: "“" / ""; position: absolute; top: -0.9rem; left: -0.2rem; font-family: var(--font-family-display); font-size: 4rem; line-height: 1; color: var(--brand-light); opacity: .35; }
.letter-quote p { margin: 0; font-style: italic; line-height: 1.65; color: var(--ink-soft); }
.letter-org { margin: auto 0 0.2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.35; color: var(--ink); }
.letter-meta { margin: 0; font-size: 0.85rem; line-height: 1.5; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .letter-card, .letter-card:hover, .letter-thumb img, .letter-card:hover .letter-thumb img { transition: none; transform: none; }
}

/* Прозорецът за четене (<dialog>, прави го main.js). display само при [open] —
   клас с display би показал и затворения прозорец. */
.lb { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; }
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: lb-in .25s ease; }
.lb::backdrop { background: rgba(8, 15, 40, .95); backdrop-filter: blur(4px); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
html.lb-open { overflow: hidden; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; }
.lb-count { font-weight: 700; font-variant-numeric: tabular-nums; color: #CBD5E1; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 4.25rem; touch-action: pan-y; }
.lb-img { display: block; max-width: min(100%, 760px); max-height: 100%; width: auto; height: auto; background: #fff; border-radius: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); transition: opacity .2s; }
.lb-img.is-loading { opacity: .25; }
.lb-cap { max-width: 760px; margin: 0 auto; padding: 1rem 1rem 1.25rem; text-align: center; }
.lb-org { margin: 0 0 0.2rem; font-weight: 800; font-size: 1.05rem; }
.lb-meta { margin: 0; font-size: 0.9rem; color: #CBD5E1; }
.lb button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; font: inherit; transition: background-color var(--transition-speed); }
.lb button:hover { background: rgba(255, 255, 255, .25); }
.lb button svg { fill: currentColor; }
.lb :focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; }
.lb-prev { left: 0.75rem; }
.lb-next { right: 0.75rem; }
/* На телефон стрелките слизат върху долния край на листа, за да не го крият */
@media (max-width: 640px) {
  .lb-stage { padding: 0 0.75rem; }
  .lb-prev, .lb-next { top: auto; bottom: 0.75rem; transform: none; background: rgba(15, 30, 74, .75); }
}
@media (prefers-reduced-motion: reduce) { .lb[open] { animation: none; } .lb-img { transition: none; } }

.logo-grid { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.logo-grid .client-logo { margin: 0; }
/* Карти в мрежа (10.10.2026, графиката „Нашите клиенти“); картата сама е в sections.css */
.logo-grid li { min-height: 5.5rem; padding: 0.75rem 1.25rem; }
@media (min-width: 1024px) { .logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); } }
.logo-dup { display: none; }   /* вторият комплект — само за лентата на телефон */

/* ТЕЛЕФОН И ТАБЛЕТ (под 1024px, клиентът 10.10.2026): логата са ЦВЕТНИ, а на
   „Клиенти“ вървят в един ред — същата лента като на началната и като ISO в
   главата (iso-scroll-logos: -50% = точно един комплект, затова е повторен). */
@media (max-width: 1023px) {
  .client-logo, .client-logo:hover { filter: none; }
  .logo-marquee { overflow: hidden; mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%); }
  .logo-marquee .logo-grid { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 0; margin: 0; padding: 1rem 0;
                             width: max-content; animation: iso-scroll-logos 25s linear infinite; }
  .logo-marquee .logo-grid li { flex-shrink: 0; min-height: 0; margin: 0 0.6rem; padding: 0.75rem 0.25rem; }
  .logo-marquee .logo-grid .client-logo { margin: 0 1.25rem; }
  .logo-marquee .logo-dup { display: flex; }
}
/* Без движение по желание на човека: лентата спира и се превърта с пръст. */
@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .logo-marquee { overflow-x: auto; mask-image: none; }
  .logo-marquee .logo-grid { animation: none; }
  .logo-marquee .logo-dup { display: none; }
}

.table-wrap { overflow-x: auto; }

/* Сертификати: карта = документът отгоре в цвета на стандарта, данни, два бутона.
   Цветовете (--c, --c-soft, --c-glow) идват от .cert-quality/.cert-env/.cert-safety в sections.css. */
.cert-docs { list-style: none; margin: 2rem 0 1rem; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
@media (min-width: 700px) { .cert-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cert-docs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cert-doc {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-soft);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
}
.cert-doc::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; z-index: 1; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 55%, #fff)); }
.cert-doc:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 40%, transparent); box-shadow: 0 20px 44px var(--c-glow); }
.cert-doc-thumb {
  display: flex; justify-content: center; align-items: flex-end; height: 250px; padding-top: 1.75rem; overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--c) 18%, transparent) 1px, transparent 0) 0 0 / 14px 14px,
    linear-gradient(180deg, var(--c-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.cert-doc-thumb img {
  width: 180px; height: auto; border-radius: 4px 4px 0 0; background: #fff;
  box-shadow: 0 -2px 0 rgba(15, 30, 74, .04), 0 18px 40px rgba(15, 30, 74, .22);
  transform: translateY(12px); transition: transform .45s cubic-bezier(.2, .7, .3, 1);
}
.cert-doc:hover .cert-doc-thumb img { transform: translateY(0) scale(1.03); }
.cert-doc-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 2.5rem 1.5rem 1.5rem; }
.cert-doc-seal { position: absolute; top: -38px; left: 1.5rem; width: 64px; height: 64px; margin: 0; }
.cert-doc-title { margin: 0; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
.cert-doc-desc { margin: 0.35rem 0 1rem; color: var(--ink-soft); line-height: 1.5; }
.cert-doc-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.4rem 1rem; margin: 0 0 1.5rem; padding: 1rem; background: var(--panel); border-radius: var(--radius-sm); font-size: 0.875rem; }
.cert-doc-facts dt { color: var(--muted); }
.cert-doc-facts dd { margin: 0; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cert-doc-actions { display: flex; gap: 0.6rem; margin-top: auto; }
.cert-doc-view {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 46px; padding: 0.6rem 1.1rem;
  border-radius: 999px; font-weight: 700; font-size: 0.95rem; transition: background-color var(--transition-speed), color var(--transition-speed), transform var(--transition-speed);
}
.cert-doc-view { flex: 1; background: var(--c); color: #fff; box-shadow: 0 8px 18px var(--c-glow); }
.cert-doc-view:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--c) 85%, #000); }
@media (prefers-reduced-motion: reduce) {
  .cert-doc, .cert-doc-thumb img, .cert-doc-view { transition: none; }
  .cert-doc:hover, .cert-doc-view:hover { transform: none; }
  .cert-doc:hover .cert-doc-thumb img { transform: translateY(12px); }
}

/* --- Контакти: тъмен банер (като „Как работим“), карти, които го застъпват,
   и две колони — стъпки вляво, визитка/мрежи/данни вдясно. */
.kt svg { fill: currentColor; flex-shrink: 0; }
.kt-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem;
  padding: 2.5rem 1.5rem 5.5rem; border-radius: var(--radius-xl); color: #fff;
  background:
    radial-gradient(40rem 24rem at 0% 0%, rgba(59, 130, 246, .35), transparent 70%),
    radial-gradient(30rem 20rem at 100% 100%, rgba(96, 165, 250, .22), transparent 70%),
    var(--footer-bg);
  box-shadow: 0 24px 60px rgba(15, 30, 74, .25);
}
/* ситни точки — като на картата на България */
.kt-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .09) 1px, transparent 0) 0 0 / 18px 18px; }
.kt-kicker { margin: 0 0 0.5rem; padding-left: 0.75rem; border-left: 3px solid #60A5FA; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #93C5FD; }
.kt-hero .page-title { color: #fff; font-size: clamp(2rem, 4vw + 1rem, 3rem); margin-bottom: 1rem; }
.kt-hero .short-answer { background: none; border: 0; box-shadow: none; padding: 0; }
.kt-hero .short-answer p { color: #CBD5E1; font-size: 1.05rem; }
.kt-hero .short-answer a { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); }
.kt-hero :focus-visible { outline-color: #fff; }
.kt-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; padding: 0; }
.kt-chips li { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.8rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700; color: #E0ECFF; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.kt-chips svg { color: #86EFAC; }

.kt-call {
  align-self: center; display: flex; flex-direction: column; gap: 0.75rem; padding: 1.75rem;
  border-radius: var(--radius-xl); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
}
.kt-call-label { margin: 0; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #93C5FD; }
.kt-call-phone, .kt-call-mail { display: flex; align-items: center; justify-content: center; gap: 0.6rem; border-radius: 999px; font-weight: 800; transition: transform var(--transition-speed), background-color var(--transition-speed); }
.kt-call-phone { min-height: 64px; padding: 0.75rem 1.5rem; font-size: clamp(1.35rem, 2vw + 0.8rem, 1.75rem); color: var(--footer-bg); background: #fff; box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }
.kt-call-phone svg { color: #16A34A; }
.kt-call-phone:hover { transform: translateY(-2px); }
.kt-call-mail { min-height: 50px; padding: 0.6rem 1.25rem; color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.kt-call-mail:hover { background: rgba(255, 255, 255, .1); }
.kt-call-note { margin: 0; font-size: 0.85rem; color: #CBD5E1; text-align: center; }

.kt-cards { list-style: none; position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: -3.5rem 1rem 0; padding: 0; }
.kt-card {
  display: flex; flex-direction: column; gap: 0.3rem; height: 100%; padding: 1.5rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-card);
  color: var(--ink); transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
}
.kt-card:hover { transform: translateY(-5px); border-color: rgba(59, 130, 246, .45); box-shadow: 0 20px 44px rgba(30, 64, 175, .18); }
.kt-card-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 0.6rem; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--brand-light), var(--brand)); box-shadow: 0 10px 20px rgba(30, 64, 175, .3); }
.kt-card-label { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.kt-card-value { font-size: 1.5rem; font-weight: 800; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.kt-card-value-sm { font-size: 1.1rem; }
.kt-card-cta { margin-top: auto; padding-top: 0.75rem; font-size: 0.9rem; font-weight: 700; color: var(--brand); }

.kt-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.kt-side { display: grid; gap: 1.5rem; align-content: start; }
.kt-panel { padding: 1.75rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); color: var(--ink-soft); }
.kt-panel h2 { margin: 0 0 1.25rem; font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.kt-panel p { margin: 0; line-height: 1.6; }

/* Стъпките — номера по вертикална линия, като в „Как работим“, но на светло */
.kt-steps { list-style: none; counter-reset: kt; position: relative; display: grid; gap: 1.5rem; margin: 0; padding: 0; }
.kt-steps::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(180deg, var(--brand-light), var(--brand-soft)); }
.kt-steps li { counter-increment: kt; position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 1rem; align-items: start; }
.kt-steps li::before {
  content: counter(kt); grid-row: span 2; position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; box-shadow: 0 0 0 5px var(--brand-soft);
}
.kt-steps strong { padding-top: 0.55rem; font-size: 1.05rem; color: var(--ink); }
.kt-steps span { margin-top: 0.2rem; line-height: 1.6; }

.kt-qr { display: flex; align-items: center; gap: 1.25rem; }
.kt-qr h2 { margin-bottom: 0.4rem; }
.kt-qr-img { flex-shrink: 0; width: 7.5rem; height: 7.5rem; padding: 0.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.kt-social { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; }
.kt-social a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.5rem 1rem; border-radius: 999px; font-weight: 700; color: var(--brand); background: var(--brand-soft); transition: background-color var(--transition-speed), color var(--transition-speed); }
.kt-social a:hover { background: var(--brand); color: #fff; }
.kt-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.5rem 1.25rem; margin: 0; font-size: 0.95rem; }
.kt-facts dt { color: var(--muted); }
.kt-facts dd { margin: 0; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }

/* Дигиталната визитка: кодът е за ДРУГ телефон, на самия телефон се натиска (/della.vcf) */
.qr-link { display: block; flex-shrink: 0; border-radius: var(--radius-sm); transition: transform var(--transition-speed); }
.qr-link:hover { transform: scale(1.04); }
.vcard-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 44px; margin-top: 0.75rem; padding: 0.5rem 1.1rem; border-radius: 999px;
  font-weight: 700; color: #fff; background: var(--brand); text-decoration: none;
  transition: background-color var(--transition-speed);
}
.vcard-btn:hover { background: var(--brand-700); }
.vcard-btn svg { fill: currentColor; }
.inquiry-cta { font-weight: 800; color: var(--brand); }
.cta-box .cta-form { margin-top: 0.75rem; }

/* Формата за запитване. Грешката е с ТЕКСТ и aria-invalid, не само с цвят. */
.kt-form { margin-top: 2.5rem; scroll-margin-top: 6rem; /* главата е sticky — иначе закрива заглавието */ }
.inq-msg { scroll-margin-top: 6rem; }
.inq-msg:focus { outline: 3px solid var(--brand); outline-offset: 2px; }
.kt-form-lead { margin: -0.5rem 0 1.25rem !important; }
.inq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 1.25rem; }
@media (min-width: 700px) { .inq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .inq-wide { grid-column: 1 / -1; } }
.inq-field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.inq-field label { font-weight: 700; color: var(--ink); }
.inq-req { color: #B91C1C; }
.inq-opt { font-weight: 400; font-size: 0.85rem; color: var(--muted); }
.inq-form input[type="text"], .inq-form input[type="tel"], .inq-form input[type="email"], .inq-form select, .inq-form textarea {
  width: 100%; min-height: 48px; padding: 0.65rem 0.85rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #6B7280; border-radius: var(--radius-sm);
}
.inq-form textarea { resize: vertical; min-height: 8rem; }
.inq-form :is(input, select, textarea):focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.inq-form [aria-invalid="true"] { border: 2px solid #B91C1C; }
.inq-hint { margin: 0 !important; font-size: 0.85rem; color: var(--muted); }
.inq-error { margin: 0 !important; font-size: 0.9rem; font-weight: 700; color: #B91C1C; }
.inq-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inq-consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.35rem 0.7rem; align-items: start; margin: 1.25rem 0; }
.inq-consent input { width: 22px; height: 22px; margin: 0.15rem 0 0; accent-color: var(--brand); }
.inq-consent .inq-error { grid-column: 2; }
.inq-consent a { color: var(--brand); text-decoration: underline; }
.inq-submit {
  min-height: 52px; padding: 0.75rem 2rem; border: 0; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 1.05rem; font-weight: 800; color: #fff; background: var(--brand);
  box-shadow: 0 10px 22px rgba(30, 64, 175, .3); transition: background-color var(--transition-speed);
}
.inq-submit:hover { background: var(--brand-700); }
.inq-submit:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.inq-note { margin-top: 1rem !important; font-size: 0.9rem; color: var(--muted); }
.inq-note a { color: var(--brand); }
.inq-msg { margin-bottom: 1.25rem; padding: 1rem 1.25rem; border-radius: var(--radius-lg); line-height: 1.6; }
.inq-msg ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.inq-msg a { color: inherit; text-decoration: underline; }
.inq-ok { color: #14532D; background: #F0FDF4; border: 1px solid #86EFAC; }
.inq-bad { color: #7F1D1D; background: #FEF2F2; border: 1px solid #FCA5A5; }
@media (max-width: 699px) { .inq-submit { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .qr-link, .qr-link:hover { transition: none; transform: none; } }
@media print { .kt-form { display: none; } }

@media (min-width: 700px) {
  .kt-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: -3.5rem 1.5rem 0; }
}
@media (min-width: 960px) {
  .kt-hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; padding: 3.5rem 3rem 6.5rem; }
  .kt-cards { margin: -4rem 3rem 0; }
  .kt-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}
@media (max-width: 420px) { .kt-qr { flex-direction: column; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) {
  .kt-card, .kt-call-phone { transition: none; }
  .kt-card:hover, .kt-call-phone:hover { transform: none; }
}
@media print {
  .kt-hero { background: none; color: #000; box-shadow: none; padding: 0; }
  .kt-hero::before, .kt-call { display: none; }
  .kt-hero .page-title, .kt-hero .short-answer p, .kt-chips li { color: #000; }
  .kt-cards { margin: 1rem 0; }
}

.facts { display: grid; grid-template-columns: 1fr; gap: 0.25rem 1.5rem; }
@media (min-width: 640px) { .facts { grid-template-columns: max-content 1fr; } }
.facts dt { font-weight: 700; color: var(--ink); }
.facts dd { margin: 0 0 0.5rem; }

.legal-date { font-size: 0.875rem; color: var(--muted); }

/* Банер за бисквитки — рисува се от PHP; [hidden] трябва да бие display */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--bg); border-top: 3px solid var(--brand); box-shadow: 0 -8px 30px rgba(0,0,0,.15); max-height: 85vh; overflow-y: auto; }
.consent[hidden] { display: none; }
.consent-inner { padding-top: 1rem; padding-bottom: 1rem; }
.consent-title { font-size: 1.1rem; margin: 0 0 0.4rem; }
.consent-text { margin: 0 0 0.75rem; line-height: 1.6; color: var(--ink-soft); }
.consent-text a { color: var(--brand); text-decoration: underline; }
.consent-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.consent button { font-family: inherit; font-size: 1rem; cursor: pointer; }
.consent .cta-button-ghost { background-color: transparent; } /* <button> носи сив фон от браузъра */
.consent-more { margin: 0 0 0.75rem; }
.consent-more summary { cursor: pointer; font-weight: 700; color: var(--brand); padding: 0.5rem 0; min-height: 44px; display: flex; align-items: center; }
.consent-list { list-style: none; padding: 0; margin: 0.5rem 0 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.consent-opt { display: flex; gap: 0.75rem; align-items: flex-start; line-height: 1.5; color: var(--ink-soft); }
.consent-opt input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; flex-shrink: 0; accent-color: var(--brand); }
@media (max-width: 480px) { .consent-buttons > * { flex: 1 1 100%; justify-content: center; } }

/* Правните връзки във футъра */
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2rem; font-size: 0.9rem; }

/* Правни страници */
.legal h2 { font-size: 1.3rem; }
.legal h3 { font-size: 1.1rem; color: var(--ink); margin: 1.5rem 0 0.5rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }
.cookie-table { width: 100%; border-collapse: collapse; background: var(--bg); font-size: 0.95rem; }
.cookie-table caption { text-align: left; font-weight: 700; padding-bottom: 0.5rem; color: var(--ink); }
.cookie-table th, .cookie-table td { padding: 0.6rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.cookie-table thead th { background: var(--brand-soft); color: var(--ink); }