/* ===== Основни променливи ===== */
:root {
  --navy-950: #2a0a11;
  --navy-900: #4a1120;
  --navy-800: #6b1b2e;
  --navy-700: #8c2b43;
  --navy-100: #f6e8ec;
  --white: #ffffff;
  --paper: #faf6f6;
  --ink: #241219;
  --muted: #5c4a50;
  --on-dark: #eedfe3;
  --gold: #a87c3d;
  --gold-light: #d9bc7e;
  --gold-soft: #f5ecd9;
  --border: #ebdfe2;

  --font-serif: "PT Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Open Sans", "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 10px;
  --shadow: 0 2px 6px rgba(74, 17, 32, 0.06), 0 10px 30px rgba(74, 17, 32, 0.06);
  --shadow-hover: 0 4px 10px rgba(74, 17, 32, 0.08), 0 18px 40px rgba(74, 17, 32, 0.14);
  --header-h: 76px;
}

/* ===== Основа ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy-900);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--navy-700); }

ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Ясно видим фокус при клавиатура */
:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--gold-light);
  color: var(--navy-900);
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow-light {
  color: var(--gold-light);
}

/* ===== Бутони ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  font: 700 0.95rem/1.2 var(--font-sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold-light);
  color: var(--navy-900);
}

.btn-gold:hover {
  background: #e6cc95;
  box-shadow: 0 8px 22px rgba(217, 188, 126, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
}

.btn-wine {
  background: var(--navy-800);
  color: var(--white);
}

.btn-wine:hover {
  background: var(--navy-700);
  box-shadow: 0 8px 22px rgba(107, 27, 46, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-700);
}

.btn-outline:hover {
  background: var(--navy-800);
  color: var(--white);
}

.text-link {
  color: var(--navy-700);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.text-link:hover {
  color: var(--navy-900);
  text-decoration-color: var(--navy-900);
}

/* ===== Горна лента ===== */
.topbar {
  background: var(--navy-950);
  font-size: 0.88rem;
}

.topbar-inner {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  padding: 0.45rem 0;
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--on-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.topbar a:hover {
  color: var(--gold-light);
}

.topbar svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== Горна навигация ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(74, 17, 32, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy-900);
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand-text small {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

.main-nav ul {
  display: flex;
  gap: 0.25rem;
}

.main-nav a {
  display: block;
  padding: 0.6rem 0.9rem;
  color: var(--navy-900);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.main-nav a:hover {
  color: var(--gold);
  background: var(--paper);
}

.main-nav a[aria-current="page"] {
  color: var(--white);
  background: var(--navy-900);
}

.main-nav a[aria-current="page"]:hover {
  color: var(--gold-light);
  background: var(--navy-800);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  background: transparent;
  color: var(--navy-900);
  border: 1px solid var(--border);
  border-radius: 4px;
  font: 700 0.9rem var(--font-sans);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--gold);
  background: var(--paper);
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ===== Начална секция ===== */
.hero {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(42, 10, 17, 0.95) 0%, rgba(74, 17, 32, 0.85) 55%, rgba(140, 43, 67, 0.7) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 120px),
    radial-gradient(circle at 80% 30%, #8c2b43 0%, var(--navy-900) 60%);
}

.hero-inner {
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 7rem);
}

.hero-text {
  max-width: 760px;
}

.hero-kicker {
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 1.1rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--on-dark);
  max-width: 620px;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-strip {
  background: rgba(42, 10, 17, 0.75);
  backdrop-filter: blur(4px);
}

.strip-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.strip-list a {
  display: block;
  padding: 1.35rem 1rem;
  text-align: center;
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.strip-list a:hover {
  background: var(--gold-light);
  color: var(--navy-900);
}

/* ===== Заглавна лента на вътрешните страници ===== */
.page-banner {
  color: var(--on-dark);
  background:
    linear-gradient(100deg, rgba(42, 10, 17, 0.96) 0%, rgba(74, 17, 32, 0.88) 60%, rgba(140, 43, 67, 0.75) 100%),
    radial-gradient(circle at 85% 20%, #8c2b43 0%, var(--navy-900) 60%);
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.page-banner h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 800px;
}

.page-banner p:not(.eyebrow) {
  max-width: 640px;
  margin: 0;
  font-size: 1.1rem;
}

/* ===== Секции ===== */
.section {
  padding: clamp(4rem, 9vw, 6.5rem) 0;
}

.section-alt {
  background: var(--paper);
}

.section-head {
  max-width: 680px;
  margin-bottom: 3rem;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.1rem;
}

/* ===== За нас ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about-text p:not(.eyebrow) {
  color: var(--muted);
}

.about-text .btn {
  margin-top: 0.75rem;
}

.values-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.values-list li {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.6rem;
  background: var(--paper);
  border-radius: var(--radius);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.values-list li:hover {
  background: var(--navy-100);
  transform: translateY(-3px);
}

.values-list h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.values-list p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.value-icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: var(--navy-900);
  border-radius: 50%;
}

/* ===== Правни услуги (тъмна секция с портрет) ===== */
.services {
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  background:
    linear-gradient(90deg, rgba(42, 10, 17, 0.97) 0%, rgba(74, 17, 32, 0.92) 45%, rgba(107, 27, 46, 0.88) 100%),
    radial-gradient(circle at 15% 80%, #7a2239 0%, transparent 55%),
    var(--navy-900);
}

.services-inner {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.services-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.services-head h2 {
  color: var(--white);
  margin: 0;
}

.services-head > p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--on-dark);
}

.services-more {
  margin-top: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.75rem 3rem;
}

.services-grid li {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.services-grid h3 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: color 0.25s ease;
}

.services-grid p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--on-dark);
}

.service-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.services-grid li:hover .service-icon {
  transform: scale(1.12);
}

.services-grid li:hover h3 {
  color: var(--gold-light);
}

/* ===== Страница „Правни услуги“: карти ===== */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1.75rem;
}

.service-card .service-icon {
  width: 52px;
  height: 52px;
  padding: 12px;
  stroke: var(--gold-light);
  background: var(--navy-900);
  border-radius: 50%;
}

.service-card h3 {
  margin-bottom: 0.5rem;
  transition: color 0.25s ease;
}

.service-card p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--muted);
}

