/* Dental Deal Clinic — дизайн-система: переменные, сброс, типографика, кнопки, формы, утилиты */

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/manrope-cyrillic-wght-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/manrope-latin-wght-normal.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; }
@font-face { font-family: 'Cormorant'; font-style: italic; font-weight: 600; font-display: swap; src: url('../fonts/cormorant-garamond-cyrillic-600-italic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant'; font-style: italic; font-weight: 600; font-display: swap; src: url('../fonts/cormorant-garamond-latin-600-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Cormorant'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/cormorant-garamond-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }

:root {
  --ink: #0E0E0F;
  --ink-2: #232326;
  --ink-3: #4A484E;
  --muted: #6B6760;
  --line: #E8E2D6;
  --line-2: #D8CCB4;
  --white: #FFFFFF;
  --paper: #FAF8F4;
  --sand: #F3EDE2;
  --cream: #FBF6EC;
  --gold: #C9A45C;
  --gold-1: #D3B576;
  --gold-2: #EAD9AF;
  --gold-3: #A8843F;
  --gold-ink: #8A6A2E;
  --gold-glow: rgba(211, 181, 118, .35);
  --grad-gold: linear-gradient(120deg, #F0DFB5 0%, #D3B576 34%, #B8924A 68%, #E2C88C 100%);
  --grad-dark: radial-gradient(120% 140% at 85% 0%, #2A2620 0%, #141416 48%, #0B0B0C 100%);
  --danger: #B23A2E;
  --ok: #2F7D4F;
  --r: 20px;
  --r-s: 12px;
  --r-l: 30px;
  --shadow: 0 30px 70px -36px rgba(14, 14, 15, .45);
  --shadow-s: 0 12px 30px -18px rgba(14, 14, 15, .35);
  --shadow-gold: 0 18px 40px -18px rgba(168, 132, 63, .7);
  --f-text: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --f-display: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --f-accent: 'Cormorant', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(.22, .9, .32, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1280px;
  --gut: clamp(16px, 4vw, 40px);
  --hdr-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 17px/1.65 var(--f-text); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video, picture { max-width: 100%; height: auto; display: block; }
picture { height: 100%; }
picture img { width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 3px; transition: color .2s, opacity .2s; }
a:hover { color: var(--gold-ink); }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold-2); color: var(--ink); }

.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico.f { fill: currentColor; stroke: none; }

/* ---------- Типографика ---------- */
h1, h2, h3, h4, .h1, .h2, .h3 { font-family: var(--f-display); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.022em; text-wrap: balance; }
h1, .h1 { font-size: clamp(34px, 5.2vw, 66px); font-weight: 800; }
h2, .h2 { font-size: clamp(28px, 3.6vw, 46px); font-weight: 800; }
h3, .h3 { font-size: clamp(19px, 1.7vw, 23px); font-weight: 700; letter-spacing: -.012em; line-height: 1.25; }
h4 { font-size: 18px; font-weight: 700; }
.acc { font-family: var(--f-accent); font-style: italic; font-weight: 600; letter-spacing: 0; font-size: 1.14em; line-height: 1; background: var(--grad-gold); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; animation: goldflow 8s ease-in-out infinite alternate; }
@keyframes goldflow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: var(--ink-3); max-width: 68ch; }
.small { font-size: 15px; }
.tiny { font-size: 13px; line-height: 1.5; }
.muted { color: var(--muted); }
.gold { color: var(--gold-ink); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.kicker { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); }
.kicker::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.on-dark .kicker, .sec-dark .kicker { color: var(--gold-1); }

.rich { font-size: 17px; }
.rich h2 { font-size: clamp(24px, 2.4vw, 32px); margin-top: 1.4em; }
.rich h3 { margin-top: 1.3em; }
.rich ul { list-style: none; padding: 0; }
.rich ul li { position: relative; padding-left: 26px; margin-bottom: .45em; }
.rich ul li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-gold); box-shadow: 0 0 0 4px var(--gold-glow); }
.rich ol li { margin-bottom: .45em; padding-left: 4px; }
.rich ol li::marker { color: var(--gold-ink); font-weight: 700; }
.rich a { color: var(--gold-ink); font-weight: 600; }
.rich table { margin: 1.2em 0; font-size: 15px; }
.rich th, .rich td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rich th { background: var(--sand); font-weight: 700; }
.rich blockquote { margin: 1.4em 0; padding: 18px 24px; border-left: 3px solid var(--gold); background: var(--cream); border-radius: 0 var(--r-s) var(--r-s) 0; font-size: 18px; }
.rich > *:last-child { margin-bottom: 0; }

/* ---------- Сетка ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.wrap-s { max-width: calc(880px + var(--gut) * 2); }
.sec { padding: clamp(64px, 8vw, 116px) 0; position: relative; }
.sec-s { padding: clamp(44px, 5.5vw, 72px) 0; }
.sec + .sec:not(.sec-paper):not(.sec-dark):not(.sec-sand) { padding-top: 0; }
.sec-paper { background: var(--paper); }
.sec-sand { background: var(--sand); }
.sec-dark { background: var(--grad-dark); color: rgba(255, 255, 255, .86); }
.sec-dark h2, .sec-dark h3, .sec-dark .h2 { color: #fff; }
.sec-dark .lead { color: rgba(255, 255, 255, .72); }
.sec-head { max-width: 860px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .kicker::after { content: ''; width: 34px; height: 1px; background: currentColor; }
.sec-head h2 { margin-bottom: .35em; }
.sec-head .lead { margin-bottom: 0; }
.sec-head.center .lead { margin-left: auto; margin-right: auto; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 3.5vw, 44px); }
.sec-head-row .sec-head { margin-bottom: 0; }
.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Кнопки ---------- */
.btn { --h: 54px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 0 28px; border: 0; border-radius: 999px; font-weight: 700; font-size: 16px; line-height: 1.15; letter-spacing: .01em; text-decoration: none; text-align: center; white-space: nowrap; overflow: hidden; isolation: isolate; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .25s, color .25s, border-color .25s; }
.btn .ico { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-gold { background: var(--grad-gold); background-size: 200% 100%; color: var(--ink); box-shadow: var(--shadow-gold); animation: goldflow 6s ease-in-out infinite alternate; }
.btn-gold::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .7) 48%, transparent 66%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn-gold:hover { color: var(--ink); box-shadow: 0 22px 46px -18px rgba(168, 132, 63, .85); }
.btn-gold:hover::after { transform: translateX(120%); }
.btn-dark { background: var(--ink); color: var(--gold-2); }
.btn-dark:hover { background: #000; color: #fff; box-shadow: var(--shadow-s); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--gold-2); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--gold-2); color: var(--ink); }
.btn-ghost-w { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.btn-ghost-w:hover { background: #fff; color: var(--ink); }
.btn-s { --h: 44px; padding: 0 20px; font-size: 15px; }
.btn-l { --h: 62px; padding: 0 34px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn.is-loading { pointer-events: none; color: transparent !important; }
.btn.is-loading::before { content: ''; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--ink); border-right-color: transparent; animation: spin .7s linear infinite; }
.btn-dark.is-loading::before { border-color: var(--gold-2); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.link-arrow .ico { transition: transform .3s var(--ease); color: var(--gold-ink); }
.link-arrow:hover .ico { transform: translateX(5px); }
.linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink); transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.icon-btn:hover { background: var(--ink); color: var(--gold-2); border-color: var(--ink); }
.icon-btn:disabled { opacity: .35; }

/* ---------- Плашки ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--sand); color: var(--ink-2); font-size: 14px; font-weight: 600; line-height: 1.2; }
.pill-gold { background: var(--grad-gold); color: var(--ink); }
.pill-dark { background: var(--ink); color: var(--gold-2); }
.pill-line { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
a.pill { text-decoration: none; transition: background .2s, color .2s; }
a.pill:hover { background: var(--ink); color: var(--gold-2); }
.price-tag { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 800; white-space: nowrap; }
.price-tag .from { font-size: .62em; font-weight: 600; color: var(--muted); }
.price-tag s { font-size: .62em; font-weight: 500; color: var(--muted); }

/* ---------- Формы ---------- */
.field { display: block; position: relative; margin: 0; }
.field-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--ink-2); }
.input, .select, .textarea { display: block; width: 100%; min-height: 56px; padding: 15px 20px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; font-size: 16px; line-height: 1.4; transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none; }
.textarea { resize: vertical; min-height: 110px; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A6A2E' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; padding-right: 48px; }
.input::placeholder, .textarea::placeholder { color: #9A958C; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-2); }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-glow); }
.has-error .input, .has-error .select, .has-error .textarea { border-color: var(--danger); }
.field-error { display: block; font-size: 13px; color: var(--danger); margin-top: 6px; }
.field-error:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.check input { flex: none; appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid var(--line-2); border-radius: 7px; background: #fff; display: grid; place-content: center; transition: background .2s, border-color .2s; cursor: pointer; }
.check input::after { content: ''; width: 11px; height: 6px; border: 2.5px solid var(--ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s var(--ease); }
.check input:checked { background: var(--grad-gold); border-color: var(--gold); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check a { color: var(--ink-2); }
.check.has-error input { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(178, 58, 46, .15); }
.consent-error { margin-top: -4px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.seg-in { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; }
.seg-opt input:checked + span { background: var(--ink); color: var(--gold-2); border-color: var(--ink); }
.seg-opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }

/* ---------- Анимации появления ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-l { transform: translateX(-30px); }
.js .rv-r { transform: translateX(30px); }
.js .rv-z { transform: scale(.94); }
.js .rv-l.in, .js .rv-r.in, .js .rv-z.in { transform: none; }
@media (max-width: 900px) { .js .rv-l:not(.in), .js .rv-r:not(.in) { transform: translateY(26px); } }
main { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .acc, .btn-gold { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Карточки ---------- */
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 2.4vw, 32px); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
a.card { text-decoration: none; color: inherit; }
a.card:hover, .card.hoverable:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-t { font-size: 20px; font-weight: 750; line-height: 1.25; margin: 0 0 8px; letter-spacing: -.01em; }
.card-d { color: var(--muted); font-size: 15.5px; line-height: 1.55; margin: 0; }
.card-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--cream); color: var(--gold-ink); margin-bottom: 20px; transition: background .3s, color .3s, transform .4s var(--ease); }
.card-ico .ico { width: 28px; height: 28px; stroke-width: 1.5; }
a.card:hover .card-ico { background: var(--ink); color: var(--gold-1); transform: rotate(-6deg); }
.arrow-circle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink); transition: all .3s var(--ease); flex: none; }
a.card:hover .arrow-circle, a:hover > .arrow-circle { background: var(--grad-gold); border-color: transparent; transform: rotate(-45deg); }

/* ---------- Горизонтальные ленты ---------- */
.hscroll { position: relative; }
.hscroll-track { display: grid; grid-auto-flow: column; grid-auto-columns: var(--col, minmax(280px, 1fr)); gap: clamp(16px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 20px; margin: -4px -2px -20px; overscroll-behavior-x: contain; }
.hscroll-track::-webkit-scrollbar { display: none; }
.hscroll-track > * { scroll-snap-align: start; }
.hscroll-nav { display: flex; gap: 10px; }
