/* nextgenlab.bg/razgovor — the ad landing page for a callback request. Standalone: same tokens and fonts as style.css,
   only the rules this page needs (the consent banner from consent.js included). */
@font-face { font-family: Sofia; src: url('./assets/fonts/SofiaSans-cyrillic-400-700.woff2') format('woff2'); font-weight: 400 700; unicode-range: U+0400-052F, U+2DE0-2DFF, U+A640-A69F; font-display: swap; }
@font-face { font-family: Sofia; src: url('./assets/fonts/SofiaSans-latin-400-700.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --night: #061f19;
  --night-2: #0a2a21;
  --ink-light: #e5f1df;
  --muted-light: #a9bfb0;
  --paper: #e4ede0;
  --field: #f3f8ee;
  --ink: #123d31;
  --muted-dark: #5d7064;
  --mint: #b6d6b0;
  --lime: #a9d392;
  --cream: #e0edce;
  --pad: clamp(20px, 5vw, 72px);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--ink-light); font-family: Sofia, Arial, sans-serif; font-size: 18px; line-height: 1.45; overflow-x: clip; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(90vmax 70vmax at 100% -10%, #1c5a4466, transparent 60%), radial-gradient(70vmax 60vmax at -20% 110%, #0f3b2e88, transparent 62%); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, p, ul, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
em { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 400; color: var(--lime); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--cream); color: var(--ink); }

/* ---------------------------------------------------------------- top */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--pad) 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.brand img { border-radius: 9px; }
.top-note { font-size: 12px; letter-spacing: .04em; color: var(--muted-light); text-align: right; }
@media (max-width: 420px) { .top-note span { display: none; } }

