/* Прескачане към съдържанието — видимо само при фокус от клавиатура */
.skip-link {
  position: fixed; top: 0.5rem; left: 0.5rem; z-index: 100;
  padding: 0.6rem 1rem; background: var(--brand); color: #fff; font-weight: 700;
  border-radius: var(--radius-sm); transform: translateY(-150%); transition: none;
}
.skip-link:focus { transform: none; }

/* Header & Nav */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background-color: var(--glass);
  backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.header-logo { display: flex; align-items: center; flex-shrink: 0; }
.header-logo-img { height: 3rem; width: auto; }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.nav-link { font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); transition: color var(--transition-speed); white-space: nowrap; padding: 0.5rem 0; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--brand); }
.nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

.header-phone { display: none; font-weight: 700; color: var(--brand); white-space: nowrap; }

/* Мобилно меню без JavaScript: <details> */
.nav-mobile { position: relative; }
.nav-mobile summary {
  list-style: none; cursor: pointer; font-weight: 700; color: var(--brand);
  padding: 0.6rem 1rem; border: 2px solid var(--brand); border-radius: var(--radius-sm);
  min-height: 44px; display: flex; align-items: center;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary::after { content: "☰"; margin-left: 0.5rem; }
.nav-mobile[open] summary::after { content: "✕"; }
.nav-mobile ul {
  position: absolute; right: 0; top: calc(100% + 0.5rem); min-width: 14rem;
  list-style: none; margin: 0; padding: 0.5rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.nav-mobile a { display: block; padding: 0.75rem 1rem; font-weight: 600; border-radius: var(--radius-sm); }
.nav-mobile a:hover, .nav-mobile a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }

@media (min-width: 1024px) {
  .nav-desktop { display: block; }
  .header-phone { display: inline-block; }
  .nav-mobile { display: none; }
}

/* ISO лента */
.header-iso-container {
  overflow: hidden; flex-grow: 1; margin: 0 1rem; max-width: 320px;
  mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.iso-track-header { display: inline-flex; white-space: nowrap; animation: iso-scroll-logos 20s linear infinite; }
.header-iso-item { margin: 0 1.5rem; color: var(--brand); font-weight: 700; font-size: 0.85rem; }

/* Footer */
.site-footer { margin-top: 4rem; padding: 3rem 0 1.5rem; background: var(--footer-bg); color: var(--footer-ink); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1.4fr 1fr; } }
.footer-heading { font-size: 1rem; font-weight: 800; color: #fff; margin: 0 0 0.75rem; }
.footer-address { font-style: normal; line-height: 1.7; }
.footer-list, .footer-social { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 0.4rem; }
.site-footer a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
.site-footer a:hover { text-decoration-color: #fff; }
.footer-social { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.75rem; }
.footer-sister { margin: 1rem 0 0; }
.footer-copy { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); font-size: 0.875rem; }

/* Плаващ телефон долу вдясно — само на телефон; звъни на пристъпи, между тях стои мирен */
.call-fab {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 50;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #16A34A; color: #fff;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.45);
}
.call-fab::before, .call-fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #16A34A; opacity: 0; pointer-events: none;
  animation: call-fab-wave 2.4s ease-out infinite;
}
.call-fab::after { animation-delay: 0.4s; }
.call-fab-icon { animation: call-fab-ring 2.4s ease-in-out infinite; transform-origin: 50% 50%; }
.call-fab:hover, .call-fab:active { background: #15803D; }
.call-fab:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }

@keyframes call-fab-ring {
  0%, 40%, 100% { transform: rotate(0); }
  4%, 12%, 20%, 28% { transform: rotate(-18deg); }
  8%, 16%, 24%, 32% { transform: rotate(18deg); }
}
@keyframes call-fab-wave {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .call-fab::before, .call-fab::after, .call-fab-icon { animation: none; }
}
/* Футърът завършва под бутона — последният ред да не остава скрит */
.site-footer { padding-bottom: 6rem; }
@media (min-width: 1024px) {
  .call-fab { display: none; }
  .site-footer { padding-bottom: 1.5rem; }
}
@media print { .call-fab { display: none; } }

/* Бутони */
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cta-button-main, .cta-button-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px;
  border-radius: var(--radius-lg); padding: 0.75rem 1.5rem; font-weight: 700;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed), background-color var(--transition-speed);
}
.cta-button-main { background-color: var(--brand); color: #fff; box-shadow: 0 10px 20px rgba(30, 64, 175, 0.35); }
.cta-button-main:hover { background-color: var(--brand-700); transform: translateY(-2px); box-shadow: 0 15px 30px rgba(30, 64, 175, 0.45); }
.cta-button-ghost { border: 2px solid var(--brand); color: var(--brand); background-color: transparent; }
.cta-button-ghost:hover { background-color: var(--brand-soft); }

/* Фокус — видим навсякъде; на тъмния футър е бял */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.site-footer :focus-visible { outline-color: #fff; }

/* Трохи */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 1rem 0 0; margin: 0 auto; font-size: 0.875rem; color: var(--ink-soft); }
.breadcrumbs li + li::before { content: "›"; margin: 0 0.4rem; color: var(--muted); }
.breadcrumbs a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