.service-card:hover .service-icon {
  transform: scale(1.08);
}

.service-card:hover h3 {
  color: var(--navy-700);
}

/* ===== Медиация (За нас) ===== */
.mediation {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem 4rem;
  align-items: end;
}

.mediation p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
}

/* ===== Карта ===== */
.map-section {
  padding: 0 0 clamp(4rem, 9vw, 6.5rem);
}

.map-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
}

.map-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.map-head p {
  margin: 0;
  color: var(--muted);
}

.map-frame {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: clamp(320px, 45vw, 520px);
  background: var(--navy-100);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== Призив за консултация ===== */
.cta-band {
  background: var(--gold-light);
  color: var(--navy-900);
  padding: clamp(2.5rem, 5vw, 3.25rem) 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.35rem;
}

.cta-band p {
  margin: 0;
  color: #3a2a18;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-band .btn-gold {
  background: var(--navy-900);
  color: var(--white);
}

.cta-band .btn-gold:hover {
  background: var(--navy-700);
  box-shadow: 0 8px 22px rgba(74, 17, 32, 0.3);
}

.cta-band .btn-ghost {
  color: var(--navy-900);
  border-color: var(--navy-900);
}

.cta-band .btn-ghost:hover {
  background: var(--navy-900);
  color: var(--white);
}

.cta-band :focus-visible {
  outline-color: var(--navy-900);
}

/* ===== Карти ===== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold-light);
}

/* ===== Екип ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
}

.team-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.team-photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  cursor: pointer;
}


.team-card:hover .team-photo-cutout img {
  transform: scale(1.03);
}

.team-photo-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
}

.team-photo-initial span {
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--gold-light);
}

.team-body {
  padding: 1.75rem;
  flex: 1;
}

.team-body h3 {
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--navy-700);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.team-note {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.team-body > p:not(.team-role):not(.team-note) {
  color: var(--muted);
  font-size: 0.97rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tags li {
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  background: var(--gold-soft);
  border-radius: 999px;
}

/* ===== Контакти ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}

.contact-info p:not(.eyebrow) {
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 1.4rem;
  margin: 2rem 0 0;
  padding: 1.75rem;
  background: var(--navy-900);
  border-radius: var(--radius);
}

.contact-list dt {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.contact-list dd {
  margin: 0;
  color: var(--white);
}

.contact-list a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(217, 188, 126, 0.6);
  text-underline-offset: 4px;
  word-break: break-word;
  transition: color 0.2s ease;
}

.contact-list a:hover {
  color: var(--gold-light);
}

.form-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form-card:hover {
  transform: none;
}

.form-notice {
  background: var(--gold-soft);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
  color: #3d2a1e;
  margin-bottom: 1.75rem;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-900);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: 400 1rem/1.5 var(--font-sans);
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #cbb9bd;
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--navy-700);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(184, 146, 74, 0.45);
}

.hint {
  margin: 0.4rem 0 0;
  font-size: 0.87rem;
  color: var(--muted);
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
}

.field-check input {
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--navy-800);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.form-actions :focus-visible {
  outline-color: var(--gold);
}

.form-status {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-status:empty {
  display: none;
}

.form-status.is-info {
  color: var(--navy-800);
}

.form-status.is-error {
  color: #a4262c;
}

/* ===== Долен колонтитул ===== */
.site-footer {
  background: #2a1016;
  color: #cdb9be;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 1fr 0.8fr;
  gap: 2.5rem;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}

.footer-grid p {
  margin: 0 0 0.75rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.footer-title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.footer-list {
  display: grid;
  gap: 0.5rem;
}

.footer-list a {
  color: #ead9dd;
  text-decoration: none;
  word-break: break-word;
  transition: color 0.2s ease;
}

.footer-list a:hover {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  background: #1b0a0e;
  font-size: 0.88rem;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 1.25rem 0;
}

.footer-bottom p {
  margin: 0;
}

/* ===== Плаващ бутон за обаждане ===== */
.call-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 8px 24px rgba(42, 10, 17, 0.35);
  animation: call-pulse 2.4s ease-out infinite;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.call-float:hover {
  transform: scale(1.08);
  background: #e6cc95;
}

.call-float:focus-visible {
  outline-color: var(--navy-900);
  border-radius: 50%;
}

.call-float svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--navy-900);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes call-pulse {
  0%   { box-shadow: 0 8px 24px rgba(42, 10, 17, 0.35), 0 0 0 0 rgba(217, 188, 126, 0.55); }
  70%  { box-shadow: 0 8px 24px rgba(42, 10, 17, 0.35), 0 0 0 18px rgba(217, 188, 126, 0); }
  100% { box-shadow: 0 8px 24px rgba(42, 10, 17, 0.35), 0 0 0 0 rgba(217, 188, 126, 0); }
}

/* Долна лента за телефон */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 -6px 18px rgba(42, 10, 17, 0.25);
}

