/* Вдигни — стилове. Бял, спокоен фон; един акцентен цвят (борово зелено), сигнално жълто само за звъненето. */

@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/onest-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/onest-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --white: #FFFFFF;
  --mist: #F2F5F4;
  --ink: #17262A;
  --muted: #5A6B68;
  --rule: #DDE4E2;
  --pine: #1D4F48;
  --pine-deep: #163C37;
  --pine-soft: #E3ECEA;
  --signal: #F2C230;
  --on-pine: #EAF1EF;
  --on-pine-muted: #A9C2BC;
  --font: "Onest", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(80px, 11vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 1.125rem/1.6 var(--font);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 650; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.6vw, 2.875rem); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: var(--sec) 0; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--signal); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }

/* Бутони */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: 12px; border: 1.5px solid transparent;
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn-pine { background: var(--pine); color: var(--white); }
.btn-pine:hover { background: var(--pine-deep); }
.btn-quiet { border-color: var(--rule); color: var(--ink); background: var(--white); }
.btn-quiet:hover { border-color: var(--pine); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; border-radius: 10px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Горна лента */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--rule); }
.top-in { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.02em; }
.brand-mark { width: 32px; height: 32px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: .9875rem; }
.nav a:hover { color: var(--ink); }

/* Начало */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(72px, 10vw, 128px); background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; max-width: 12ch; }
.lead { margin-top: 28px; font-size: clamp(1.125rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Сцена: телефонът на клиниката звъни в събота вечер и асистентът вдига */
.scene { margin: 0; position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; padding: 11px; border-radius: 48px;
  background: linear-gradient(160deg, #24524B 0%, var(--pine-deep) 60%, #10302C 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .08), 0 40px 70px -30px rgba(22, 60, 55, .55), 0 10px 24px -12px rgba(23, 38, 42, .3);
}
.screen {
  position: relative; height: 580px; border-radius: 38px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; padding: 14px 22px 30px;
  background: radial-gradient(120% 70% at 50% 0%, #2B6259 0%, #18403A 55%, #0F2C28 100%);
  color: var(--on-pine);
}
.screen::before { content: ""; position: absolute; top: 10px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #0A1F1C; }
.sb { width: 100%; display: flex; justify-content: space-between; align-items: center; font-size: .8125rem; font-weight: 600; padding: 0 8px; font-variant-numeric: tabular-nums; }
.sb-ic { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.sb-ic i { width: 3px; background: currentColor; border-radius: 1px; }
.sb-ic i:nth-child(1) { height: 5px; } .sb-ic i:nth-child(2) { height: 8px; } .sb-ic i:nth-child(3) { height: 11px; }
.sb-ic b { width: 20px; height: 10px; margin-left: 6px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; }
.sb-ic b::after { content: ""; position: absolute; inset: 1.5px 6px 1.5px 1.5px; background: currentColor; border-radius: 1px; }
.when { margin-top: 30px; padding: 4px 12px; border-radius: 999px; background: rgba(234, 241, 239, .08); font-size: .8125rem; color: var(--on-pine-muted); white-space: nowrap; }

.caller { margin-top: 14px; text-align: center; }
.caller-num { font-size: 1.875rem; font-weight: 600; letter-spacing: -0.02em; color: var(--white); font-variant-numeric: tabular-nums; }
.caller-state { position: relative; height: 1.5em; margin-top: 4px; font-size: .875rem; }
.st { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; opacity: 0; transition: opacity .3s; }
.st b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--white); }
.st-live { color: var(--signal); }
.st-live b, .st-end b { margin-left: 6px; }

.live { flex: 1; width: 100%; margin-top: 26px; display: flex; flex-direction: column; justify-content: flex-start; min-height: 0; }
.cap-who { font-size: .8125rem; font-weight: 600; color: var(--on-pine-muted); min-height: 1.3em; }
.cap { margin-top: 6px; font-size: 1.1875rem; line-height: 1.38; font-weight: 500; color: var(--white); letter-spacing: -0.01em; text-wrap: pretty; }
.screen[data-who="pt"] .cap { color: var(--on-pine); }
.cap span { opacity: 0; transition: opacity .18s; }
.cap span.on { opacity: 1; }

.wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 34px; width: 100%; margin: 6px 0 112px; }
.wave i { flex: 1; max-width: 4px; height: 12%; border-radius: 2px; background: var(--on-pine-muted); opacity: .45; transition: height .12s, opacity .3s; }
.screen[data-who="bot"] .wave i { background: var(--signal); opacity: 1; }
.screen[data-who="pt"] .wave i { background: var(--white); opacity: .85; }

.keys { position: absolute; left: 0; right: 0; bottom: 34px; display: flex; justify-content: center; gap: 96px; transition: opacity .3s; }
.key { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: var(--white); }
.key svg { width: 26px; height: 26px; }
.key-yes { background: #2FA36B; }
.key-no { background: #D9473F; }
.key-no svg { transform: rotate(135deg); }
.keys-live { opacity: 0; }

/* Състояния, задавани от main.js: ring → live → end */
.scene[data-state="ring"] .st-ring { opacity: 1; }
.scene[data-state="ring"] .key-yes { animation: nudge 1s ease-in-out infinite; }
.scene[data-state="live"] .st-live, .scene[data-state="end"] .st-end { opacity: 1; }
.scene[data-state="live"] .keys-ring, .scene[data-state="end"] .keys-ring { opacity: 0; }
.scene[data-state="live"] .keys-live { opacity: 1; }
.scene[data-state="end"] .keys-live { opacity: .35; }
.scene[data-state="end"] .wave i { opacity: .2; }

.req {
  position: absolute; right: -24px; bottom: -4px; width: min(300px, 88%);
  background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--signal); border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 28px 50px -24px rgba(23, 38, 42, .45);
  opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .6s cubic-bezier(.2, .8, .2, 1);
}
.scene[data-state="end"] .req { opacity: 1; transform: none; }
.req-head { display: flex; justify-content: space-between; align-items: center; font-size: .8125rem; font-weight: 600; color: var(--pine); }
.tag { background: var(--signal); color: var(--ink); padding: 2px 10px; border-radius: 999px; font-size: .75rem; }
.req-name { margin-top: 6px; font-size: 1.125rem; font-weight: 650; letter-spacing: -0.01em; }
.req dl { margin: 8px 0 0; display: grid; gap: 3px; font-size: .875rem; }
.req dl div { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; }
.req dt { color: var(--muted); }
.req dd { margin: 0; }
.req-foot { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--rule); font-size: .8125rem; color: var(--muted); }

@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* Познато ли ви е: един ден в клиниката */
.day-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px clamp(40px, 7vw, 96px); align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 6.5em 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--rule); }
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.timeline time { font-weight: 650; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--pine); font-variant-numeric: tabular-nums; line-height: 1.4; }
.timeline p { font-size: 1.125rem; }
.day-turn { grid-column: 2; font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; margin-top: 16px; text-wrap: balance; }

