/* ==========================================================================
   motion.css — анимации и стили «живых» блоков (подключается после main.css)
   Принцип: двигаем только transform / translate / opacity. Без blur и фильтров.
   Содержание: полоса прокрутки → появление блоков → кнопки → hero → услуги →
   «Комфорт, тишина, стиль» → работы → шапка и плавающие элементы → уменьшенная анимация
   ========================================================================== */

/* --- Полоса прокрутки --- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; z-index: 130; height: 3px; pointer-events: none; }
.scroll-progress span { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }

/* --- Появление блоков при прокрутке --- */
@keyframes reveal-in { from { opacity: 0; translate: 0 28px; } }
@keyframes reveal-failsafe { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
.js .reveal:not(.is-in) { opacity: 0; animation: reveal-failsafe .6s 5s both; }
.js .reveal.is-in { animation: reveal-in .85s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }

/* Акцентная чёрточка под заголовками разделов */
.section-head h2::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 18px; border-radius: 3px; background: var(--accent); transform-origin: 0 50%; transition: transform .9s var(--ease) .25s; }
.js .section-head.reveal:not(.is-in) h2::after { transform: scaleX(0); }

/* --- Кнопки --- */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform .25s var(--ease), box-shadow .25s var(--ease), translate .2s ease-out; }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%); transform: translateX(-120%); }
.btn-primary:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn-primary:hover { box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
  .btn:active { transform: scale(.98); }
}
.link-arrow { display: inline-flex; align-items: center; gap: 6px; }
.link-arrow .icon { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.link-arrow:hover .icon, .service:hover .link-arrow .icon { transform: translateX(4px); }

/* --- Hero: текст --- */
@keyframes fade-up { from { opacity: 0; translate: 0 22px; } }
@keyframes word-up { from { transform: translateY(105%); } }
.js .hero-fade { animation: fade-up .9s var(--ease) both; animation-delay: var(--d, 0ms); }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .14em; margin-bottom: -.14em; }
.hero h1 .w > span { display: inline-block; animation: word-up .9s var(--ease) both; animation-delay: calc(var(--i) * 80ms + 120ms); }

/* --- Hero: правая часть (спокойное движение, не отвлекает от текста) --- */
.hero-visual::before { content: none; }
.hero-visual { --mx: 0px; --my: 0px; --sy: 0px; }
.hero-layer { position: absolute; inset: 0; will-change: transform; transition: transform .2s linear; }
.hero-layer-main { transform: translate3d(calc(var(--mx) * -1), calc(var(--my) * -1 - var(--sy)), 0); }
.hero-layer-inset { transform: translate3d(calc(var(--mx) * 1.6), calc(var(--my) * 1.4 + var(--sy) * .5), 0); z-index: 2; pointer-events: none; }
.hero-photo-main img { animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1) translate3d(-1.2%, -1%, 0); } }
.hero-photo-inset { animation: bob 7s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-10px); } }
.js .hero-photo-main { animation: photo-in 1.1s var(--ease) .15s both; }
.js .hero-photo-inset { animation: photo-in 1.1s var(--ease) .45s both, bob 7s ease-in-out 1.6s infinite alternate; }
@keyframes photo-in { from { opacity: 0; translate: 0 26px; scale: .96; } }
.hero-sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .16) 50%, transparent 62%); transform: translateX(-130%); animation: sheen 9s var(--ease) 2.5s infinite; }
@keyframes sheen { 0% { transform: translateX(-130%); } 22%, 100% { transform: translateX(130%); } }

.hero-orb { position: absolute; z-index: -1; width: 86%; aspect-ratio: 1; right: -12%; top: 2%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 34%, transparent), transparent 66%); animation: orb 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes orb { from { transform: translate3d(0, 0, 0) scale(1); opacity: .75; } to { transform: translate3d(-8%, 10%, 0) scale(1.14); opacity: 1; } }

/* Бегущая «строчка» вокруг фото */
.hero-stitch { position: absolute; inset: -12px -12px -12px calc(10% - 12px); width: calc(100% - 10% + 24px); height: calc(100% + 24px); overflow: visible; pointer-events: none; }
.hero-stitch rect { width: 100%; height: 100%; fill: none; stroke: var(--accent); stroke-opacity: .6; stroke-width: 1.6; stroke-dasharray: 9 8; stroke-linecap: round; animation: stitch 2.6s linear infinite; }
@keyframes stitch { to { stroke-dashoffset: -34; } }