/* ---------------------------------------------------------------- hero */
.hero { display: grid; gap: 20px; padding: 20px var(--pad) 56px; max-width: 1180px; margin: 0 auto; }
.eyebrow { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
h1 { margin-top: 8px; font-size: clamp(30px, 8.3vw, 78px); line-height: 1.04; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.lead { margin-top: 12px; max-width: 30em; font-size: clamp(16px, 4.2vw, 21px); color: var(--muted-light); }

.caller { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid #123d3122; }
.caller-photo { position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%; }
.caller-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
/* the line is open: two soft rings around the photo */
.caller-photo::before, .caller-photo::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid #2f7a5e; opacity: 0; animation: ring 2.6s var(--ease-out) infinite; }
.caller-photo::after { animation-delay: 1.3s; }
@keyframes ring { 0% { transform: scale(.94); opacity: .9; } 100% { transform: scale(1.42); opacity: 0; } }
.caller-text { display: grid; gap: 1px; font-size: 14px; color: var(--muted-dark); }
.caller-text strong { font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.window { margin-top: 4px; display: inline-flex; align-items: center; gap: 8px; color: #1f6a4f; font-size: 14px; font-weight: 600; }
.window::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #2f9a6c; box-shadow: 0 0 0 4px #2f9a6c2e; }

/* ---------------------------------------------------------------- form card */
.card { scroll-margin-top: 16px; border-radius: 26px; background: var(--paper); color: var(--ink); padding: clamp(22px, 5.4vw, 38px); box-shadow: 0 30px 80px #0008, 0 0 0 1px #e5f1df22; }
.card h2 { font-size: clamp(26px, 6.4vw, 34px); line-height: 1.1; font-weight: 600; letter-spacing: -.01em; }
.done { padding-top: 22px; }
.call-form label { display: block; margin: 16px 0 7px; font-size: 13px; letter-spacing: .05em; color: var(--muted-dark); }
.call-form input:not(.trap) { width: 100%; min-height: 54px; padding: 10px 16px; border-radius: 14px; border: 1.5px solid #123d3140; background: var(--field); color: var(--ink); font: inherit; font-size: 19px; transition: border-color .16s ease, box-shadow .16s ease; }
.call-form input::placeholder { color: #123d3155; }
.call-form input:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px #123d311f; }
.call-form input[aria-invalid='true'] { border-color: #9c2b1c; }
#call-phone { font-size: clamp(22px, 6.4vw, 28px); font-weight: 600; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
#call-phone::placeholder { font-weight: 400; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.echo { min-height: 22px; margin-top: 10px; font-size: 15px; color: var(--ink); }
.echo b { font-variant-numeric: tabular-nums; }
.error { margin-top: 6px; font-size: 15px; color: #9c2b1c; }
.note { margin-top: 14px; font-size: 13px; color: var(--muted-dark); }
.note a { text-underline-offset: 3px; }

.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; padding: 16px 26px; border: 0; border-radius: 50px; background: var(--ink); color: var(--cream); font: inherit; font-size: 19px; font-weight: 600; line-height: 1.1; white-space: nowrap; text-decoration: none; cursor: pointer; transition: transform .16s var(--ease-out), background-color .2s ease; }
.btn:active { transform: scale(.97); }
.btn.cream { background: var(--cream); color: var(--ink); }
.btn.outline { background: transparent; border: 1px solid currentColor; color: inherit; }
.btn[disabled] { opacity: .6; cursor: progress; }
.call-form .btn { width: 100%; margin-top: 14px; }
@media (hover: hover) { .btn:hover { background: #1f5a47; } .btn.cream:hover { background: #f0f7e6; } .btn.outline:hover { background: #e5f1df14; } }

.done:focus { outline: none; }
.done-mark { display: block; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%; background: var(--ink); position: relative; animation: pop .4s var(--ease-out) both; }
.done-mark::after { content: ''; position: absolute; left: 20px; top: 13px; width: 13px; height: 24px; border: solid var(--lime); border-width: 0 3.5px 3.5px 0; transform: rotate(42deg); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.done-line { margin-top: 12px; font-size: 19px; }
.done-line b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.review-note { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: #123d3114; font-size: 14px; }
.done-direct { margin-top: 22px; padding-top: 18px; border-top: 1px solid #123d3126; font-size: 15px; color: var(--muted-dark); }
.done-direct a { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* ---------------------------------------------------------------- the questions worth asking any lab */
.qa { padding: 30px var(--pad) 10px; max-width: 1180px; margin: 0 auto; }
.qa h2, .close h2 { font-size: clamp(28px, 7.4vw, 50px); line-height: 1.08; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.qa-head > p { margin-top: 16px; max-width: 36em; color: var(--muted-light); font-size: clamp(16px, 4.2vw, 19px); }
.voice { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; margin: 26px 0 0; padding: 18px; border-radius: 22px; background: var(--night-2); border: 1px solid #e5f1df1a; }
.voice img { width: 96px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 32% 0; border-radius: 14px; }
.voice blockquote { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: clamp(18px, 4.7vw, 24px); line-height: 1.3; color: var(--ink-light); }
.voice figcaption span { display: block; margin-top: 10px; font-size: 13px; letter-spacing: .03em; color: var(--muted-light); }

.qa-list { margin: 30px 0 0; border-top: 1px solid #e5f1df26; }
.qa-list > div { display: grid; gap: 10px; padding: 24px 0; border-bottom: 1px solid #e5f1df26; }
.qa-list dt { font-size: clamp(21px, 5.5vw, 28px); font-weight: 600; line-height: 1.18; letter-spacing: -.01em; text-wrap: balance; }
.qa-list dt::before { content: '„'; color: var(--lime); }
.qa-list dt::after { content: '“'; color: var(--lime); }
.qa-list dd { margin: 0; color: #c6d8c8; font-size: clamp(16px, 4.3vw, 18px); line-height: 1.55; max-width: 38em; }
.qa-list dd a { color: var(--lime); text-underline-offset: 3px; white-space: nowrap; }

.close { padding: 56px var(--pad) 72px; max-width: 900px; margin: 0 auto; text-align: center; }
.close .btn { margin-top: 26px; min-width: min(100%, 320px); }
.close p { margin-top: 18px; color: var(--muted-light); font-size: 16px; }
.close p a { color: var(--ink-light); font-weight: 600; white-space: nowrap; }

.foot { padding: 22px var(--pad) 110px; border-top: 1px solid #e5f1df1a; font-size: 13px; color: var(--muted-light); display: grid; gap: 6px; }
.foot a { text-underline-offset: 3px; }

/* phone: a button that brings the form back, shown while the form is out of view */
.bar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(#061f1900, #061f19 38%); animation: bar-in .28s var(--ease-out); }
.bar .btn { width: 100%; box-shadow: 0 12px 34px #0009; }
@keyframes bar-in { from { transform: translateY(100%); } }

/* ---------------------------------------------------------------- motion */
.rise { animation: rise .7s var(--ease-out) both; }
.hero-copy .rise:nth-child(2) { animation-delay: .06s; }
.hero-copy .rise:nth-child(3) { animation-delay: .14s; }
.card.rise { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .bar, .done-mark { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .caller-photo::before, .caller-photo::after { animation: none; }
}

/* ---------------------------------------------------------------- wide screens */
@media (min-width: 900px) {
  .top { padding-top: 26px; }
  .hero { grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); align-items: center; gap: clamp(32px, 5vw, 80px); padding-top: clamp(40px, 7vh, 90px); padding-bottom: 90px; }
  h1 { font-size: clamp(42px, 4.7vw, 66px); }
  .lead { margin-top: 20px; }
  .caller-photo { width: 76px; height: 76px; }
  .qa { padding-top: 20px; }
  .qa-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px 64px; align-items: start; }
  .qa-head h2 { grid-row: span 2; }
  .qa-head > p { margin-top: 6px; }
  .voice { margin-top: 0; grid-template-columns: 110px 1fr; }
  .voice img { width: 110px; }
  .qa-list { margin-top: 48px; }
  .qa-list > div { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; padding: 30px 0; }
  .bar { display: none; }
  .foot { padding-bottom: 28px; }
}

/* ---------------------------------------------------------------- cookie banner (markup comes from consent.js) */
.consent { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: 12px; max-width: 520px; margin-left: auto; padding: 14px 16px; border: 1px solid rgba(182,214,176,.28); border-radius: 20px; background: rgba(6,31,25,.97); color: var(--ink-light); box-shadow: 0 18px 50px rgba(0,0,0,.45); font-size: 13px; line-height: 1.4; }
.consent p { margin: 0 0 12px; }
.consent a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 10px; }
.consent-actions .btn { flex: 1; justify-content: center; min-height: 44px; padding: 10px 18px; font-size: 15px; font-weight: 400; }
/* phones: smaller, and out of the way while a field of the form is being filled (it comes back afterwards) */
@media (max-width: 640px) {
  .consent { left: 8px; right: 8px; bottom: 8px; padding: 12px 14px; font-size: 12px; line-height: 1.35; border-radius: 18px; }
  .consent p { margin-bottom: 10px; }
  .consent-actions .btn { min-height: 40px; }
}
body:has(.call-form input:focus) .consent { display: none; }