.mobile-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.05rem 0.5rem;
  background: var(--navy-900);
  color: var(--white);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mobile-bar a.is-primary {
  background: var(--gold-light);
  color: var(--navy-900);
}

.mobile-bar svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== Адаптивност: таблет ===== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-head {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .about-grid,
  .contact-grid,
  .mediation {
    grid-template-columns: 1fr;
  }

  .mediation {
    align-items: start;
  }

  .strip-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Адаптивност: мобилна навигация ===== */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 16px 24px rgba(74, 17, 32, 0.12);
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    width: min(1180px, 100% - 2.5rem);
    margin-inline: auto;
    padding: 0.5rem 0 1.25rem;
  }

  .main-nav a {
    padding: 0.9rem 0.75rem;
    font-size: 0.95rem;
  }
}

/* ===== Адаптивност: телефон ===== */
@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .topbar {
    font-size: 0.8rem;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
  }

  .topbar a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .services-grid,
  .values-list,
  .field-row,
  .team-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .cta-actions .btn,
  .form-actions .btn {
    width: 100%;
  }

  .cta-actions {
    width: 100%;
  }

  .brand {
    gap: 0.55rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-text {
    font-size: 1.05rem;
    white-space: nowrap;
  }

  .brand-text small {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
  }

  /* По-стегнат вертикален ритъм */
  .section,
  .page-banner {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero-inner {
    padding: 3.25rem 0 2.75rem;
  }

  .services-inner {
    padding: 3rem 0;
  }

  .cta-band {
    padding: 2.25rem 0;
  }

  .section-head,
  .services-head {
    margin-bottom: 1.75rem;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero-lead {
    margin-bottom: 1.75rem;
  }

  .hero-actions {
    gap: 0.75rem;
  }

  /* Основните направления: две четливи колони */
  .strip-list a {
    padding: 0.95rem 0.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
  }

  /* Услугите: икона над текста */
  .services-grid {
    gap: 1.75rem;
  }

  .services-grid li,
  .values-list li {
    gap: 0.85rem;
  }

  .services-grid h3 {
    font-size: 1.15rem;
  }

  .values-list li {
    padding: 1.25rem;
  }

  /* По-големи цели за пръст в менюто */
  .main-nav a {
    padding: 1rem 0.75rem;
  }

  .footer-grid {
    gap: 2rem;
    padding: 2.75rem 0;
  }

  .footer-bottom-inner {
    gap: 0.6rem;
  }

  /* Долна лента с действия вместо плаващ бутон */
  body {
    padding-bottom: 72px;
  }

  .call-float {
    display: none;
  }

  .mobile-bar {
    display: grid;
  }
}

/* Уважаване на настройката за намалено движение */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}


/* ===== Лого и име ===== */
.brand-text {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy-900);
}