.hero-tags { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero-tags li { position: absolute; padding: 7px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--text); background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line-strong); box-shadow: var(--shadow); white-space: nowrap; animation: tag-in .8s var(--ease) both, tag-float 6s ease-in-out infinite alternate; }
.hero-tags li:nth-child(1) { left: 14%; top: 7%; animation-delay: 1.1s, 1.9s; }
.hero-tags li:nth-child(2) { right: -5%; top: 44%; animation-delay: 1.35s, 2.4s; }
.hero-tags li:nth-child(3) { right: 8%; bottom: -3%; animation-delay: 1.6s, 1.2s; }
@keyframes tag-in { from { opacity: 0; translate: 0 14px; } }
@keyframes tag-float { from { transform: translateY(0); } to { transform: translateY(-7px); } }

/* --- Услуги --- */
.spot { position: relative; }
@media (hover: hover) and (pointer: fine) {
  .spot::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(340px circle at var(--sx, 50%) var(--sy2, 50%), color-mix(in srgb, var(--accent) 17%, transparent), transparent 62%); }
  .spot:hover::before { opacity: 1; }
}
.service-card { position: relative; transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease); }
.service-card figure { position: relative; }
.service-card img { transition: transform .8s var(--ease); }
.service-card figure::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(0deg, rgba(10, 8, 6, .55), transparent); pointer-events: none; }
.price-badge { position: absolute; z-index: 2; left: 14px; bottom: 14px; padding: 7px 14px; border-radius: 999px; font-family: var(--font-display); font-weight: 700; font-size: .98rem; color: var(--on-accent); background: var(--accent); font-variant-numeric: tabular-nums; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .7); }
.price-badge small { margin-right: 4px; font-family: var(--font-sans); font-size: .76rem; font-weight: 600; opacity: .8; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 500; color: var(--text-soft); background: var(--surface-2); border: 1px solid var(--line); }
.service-card .service-foot { position: relative; z-index: 2; }
@media (hover: hover) {
  .service-card:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: var(--shadow); }
  .service-card:hover img { transform: scale(1.07); }
}
.service-card .service-price { display: none; }
.service-card .service-foot { justify-content: flex-end; }

.services-list { counter-reset: row; }
.service-row { position: relative; padding-left: 52px; counter-increment: row; transition: transform .4s var(--ease), background-color .3s; }
.service-row::before { content: counter(row, decimal-leading-zero); position: absolute; left: 0; top: 25px; font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--muted); transition: color .3s; font-variant-numeric: tabular-nums; }
.service-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
@media (hover: hover) {
  .service-row:hover { transform: translateX(6px); }
  .service-row:hover::before { color: var(--accent-text); }
  .service-row:hover::after { transform: scaleX(1); }
}
.service-row h3 { transition: color .3s; }
.service-row:hover h3 { color: var(--accent-text); }

.snap-dots { display: none; }

.photo-estimate { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; margin-top: clamp(32px, 5vw, 56px); padding: clamp(22px, 4vw, 36px); border-radius: var(--radius-lg); background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface) 70%); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); }
.photo-estimate h3 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.photo-estimate p { margin-top: 8px; max-width: 520px; color: var(--text-soft); font-size: .98rem; }
.photo-estimate-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* --- Комфорт, тишина, стиль --- */
.trio { margin-bottom: clamp(28px, 4vw, 48px); padding: clamp(18px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.trio-tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.trio-tab { display: flex; align-items: baseline; gap: 10px; padding: 8px 4px 18px; text-align: left; color: var(--muted); transition: color .3s; }
.trio-tab:hover { color: var(--text); }
.trio-tab.is-active { color: var(--text); }
.trio-n { font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); transition: color .3s; }
.trio-tab.is-active .trio-n { color: var(--accent-text); }
.trio-t { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.35rem, 3.6vw, 2.6rem); letter-spacing: -.03em; line-height: 1; }
.trio-bar { position: absolute; left: 0; bottom: -1px; height: 3px; width: var(--bw, 33%); background: var(--accent); border-radius: 3px; transform: translateX(var(--bx, 0px)); transition: transform .55s var(--ease), width .55s var(--ease); }
.trio-stage { padding-top: clamp(20px, 3vw, 32px); }
.trio-panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.trio-panel[hidden] { display: none; }
.trio-panel.is-active .trio-text > * { animation: fade-up .7s var(--ease) both; }
.trio-panel.is-active .trio-text > :nth-child(2) { animation-delay: .08s; }
.trio-panel.is-active .trio-text > :nth-child(3) { animation-delay: .16s; }
.trio-panel.is-active .trio-media { animation: media-in .8s var(--ease) both; }
@keyframes media-in { from { opacity: 0; transform: scale(.96); } }
.trio-text h3 { font-size: clamp(1.4rem, 2.8vw, 2.1rem); }
.trio-text p { margin-top: 14px; color: var(--muted); font-size: clamp(.98rem, 1.4vw, 1.08rem); line-height: 1.7; }
.trio-media { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.trio-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.trio-panel.is-active .trio-media img { animation: kenburns 16s ease-in-out infinite alternate; }

.trio-wave svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.trio-wave path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.wave-noise { transform-origin: 50% 50%; animation: noise-out 5s var(--ease) .3s both; }
.wave-calm { opacity: 0; animation: calm-in 2.2s var(--ease) 2.3s both; stroke-dasharray: 2400; stroke-dashoffset: 2400; }
@keyframes noise-out { 0%, 30% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(.04); opacity: 0; } }
@keyframes calm-in { from { opacity: 1; stroke-dashoffset: 2400; } to { opacity: 1; stroke-dashoffset: 0; } }
.wave-label { position: absolute; top: 14px; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--surface); border: 1px solid var(--line-strong); }
.wave-label-a { left: 14px; animation: fade-out-lbl 1s ease 3s both; }
.wave-label-b { right: 14px; color: var(--accent-text); opacity: 0; animation: fade-in-lbl 1s ease 3.6s both; }
@keyframes fade-out-lbl { to { opacity: 0; } }
@keyframes fade-in-lbl { to { opacity: 1; } }

