/* СТОМЦЭС LAB — фирменные цвета клиники stomces.ru */
:root {
  --navy: #001f3f;
  --navy-2: #0b2d52;
  --blue: #5f7caf;
  --blue-l: #dfe6f2;
  --beige: #efe7d8;
  --cream: #fdf6f0;
  --text: #1d2733;
  --muted: #5c6673;
  --line: #e3e0d8;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 31, 63, .08);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { overflow-x: clip; margin: 0; font-family: var(--sans); color: var(--text); background: var(--white); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; color: var(--navy); }
h1, h2 { font-family: var(--serif); font-weight: 600; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 40px); }
.ico-s { width: 18px; height: 18px; flex-shrink: 0; }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--blue); margin-bottom: .9em; }

/* Кнопки */
.btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--navy); color: var(--white); box-shadow: 0 8px 20px rgba(0, 31, 63, .2); }
.btn--primary:hover { background: var(--blue); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--beige); }
.btn--sm { padding: 10px 20px; font-size: .9rem; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__top { background: var(--navy); color: #cfd9ea; font-size: .82rem; }
.header__top-inner { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; }
.header__meta { display: inline-flex; align-items: center; gap: 6px; }
.header__lk { color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.header__lk:hover { text-decoration: underline; }
.header__main { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.logo { flex-shrink: 0; display: inline-flex; align-items: flex-end; gap: 8px; text-decoration: none; }
.logo img { height: 27px; width: auto; }
.logo__lab { font-weight: 700; font-size: .78rem; letter-spacing: .2em; color: var(--white); background: var(--navy); padding: 3px 7px; border-radius: 6px; line-height: 1.2; }
.nav { display: flex; gap: 22px; }
.nav a { white-space: nowrap; text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--text); position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--blue); transition: width .25s; }
.nav a:hover::after { width: 100%; }
.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--navy); white-space: nowrap; }
.burger { display: none; width: 42px; height: 42px; border: 0; background: var(--beige); border-radius: 10px; cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Первый экран */
.hero { background: radial-gradient(1200px 500px at 85% 20%, var(--blue-l), transparent 60%), linear-gradient(180deg, var(--cream), var(--white)); padding: 80px 0 90px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 600px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 28px; }
.hero__tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__tags li { font-size: .82rem; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--muted); }
.hero__visual { position: relative; height: 420px; }
.hero__card { position: absolute; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; display: flex; flex-direction: column; }
.hero__card strong { color: var(--navy); }
.hero__card span { font-size: .85rem; color: var(--muted); }
.hero__card--main { inset: 30px 30px 30px 40px; background: linear-gradient(150deg, var(--navy), var(--navy-2) 60%, var(--blue)); align-items: center; justify-content: center; gap: 22px; }
.hero__card--main span { color: #cfd9ea; letter-spacing: .05em; }
.hero__big-ico { width: 160px; height: 160px; color: var(--white); stroke-width: 1; }
.hero__card--float1 { top: 0; left: 0; animation: float 6s ease-in-out infinite; }
.hero__card--float2 { bottom: 0; right: 0; animation: float 6s ease-in-out 3s infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Цифры */
.stats { background: var(--white); margin-top: -40px; position: relative; z-index: 2; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.stat { padding: 30px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat__title { font-weight: 700; margin: 8px 0 6px; }
.stat p { font-size: .88rem; color: var(--muted); margin: 0; }

/* Секции */
.section { padding: 100px 0; }
.section--tinted { background: var(--cream); }
.section--dark { background: var(--navy); color: #d5deec; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .eyebrow { color: #9fb4d8; }
.section__head { max-width: 720px; margin-bottom: 50px; }
.section__sub { color: var(--muted); font-size: 1.05rem; }

/* О лаборатории */
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; }
.about__text > p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checklist li { padding-left: 34px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='%23001f3f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.quote { background: var(--beige); border-radius: var(--radius); padding: 40px 36px; position: relative; }
.quote::before { content: "“"; font-family: var(--serif); font-size: 7rem; line-height: 1; color: var(--blue); position: absolute; top: -10px; left: 24px; opacity: .5; }
.quote p { font-family: var(--serif); font-size: 1.45rem; line-height: 1.35; color: var(--navy); position: relative; }
.quote__author { font-size: .88rem; color: var(--muted); font-weight: 600; }

/* Карточки продукции */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--white); border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-l); }
.card__ico { width: 46px; height: 46px; color: var(--blue); margin-bottom: 18px; }
.card p { font-size: .92rem; color: var(--muted); flex: 1; }
.card__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--navy); text-decoration: none; }
.card__link:hover { color: var(--blue); }

