:root {
  --bg: #ffffff;
  --bg-soft: #f0faf8;
  --bg-mint: #e8f5f2;
  --bg-dark: #0a3d38;
  --text: #1a2e2c;
  --muted: #5a7170;
  --line: #d4e8e4;
  --accent: #0d9488;
  --accent-light: #14b8a6;
  --accent-soft: rgba(13, 148, 136, 0.1);
  --accent-dark: #0f766e;
  --blue: #0891b2;
  --container: 1100px;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body.lang-en .lang-bg { display: none !important; }
body.lang-bg .lang-en { display: none !important; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 720px; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  z-index: 100;
  font-size: 0.9rem;
}
.skip-link:focus { top: 16px; outline: 2px solid var(--accent-dark); outline-offset: 2px; }

/* Top bar */
.top-bar {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}
.top-bar a {
  color: #fff;
  font-weight: 600;
}
.top-bar a:hover { color: var(--accent-light); }

/* Typography */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow-light { color: rgba(255,255,255,0.75); }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-bottom: 18px; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 14px; }
h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }

.lead { font-size: 1.05rem; color: var(--muted); max-width: 560px; margin-bottom: 26px; line-height: 1.75; }

.section-head.centered { text-align: center; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary {
  background: #fff;
  color: var(--accent);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--accent); background: var(--bg-soft); }
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-dark); }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1;
}
.brand-text {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.2;
}
.brand-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-cta { padding: 10px 18px; font-size: 0.85rem; }

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang-btn {
  padding: 6px 11px;
  font-size: 0.76rem;
  font-weight: 700;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-family: inherit;
}
.lang-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.lang-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* Hero */
.hero {
  padding: 64px 0 56px;
  background: linear-gradient(160deg, var(--bg-soft) 0%, #fff 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-panel { display: grid; gap: 16px; }
.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.08);
}
.hero-card-icon {
  display: block;
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.hero-card strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.hero-card p { font-size: 0.9rem; color: var(--muted); }
.hero-info {
  display: grid;
  gap: 10px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-mint);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.85rem;
}
.info-row span:first-child { color: var(--muted); }
.info-row strong { color: var(--text); }

/* Trust bar */
.trust-bar {
  background: #fff;
  border-block: 1px solid var(--line);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 22px 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
}
.trust-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  font-size: 0.65rem;
  flex-shrink: 0;
}

/* Sections */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { margin-bottom: 40px; max-width: 600px; }

/* Service cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  border-color: var(--accent-light);
  box-shadow: 0 8px 28px rgba(13, 148, 136, 0.1);
}
.card-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 14px;
  filter: grayscale(0.2);
}
.card p { font-size: 0.9rem; color: var(--muted); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: start;
}
.about-copy p { color: var(--muted); margin-bottom: 18px; }
.check-list {
  list-style: none;
  display: grid;
  gap: 11px;
  margin-top: 22px;
}
.check-list li {
  padding-left: 22px;
  position: relative;
  font-size: 0.94rem;
  font-weight: 500;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.about-aside { display: grid; gap: 14px; }
.info-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.info-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.info-box a { color: var(--accent); font-weight: 600; }
.info-box a:hover { text-decoration: underline; }

/* Doctor card */
.doctor-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(13, 148, 136, 0.08);
}
.doctor-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--line);
}
.doctor-title {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.doctor-info p:last-child { font-size: 0.92rem; color: var(--muted); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.step p { font-size: 0.88rem; color: var(--muted); }

/* FAQ */
.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-size: 1.1rem;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding: 0 22px 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Contact */
.cta-section {
  background: var(--bg-dark);
  color: #fff;
}
.cta-section h2 { color: #fff; }
.contact-lead { color: rgba(255,255,255,0.75); margin-bottom: 26px; max-width: 400px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}
.contact-info {
  font-style: normal;
  font-size: 0.94rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.85);
}
.contact-info a { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.3); }
.contact-info a:hover { border-color: var(--accent-light); color: var(--accent-light); }
.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  display: grid;
  gap: 18px;
}
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--text);
  background: #fff;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-note { font-size: 0.76rem; color: var(--muted); }
.form-status { min-height: 20px; font-size: 0.86rem; color: var(--muted); }

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 48px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}
.footer-brand { font-weight: 700; font-size: 1.02rem; margin-bottom: 8px; }
.footer-desc { font-size: 0.86rem; color: var(--muted); max-width: 260px; }
.footer-col h4 {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 9px;
}
.footer-col a:hover { color: var(--accent); }
.footer-address { font-size: 0.86rem; color: var(--muted); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

/* Mobile call CTA — critical for Bulgarian medical sites */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 40;
  background: var(--accent);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doctor-card { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 720px) {
  .nav-links, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    margin-left: 0;
  }
  .nav-links.open a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .header-inner { position: relative; }
  .top-bar-inner { flex-direction: column; height: auto; padding: 8px 0; gap: 4px; text-align: center; }
  .card-grid, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
  .mobile-cta { display: inline-flex; }
  .hero { padding: 44px 0 36px; }
  .section { padding: 52px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}