.swatches { display: flex; gap: 10px; margin-top: 22px; }
.swatches li { width: 36px; height: 36px; border-radius: 50%; background: var(--c); border: 2px solid var(--line-strong); transition: transform .3s var(--ease); }
.swatches li:hover { transform: scale(1.18) translateY(-3px); }
.trio-panel.is-active .swatches li { animation: pop .6s var(--ease) both; }
.trio-panel.is-active .swatches li:nth-child(2) { animation-delay: .08s; }
.trio-panel.is-active .swatches li:nth-child(3) { animation-delay: .16s; }
.trio-panel.is-active .swatches li:nth-child(4) { animation-delay: .24s; }
.trio-panel.is-active .swatches li:nth-child(5) { animation-delay: .32s; }
@keyframes pop { from { opacity: 0; transform: scale(.3); } }

/* Плитки «почему мы» (мозаика) */
.why-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; }
.why-item { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .45s var(--ease), border-color .3s; }
.why-item h3 { font-size: 1.2rem; }
.why-item p { margin-top: 10px; color: var(--muted); font-size: .96rem; }
.why-idx { display: block; margin-bottom: 18px; font-family: var(--font-display); font-weight: 800; font-size: .9rem; color: var(--accent-text); }
.why-big { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface) 65%); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.why-num { display: flex; align-items: baseline; gap: 10px; margin-bottom: auto; padding-bottom: 28px; font-family: var(--font-display); font-weight: 800; color: var(--accent-text); line-height: .9; letter-spacing: -.05em; }
.why-num b { font-size: clamp(5.5rem, 12vw, 9rem); font-variant-numeric: tabular-nums; }
.why-num span { font-size: clamp(1.4rem, 3vw, 2.1rem); letter-spacing: -.02em; }
.why-item:last-child { grid-column: 1 / -1; }
@media (hover: hover) {
  .why-item:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
}

/* --- Работы --- */
.gallery-item::after { content: ""; position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; background: var(--accent) linear-gradient(var(--on-accent), var(--on-accent)) center / 16px 2px no-repeat, linear-gradient(var(--on-accent), var(--on-accent)) center / 2px 16px no-repeat; background-color: var(--accent); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .4s var(--ease); pointer-events: none; }
@media (hover: hover) { .gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; transform: none; } }
.gallery-item { transition: transform .45s var(--ease), border-color .3s; }
@media (hover: hover) { .gallery-item:hover { border-color: var(--accent); } }
.modal-body .gallery-item { animation: tile-in .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes tile-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.modal-filters .chip.is-active { box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--accent) 80%, transparent); }

/* --- Шапка и плавающие элементы --- */
.site-header { transition: border-color var(--t), transform .4s var(--ease); }
.site-header.is-hidden { transform: translateY(-100%); }
.mobile-bar-call::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--accent); opacity: 0; animation: ring 2.8s ease-out infinite; pointer-events: none; }
@keyframes ring { 0% { opacity: .7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.35); } }
.to-top, .mobile-bar-call { transition: opacity var(--t), transform var(--t) var(--ease); }