/* Как работи */
.how { background: var(--mist); }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); position: relative; }
.steps::before { content: ""; position: absolute; top: 21px; left: 22px; right: 22px; height: 1px; background: var(--rule); }
.steps li { position: relative; }
.n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); border: 1px solid var(--rule); font-weight: 650; color: var(--pine); position: relative; }
.steps li:last-child .n { background: var(--pine); border-color: var(--pine); color: var(--white); }
.steps h3 { margin-top: 22px; }
.steps p { margin-top: 10px; color: var(--muted); max-width: 30em; }

/* Какво печелите */
.gain-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 6vw, 80px); }
.gain-grid article { padding-top: 20px; border-top: 2px solid var(--pine); }
.gain-grid p { margin-top: 8px; color: var(--muted); max-width: 32em; }

/* Въпроси */
.faq { border-top: 1px solid var(--rule); }
.faq-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px clamp(40px, 7vw, 96px); align-items: start; }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list details:first-child { border-top: 1px solid var(--rule); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; font-weight: 600; font-size: 1.0625rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: 6px; border-right: 2px solid var(--pine); border-bottom: 2px solid var(--pine); transform: rotate(45deg); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(-135deg) translate(-4px, -4px); }
.faq-list details p { padding: 0 32px 22px 0; color: var(--muted); max-width: 40em; }

