/* Prime Cleaning — стили. Mobile-first, точки перелома: 768px (планшет), 1024px (десктоп). */
:root {
  --navy: #0E2A47;
  --navy-2: #163A5F;
  --teal: #14A3A6;
  --teal-d: #0E8B8E;
  --teal-l: #E3F5F5;
  --text: #1C2B3A;
  --muted: #5B6B7B;
  --line: #E4EAF0;
  --bg: #FFFFFF;
  --bg-soft: #F4F8FA;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(14, 42, 71, .08);
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body, Manrope, system-ui, sans-serif); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; color: var(--navy); line-height: 1.15; overflow-wrap: anywhere; font-family: var(--font-head, inherit); }
h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.h3 { font-size: clamp(22px, 3vw, 26px); }
svg { flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Кнопки — min 44px по высоте для пальца */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: var(--btn-radius, 999px); border: 2px solid transparent; font-weight: 700; font-size: 15px; transition: background .2s, color .2s, transform .15s; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--teal); color: var(--on-primary, #fff); box-shadow: 0 6px 18px rgba(20, 163, 166, .3); }
.btn--primary:hover { background: var(--teal-d); }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 14px 40px; font-size: 16px; }
.btn--block { width: 100%; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-weight: 700; font-size: 15px; min-height: 44px; }
.link svg { width: 14px; height: 14px; }

