:root {
  --bg: #ffffff; --soft: #f1f8f7; --text: #0d2b2a; --muted: #5e7674; --line: #dceceb;
  --accent: #0f8a7e; --accent-2: #5fd3c4; --on-accent: #fff;
  --font: "Onest", system-ui, sans-serif;
  --bk-bg: #fff; --bk-surface: #fff; --bk-text: var(--text); --bk-muted: var(--muted); --bk-accent: var(--accent);
  --bk-on-accent: #fff; --bk-font: var(--font); --bk-radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
.muted { color: var(--muted); }

.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: rgb(255 255 255 / 88%); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 8px; margin-right: auto; font-weight: 800; font-size: 19px; text-decoration: none; }
.logo__mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 22px; line-height: 1; }
.nav__phone { display: none; font-weight: 600; text-decoration: none; }
@media (min-width: 760px) { .nav__phone { display: block; } }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; border: 0; border-radius: 16px;
  background: var(--accent); color: #fff; font: 600 15px/1.2 var(--font); text-align: center; text-decoration: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 10px 24px -10px var(--accent); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px var(--accent); }
.btn--soft { background: var(--soft); color: var(--accent); box-shadow: none; }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn--wide { width: 100%; }

.hero { display: grid; gap: 26px; max-width: 1120px; margin: 0 auto; padding: 34px 20px 30px; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.25fr 1fr; padding-top: 64px; } }
.badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 8px 14px; border-radius: 999px; background: var(--soft); color: var(--accent); font-weight: 600; font-size: 14px; }
.badge::before { content: "✓"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; }
h1 { margin: 0; font-size: clamp(32px, 8.4vw, 60px); line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; }
mark { background: linear-gradient(transparent 58%, var(--accent-2) 58% 90%, transparent 90%); color: inherit; padding: 0 2px; }
.lead { max-width: 40ch; margin: 18px 0 24px; color: var(--muted); font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.trust b { color: var(--text); font-size: 18px; margin-right: 4px; }

.hero__art { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: min(420px, 80vw); width: 100%; margin: 0 auto; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, var(--soft) 45%, #d3eeea); }
.tooth { width: 55%; filter: drop-shadow(0 20px 30px rgb(15 138 126 / 25%)); animation: float 5s ease-in-out infinite; }
.tooth path { fill: #fff; stroke: #cfe7e3; stroke-width: 3; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-2deg); } }
.spark { position: absolute; width: 22px; height: 22px; background: var(--accent-2); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 2.4s ease-in-out infinite; }
.s1 { top: 22%; right: 24%; } .s2 { top: 52%; left: 18%; width: 14px; height: 14px; animation-delay: 0.8s; } .s3 { bottom: 24%; right: 20%; width: 16px; height: 16px; animation-delay: 1.6s; }
@keyframes twinkle { 0%, 100% { transform: scale(0.4) rotate(0); opacity: 0.3; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
.float-card { position: absolute; left: 0; bottom: 12%; display: flex; flex-direction: column; padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: 0 16px 40px -12px rgb(13 43 42 / 25%); font-size: 13px; color: var(--muted); }
.float-card b { color: var(--text); font-size: 16px; }

.section { max-width: 1120px; margin: 0 auto; padding: 60px 20px 0; }
.title { margin: 0 0 24px; font-size: clamp(28px, 7vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { display: flex; flex-direction: column; padding: 22px; border-radius: 22px; background: var(--soft); transition: transform 0.25s, background 0.25s; }
.card:hover { transform: translateY(-4px); background: #e6f4f2; }
.card__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fff; font-size: 24px; }
.card h3 { margin: 14px 0 6px; font-size: 20px; letter-spacing: -0.02em; }
.card p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.card b { margin-top: auto; font-size: 20px; }
.card__link { align-self: flex-start; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--accent); font: 600 15px/1.4 var(--font); cursor: pointer; }
.card__link::after { content: " →"; }

.split { display: grid; gap: 22px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.plan { padding: 24px; border-radius: 26px; background: var(--text); color: #fff; }
.plan__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; color: #a9c4c1; font-size: 14px; }
.plan__row output { color: #fff; font-size: 22px; font-weight: 800; }
.plan input[type="range"] { --fill: 17%; width: 100%; height: 8px; appearance: none; border-radius: 8px; cursor: pointer;
  background: linear-gradient(90deg, var(--accent-2) var(--fill), rgb(255 255 255 / 15%) var(--fill)); }
.plan input[type="range"]::-webkit-slider-thumb { appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 6px solid var(--accent-2); }
.plan input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 6px solid var(--accent-2); }
.plan__terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0; }
.plan__terms input { position: absolute; opacity: 0; }
.plan__terms span { display: block; padding: 12px 0; border-radius: 12px; background: rgb(255 255 255 / 8%); text-align: center; font-weight: 600; cursor: pointer; transition: 0.2s; }
.plan__terms input:checked + span { background: var(--accent-2); color: var(--text); }
.plan__terms input:focus-visible + span { outline: 2px solid #fff; }
.plan__result { display: flex; flex-direction: column; margin-bottom: 18px; }
.plan__result span, .plan__result small { color: #a9c4c1; font-size: 14px; }
.plan__result output { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; color: var(--accent-2); }

.doctors { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.doctor { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; }
.doctor__ava { display: grid; place-items: center; flex: none; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; font-weight: 800; }
.doctor h3 { margin: 0; font-size: 17px; }
.doctor p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

.faq { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.faq details { border-radius: 18px; background: var(--soft); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--accent); font-size: 20px; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

.contacts { padding-bottom: 60px; }
.contacts p { margin: 0 0 6px; font-size: 17px; }
.contacts .btn { margin-top: 16px; }
.footer { padding: 24px 20px 100px; text-align: center; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
.fab { position: fixed; z-index: 9; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); min-height: 56px; border: 0; border-radius: 16px;
  background: var(--accent); color: #fff; font: 600 16px/1 var(--font); cursor: pointer; box-shadow: 0 14px 30px -8px rgb(15 138 126 / 55%); }
@media (min-width: 860px) { .fab { display: none; } .footer { padding-bottom: 24px; } }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