/* --- Адаптив --- */
@media (max-width: 1100px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-big { grid-column: 1 / -1; grid-row: auto; flex-direction: row; align-items: flex-end; gap: 28px; }
  .why-big .why-num { margin-bottom: 0; padding-bottom: 0; flex: none; }
}
@media (max-width: 920px) {
  .trio-panel { grid-template-columns: 1fr; }
  .trio-media { aspect-ratio: 16 / 10; order: -1; }
}
@media (max-width: 640px) {
  .hero-tags li { font-size: .72rem; padding: 6px 11px; }
  .hero-tags li:nth-child(1) { left: 16%; top: 4%; }
  .hero-tags li:nth-child(2) { right: -2%; top: 46%; }
  .hero-tags li:nth-child(3) { right: 4%; bottom: -4%; }
  .hero-orb { right: -30%; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
  .hero-facts b { font-size: .88rem; }
  .hero-facts span { font-size: .76rem; line-height: 1.4; }

  /* Услуги: карточки листаются пальцем */
  .services-feature { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .services-feature::-webkit-scrollbar { display: none; }
  .services-feature .service-card { flex: 0 0 82%; scroll-snap-align: center; }
  .service-card figure, .services-feature .service-card:last-child figure { aspect-ratio: 4 / 3.1; }
  .snap-dots { display: flex; justify-content: center; gap: 8px; margin: 6px 0 4px; }
  .snap-dots span { width: 8px; height: 8px; border-radius: 8px; background: var(--line-strong); transition: width .35s var(--ease), background-color .3s; }
  .snap-dots span.is-on { width: 26px; background: var(--accent); }
  .service-row { padding-left: 38px; }
  .service-row::before { top: 23px; font-size: .82rem; }
  .photo-estimate { flex-direction: column; align-items: stretch; }
  .photo-estimate-actions .btn { flex: 1 1 100%; }

  .trio { padding: 16px; }
  .trio-tabs { column-gap: 6px; }
  .trio-t { font-size: clamp(1.02rem, 5.2vw, 1.3rem); letter-spacing: -.02em; }
  .trio-tab { gap: 6px; padding-bottom: 14px; flex-direction: column; align-items: flex-start; }
  .trio-media { aspect-ratio: 4 / 3; }
  .why-grid { grid-template-columns: 1fr; gap: 12px; }
  .why-big { flex-direction: column; align-items: flex-start; gap: 0; }
  .why-big .why-num { padding-bottom: 16px; }
  .why-item { padding: 22px; }
  .why-idx { margin-bottom: 12px; }
}

/* --- Уменьшенная анимация: всё показывается сразу, ничего не движется --- */
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal:not(.is-in), .js .reveal.is-in { opacity: 1 !important; animation: none !important; translate: none !important; }
  .js .hero-fade, .hero h1 .w > span, .hero-photo-main, .hero-photo-inset, .hero-photo-main img, .hero-sheen, .hero-orb, .hero-stitch rect,
  .hero-tags li, .mobile-bar-call::after, .modal-body .gallery-item, .trio-panel *, .wave-noise, .wave-calm, .wave-label { animation: none !important; }
  .wave-noise { opacity: 0; }
  .wave-calm { opacity: 1; stroke-dashoffset: 0; }
  .wave-label-a { opacity: 0; } .wave-label-b { opacity: 1; }
  .hero-tags li { opacity: 1; }
  .scroll-progress { display: none; }
  .service-card, .service-card img, .service-row, .why-item, .btn { transition-duration: .01s; }
}

/* Планшет: 8 фото ровно в два ряда */
@media (min-width: 641px) and (max-width: 1100px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   Часть 2: как мы работаем, отзывы, вопросы, запись, контакты, подвал
   ========================================================================== */

/* Плавная смена темы */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .45s ease, color .45s ease, border-color .45s ease, fill .45s ease, stroke .45s ease !important; }

/* --- Как мы работаем: «нить» с шагами --- */
.steps { counter-reset: none; gap: 20px; }
.step { position: relative; padding: 0; border-top: 0; }
.step { padding-top: 0; }
.step-num { position: relative; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 22px; border-radius: 50%; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--accent-text); background: var(--bg); border: 2px solid var(--line-strong); transition: background-color .5s var(--ease) .25s, color .4s .25s, border-color .4s .25s, transform .5s var(--ease) .25s; }
.step.is-in .step-num { background: var(--accent); border-color: var(--accent); color: var(--on-accent); animation: pop .6s var(--ease) calc(var(--i, 0) * 90ms + 250ms) both; }
.step::before { content: ""; position: absolute; z-index: 1; left: 46px; top: 22px; width: calc(100% - 46px + 20px); height: 2px; border-radius: 2px; background: var(--line-strong); }
.step::after { content: ""; position: absolute; z-index: 1; left: 46px; top: 22px; width: calc(100% - 46px + 20px); height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--ease) calc(var(--i, 0) * 90ms + 500ms); }
.step.is-in::after { transform: scaleX(1); }
.step:last-child::before, .step:last-child::after { display: none; }
.step h3 { transition: color .3s; }
.step p { max-width: 280px; }
@media (hover: hover) { .step:hover h3 { color: var(--accent-text); } .step:hover .step-num { transform: scale(1.1); } }
.process-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 5vw, 56px); }
.step.spot::before { content: ""; }
@media (max-width: 920px) {
  .step:nth-child(2n)::before, .step:nth-child(2n)::after { display: none; }
}
@media (max-width: 640px) {
  .steps { gap: 0; row-gap: 0; }
  .step { padding: 0 0 30px 66px; }
  .step:last-child { padding-bottom: 0; }
  .step-num { position: absolute; left: 0; top: 0; margin: 0; }
  .step h3 { padding-top: 10px; }
  .step::before, .step::after, .step:nth-child(2n)::before, .step:nth-child(2n)::after { display: block; left: 22px; top: 46px; width: 2px; height: calc(100% - 46px); transform-origin: 50% 0; }
  .step::after { transform: scaleY(0); }
  .step.is-in::after { transform: scaleY(1); }
  .step:last-child::before, .step:last-child::after { display: none; }
  .step p { max-width: none; }
  .process-cta .btn { flex: 1 1 100%; }
}