/* ШАПКА */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; min-height: 44px; }
.logo__mark { width: 40px; height: 40px; border-radius: 12px; background: var(--teal); color: var(--on-primary, #fff); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.logo__text { font-weight: 800; font-size: 18px; line-height: 1.05; color: var(--navy); font-family: var(--font-head); }
.logo--light .logo__text { color: #fff; }
.phone { display: none; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); white-space: nowrap; min-height: 44px; }
.phone svg { width: 20px; height: 20px; color: var(--teal); }
.header__cta { display: none; }

.burger { width: 44px; height: 44px; border: 0; background: transparent; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню — выезжающая панель */
.nav { position: fixed; inset: 68px 0 0 0; background: #fff; padding: 12px var(--gutter) 32px; overflow-y: auto; opacity: 0; transform: translateY(-12px); transition: opacity .25s ease, transform .25s ease, visibility .25s; visibility: hidden; }
.nav.is-open { transform: none; opacity: 1; visibility: visible; }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__item { border-bottom: 1px solid var(--line); }
.nav__link { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; background: none; border: 0; padding: 0; font-weight: 600; font-size: 17px; color: var(--navy); text-align: left; }
.nav__toggle svg { width: 12px; height: 8px; transition: transform .2s; }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.drop { list-style: none; margin: 0; padding: 0 0 8px 12px; display: none; }
.nav__toggle[aria-expanded="true"] + .drop { display: block; }
.drop a { display: flex; align-items: center; min-height: 44px; color: var(--muted); }
.nav__phone-mobile { display: flex; align-items: center; justify-content: center; margin-top: 24px; min-height: 52px; border: 2px solid var(--teal); border-radius: 999px; font-weight: 700; color: var(--navy); }
body.menu-open { overflow: hidden; }

/* ГЛАВНЫЙ ЭКРАН: на мобиле фото под текстом */
.hero { position: relative; background: linear-gradient(180deg, #F7FAFB, #fff); display: flex; flex-direction: column-reverse; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 78% center; }
.hero__inner { padding-top: 32px; padding-bottom: 28px; }
.hero__title { font-size: clamp(28px, 8vw, 60px); font-weight: 800; letter-spacing: -.01em; overflow-wrap: normal; hyphens: manual; }
.hero__title span { color: var(--teal); display: block; }
.hero__sub { font-size: clamp(17px, 2.2vw, 22px); color: var(--text); margin: 16px 0 24px; max-width: 30ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn { flex: 1 1 200px; }

/* ЦИФРЫ */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats__row { display: grid; grid-template-columns: 1fr; }
.stat { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.stat:last-child { border-bottom: 0; }
.stat svg { width: 44px; height: 44px; color: var(--teal); }
.stat b { display: block; font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat .stat__word { font-size: 20px; font-weight: 700; }
.stat span { color: var(--muted); font-size: 16px; }

/* СЕКЦИИ */
.section { padding: 56px 0; }
.section--tight { padding: 32px 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 24px; }

/* КАРТОЧКИ УСЛУГ */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(14, 42, 71, .12); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__body { position: relative; padding: 18px 68px 20px 18px; flex: 1; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card__go { position: absolute; right: 16px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--teal); color: #fff; display: grid; place-items: center; transition: background .2s; }
.card__go:hover { background: var(--teal-d); }
.card__go svg { width: 18px; height: 18px; }

/* ПОЧЕМУ МЫ */
.why { display: grid; gap: 24px; }
.why__title span { display: block; }
.why__list { display: grid; gap: 20px; }
.why__item { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; align-items: start; }
.why__item svg { width: 48px; height: 48px; color: var(--teal); grid-row: span 2; }
.why__item h3 { font-size: 18px; font-weight: 700; }
.why__item p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

/* КАЛЬКУЛЯТОР */
.prices { background: var(--bg-soft); }
.calc { display: grid; gap: 20px; }
.calc__form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 20px; }
.calc fieldset { border: 0; margin: 0; padding: 0; }
.calc legend, .calc__area { font-weight: 700; color: var(--navy); margin-bottom: 10px; display: block; }
.calc__types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.calc__types legend { grid-column: 1 / -1; }
.calc__types label, .calc__extras label { position: relative; }
.calc__types input, .calc__extras input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calc__types span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 8px 6px; border: 2px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; hyphens: auto; transition: border-color .2s, background .2s; }
.calc__types input:checked + span { border-color: var(--teal); background: var(--teal-l); color: var(--navy); }
.calc__types input:focus-visible + span, .calc__extras input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.range { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.range input[type="range"] { flex: 1; accent-color: var(--teal); height: 44px; min-width: 0; }
.range input[type="number"] { width: 96px; min-height: 48px; padding: 8px 10px; border: 2px solid var(--line); border-radius: 12px; font: inherit; font-weight: 700; text-align: center; color: var(--navy); }
.calc__extras { display: grid; gap: 8px; }
.calc__extras span { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.calc__extras span::before { content: ""; width: 22px; height: 22px; border: 2px solid #B9C6D2; border-radius: 6px; flex-shrink: 0; transition: background .2s, border-color .2s; }
.calc__extras input:checked + span::before { background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.2'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--teal); }
.calc__result { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px 20px; display: flex; flex-direction: column; gap: 8px; align-self: start; }
.calc__label { color: #A9C1D6; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.calc__sum { font-size: clamp(34px, 6vw, 44px); font-weight: 800; color: #fff; line-height: 1.1; }
.calc__note { color: #C6D6E4; font-size: 14px; margin: 0 0 12px; }

/* ОТЗЫВЫ */
.slider { overflow: hidden; }
.slider__track { display: flex; transition: transform .4s ease; }
.review { flex: 0 0 100%; margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 14px; border: 1px solid var(--line); }
.review__who { display: flex; align-items: center; gap: 14px; }
.review__ava { width: 56px; height: 56px; border-radius: 50%; background: var(--teal-l); color: var(--teal-d); display: grid; place-items: center; font-weight: 800; font-size: 18px; flex-shrink: 0; }
.review__who b { display: block; color: var(--navy); }
.review__who span { color: var(--muted); font-size: 14px; }
.review blockquote { margin: 0; font-size: 16px; }
.review__stars { color: #F5B400; font-size: 22px; letter-spacing: 2px; }
.slider__nav { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.slider__nav[hidden] { display: none; }
.slider__dots { display: flex; gap: 4px; }
.slider__dots button { width: 28px; height: 44px; border: 0; background: none; padding: 0; display: grid; place-items: center; }
.slider__dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #D3DDE6; }
.slider__dots button[aria-selected="true"]::before { background: var(--teal); }
.slider__arrows { display: flex; gap: 10px; }
.arrow { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #C9D4DE; background: #fff; display: grid; place-items: center; color: var(--navy); }
.arrow:hover { border-color: var(--navy); }
.arrow svg { width: 16px; height: 16px; }

/* ПРИЗЫВ */
.cta { position: relative; overflow: hidden; border-radius: 22px; background: var(--navy); color: #fff; padding: 28px 20px; display: grid; gap: 20px; isolation: isolate; }
.cta__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: -2; opacity: .35; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--navy) 35%, rgba(14, 42, 71, .75)); }
.cta h2 { color: #fff; font-size: clamp(24px, 3.4vw, 34px); }
.cta h2 span { color: #4FD1CF; display: block; }
.cta .btn { justify-self: start; }

/* ПОДВАЛ */
.footer { background: var(--navy); color: #C6D6E4; padding: 48px 0 0; margin-top: 32px; }
.footer__grid { display: grid; gap: 28px; }
.footer h3 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { min-height: 36px; display: flex; align-items: center; }
.footer a:hover { color: #fff; }
.footer__about { margin: 14px 0 0; max-width: 32ch; }
.footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__bottom { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 18px; padding-bottom: 24px; font-size: 14px; }

/* МОДАЛЬНАЯ ФОРМА */
.modal { border: 0; padding: 0; border-radius: 20px; width: min(480px, calc(100% - 24px)); max-height: calc(100% - 24px); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.modal::backdrop { background: rgba(14, 42, 71, .55); backdrop-filter: blur(3px); }
.lead { position: relative; padding: 28px 20px 24px; display: grid; gap: 14px; }
.lead h2 { font-size: 26px; padding-right: 40px; }
.lead__sub { margin: -6px 0 4px; color: var(--muted); }
.lead label { display: grid; gap: 6px; font-weight: 600; color: var(--navy); font-size: 15px; }
.lead input:not([type="checkbox"]), .lead select, .lead textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; font: inherit; font-size: 16px; font-weight: 400; color: var(--text); background: #fff; }
.lead input:focus, .lead select:focus, .lead textarea:focus { border-color: var(--teal); outline: none; }
.lead input[aria-invalid="true"] { border-color: #D64545; }
.lead .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; color: var(--muted); }
.lead .check input { width: 22px; height: 22px; margin: 0; accent-color: var(--teal); flex-shrink: 0; }
.lead__err { color: #D64545; margin: 0; font-size: 14px; min-height: 0; }
.lead__err:empty { display: none; }
.lead__ok { text-align: center; padding: 12px 0; display: grid; gap: 4px; }
.lead__ok b { color: var(--teal-d); font-size: 20px; }
.lead.is-sent > :not(.lead__ok):not(.modal__close) { display: none; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bg-soft); font-size: 26px; line-height: 1; color: var(--navy); }
.hp { position: absolute; left: -9999px; }

/* ПЛАНШЕТ */
@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .phone { display: inline-flex; }
  .stats__row { grid-template-columns: repeat(3, 1fr); }
  .stat { justify-content: center; border-bottom: 0; border-right: 1px solid var(--line); padding: 22px 12px; }
  .stat:last-child { border-right: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .why__list { grid-template-columns: repeat(3, 1fr); }
  .why__item { grid-template-columns: 1fr; row-gap: 10px; }
  .why__item svg { grid-row: auto; }
  .calc__form { padding: 28px; }
  .calc__types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .calc__extras { grid-template-columns: 1fr 1fr; }
  .calc__result { padding: 28px; }
  .review { grid-template-columns: 220px 1fr auto; align-items: center; padding: 24px 28px; }
  .cta { grid-template-columns: 1fr auto; align-items: center; padding: 40px; }
  .cta .btn { justify-self: end; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__grid > :last-child { grid-column: 1 / -1; max-width: 320px; }
  .lead { padding: 32px; }
  /* На планшете фото справа, текст слева поверх светлого градиента */
  .hero { display: block; min-height: 520px; }
  .hero__media { position: absolute; inset: 0; }
  .hero__media img { height: 100%; aspect-ratio: auto; object-position: 85% 12%; }
  .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247, 250, 251, .97) 0%, rgba(247, 250, 251, .9) 40%, rgba(247, 250, 251, 0) 68%); }
  .hero__inner { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; }
  .hero__title { max-width: 620px; font-size: clamp(40px, 5.2vw, 60px); }
  .hero__actions .btn { flex: 0 0 auto; }
}

/* ДЕСКТОП */
@media (min-width: 1024px) {
  .nav { position: static; transform: none; opacity: 1; visibility: visible; padding: 0; background: none; overflow: visible; margin-right: auto; }
  .nav__list { display: flex; gap: 4px; }
  .nav__item { border: 0; position: relative; }
  .nav__link { min-height: 44px; padding: 0 12px; font-size: 15px; width: auto; gap: 6px; justify-content: flex-start; }
  .nav__link:hover { color: var(--teal); }
  .drop { position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(14, 42, 71, .14); padding: 8px; }
  .nav__item--drop:hover .drop, .nav__item--drop:focus-within .drop { display: block; }
  .drop a { padding: 0 12px; border-radius: 8px; color: var(--text); }
  .drop a:hover { background: var(--bg-soft); color: var(--teal); }
  .nav__phone-mobile, .burger { display: none; }
  .logo { margin-right: 24px; }
  .header__cta { display: inline-flex; }
  .header__row { min-height: 80px; }
  .hero { min-height: 560px; }
  .hero__inner { padding-top: 96px; padding-bottom: 96px; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .calc { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .calc__result { position: sticky; top: 100px; }
  .why { grid-template-columns: 1fr 2.2fr; align-items: start; gap: 40px; }
  .why__item { padding: 0 24px; border-left: 1px solid var(--line); }
  .why__item:first-child { border-left: 0; padding-left: 0; }
  .section { padding: 72px 0; }
  .section--tight { padding: 40px 0; }
  .cta { padding: 48px 56px; }
  .cta { padding-right: calc(36% + 24px); gap: 40px; }
  .cta__img { left: auto; width: 42%; opacity: 1; }
  .cta::before { background: linear-gradient(90deg, var(--navy) 58%, rgba(14, 42, 71, .6) 64%, rgba(14, 42, 71, 0) 76%); }
  .cta__text { padding-right: 40px; border-right: 1px solid rgba(255, 255, 255, .2); }
  .cta h2 { font-size: clamp(24px, 2.4vw, 32px); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer__grid > :last-child { grid-column: auto; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .phone { width: 44px; justify-content: center; }
  .nav__link { padding: 0 9px; }
  .logo { margin-right: 12px; }
}


/* ===== МНОГОСТРАНИЧНИК: общие блоки ===== */
.i { width: 22px; height: 22px; flex-shrink: 0; }
.container--narrow { max-width: 860px; }
.container--wide { max-width: 1200px; }
.card { position: relative; }
.card__title { color: inherit; }
.card__title::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* вся карточка — ссылка */
.card__title:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--teal); outline-offset: 2px; }
.card__go { pointer-events: none; }
.cards--compact .card img { aspect-ratio: 16 / 9; }

/* Хлебные крошки */
.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: #B9C6D2; }
.crumbs a { color: var(--teal-d); display: inline-flex; align-items: center; min-height: 32px; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { overflow-wrap: anywhere; }

/* Шапка внутренних страниц */
.phead { position: relative; padding: 32px 0 36px; background: radial-gradient(120% 140% at 100% 0%, var(--teal-l) 0%, var(--bg-soft) 55%); isolation: isolate; }

.phead h1 { font-size: clamp(30px, 6vw, 48px); font-weight: 800; max-width: 22ch; overflow-wrap: normal; }
.phead__lead { font-size: clamp(16px, 2vw, 19px); max-width: 60ch; margin: 14px 0 0; color: var(--text); }

/* Текстовые блоки */
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(22px, 3vw, 30px); margin: 36px 0 14px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 24px 0 10px; }
.prose p, .prose li { font-size: 17px; line-height: 1.7; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--teal); font-weight: 700; }
.prose a { color: var(--teal-d); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--navy); }
.seo { background: #fff; border-top: 1px solid var(--line); }

/* FAQ */
.faq { background: var(--bg-soft); }
.faq h2 { margin-bottom: 20px; }
.faq__list { display: grid; gap: 10px; max-width: 900px; }
.faq__item { background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; min-height: 56px; font-weight: 700; color: var(--navy); font-size: 17px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { width: 28px; height: 28px; border-radius: 50%; background: var(--teal-l); position: relative; flex-shrink: 0; }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--teal-d); transform: translate(-50%, -50%); transition: transform .2s; }
.faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq__a { padding: 0 18px 16px; color: var(--text); }
.faq__a p { margin: 0 0 8px; }
.faq__a a { color: var(--teal-d); text-decoration: underline; }

/* Карусель статей */
.carousel__ctrl { display: flex; align-items: center; gap: 10px; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.carousel__track > * { scroll-snap-align: start; }

/* Карточка статьи */
.acard { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.acard:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(14, 42, 71, .12); }
.acard__link { display: flex; flex-direction: column; height: 100%; }
.acard img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.acard__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.acard__cat { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-d); background: var(--teal-l); padding: 4px 10px; border-radius: 999px; }
.acard h3 { font-size: 18px; line-height: 1.3; }
.acard__meta { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.acard__meta .i { width: 16px; height: 16px; }
.acard[hidden] { display: none; }
.agrid { display: grid; gap: 18px; grid-template-columns: 1fr; }

/* Фильтры и чипы */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; }
.chips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font-weight: 600; font-size: 15px; white-space: nowrap; cursor: pointer; transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--teal); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Первый экран услуги */
.shero { background: linear-gradient(180deg, #F4F8FA, #fff); padding: 28px 0 8px; }
.shero__grid { display: grid; gap: 24px; align-items: center; }
.shero h1 { font-size: clamp(30px, 6vw, 50px); font-weight: 800; overflow-wrap: normal; }
.shero__lead { font-size: clamp(16px, 2vw, 19px); margin: 14px 0 22px; max-width: 52ch; }
.shero__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }

/* Что входит */
.incl { display: grid; gap: 24px; }
.incl h2 { margin-bottom: 18px; }
.incl__col--muted { background: var(--bg-soft); border-radius: var(--radius); padding: 22px; align-self: start; }
.incl__col--muted h3 { font-size: 20px; margin-bottom: 14px; }
.ticks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.ticks .i { width: 24px; height: 24px; padding: 3px; border-radius: 50%; background: var(--teal-l); color: var(--teal-d); margin-top: 1px; }
.ticks--muted .i { background: #E6ECF1; color: var(--muted); }

/* Шаги */
.steps-sec { background: var(--bg-soft); }
.steps-sec h2 { margin-bottom: 22px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.steps__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: var(--on-primary, #fff); font-weight: 800; margin-bottom: 12px; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* Контакты */
.ccards { display: grid; gap: 14px; }
.ccard { display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.ccard .i { width: 32px; height: 32px; color: var(--teal); margin-bottom: 6px; }
.ccard span { color: var(--muted); font-size: 14px; }
.ccard b { color: var(--navy); font-size: 18px; overflow-wrap: anywhere; }
a.ccard:hover { border-color: var(--teal); }

/* Статья */
.art__head { padding: 24px 0 0; background: linear-gradient(180deg, #F4F8FA, #fff 70%); }
.art__head h1 { font-size: clamp(28px, 5.5vw, 46px); font-weight: 800; margin: 14px 0; overflow-wrap: normal; }
.art__lead { font-size: clamp(17px, 2vw, 20px); color: var(--text); margin: 0 0 16px; }
.art__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.art__meta span { display: inline-flex; align-items: center; gap: 6px; }
.art__meta .i { width: 18px; height: 18px; color: var(--teal); }
.art__cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; }
.art__layout { display: grid; gap: 24px; padding-top: 28px; padding-bottom: 40px; }
.toc details { background: var(--bg-soft); border-radius: var(--radius); padding: 4px 18px; }
.toc summary { cursor: pointer; font-weight: 800; color: var(--navy); min-height: 48px; display: flex; align-items: center; }
.toc ol { margin: 0 0 14px; padding-left: 20px; }
.toc li { margin-bottom: 8px; font-size: 15px; padding-left: 2px; }
.toc li::marker { color: var(--teal); font-weight: 700; }
.toc a { color: var(--text); display: inline; line-height: 1.6; }
.toc a:hover { color: var(--teal-d); }
.note { display: flex; gap: 14px; border-radius: var(--radius); padding: 18px; margin: 0 0 24px; }
.note .i { width: 28px; height: 28px; flex-shrink: 0; }
.note b { display: block; color: var(--navy); margin-bottom: 6px; }
.note ul { margin: 0; padding-left: 18px; }
.note li, .note p { font-size: 16px; margin: 0 0 4px; }
.note--tips { background: var(--teal-l); }
.note--tips .i { color: var(--teal-d); }
.note--warn { background: #FFF4E0; }
.note--warn .i { color: #C77700; }
.inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 20px 22px; margin: 28px 0; }
.inline-cta b { color: #fff; font-size: 18px; }
.inline-cta p { color: #C6D6E4; margin: 4px 0 0; font-size: 15px; }
.art__services { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }

/* 404 */
.nf { text-align: center; }
.nf__code { font-size: clamp(80px, 18vw, 160px); font-weight: 800; color: var(--teal-l); margin: 0; line-height: 1; -webkit-text-stroke: 2px var(--teal); }
.nf h1 { font-size: clamp(26px, 5vw, 40px); margin: 10px 0; }
.nf .hero__actions { justify-content: center; margin-top: 20px; }
mark { background: #FFF4D6; padding: 0 4px; border-radius: 4px; }

@media (min-width: 560px) {
  .agrid { grid-template-columns: repeat(2, 1fr); }
  .carousel__track { grid-auto-columns: 46%; }
  .ccards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .phead { padding: 44px 0 52px; }
  .incl { grid-template-columns: 1.5fr 1fr; gap: 40px; }
  .ticks:not(.ticks--muted) { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
  .carousel__track { grid-auto-columns: calc((100% - 32px) / 3); scrollbar-width: none; }
  .carousel__track::-webkit-scrollbar { display: none; }
}
@media (min-width: 1024px) {
  .agrid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .carousel__track { grid-auto-columns: calc((100% - 48px) / 4); }
  .shero { padding: 40px 0 16px; }
  .shero__grid { grid-template-columns: 1.05fr 1fr; gap: 48px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .ccards { grid-template-columns: repeat(4, 1fr); }
  .art__layout { grid-template-columns: 260px minmax(0, 1fr); gap: 48px; }
  .toc { position: sticky; top: 100px; align-self: start; }
  .phead h1 { max-width: 24ch; }
}


/* ===== Доработки: сворачивание SEO-текста, стрелки, мобильная панель ===== */
/* Сворачиваем только при работающем JS: без него текст открыт целиком */
.js .collapse { position: relative; max-height: 380px; overflow: hidden; transition: max-height .35s ease; }
.js .collapse::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(rgba(255, 255, 255, 0), #fff 85%); pointer-events: none; transition: opacity .3s; }
.js .collapse.is-open { max-height: none; }
.js .collapse.is-open::after { opacity: 0; }
.collapse__btn { margin-top: 16px; }
.collapse__btn .i { width: 14px; height: 14px; transition: transform .2s; }
.collapse__btn[aria-expanded="true"] .i { transform: rotate(180deg); }

.carousel__ctrl { flex-wrap: wrap; }
.arrow:disabled { opacity: .35; cursor: default; border-color: #C9D4DE; }
.carousel__track { scroll-padding-left: 2px; }

/* Назад / вперёд в статье */
.pn { display: grid; gap: 12px; margin-top: 32px; }
.pn__a { display: grid; gap: 6px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s; }
.pn__a:hover { border-color: var(--teal); }
.pn__a span { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-d); font-size: 14px; font-weight: 700; }
.pn__a span .i { width: 16px; height: 16px; }
.pn__a b { color: var(--navy); font-size: 16px; line-height: 1.35; }
.pn__a--next { text-align: right; }
.pn__a--next span { justify-content: flex-end; }

/* Карта сайта */
.smap { display: grid; gap: 28px; }
.smap ul { list-style: none; margin: 12px 0 0; padding: 0; }
.smap li { margin-bottom: 6px; }
.smap a { color: var(--teal-d); display: inline-block; padding: 4px 0; }
.smap h2 a { color: inherit; padding: 0; }
.footer__links { display: inline-flex; flex-wrap: wrap; gap: 4px 20px; }

/* Мобильная панель «Позвонить / Заказать» — только на телефонах */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(14, 42, 71, .08); transform: translateY(110%); transition: transform .25s; }
.mbar.is-shown { transform: none; }
.mbar a, .mbar button { min-height: 48px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15px; border: 0; }
.mbar__call { border: 2px solid var(--navy) !important; color: var(--navy); }
.mbar__call .i { width: 18px; height: 18px; }
.mbar__lead { background: var(--teal); color: var(--on-primary, #fff); }
body.has-mbar .footer { padding-bottom: 72px; }
@media (min-width: 560px) { .pn { grid-template-columns: 1fr 1fr; } .smap { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .mbar { display: none; } body.has-mbar .footer { padding-bottom: 0; } }
@media (min-width: 1024px) { .smap { grid-template-columns: repeat(3, 1fr); } }


/* ===================== ПОРТФОЛИО: общие доработки ===================== */
.demo-bar { background: var(--navy); color: rgba(255, 255, 255, .85); font-size: 13px; text-align: center; padding: 7px 16px; line-height: 1.4; }
.demo-bar a { color: #fff; text-decoration: underline; }
.feature__hint { color: var(--muted); font-size: 15px; }
.feature__note { display: block; color: var(--muted); font-size: 13px; margin-top: 10px; }
.card__price { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--teal-d); font-size: 15px; }
.shero__price { display: inline-block; font-weight: 800; font-size: 20px; color: var(--teal-d); background: var(--teal-l); padding: 6px 14px; border-radius: 10px; margin: -6px 0 20px; }
.benefits { padding-top: 28px; }
.benefits .why__list { display: grid; gap: 18px; }

/* Блок автора в подвале */
.author { display: grid; gap: 18px; margin-top: 36px; padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.author__kicker { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.author__name { display: block; color: #fff; font-size: 20px; margin-bottom: 6px; font-family: var(--font-head); }
.author__text span:last-child { color: #C6D6E4; font-size: 15px; }
.author__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.author__links a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: #fff; font-weight: 600; }
.author__links .i { width: 20px; height: 20px; color: var(--teal); }

/* Таблица цен */
.ptable { display: grid; gap: 10px; margin-top: 18px; }
.ptable__row { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 16px 18px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: var(--radius); }
.ptable__name { font-weight: 700; color: var(--navy); }
.ptable__name small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.ptable__price { font-weight: 800; color: var(--teal-d); white-space: nowrap; }
.ptable__row .btn { grid-column: 1 / -1; justify-self: start; }
.ptable__note { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* ===================== ПЕРВЫЙ ЭКРАН: 7 раскладок ===================== */
.h2o { position: relative; overflow: hidden; background: var(--bg-soft); isolation: isolate; }
.h2o__media img { width: 100%; height: 100%; object-fit: cover; }
.h2o__inner { position: relative; z-index: 1; padding-top: 32px; padding-bottom: 36px; }
.h2o__kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-d); background: var(--teal-l); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.h2o__title { font-size: clamp(32px, 8vw, 64px); font-weight: 800; line-height: 1.05; overflow-wrap: normal; }
.h2o__title span { display: block; color: var(--teal); }
.h2o__sub { font-size: clamp(17px, 2.2vw, 21px); margin: 16px 0 26px; max-width: 34ch; }
.h2o__media { aspect-ratio: 4 / 3; }

@media (min-width: 900px) {
  .h2o { min-height: 600px; display: flex; align-items: center; }
  .h2o__inner { width: 100%; padding-top: 64px; padding-bottom: 64px; }
  .h2o__text { max-width: 560px; }
  .h2o__media { position: absolute; aspect-ratio: auto; }
  /* split — фото справа в скруглённой рамке */
  .hero-split .h2o__media, .hero-gradient .h2o__media { top: 48px; bottom: 48px; right: max(32px, calc((100vw - 1200px) / 2)); width: 46%; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); }
  /* full — фото на весь экран, текст на тёмной вуали */
  .hero-full .h2o__media { inset: 0; }
  .hero-full .h2o__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 14, 20, .78) 0%, rgba(10, 14, 20, .45) 50%, rgba(10, 14, 20, .1) 100%); }
  .hero-full .h2o__title, .hero-full .h2o__sub { color: #fff; }
  .hero-full .h2o__title span { color: var(--teal-l); }
  /* slant — цветная панель с диагональным срезом */
  .hero-slant .h2o { background: var(--navy); }
  .hero-slant .h2o__media { top: 0; bottom: 0; right: 0; width: 58%; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); }
  .hero-slant .h2o__title, .hero-slant .h2o__sub { color: #fff; }
  /* split-dark — тёмная тема, фото растворяется слева */
  .hero-split-dark .h2o__media { top: 0; bottom: 0; right: 0; width: 62%; }
  .hero-split-dark .h2o__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(0, 0, 0, 0) 45%); }
  /* arch — фото в арке */
  .hero-arch .h2o__media { top: 40px; bottom: 0; right: max(32px, calc((100vw - 1200px) / 2)); width: 40%; border-radius: 999px 999px 0 0; overflow: hidden; }
  .hero-arch .h2o__title { font-weight: 600; font-size: clamp(40px, 5.4vw, 72px); }
  /* center — фото на весь экран, текст по центру */
  .hero-center .h2o__media { inset: 0; }
  .hero-center .h2o__media::after { content: ""; position: absolute; inset: 0; background: rgba(20, 12, 8, .55); }
  .hero-center .h2o__text { max-width: 760px; margin: 0 auto; text-align: center; }
  .hero-center .h2o__title, .hero-center .h2o__sub { color: #fff; margin-left: auto; margin-right: auto; }
  .hero-center .h2o__title span { color: #F6C9A8; }
  .hero-center .hero__actions { justify-content: center; }
  /* gradient — яркий градиент */
  .hero-gradient .h2o { background: linear-gradient(135deg, var(--teal) 0%, #3F7BFF 100%); }
  .hero-gradient .h2o__title, .hero-gradient .h2o__sub { color: #fff; }
  .hero-gradient .h2o__title span { color: #FFD84D; }
  .hero-gradient .h2o__kicker { background: rgba(255, 255, 255, .18); color: #fff; }
  .hero-gradient .btn--ghost, .hero-slant .btn--ghost, .hero-full .btn--ghost, .hero-center .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
  .hero-gradient .btn--primary { background: #FFD84D; color: #1C1236; }
  .benefits .why__list { grid-template-columns: repeat(3, 1fr); }
}
/* мобильные: тёмные раскладки — текст на тёмном фоне под фото */
@media (max-width: 899px) {
  .hero-slant .h2o, .hero-full .h2o, .hero-center .h2o { background: var(--navy); }
  .hero-slant .h2o__title, .hero-slant .h2o__sub, .hero-full .h2o__title, .hero-full .h2o__sub, .hero-center .h2o__title, .hero-center .h2o__sub { color: #fff; }
  .hero-gradient .h2o { background: linear-gradient(160deg, var(--teal), #3F7BFF); }
  .hero-gradient .h2o__title, .hero-gradient .h2o__sub { color: #fff; }
  .hero-slant .btn--ghost, .hero-full .btn--ghost, .hero-center .btn--ghost, .hero-gradient .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
  .hero-arch .h2o__media { margin: 16px 16px 0; border-radius: 999px 999px 0 0; overflow: hidden; aspect-ratio: 4 / 5; }
}

/* ===================== КАРТОЧКИ: 3 вида ===================== */
.cards-overlay .card { min-height: 300px; }
.cards-overlay .card img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.cards-overlay .card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .82) 100%); }
.cards-overlay .card__body { position: relative; z-index: 2; margin-top: auto; background: none; }
.cards-overlay .card h3, .cards-overlay .card h3 a { color: #fff; }
.cards-overlay .card p { color: rgba(255, 255, 255, .85); }
.cards-overlay .card__price { color: var(--teal); }
.cards-arch .card img { border-radius: 999px 999px 0 0; margin: 14px 14px 0; width: calc(100% - 28px); aspect-ratio: 4 / 4.2; }
.cards-arch .card { text-align: center; }
.cards-arch .card__body { padding-right: 18px; padding-bottom: 72px; }
.cards-arch .card__go { right: 50%; transform: translateX(50%); }
.cards-icon .card { border-top: 4px solid var(--teal); }

/* ===================== ТЁМНАЯ ТЕМА ===================== */
.theme-dark { --bg: #0D0E10; --text: #D9DDE2; --muted: #9AA3AD; --line: #262A31; --card: #16181C; background: var(--bg); color: var(--text); }
.theme-dark .header { background: rgba(13, 14, 16, .94); border-color: var(--line); }
.theme-dark .drop { background: #121417; }
@media (max-width: 1023px) { .theme-dark .nav { background: #121417; } }
.theme-dark .burger span { background: var(--navy); }
.theme-dark .card, .theme-dark .acard, .theme-dark .faq__item, .theme-dark .steps li, .theme-dark .ccard, .theme-dark .ptable__row,
.theme-dark .fcalc__form, .theme-dark .pn__a, .theme-dark .chip, .theme-dark .sc__row, .theme-dark .mx, .theme-dark .modal, .theme-dark .lead,
.theme-dark .proj, .theme-dark .bk__step, .theme-dark .qz, .theme-dark .arrow, .theme-dark .sym__btn, .theme-dark .incl__col--muted, .theme-dark .toc details { background: var(--card); color: var(--text); border-color: var(--line); }
.theme-dark .seo, .theme-dark .h2o, .theme-dark .phead, .theme-dark .shero, .theme-dark .art__head { background: var(--bg); }
.theme-dark .faq, .theme-dark .steps-sec, .theme-dark .prices, .theme-dark .feature:nth-of-type(even) { background: var(--bg-soft); }
.theme-dark .btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.theme-dark .js .collapse::after, .theme-dark .collapse::after { background: linear-gradient(rgba(13, 14, 16, 0), var(--bg) 85%); }
.theme-dark .lead input:not([type="checkbox"]), .theme-dark .lead select, .theme-dark .lead textarea, .theme-dark .fin { background: #0F1114; color: var(--text); border-color: var(--line); }
.theme-dark .prose a, .theme-dark .crumbs a { color: var(--teal); }
.theme-dark .footer { background: #08090B; }
.theme-dark .demo-bar { background: #000; }
.theme-dark .chip.is-active { background: var(--teal); color: var(--on-primary); border-color: var(--teal); }

/* ===================== ИЗЮМИНКИ ===================== */
.feature { background: var(--bg-soft); }
.fcalc { display: grid; gap: 20px; }
.fcalc__form { background: var(--card, #fff); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 20px; }
.fcalc fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.fcalc legend { font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.fcalc__range { display: block; font-weight: 700; color: var(--navy); }
.fcalc__range input[type="range"], .fcalc__range .range { margin-top: 6px; }
.fcalc__range .fin { display: block; width: 100%; margin-top: 8px; }
.fcalc__range output { color: var(--teal-d); }
.mn__list[hidden], .qz__q[hidden], .qz__course[hidden], .qz__res[hidden] { display: none; }
.fcalc__range input[type="range"] { accent-color: var(--teal); height: 40px; width: 100%; }
.fcalc .range output { min-width: 3ch; font-weight: 800; color: var(--teal-d); }
.fin { min-height: 48px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; font: inherit; font-weight: 700; }
.opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts legend, .trucks legend { grid-column: 1 / -1; }
.opts label, .trucks label, .checks label { position: relative; }
.opts input, .trucks input, .checks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opts span, .trucks span { display: grid; gap: 2px; min-height: 56px; align-content: center; text-align: center; padding: 8px 6px; border: 2px solid var(--line); border-radius: 12px; font-weight: 700; font-size: 15px; cursor: pointer; hyphens: auto; }
.opts small, .trucks small { font-weight: 500; color: var(--muted); font-size: 13px; }
.trucks em { font-style: normal; color: var(--teal-d); font-size: 14px; }
.opts input:checked + span, .trucks input:checked + span { border-color: var(--teal); background: var(--teal-l); }
.opts input:focus-visible + span, .trucks input:focus-visible + span, .checks input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.checks span { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.checks span::before { content: ""; width: 22px; height: 22px; border: 2px solid #B9C6D2; border-radius: 6px; flex-shrink: 0; }
.checks input:checked + span::before { background: var(--teal); border-color: var(--teal); box-shadow: inset 0 0 0 4px var(--card, #fff); }
.fcalc__res, .bk__sum, .mn__cart { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px 20px; display: flex; flex-direction: column; gap: 10px; align-self: start; }
.theme-dark .fcalc__res, .theme-dark .bk__sum, .theme-dark .mn__cart { background: #1D2026; }
.fcalc__label { color: rgba(255, 255, 255, .7); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.fcalc__sum { font-size: clamp(30px, 6vw, 42px); font-weight: 800; color: #fff; line-height: 1.1; font-family: var(--font-head); }
.fcalc__meta { color: rgba(255, 255, 255, .8); }
.fcalc__steps { margin: 6px 0; padding-left: 20px; color: rgba(255, 255, 255, .8); font-size: 15px; }
.fcalc__res .feature__note, .bk__sum .feature__note, .mn__cart .feature__note { color: rgba(255, 255, 255, .6); }
.mort__dl, .bk__sum dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.mort__dl dt, .bk__sum dt { color: rgba(255, 255, 255, .65); }
.mort__dl dd, .bk__sum dd { margin: 0; text-align: right; font-weight: 700; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* симптомы */
.sym { display: grid; gap: 18px; }
.sym__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sym__btn { min-height: 56px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 14px; background: var(--card, #fff); font-weight: 700; color: var(--navy); text-align: left; }
.sym__btn[aria-selected="true"] { border-color: var(--teal); background: var(--teal-l); }
.sym__card { background: var(--card, #fff); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); align-self: start; }
.sym__label { color: var(--muted); font-size: 14px; }
.sym__title { display: block; font-size: 26px; color: var(--navy); margin: 4px 0 8px; font-family: var(--font-head); }
.sym__price { display: inline-block; font-weight: 800; color: var(--teal-d); margin-bottom: 16px; }

/* каталог проектов и объекты */
.cat__filters { display: grid; gap: 10px; margin-bottom: 18px; }
.cat__filters .chips { margin: 0; flex-wrap: wrap; }
.cat__area { display: grid; gap: 4px; font-weight: 700; color: var(--navy); max-width: 360px; }
.cat__area input { accent-color: var(--teal); height: 40px; }
.cat__grid, .ls__grid { display: grid; gap: 18px; }
.proj { background: var(--card, #fff); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.proj[hidden] { display: none; }
.proj img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.proj__body { padding: 16px 18px 18px; display: grid; gap: 8px; flex: 1; }
.proj h3 { font-size: 20px; }
.proj__specs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 15px; }
.proj__specs b { color: var(--navy); }
.proj__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.proj__price { font-weight: 800; color: var(--teal-d); font-size: 18px; }
.cat__empty { color: var(--muted); }
.ls__grid { margin-bottom: 24px; }

/* прайс-матрица */
.mx__classes { margin-bottom: 14px; }
.mx { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.mx__row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 14px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); }
.mx__row--head { border-top: 0; font-weight: 700; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.mx__name { font-weight: 700; color: var(--navy); }
.mx [data-col] { display: none; white-space: nowrap; font-weight: 700; }
.mx[data-active="sedan"] [data-col="sedan"], .mx[data-active="suv"] [data-col="suv"], .mx[data-active="premium"] [data-col="premium"] { display: block; color: var(--teal); }
.mx__row--head .btn { display: none; }
@media (min-width: 768px) {
  .mx__row { grid-template-columns: 2fr repeat(3, 1fr) auto; }
  .mx [data-col] { display: block; color: var(--muted); }
  .mx[data-active="sedan"] [data-col="sedan"], .mx[data-active="suv"] [data-col="suv"], .mx[data-active="premium"] [data-col="premium"] { color: var(--teal); font-size: 17px; }
}

/* онлайн-запись */
.bk { display: grid; gap: 18px; }
.bk__steps { display: grid; gap: 12px; }
.bk__step { background: var(--card, #fff); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
.bk__step > b { display: block; color: var(--navy); margin-bottom: 10px; font-family: var(--font-head); font-size: 20px; }
.bk__step .chips { margin: 0; }
.bk__masters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.bk__master { display: flex; gap: 10px; align-items: center; text-align: left; min-height: 60px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 16px; background: transparent; }
.bk__master.is-active { border-color: var(--teal); background: var(--teal-l); }
.bk__master small { display: block; color: var(--muted); }
.bk__ava { width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: var(--on-primary); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }

/* расписание */
.sc__days { margin-bottom: 14px; }
.sc__list { display: grid; gap: 8px; }
.sc__row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: var(--radius); }
.sc__row[hidden] { display: none; }
.sc__time { font-family: var(--font-head); font-size: 20px; color: var(--teal); min-width: 64px; }
.sc__name small { display: block; color: var(--muted); }

/* меню ресторана */
.mn { display: grid; gap: 18px; }
.mn__tabs { margin-bottom: 14px; }
.mn__list { list-style: none; margin: 0; padding: 18px; background: var(--card, #fff); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 14px; }
.mn__item { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: end; }
.mn__name b { font-family: var(--font-head); font-size: 19px; color: var(--navy); }
.mn__name small { display: block; color: var(--muted); }
.mn__dots { border-bottom: 2px dotted var(--line); margin-bottom: 7px; min-width: 12px; }
.mn__price { font-weight: 700; white-space: nowrap; }
.mn__add { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--teal); color: var(--on-primary); font-size: 22px; line-height: 1; }
.mn__cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mn__line { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mn__line button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: #fff; }
.mn__empty { color: rgba(255, 255, 255, .6); }
.mn__total { display: flex; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 10px; font-size: 18px; }
@media (max-width: 559px) { .mn__item { grid-template-columns: 1fr auto auto; } .mn__dots { display: none; } }

/* квиз */
.qz { background: var(--card, #fff); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); max-width: 820px; }
.qz__progress { height: 6px; background: var(--teal-l); border-radius: 6px; margin-bottom: 18px; overflow: hidden; }
.qz__progress span { display: block; height: 100%; background: var(--teal); transition: width .3s; }
.qz__title { display: block; font-size: 22px; color: var(--navy); margin-bottom: 14px; font-family: var(--font-head); }
.qz__opts { display: grid; gap: 10px; }
.qz__opt { min-height: 56px; padding: 12px 16px; text-align: left; border: 2px solid var(--line); border-radius: 16px; background: transparent; font-weight: 600; color: var(--navy); }
.qz__opt:hover { border-color: var(--teal); background: var(--teal-l); }
.qz__res .fcalc__label { color: var(--muted); }
.qz__course b { display: block; font-size: 28px; color: var(--teal); font-family: var(--font-head); margin: 4px 0; }

@media (min-width: 768px) {
  .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trucks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sym__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat__grid, .ls__grid { grid-template-columns: repeat(2, 1fr); }
  .qz__opts { grid-template-columns: 1fr 1fr; }
  .author { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .ptable__row { grid-template-columns: 1fr auto auto; }
  .ptable__row .btn { grid-column: auto; }
}
@media (min-width: 1024px) {
  .fcalc, .bk, .mn { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .fcalc__res, .bk__sum, .mn__cart { position: sticky; top: 100px; }
  .sym { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .cat__grid { grid-template-columns: repeat(3, 1fr); }
  .ls__grid { grid-template-columns: repeat(4, 1fr); }
  .cat__filters { grid-template-columns: auto auto 1fr; align-items: center; }
}

@media (min-width: 1280px) { .opts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }


/* ===== Иконки: толщина и концы линий — из темы сайта; подложка — класс icons-* на body ===== */
.i path, .i circle, .i rect { stroke-width: var(--icon-sw, 1.8); stroke-linecap: var(--icon-cap, round); stroke-linejoin: var(--icon-join, round); }
.logo__mark .i { width: 24px; height: 24px; color: var(--on-primary, #fff); }
.icons-circle .why__item .i, .icons-square .why__item .i, .icons-badge .why__item .i { width: 56px; height: 56px; padding: 13px; background: var(--teal-l); color: var(--teal-d); }
.icons-circle .why__item .i { border-radius: 50%; }
.icons-square .why__item .i { border-radius: 10px; }
.icons-badge .why__item .i { border-radius: 18px; background: var(--teal); color: var(--on-primary); transform: rotate(-6deg); }
.icons-plain .why__item .i { width: 44px; height: 44px; color: var(--teal); }
.icons-square .logo__mark { border-radius: 6px; }
.icons-circle .logo__mark { border-radius: 50%; }
.theme-dark.icons-square .why__item .i, .theme-dark.icons-circle .why__item .i { background: var(--teal-l); color: var(--teal); }

/* ===== 3D-оформление ===== */
.ico3d { width: 88px; height: 88px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .14)); transition: transform .3s; }
.why__item:hover .ico3d { transform: translateY(-4px) rotate(-3deg); }
.phead--3d { background: var(--bg-soft) var(--bg3d) right center / cover no-repeat; }
.phead--3d::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg-soft) 0%, var(--bg-soft) 38%, transparent 85%); }
.theme-dark .phead--3d::before { background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 40%, rgba(13, 14, 16, .3) 90%); }
@media (max-width: 767px) { .phead--3d::before { background: linear-gradient(180deg, var(--bg-soft) 30%, rgba(255,255,255,.75)); } .theme-dark .phead--3d::before { background: rgba(13,14,16,.82); } }


/* ===== Узкие экраны: длинные цены, кнопки и названия не выходят за край ===== */
ul.chips .chip { white-space: normal; text-align: left; }
.sym > *, .art__layout > *, .fcalc > *, .bk > *, .mn > * { min-width: 0; }
.ptable__row { grid-template-columns: minmax(0, 1fr) auto; }
.ptable__price { white-space: normal; text-align: right; max-width: 12ch; }
.sym__btn { min-width: 0; overflow-wrap: anywhere; font-size: 15px; }
.toc a, .sc__name b, .mx__name { overflow-wrap: anywhere; }
.sc__row { grid-template-columns: auto minmax(0, 1fr) auto; }
@media (max-width: 479px) {
  .sym__list { grid-template-columns: 1fr; }
  .sc__row { grid-template-columns: auto minmax(0, 1fr); }
  .sc__row .btn { grid-column: 1 / -1; justify-self: start; }
  .mx__row { grid-template-columns: minmax(0, 1fr) auto; }
  .mx__row .btn { grid-column: 1 / -1; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Поиск врача или услуги */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.srch{display:flex;align-items:center;gap:12px;max-width:760px;padding:0 16px;border:2px solid var(--line,#dfe3ea);border-radius:var(--btn-radius,12px);background:var(--bg,#fff);color:var(--teal)}
.srch:focus-within{border-color:var(--teal)}
.srch svg{width:22px;height:22px;flex:none}
.srch input{flex:1;min-width:0;font:inherit;font-size:17px;padding:14px 0;border:0;background:none;color:var(--text,inherit);outline:none;min-height:52px}
.srch__list{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:10px}
.srch__item{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;padding:14px 16px;border-radius:var(--radius,14px);background:var(--bg-soft)}
.srch__item>span:first-child{flex:1 1 240px;min-width:0}
.srch__item b{display:block}.srch__item small{display:block;font-size:15px;opacity:.8}
.srch__price{font-weight:700;white-space:nowrap}
.srch__item .btn{min-height:44px}