.footer-brand .brand-mark,
.site-footer .brand-mark {
  filter: brightness(0) invert(1);
}

/* ===== Социални мрежи ===== */
.socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ead9dd;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.socials a:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-900);
  transform: translateY(-2px);
}

.socials svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-info .socials a,
.socials-dark a {
  border-color: var(--border);
  color: var(--navy-800);
}

.socials-title {
  margin: 2rem 0 0;
  font-size: 1.1rem;
}

/* ===== Екип: бутони и биография ===== */
.btn-small {
  padding: 0.65rem 1.15rem;
  font-size: 0.82rem;
}

button.team-photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.team-motto {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--navy-800);
}

.team-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.bio-dialog {
  width: min(760px, 100% - 2rem);
  max-height: 85vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(42, 10, 17, 0.35);
  color: var(--ink);
  overflow: auto;
}

.bio-dialog::backdrop {
  background: rgba(42, 10, 17, 0.6);
}

.bio-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 2rem);
  background: var(--navy-900);
  color: var(--white);
}

.bio-head h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.bio-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.bio-close:hover {
  background: var(--gold-light);
  color: var(--navy-900);
  border-color: var(--gold-light);
}

.bio-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1.25rem, 4vw, 2rem);
}

.bio-body p {
  color: var(--muted);
}

.bio-photo {
  align-self: start;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 30%, rgba(217, 188, 126, 0.28), transparent 62%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
}

.bio-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 6%;
}

.bio-body-single {
  grid-template-columns: 1fr;
}

.bio-pending {
  font-style: italic;
}

/* ===== Статии ===== */
.articles-intro {
  max-width: 760px;
}

.articles-intro p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ===== Задължителни полета ===== */
.req {
  color: var(--navy-700);
}

@media (max-width: 640px) {
  .bio-body {
    grid-template-columns: 1fr;
  }

  .bio-photo {
    max-width: 200px;
    margin-inline: auto;
  }

  .socials {
    flex-wrap: wrap;
  }
}


/* ===== Герой: карта с бърза връзка ===== */
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-text {
  max-width: 100%;
}

.hero-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(217, 188, 126, 0.35);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(42, 10, 17, 0.35);
}

.hero-card h2 {
  margin-bottom: 1.25rem;
  color: var(--white);
  font-size: 1.35rem;
}

.hero-card-list {
  display: grid;
  gap: 1.1rem;
}

.hero-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.hero-card-list svg {
  width: 22px;
  height: 22px;
  margin-top: 0.2rem;
  flex-shrink: 0;
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-card-list span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero-card-list strong,
.hero-card-list a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.hero-card-list a {
  text-decoration: underline;
  text-decoration-color: rgba(217, 188, 126, 0.6);
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.hero-card-list a:hover {
  color: var(--gold-light);
}

.hero-card-note {
  margin: 1.4rem 0 1.4rem;
  font-size: 0.92rem;
  color: var(--on-dark);
}

/* ===== Подсказка върху снимките в екипа ===== */
.team-photo {
  position: relative;
}

.photo-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(42, 10, 17, 0.9), transparent);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.team-card:hover .photo-hint,
.team-photo:focus-visible .photo-hint {
  opacity: 1;
  transform: translateY(0);
}

.team-photo-cutout img,
.team-photo-initial .initial {
  transition: transform 0.4s ease;
}

.team-card:hover .team-photo-cutout img {
  transform: scale(1.04);
}

.team-photo-initial .initial {
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--gold-light);
}

/* ===== Отваряне на биографията ===== */
.bio-dialog[open] {
  animation: bio-in 0.3s ease both;
}

.bio-dialog[open]::backdrop {
  animation: backdrop-in 0.3s ease both;
}

@keyframes bio-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-card {
    order: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-hint {
    opacity: 1;
    transform: none;
  }
}