/* --- Калькулятор --- */
.calc-item { transition: border-color var(--t-fast), background-color var(--t-fast), transform .3s var(--ease); }
.calc-item:active { transform: scale(.985); }
.check:checked::after { animation: check-pop .35s var(--ease); }
@keyframes check-pop { from { opacity: 0; transform: rotate(-45deg) translate(1px, -1px) scale(.2); } }
.calc-total.bump .calc-sum { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.05); color: var(--accent-text); } }
.calc-sum { transform-origin: 0 60%; }

/* --- Отзывы --- */
.rating { align-items: center; gap: 12px 26px; margin-bottom: 32px; }
.rating-num { margin: 0; }
.rating-info { display: grid; gap: 8px; justify-items: start; }
.rating-meta { margin: 0; }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars .icon { width: 16px; height: 16px; }
.stars-lg .icon { width: 24px; height: 24px; opacity: 0; transform: scale(.3) rotate(-30deg); }
.rating.is-in .stars-lg .icon { animation: star-in .6s var(--ease) both; }
.rating.is-in .stars-lg .icon:nth-child(1) { animation-delay: .2s; } .rating.is-in .stars-lg .icon:nth-child(2) { animation-delay: .3s; }
.rating.is-in .stars-lg .icon:nth-child(3) { animation-delay: .4s; } .rating.is-in .stars-lg .icon:nth-child(4) { animation-delay: .5s; }
.rating.is-in .stars-lg .icon:nth-child(5) { animation-delay: .6s; }
@keyframes star-in { from { opacity: 0; transform: scale(.3) rotate(-30deg); } to { opacity: 1; transform: none; } }
.badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--accent-text); background: color-mix(in srgb, var(--accent) 13%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }

.reviews-track + .reviews-track { margin-top: 16px; }
.reviews-track.is-reverse { animation-direction: reverse; }
.review { position: relative; gap: 16px; overflow: hidden; transition: transform .45s var(--ease), border-color .3s; }
.review::after { content: "“"; position: absolute; right: 18px; top: -6px; font-family: var(--font-display); font-weight: 800; font-size: 6.5rem; line-height: 1; color: var(--accent); opacity: .16; pointer-events: none; }
.review-top { display: flex; align-items: center; gap: 12px; }
.avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--on-accent); background: var(--accent); }
.review:nth-child(3n+2) .avatar { background: #d9473d; color: #fff; }
.review:nth-child(3n) .avatar { background: var(--text); color: var(--bg); }
.review-who { display: grid; min-width: 0; line-height: 1.25; }
.review-who b { font-family: var(--font-display); font-size: 1rem; }
.review-who span { font-size: .82rem; color: var(--muted); }
.review p { flex: 1; }
.review footer { padding-top: 14px; border-top: 1px solid var(--line); flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.review-tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 500; color: var(--accent-text); background: color-mix(in srgb, var(--accent) 11%, transparent); }
@media (hover: hover) { .review:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); } }
.review .stars { display: inline-flex; }
.review-top .stars { margin-left: auto; }
.review-top .stars .icon { width: 13px; height: 13px; }
.review::after { right: 16px; bottom: 44px; top: auto; font-size: 6rem; opacity: .12; }