/* Среща */
.meet { background: var(--pine); color: var(--on-pine); padding: var(--sec) 0; }
.meet-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(40px, 7vw, 96px); align-items: end; }
.meet h2 { color: var(--white); max-width: 15ch; }
.meet-copy ul { margin: 10px 0 0; padding-left: 1.2em; }
.meet-copy li { margin-top: 4px; }
.meet-copy li::marker { color: var(--signal); }
.meet-box { position: relative; margin-top: clamp(36px, 5vw, 56px); background: var(--white); color: var(--ink); border-radius: 20px; padding: 8px; min-height: 560px; overflow: hidden; }
.cal-inline { width: 100%; min-height: 540px; }
.cal-loading { position: absolute; top: 50%; left: 0; right: 0; text-align: center; color: var(--muted); }
.cal-fallback { padding: 48px 32px; text-align: center; font-size: 1.0625rem; }
.cal-fallback a { color: var(--pine); font-weight: 600; }
.meet-alt { margin-top: 20px; font-size: .9375rem; color: var(--on-pine-muted); }
.meet-alt a { color: var(--white); }

/* Долна част */
.foot { background: var(--pine-deep); color: var(--on-pine-muted); padding: 64px 0 28px; font-size: .9375rem; line-height: 1.55; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; align-items: start; }
.foot .brand { color: var(--white); height: 34px; }
.foot-brand p { margin-top: 16px; max-width: 32ch; }
.foot-h { display: flex; align-items: center; height: 34px; font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--white); }
.foot-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.foot-list li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.foot-list svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--on-pine-muted); stroke-width: 1.6; stroke-linejoin: round; }
.foot a { color: var(--on-pine); text-decoration: none; overflow-wrap: anywhere; }
.foot a:hover { color: var(--signal); }
.foot .foot-maker { margin-top: 16px; display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-size: 1.0625rem; }
.maker-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #2F8CFF, #0F62E6); color: #fff; font-weight: 700; font-size: 1.0625rem; }
.foot-maker-note { margin-top: 10px; }
.foot-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(234, 241, 239, .12); display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; font-size: .875rem; }
.foot-bottom p { margin: 0; }

/* Вътрешни страници */
.doc { padding: clamp(48px, 7vw, 88px) 0 var(--sec); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.08; letter-spacing: -0.035em; }
.doc h2 { font-size: 1.375rem; letter-spacing: -0.015em; margin-top: 44px; }
.doc p, .doc ul { margin-top: 14px; }
.doc li { margin-top: 6px; }
.doc .updated { color: var(--muted); margin-top: 12px; }
.lost { min-height: 70vh; display: grid; align-content: center; gap: 24px; justify-items: start; }

/* Таблет */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; }
  .scene { max-width: 560px; width: 100%; margin: 0 auto; padding-bottom: 120px; }
  .req { right: 0; }
  .day-in, .faq-in, .meet-in { grid-template-columns: 1fr; }
  .meet h2 { max-width: none; }
  .day-turn { grid-column: 1; }
  .foot-in { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
  .foot-brand { grid-column: 1 / -1; }
}

/* Телефон */
@media (max-width: 680px) {
  .nav { display: none; }
  .top-in { justify-content: space-between; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { top: 22px; bottom: 22px; left: 21px; right: auto; width: 1px; height: auto; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; }
  .steps li .n { grid-row: span 2; }
  .steps h3 { margin-top: 10px; }
  .gain-grid { grid-template-columns: 1fr; gap: 32px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .scene { padding-bottom: 150px; }
  .phone { width: 272px; border-radius: 44px; }
  .screen { height: 540px; border-radius: 35px; padding-left: 18px; padding-right: 18px; }
  .caller-num { font-size: 1.625rem; }
  .cap { font-size: 1.0625rem; }
  .req { width: min(290px, 92%); }
  .foot-in { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions .btn { flex: 1 1 100%; }
}