/* Схемы */
.schemes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.scheme { border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px; background: var(--white); }
.scheme--accent { background: var(--beige); border-color: var(--beige); }
.scheme__num { font-family: var(--serif); font-size: 3.4rem; font-weight: 700; color: var(--blue); line-height: 1; margin-bottom: 18px; }
.scheme p { color: var(--muted); margin: 0; }

/* Шаги */
.steps { list-style: none; padding: 0; margin: 0 0 50px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 10px; }
.step__n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid #9fb4d8; color: var(--white); font-weight: 700; margin-bottom: 18px; background: var(--navy); position: relative; z-index: 1; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 34px; left: 56px; right: -16px; height: 1px; background: rgba(159, 180, 216, .4); }
.step p { font-size: .93rem; margin: 0; }
.need { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 34px 36px; }
.need__list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 30px; }
.need__list li { padding-left: 22px; position: relative; }
.need__list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }

/* Технологии */
.tech { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tech__item { display: flex; gap: 18px; padding: 26px; border-radius: var(--radius); background: var(--cream); }
.tech__ico { width: 40px; height: 40px; color: var(--navy); flex-shrink: 0; }
.tech__item p { font-size: .9rem; color: var(--muted); margin: 0; }

/* Почему мы */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why__item { background: var(--white); padding: 32px 26px; border-radius: var(--radius); box-shadow: 0 2px 0 var(--line); }
.why__ico { width: 44px; height: 44px; color: var(--blue); margin-bottom: 16px; }
.why__item p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Работы */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter { font-family: inherit; font-size: .9rem; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; color: var(--text); transition: background .2s, color .2s; }
.filter:hover { border-color: var(--blue); }
.filter.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work { margin: 0; }
.work.is-hidden { display: none; }
.work__img { aspect-ratio: 4 / 3; border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; }
.work__img img { width: 100%; height: 100%; object-fit: cover; }
.work__img svg { width: 80px; height: 80px; color: rgba(255, 255, 255, .85); }
.work__img--1 { background: linear-gradient(135deg, #5f7caf, #001f3f); }
.work__img--2 { background: linear-gradient(135deg, #c9b99a, #8a7556); }
.work__img--3 { background: linear-gradient(135deg, #0b2d52, #5f7caf); }
.work__img--4 { background: linear-gradient(135deg, #8fa5c9, #3f5a88); }
.work__img--5 { background: linear-gradient(135deg, #3c4f6b, #001f3f); }
.work__img--6 { background: linear-gradient(135deg, #b7a688, #5f7caf); }
.work figcaption { margin-top: 12px; font-size: .92rem; color: var(--muted); }

/* Прайс */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.price > div > p { color: var(--muted); }
.price > div > .price__badge { display: inline-block; background: var(--navy); color: var(--white); padding: 10px 18px; border-radius: 10px; font-weight: 700; }

/* Формы */
.form { display: grid; gap: 16px; background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.section--dark .form { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); box-shadow: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; font-size: 1rem; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--text); width: 100%; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(95, 124, 175, .25); }
.field.is-invalid input { border-color: #c0392b; }
.radio-group { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .92rem; }
.radio-group legend { font-size: .85rem; font-weight: 600; margin-bottom: 8px; padding: 0; }
.radio-group label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); }
.section--dark .consent { color: #b8c5da; }
.consent input { margin-top: 3px; }
.consent.is-invalid { color: #e57368; }
.form .btn { justify-self: start; }
.form__status { margin: 0; font-size: .9rem; font-weight: 600; min-height: 1.2em; }
.form__status.ok { color: #2e8b57; }
.section--dark .form__status.ok { color: #8fe0b0; }
.form__status.err { color: #c0392b; }
.section--dark .form__status.err { color: #e57368; }

/* Заказ */
.order { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.order__lead { font-size: 1.05rem; }
.contacts { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 16px; }
.contacts li { display: grid; gap: 2px; color: var(--white); font-size: 1.05rem; }
.contacts span { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #9fb4d8; }
.contacts a { text-decoration: none; }
.contacts a:hover { color: var(--beige); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); text-decoration: none; font-size: .9rem; color: var(--white); transition: background .2s; }
.socials a:hover { background: rgba(255, 255, 255, .12); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 0 24px; background: var(--white); transition: background .2s; }
.faq details[open] { background: var(--cream); }
.faq summary { cursor: pointer; padding: 20px 30px 20px 0; font-weight: 700; color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Подвал */
.footer { background: #00172f; color: #9fb0c8; padding: 60px 0 30px; font-size: .9rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer h4 { color: var(--white); margin: 0 0 14px; font-size: .95rem; }
.footer__grid > div > a:not(.logo), .footer__grid > div > span { display: block; text-decoration: none; margin-bottom: 8px; }
.footer__grid a:hover { color: var(--white); }
.logo--footer img { filter: brightness(0) invert(1); height: 24px; }
.logo--footer .logo__lab { background: var(--blue); }
.footer__note { margin-top: 14px; }
.footer__legal { padding-top: 24px; display: flex; justify-content: space-between; gap: 30px; font-size: .8rem; }
.footer__legal p { margin: 0; }

/* Анимация появления */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__card--float1, .hero__card--float2 { animation: none; }
}

/* Адаптив */
@media (max-width: 1440px) { .header__phone { display: none; } .nav { gap: 18px; } }
@media (max-width: 1100px) {
  .nav { gap: 16px; }
  .nav a { font-size: .86rem; }
  .header__phone { display: none; }
  .cards, .why { grid-template-columns: repeat(2, 1fr); }
  .tech { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .header { backdrop-filter: none; background: var(--white); }
  .burger { display: flex; position: relative; z-index: 45; }
  .nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw); background: var(--white); flex-direction: column; gap: 0; padding: 100px 30px 30px; box-shadow: -10px 0 40px rgba(0, 0, 0, .15); transform: translateX(110%); transition: transform .3s; z-index: 40; height: 100vh; }
  .nav.is-open { transform: none; }
  .nav a { font-size: 1.1rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .header__meta--hide-m { display: none; }
  .hero { padding: 50px 0 80px; }
  .hero__inner, .about, .price, .order { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { height: 320px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .schemes, .steps { grid-template-columns: 1fr 1fr; }
  .step:not(:last-child)::after { display: none; }
  .works { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 70px 0; }
}
@media (max-width: 600px) {
  .header__main .btn--sm { display: none; }
  .cards, .why, .tech, .schemes, .steps, .works, .need__list, .form__row { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .form { padding: 26px 20px; }
  .need { padding: 26px 22px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; gap: 10px; }
  .hero__visual { height: 280px; }
  .hero__big-ico { width: 110px; height: 110px; }
}

/* ===== Страницы продукции ===== */
.nav__drop { position: relative; display: flex; align-items: center; }
.nav__drop-toggle { display: inline-flex; align-items: center; gap: 4px; }
.nav__caret { width: 12px; height: 12px; transition: transform .2s; }
.nav__menu { position: absolute; top: 100%; left: -18px; min-width: 260px; padding: 10px; margin-top: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); display: grid; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav .nav__menu a { padding: 9px 12px; border-radius: 8px; font-size: .92rem; }
.nav .nav__menu a::after { display: none; }
.nav .nav__menu a:hover { background: var(--cream); color: var(--navy); }
.nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__drop:hover .nav__caret { transform: rotate(180deg); }

.card--link { position: relative; }
.card--link .card__link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0 0; font-size: .85rem; color: var(--muted); }
.crumbs a { text-decoration: none; color: var(--blue); }
.crumbs a:hover { text-decoration: underline; }

.page-hero { padding: 40px 0 80px; background: linear-gradient(180deg, var(--white), var(--cream)); }
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); }
.page-hero__inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 50px; align-items: center; }
.facts { background: linear-gradient(150deg, var(--navy), var(--navy-2) 65%, var(--blue)); color: var(--white); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); }
.facts__ico { width: 64px; height: 64px; color: var(--white); margin-bottom: 18px; }
.facts dl { margin: 0; display: grid; gap: 16px; }
.facts__row { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 14px; }
.facts dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: #9fb4d8; margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; }

.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.type { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; background: var(--white); transition: border-color .2s, box-shadow .2s; }
.type:hover { border-color: var(--blue-l); box-shadow: var(--shadow); }
.type__n { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--blue); line-height: 1; margin-bottom: 14px; }
.type p { font-size: .92rem; color: var(--muted); margin: 0; }

@media (max-width: 1024px) {
  .nav__drop { flex-direction: column; align-items: stretch; }
  .nav__drop-toggle { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__caret { display: none; }
  .nav__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px 14px; margin: 0; min-width: 0; }
  .nav__menu::before { display: none; }
  .nav .nav__menu a { font-size: .98rem; padding: 8px 0; border-bottom: 0; color: var(--muted); }
  .nav { overflow-y: auto; }
  .page-hero__inner { grid-template-columns: 1fr; gap: 30px; }
  .types, .cards--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .types, .cards--3 { grid-template-columns: 1fr; }
  .page-hero { padding: 24px 0 60px; }
}

/* ===== Для врачей: сканеры, первый заказ, сравнение материалов, заказ-наряд ===== */
.scanners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.scanner { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; background: var(--white); }
.scanner h3 { font-size: 1.05rem; margin-bottom: 10px; }
.scanner p { font-size: .9rem; color: var(--muted); margin: 0; }
.scanner b { color: var(--navy); }
.scanner--accent { background: var(--beige); border-color: var(--beige); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.note-card { background: var(--navy); color: #d5deec; border-radius: var(--radius); padding: 34px 32px; }
.note-card h3 { color: var(--white); }
.note-card a:not(.btn) { color: var(--white); }
.note-card b { color: var(--white); }
.note-card .btn { margin-top: 10px; background: var(--white); color: var(--navy); }

.start { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.start__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; }
.start__item p { color: var(--muted); font-size: .93rem; flex: 1; }
.start__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 700; margin-bottom: 16px; }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.compare { border-collapse: collapse; width: 100%; min-width: 860px; font-size: .9rem; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: var(--navy); color: var(--white); font-weight: 600; }
.compare tbody th { color: var(--navy); font-weight: 700; white-space: nowrap; background: var(--cream); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare__note { font-size: .85rem; color: var(--muted); margin-top: 14px; max-width: 900px; }

/* Файлы в форме */
.field--files > span small { font-weight: 400; opacity: .75; }
.drop { display: block; position: relative; border: 1.5px dashed rgba(159, 180, 216, .6); border-radius: 12px; padding: 18px; text-align: center; cursor: pointer; transition: background .2s, border-color .2s; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop.is-over, .drop:hover { background: rgba(255, 255, 255, .08); border-color: #9fb4d8; }
.drop__text { font-size: .9rem; }
.drop__list { list-style: none; padding: 0; margin: 8px 0 0; font-size: .85rem; display: grid; gap: 4px; }
.drop__list li::before { content: "📎 "; }
.progress { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .15); margin-top: 10px; overflow: hidden; }
.progress__bar { height: 100%; width: 0; background: #8fe0b0; transition: width .2s; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Мобильная панель связи */
.mbar { display: none; }
@media (max-width: 768px) {
  .mbar { display: grid; grid-template-columns: 1fr 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 31, 63, .08); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 10px 4px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: .8rem; white-space: nowrap; color: var(--navy); background: var(--cream); }
  .mbar .mbar__main { background: var(--navy); color: var(--white); }
  body { padding-bottom: 68px; }
}

/* Заказ-наряд */
.blank { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); display: grid; gap: 18px; font-size: .92rem; }
.blank input:not([type="checkbox"]), .blank textarea { width: 100%; border: 0; border-bottom: 1px solid #c9cfd8; background: transparent; padding: 6px 2px; font: inherit; color: var(--text); border-radius: 0; }
.blank textarea { border: 1px solid #c9cfd8; border-radius: 8px; margin-top: 6px; resize: vertical; }
.blank input:focus, .blank textarea:focus { outline: none; border-color: var(--navy); }
.blank__head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; border-bottom: 2px solid var(--navy); padding-bottom: 12px; color: var(--navy); }
.blank__head small { color: var(--muted); }
.blank__title { font-weight: 700; font-size: 1.15rem; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.blank__num { width: 110px !important; }
.blank__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 24px; }
.blank__grid label, .blank__line { display: block; color: var(--muted); font-size: .82rem; }
.blank__grid--tight { grid-template-columns: 1fr 1fr; margin-top: 10px; }
.blank__box { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px 16px; margin: 0; }
.blank__box legend { font-weight: 700; color: var(--navy); padding: 0 6px; }
.blank__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.blank__cols .blank__box { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; align-content: start; }
.blank__cols .blank__box > .blank__grid, .blank__cols .blank__box > .blank__line { grid-column: 1 / -1; }
.chk { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; }
.chk input { margin-top: 3px; accent-color: var(--navy); }
.blank__notes { display: block; color: var(--muted); font-size: .82rem; }
.teeth { display: grid; gap: 6px; justify-content: center; }
.teeth__row { display: grid; grid-template-columns: repeat(16, 1fr); gap: 4px; }
.teeth__row:first-child { border-bottom: 1.5px solid var(--navy); padding-bottom: 6px; }
.tooth { position: relative; cursor: pointer; }
.tooth input { position: absolute; opacity: 0; }
.tooth span { display: grid; place-items: center; width: 38px; height: 34px; border: 1px solid #c9cfd8; border-radius: 6px; font-weight: 700; font-size: .85rem; color: var(--navy); }
.tooth:nth-child(8) span { margin-right: 8px; }
.tooth input:checked + span { background: var(--navy); color: var(--white); border-color: var(--navy); }
.tooth input:focus-visible + span { outline: 2px solid var(--blue); }
.blank__sign { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); padding-top: 10px; }

@media (max-width: 1024px) {
  .scanners { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .start { grid-template-columns: 1fr; }
  .blank__cols { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .scanners { grid-template-columns: 1fr; }
  .blank { padding: 18px; }
  .blank__head { flex-direction: column; align-items: flex-start; }
  .blank__grid { grid-template-columns: 1fr; }
  .blank__cols .blank__box { grid-template-columns: 1fr; }
  .teeth__row { grid-template-columns: repeat(8, 1fr); }
  .tooth:nth-child(8) span { margin-right: 0; }
  .tooth span { width: auto; }
}

@media print {
  @page { size: A4; margin: 10mm; }
  body { background: #fff; padding: 0 !important; }
  .header, .footer, .mbar, #order, .no-print, .crumbs { display: none !important; }
  .blank-section { padding: 0 !important; }
  .blank-section .container { max-width: none; padding: 0; }
  .blank { box-shadow: none; border: 0; padding: 0; gap: 10px; font-size: 10.5pt; }
  .blank__cols { grid-template-columns: 1fr 1fr !important; }
  .blank__grid { grid-template-columns: repeat(3, 1fr) !important; }
  .teeth__row { grid-template-columns: repeat(16, 1fr) !important; }
  .tooth span { width: 30px; height: 26px; }
  .tooth input:checked + span { background: #000 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .blank { font-size: 9pt; gap: 7px; }
  .blank__head { padding-bottom: 6px; }
  .blank__grid { gap: 4px 16px; }
  .blank__grid label, .blank__line, .blank__notes { font-size: 8pt; }
  .blank input:not([type="checkbox"]) { padding: 3px 2px; }
  .blank__box { padding: 6px 12px 8px; border-radius: 8px; }
  .blank__cols { gap: 8px; }
  .blank__cols .blank__box { gap: 1px 8px; }
  .chk { font-size: 8.5pt; line-height: 1.25; gap: 5px; }
  .chk input { margin-top: 1px; width: 11px; height: 11px; }
  .teeth { gap: 3px; }
  .teeth__row { gap: 3px; }
  .teeth__row:first-child { padding-bottom: 3px; }
  .blank textarea { height: 70px; }
  .blank__sign { padding-top: 4px; }
}

/* ===== Дизайн 2.0: тёмный первый экран, стекло, мозаика, градиентные рамки ===== */
:root { --ink: #00142a; --gold: #c9b99a; }
body { -webkit-font-smoothing: antialiased; }
h1, h2 { letter-spacing: -.015em; }
.section__head h2 { font-size: clamp(2.1rem, 3.6vw, 3.2rem); }

/* Шапка — стеклянная */
.header { background: rgba(255, 255, 255, .8); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); }

/* Кнопки */
.btn { transition: transform .2s, box-shadow .25s, background .25s, color .25s; }
.btn--primary { background: linear-gradient(135deg, #0b2d52, var(--navy) 60%, #000d1c); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 31, 63, .3); }

/* Номера разделов */
.eyebrow__n { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; margin-right: 10px; border-radius: 999px; border: 1px solid currentColor; font-size: .7rem; letter-spacing: .04em; }

/* Первый экран — тёмный */
.hero--dark { position: relative; background: radial-gradient(900px 520px at 78% 40%, rgba(95, 124, 175, .45), transparent 65%), radial-gradient(700px 420px at 10% 100%, rgba(201, 185, 154, .16), transparent 60%), linear-gradient(180deg, #001a35, var(--ink)); color: #c9d5e8; padding: 90px 0 150px; }
.hero--dark::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(159, 180, 216, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(159, 180, 216, .07) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); pointer-events: none; }
.hero--dark .container { position: relative; }
.hero--dark h1 { color: var(--white); font-size: clamp(2.4rem, 4.2vw, 3.8rem); }
.hero--dark .eyebrow { color: #9fb4d8; }
.hero--dark .hero__lead { color: #b8c6dc; }
.hero--dark .btn--primary { background: var(--white); color: var(--navy); box-shadow: 0 10px 30px rgba(255, 255, 255, .12); }
.hero--dark .btn--primary:hover { box-shadow: 0 16px 40px rgba(159, 216, 255, .25); }
.hero--dark .btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, .55); }
.hero--dark .btn--ghost:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.hero--dark .hero__tags li { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); color: #c9d5e8; }

/* Иллюстрация «цифровой скан» */
.hero--dark .hero__visual { height: 500px; }
.scan { position: absolute; inset: 0; display: grid; place-items: center; }
.scan > * { grid-area: 1 / 1; }
.scan__tooth { width: min(330px, 70%); height: auto; filter: drop-shadow(0 0 30px rgba(159, 216, 255, .35)); position: relative; z-index: 1; animation: float 7s ease-in-out infinite; }
.scan__beam { animation: beam 3.6s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes beam { 0% { transform: translateY(-40px); } 100% { transform: translateY(230px); } }
.scan__orbit { border: 1px solid rgba(159, 180, 216, .22); border-radius: 50%; }
.scan__orbit--1 { width: 420px; height: 420px; }
.scan__orbit--2 { width: 300px; height: 520px; transform: rotate(60deg); border-style: dashed; animation: spin 60s linear infinite; }
@keyframes spin { from { transform: rotate(60deg); } to { transform: rotate(420deg); } }
.glass { position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 20px 40px rgba(0, 0, 0, .25); color: var(--white); }
.glass b { font-size: .95rem; }
.glass span { font-size: .8rem; color: #b8c6dc; }
.glass--1 { top: 40px; left: 0; animation: float 6s ease-in-out infinite; }
.glass--2 { top: 46%; right: 0; animation: float 6s ease-in-out 2s infinite; }
.glass--3 { bottom: 30px; left: 8%; animation: float 6s ease-in-out 4s infinite; }

/* Цифры — стеклянная полоса поверх первого экрана */
.stats { margin-top: -90px; background: transparent; }
.stats--dark .stats__grid { background: rgba(0, 31, 63, .92); border: 1px solid rgba(159, 180, 216, .22); backdrop-filter: blur(10px); box-shadow: 0 30px 60px rgba(0, 20, 42, .35); }
.stats--dark .stat { border-color: rgba(255, 255, 255, .1); }
.stats--dark .stat__num { font-size: clamp(2.4rem, 3.6vw, 3.4rem); background: linear-gradient(180deg, #fff, #9fb4d8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #fff; }
.stats--dark .stat__title { color: #e8eef8; }
.stats--dark .stat p { color: #9fb4d8; }

/* Бегущая строка — контурный шрифт */
.marquee { overflow: hidden; padding: 40px 0 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee span { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 700; white-space: nowrap; padding: 0 30px; color: transparent; -webkit-text-stroke: 1px rgba(0, 31, 63, .45); }
.marquee span:nth-child(even) { color: var(--navy); -webkit-text-stroke: 0; }
.marquee span::after { content: "✦"; font-size: .5em; color: var(--blue); -webkit-text-stroke: 0; margin-left: 60px; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Карточки — градиентная рамка при наведении */
.card::before, .type::before, .start__item::before, .scanner::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, var(--blue), transparent 40%, transparent 60%, var(--gold)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; pointer-events: none; }
.card, .type, .start__item, .scanner { position: relative; }
.card:hover::before, .type:hover::before, .start__item:hover::before, .scanner:hover::before { opacity: 1; }

/* Продукция — мозаика */
.cards--bento { grid-template-columns: repeat(4, 1fr); }
.card--feature { grid-column: span 2; grid-row: span 2; background: radial-gradient(500px 300px at 80% 0%, rgba(95, 124, 175, .55), transparent 70%), linear-gradient(160deg, #0b2d52, var(--ink)); border-color: transparent; color: #c9d5e8; padding: 44px 40px; overflow: hidden; }
.card--feature::after { content: ""; position: absolute; right: -70px; top: -70px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(159, 180, 216, .25); box-shadow: 0 0 0 40px rgba(159, 180, 216, .04), 0 0 0 80px rgba(159, 180, 216, .03); pointer-events: none; }
.card--feature .card__ico { width: 78px; height: 78px; color: var(--white); margin-bottom: auto; }
.card--feature h3 { color: var(--white); font-size: 2.1rem; font-family: var(--serif); margin-top: 60px; }
.card--feature p { color: #b8c6dc; font-size: 1rem; flex: 0 0 auto; }
.card--feature .card__link { color: var(--white); }
.card--feature .card__link:hover { color: #9fd8ff; }

@media (min-width: 1025px) { .cards--bento .card:last-child { grid-column: span 2; } }
@media (min-width: 601px) and (max-width: 1024px) { .cards--bento .card:last-child { grid-column: span 2; } }

/* Тёмные секции — свечение */
.section--dark { position: relative; overflow: hidden; background: radial-gradient(800px 400px at 90% 0%, rgba(95, 124, 175, .35), transparent 65%), linear-gradient(180deg, var(--navy), var(--ink)); }

/* Страницы продукции и для врачей — тёмная шапка в том же стиле */
.page-hero { background: radial-gradient(800px 420px at 85% 30%, rgba(95, 124, 175, .4), transparent 65%), linear-gradient(180deg, #001a35, var(--ink)); color: #c9d5e8; padding-top: 70px; }
.page-hero h1 { color: var(--white); }
.page-hero .eyebrow { color: #9fb4d8; }
.page-hero .hero__lead { color: #b8c6dc; }
.page-hero .btn--primary { background: var(--white); color: var(--navy); }
.page-hero .btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, .55); }
.page-hero .btn--ghost:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.page-hero .facts { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.crumbs + .page-hero { margin-top: -46px; padding-top: 86px; }
.crumbs:has(+ .page-hero) { position: relative; z-index: 2; color: #7f93b5; }
.crumbs:has(+ .page-hero) a { color: #b8c6dc; }

/* Мессенджеры в шапке */
.header__msgr { display: flex; gap: 6px; }
.header__msgr a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy); text-decoration: none; transition: background .2s, color .2s; }
.header__msgr a:hover { background: var(--navy); color: var(--white); }
.header__msgr svg { width: 17px; height: 17px; }
.header__msgr b { font-size: .62rem; letter-spacing: .02em; }

@media (max-width: 1100px) { .header__msgr { display: none; } }
/* размытие шапки делает её контейнером для fixed-меню — на мобильных отключаем */
@media (max-width: 1100px) { .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); } }
@media (max-width: 1024px) {
  .hero--dark { padding: 50px 0 130px; }
  .hero--dark .hero__visual { height: 420px; }
  .cards--bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hero--dark .hero__visual { height: 360px; }
  .scan__orbit--1 { width: 290px; height: 290px; }
  .scan__orbit--2 { width: 210px; height: 360px; }
  .glass { padding: 10px 13px; }
  .glass b { font-size: .82rem; }
  .glass span { font-size: .72rem; }
  .glass--3 { left: 0; bottom: 10px; }
  .cards--bento { grid-template-columns: 1fr; }
  .card--feature { grid-column: auto; grid-row: auto; padding: 32px 26px; }
  .card--feature h3 { font-size: 1.7rem; margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) { .marquee__track, .scan__beam, .scan__orbit--2, .scan__tooth, .glass { animation: none; } }