/* --- Частые вопросы --- */
.faq { position: relative; transition: background-color .3s; }
.faq::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: var(--accent); transform: scaleY(0); transform-origin: 50% 0; transition: transform .45s var(--ease); }
.faq.js-faq.is-open::before, .faq:not(.js-faq)[open]::before { transform: scaleY(1); }
.faq summary { padding-left: 0; transition: color var(--t-fast), padding-left .4s var(--ease); }
.faq.js-faq.is-open summary, .faq:not(.js-faq)[open] summary { padding-left: 18px; }
@media (hover: hover) { .faq summary:hover { padding-left: 10px; } .faq.js-faq.is-open summary:hover, .faq:not(.js-faq)[open] summary:hover { padding-left: 18px; } }
.faq summary::before, .faq summary::after { right: 14px; }
.faq summary { padding-right: 56px; }
.faq summary::before, .faq summary::after { transition: transform .45s var(--ease), background-color .3s; }
.faq.js-faq.is-open summary::after, .faq:not(.js-faq)[open] summary::after { transform: rotate(0); }
.faq.js-faq:not(.is-open) summary::after { transform: rotate(90deg); }
.faq.js-faq.is-open summary::before, .faq:not(.js-faq)[open] summary::before { transform: rotate(180deg); }
.faq-body { padding-left: 18px; }
.faq[open] .faq-body { animation: faq-in .55s var(--ease) .05s both; }
@keyframes faq-in { from { opacity: 0; translate: 0 -8px; } }
@media (max-width: 640px) { .faq-body { padding-right: 20px; } }

/* --- Запись --- */
.contact-link { position: relative; transition: transform .35s var(--ease); }
@media (hover: hover) { .contact-link:hover { transform: translateX(6px); } }
.contact-ico { position: relative; transition: background-color var(--t-fast), color var(--t-fast), transform .4s var(--ease); }
a.contact-link:hover .contact-ico, .contact-row:hover .contact-ico { transform: rotate(-8deg) scale(1.08); }
.contact-row:hover .contact-ico { background: var(--accent); color: var(--on-accent); }
.chip:has(input:checked) { animation: chip-pop .35s var(--ease); }
@keyframes chip-pop { 40% { transform: scale(1.06); } }
.form-result:not([hidden]) { animation: result-in .6s var(--ease) both; }
@keyframes result-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.field input, .field textarea { transition: border-color var(--t-fast), box-shadow .3s, transform .3s var(--ease); }
.field input:focus, .field textarea:focus { transform: translateY(-1px); }

/* --- Контакты --- */
.contacts-card .contact-row { position: relative; margin-inline: -12px; padding-inline: 12px; border-radius: var(--radius-sm); transition: background-color .3s; }
@media (hover: hover) { .contacts-card .contact-row:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); } }
.pay-chips .chip { animation: pop .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 300ms); }
.pay-chips .chip { animation-play-state: paused; }
.contacts-card.is-in .pay-chips .chip { animation-play-state: running; }
.map-hint { animation: hint 3.2s ease-in-out infinite; }
@keyframes hint { 50% { transform: translateY(-4px); } }
.map { transition: border-color .3s, box-shadow .4s var(--ease); }
@media (hover: hover) { .map:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: var(--shadow); } }

/* --- Подвал --- */
.footer-nav a, .footer-contacts a { display: inline-block; transition: color var(--t-fast), transform .3s var(--ease); }
@media (hover: hover) { .footer-nav a:hover { transform: translateX(4px); } }

@media (prefers-reduced-motion: reduce) {
  .step::after { transition: none; transform: scaleX(1); }
  .step.is-in .step-num, .pay-chips .chip, .map-hint, .faq[open] .faq-body, .form-result:not([hidden]), .rating.is-in .stars-lg .icon { animation: none !important; }
  .stars-lg .icon { opacity: 1; transform: none; }
  .theme-anim, .theme-anim * { transition: none !important; }
}