/* ===== Дълги заглавия в картите ===== */
.service-card h3,
.services-grid h3,
.gateway-card h3,
.tags li {
  overflow-wrap: anywhere;
  hyphens: auto;
}

.service-card h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}

/* ===== Начало: раздели на сайта ===== */
.gateway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.gateway-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 2rem 1.75rem;
}

.gateway-card h3 {
  margin: 0;
}

.gateway-card {
  position: relative;
}

.gateway-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.gateway-card .service-icon {
  width: 52px;
  height: 52px;
  padding: 12px;
  stroke: var(--gold-light);
  background: var(--navy-900);
  border-radius: 50%;
}


/* ===== Форма: скрито поле срещу спам и успешно съобщение ===== */
.is-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-status.is-ok {
  color: #2f6b3c;
}

.contact-form button[disabled] {
  opacity: 0.7;
  cursor: progress;
}


/* ===== Герой: снимка и стъпки ===== */
.hero-photo {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(42, 10, 17, 0.45);
  animation: fade-up 0.8s ease both;
}

.hero-photo::after {
  content: ;
  position: absolute;
  inset: 0;
  border: 1px solid rgba(217, 188, 126, 0.45);
  border-radius: var(--radius);
  pointer-events: none;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 50%;
  transition: transform 0.8s ease;
}

.hero-photo:hover img {
  transform: scale(1.03);
}

.hero-steps {
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.hero-steps .hero-card {
  animation: fade-up 0.8s ease 0.15s both;
}

.hero-steps .hero-card-list {
  grid-template-columns: repeat(3, 1fr);
}

/* ===== Снимки в картите на екипа ===== */
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  transition: transform 0.5s ease;
}

.team-card:hover .team-photo img {
  transform: scale(1.05);
}

.photo-hint-touch {
  display: none;
}

/* На телефон и таблет подсказката стои винаги видима */
@media (hover: none) {
  .photo-hint {
    opacity: 1;
    transform: none;
  }

  .photo-hint-desktop {
    display: none;
  }

  .photo-hint-touch {
    display: inline;
  }
}

/* ===== Плавно появяване при скролване ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* ===== Дребни ефекти по бутоните и картите ===== */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: ;
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
}

.btn:hover::after {
  left: 120%;
}

.service-card:hover .service-icon,
.gateway-card:hover .service-icon {
  transform: scale(1.08) rotate(-4deg);
  transition: transform 0.35s ease;
}

@media (max-width: 900px) {
  .hero-steps .hero-card-list {
    grid-template-columns: 1fr;
  }

  .hero-photo img {
    aspect-ratio: 4 / 5;
    object-position: 50% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-photo,
  .hero-steps .hero-card {
    animation: none;
  }

  .btn::after {
    display: none;
  }
}


/* На тесни екрани подсказката е винаги видима */
@media (max-width: 860px) {
  .photo-hint {
    opacity: 1;
    transform: none;
  }

  .photo-hint-desktop {
    display: none;
  }

  .photo-hint-touch {
    display: inline;
  }
}


/* ===== Квадратите в началото са изцяло връзки ===== */
.gateway-card {
  padding: 0;
  overflow: hidden;
}

.gateway-link {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  height: 100%;
  padding: 2rem 1.75rem;
  color: inherit;
  text-decoration: none;
}

.gateway-link h3 {
  margin: 0;
  color: var(--navy-900);
  transition: color 0.25s ease;
}

.gateway-link p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.gateway-more {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-700);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gateway-card:hover .gateway-link h3,
.gateway-link:focus-visible h3 {
  color: var(--navy-700);
}

.gateway-card:hover .gateway-more,
.gateway-link:focus-visible .gateway-more {
  opacity: 1;
  transform: none;
}

.gateway-link:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: -3px;
  border-radius: var(--radius);
}

@media (hover: none) {
  .gateway-more {
    opacity: 1;
    transform: none;
  }
}


/* ===== Задължителни полета ===== */
.req {
  color: var(--gold);
  font-weight: 700;
}

.req-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.field-check label .req {
  margin-right: 0.15rem;
}


/* ===== Превключвател на езика ===== */
.topbar-inner {
  position: relative;
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  order: 3;
}

.lang-switch a {
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--on-dark);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-switch a:hover {
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.08);
}

.lang-switch a[aria-current] {
  color: var(--navy-900);
  background: var(--gold-light);
}

@media (max-width: 640px) {
  .lang-switch {
    order: -1;
    justify-content: center;
    margin-bottom: 0.1rem;
  }
}
