/* Dr. Taner Shahin – cardiologist, Sofia. Plain CSS, no build step. */
:root {
  --bg: #faf7f1;
  --surface: #ffffff;
  --sand: #f0eadc;
  --line: #e4ddcd;
  --ink: #15231f;
  --muted: #53625d;
  --teal-900: #0b3d38;
  --teal-700: #0f5a50;
  --teal-500: #1d8a7a;
  --teal-100: #dcefe9;
  --red: #b3261e;
  --red-dark: #8f1d17;
  --amber: #8a5a00;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 61, 56, .06), 0 8px 24px rgba(11, 61, 56, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, Georgia, "Times New Roman", serif;
  --max: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  color: var(--ink); background: var(--bg); text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--teal-900); }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; color: var(--teal-900); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.5vw + .5rem, 3.75rem); }
h2 { font-size: clamp(1.7rem, 3vw + .6rem, 2.4rem); }
h3 { font-size: 1.2rem; font-family: var(--font); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--teal-900); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-500); margin-bottom: .75rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 38em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; min-height: 48px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal-900); border-color: var(--teal-700); }
.btn-ghost:hover { background: var(--teal-900); color: #fff; }
.btn-light { background: #fff; color: var(--teal-900); }
.btn-light:hover { background: var(--teal-100); color: var(--teal-900); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 241, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal-900); font-weight: 800; line-height: 1.1; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-weight: 500; font-size: .75rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.nav a:hover { background: var(--sand); }
.nav a.btn { color: #fff; padding: .55em 1.2em; min-height: 42px; margin-left: 6px; }
.nav a.btn:hover { background: var(--red-dark); }
.nav .lang { border: 1px solid var(--line); font-size: .85rem; padding: 6px 10px; margin-left: 4px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--teal-900); }
.menu-btn svg { width: 24px; height: 24px; margin: auto; }

/* Hero */
.hero { padding: clamp(32px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); background:
  radial-gradient(900px 500px at 85% 20%, var(--teal-100), transparent 70%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero h1 span { color: var(--teal-500); display: block; }
.hero .btn-row { margin: 1.5rem 0; }
.badges { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.badges li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .35em 1em; font-size: .92rem; font-weight: 600; color: var(--teal-900); }
.portrait { position: relative; max-width: 440px; margin-inline: auto; }
.portrait::before { content: ""; position: absolute; inset: 6% -6% -5% 8%; background: var(--teal-700); border-radius: 200px 200px 28px 28px; transform: rotate(3deg); }
.portrait img { position: relative; border-radius: 200px 200px 24px 24px; box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; width: 100%; background: var(--sand); }

/* Sections */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section.alt { background: var(--sand); }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: start; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-100); color: var(--teal-700); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 24px; height: 24px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-top: 1.5rem; }
.fact { border-left: 4px solid var(--teal-500); padding: 4px 0 4px 16px; }
.fact b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--teal-900); line-height: 1.2; }
.fact span { color: var(--muted); font-size: .95rem; }

.check { list-style: none; padding: 0; }
.check li { position: relative; padding-left: 32px; margin-bottom: .6em; }
.check li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f5a50' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat; }

.alert { display: flex; gap: 14px; align-items: flex-start; background: #fdecea; border: 1px solid #f0b8b3; color: #5a120d; border-radius: var(--radius); padding: 18px 20px; margin-top: 1.5rem; }
.alert svg { width: 26px; height: 26px; flex: none; color: var(--red); margin-top: 2px; }
.alert p { margin: 0; }
.alert a { color: inherit; font-weight: 800; }

/* BP tool */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.tool form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1rem 0; }
.tool label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 4px; }
.tool input { width: 100%; font: inherit; font-size: 1.3rem; padding: .55em .8em; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); }
.tool input:focus { border-color: var(--teal-500); outline: none; }
.tool .btn { grid-column: 1 / -1; }
.result { border-radius: 12px; padding: 16px 18px; background: var(--sand); min-height: 3.5em; }
.result[data-level="ok"] { background: var(--teal-100); }
.result[data-level="warn"] { background: #fff3d6; }
.result[data-level="high"] { background: #fdecea; }
.result strong { display: block; font-size: 1.1rem; }
.fineprint { font-size: .85rem; color: var(--muted); margin-top: .75rem; }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 18px 18px 18px 68px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--teal-700); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps b { display: block; color: var(--teal-900); }

/* CTA band */
.cta-band { background: var(--teal-900); color: #fff; text-align: center; padding: clamp(40px, 6vw, 72px) 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe5df; max-width: 36em; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.25rem; }
.cta-band .btn-ghost { color: #fff; border-color: #6fb3a6; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--teal-900); }

/* Locations */
.loc h3 { display: flex; gap: 10px; align-items: center; }
.loc address { font-style: normal; color: var(--muted); margin: 0 0 1rem; }
.loc .pin { width: 22px; height: 22px; color: var(--red); flex: none; }

/* FAQ */
.faq { max-width: 52rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 700; list-style: none; position: relative; color: var(--teal-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; line-height: 1; color: var(--teal-500); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 20px 16px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list .icon { margin: 0; flex: none; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-list a { font-weight: 700; font-size: 1.1rem; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: #0a2d29; color: #b9d3cd; padding: 36px 0 100px; font-size: .92rem; }
.site-footer a { color: #fff; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot .link-btn { background: none; border: 0; padding: 0; font: inherit; color: #fff; text-decoration: underline; cursor: pointer; }
.disclaimer { margin-top: 20px; font-size: .82rem; opacity: .85; max-width: 60em; }

/* Mobile quick-action bar */
.quickbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); gap: 10px; box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); }
.quickbar .btn { flex: 1; min-height: 46px; padding: .6em 1em; }

/* Consent banner */
.consent { position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px; max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0, 0, 0, .2); padding: 18px 20px; display: none; }
.consent[data-open="true"] { display: block; }
.consent p { margin: 0 0 12px; font-size: .92rem; }
.consent .btn { min-height: 42px; padding: .5em 1.2em; font-size: .95rem; }

/* Legal pages */
.prose { max-width: 46rem; padding: 48px 0 80px; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }

@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); display: none; }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .nav a.btn { margin: 8px 0 0; }
  .nav .lang { margin: 4px 0 0; text-align: center; }
  .hero-grid, .grid-2 { grid-template-columns: 1fr; }
  .portrait { max-width: 230px; order: -1; margin-inline: 0; }
  .portrait img { aspect-ratio: 1 / 1.1; }
  .hero { padding-top: 24px; }
  .quickbar { display: flex; }
  body { padding-bottom: 0; }
  .consent { bottom: 78px; }
}
@media (max-width: 480px) {
  .tool form { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .quickbar, .consent, .cta-band, .tool { display: none !important; }
  body { background: #fff; }
}
