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

/* --- База --- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--line-strong) var(--bg);
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
figure, blockquote, dl, dd, ol, ul, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.lead { margin-top: 16px; font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--muted); line-height: 1.7; }
.muted { color: var(--muted); }
.link { color: var(--accent-text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent-text) 40%, transparent); text-underline-offset: 3px; }
.link:hover { text-decoration-color: currentColor; }

.skip-link { position: fixed; top: -60px; left: 16px; z-index: 1000; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.skip-link:focus { top: 12px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Кнопки --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; line-height: 1.2; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.btn:active { transform: scale(.98); }
.btn-primary { color: var(--on-accent); background: var(--accent); }
.btn-primary:hover { background: #f7ab3d; }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.link-btn { font-weight: 600; font-size: .94rem; color: var(--accent-text); padding: 6px 0; border-bottom: 1px solid color-mix(in srgb, var(--accent-text) 35%, transparent); transition: border-color var(--t-fast); }
.link-btn:hover { border-bottom-color: currentColor; }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); transition: border-color var(--t-fast), color var(--t-fast); }
.icon-btn:hover { border-color: var(--accent); color: var(--accent-text); }
.icon-btn .icon { width: 20px; height: 20px; }

/* --- Чипы --- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent;
  font-size: .92rem; font-weight: 500; color: var(--text-soft); cursor: pointer; user-select: none;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.is-active, .chip:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.field .chip input { padding: 0; border: 0; background: none; }
.field .chip { padding: 9px 16px; font-size: .92rem; font-weight: 500; color: var(--text-soft); }
.field .chip:has(input:checked) { color: var(--on-accent); font-weight: 600; }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

/* --- Шапка --- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { height: 40px; width: auto; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.brand-text small { margin-top: 3px; font-size: .74rem; color: var(--muted); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 2px; }
.main-nav a { display: block; padding: 10px 14px; font-size: .95rem; font-weight: 500; color: var(--text-soft); border-radius: 999px; transition: color var(--t-fast), background-color var(--t-fast); }
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a.is-current { color: var(--accent-text); }
.nav-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.header-phone .icon { color: var(--accent-text); width: 18px; height: 18px; }
.header-phone:hover { color: var(--accent-text); }

.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.burger { display: none; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--t) var(--ease), opacity var(--t-fast); }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
body.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- Hero --- */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(32px, 6vw, 72px)); padding-bottom: clamp(48px, 7vw, 88px); overflow: hidden; background: radial-gradient(900px 520px at 82% 20%, var(--glow), transparent 70%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.8vw, 4.4rem); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; }
.hero-lead { margin-top: 24px; max-width: 520px; font-size: clamp(1.04rem, 1.6vw, 1.2rem); color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 600px; margin-top: 48px; padding-top: 22px; border-top: 1px dashed var(--line-strong); }
.hero-facts b { display: block; font-family: var(--font-display); font-size: 1.02rem; line-height: 1.3; }
.hero-facts span { display: block; margin-top: 4px; font-size: .86rem; line-height: 1.45; color: var(--muted); }

.hero-visual { position: relative; width: min(100%, 440px); margin-inline: auto; aspect-ratio: 4 / 5; }
.hero-visual::before { content: ""; position: absolute; inset: -12px -12px -12px calc(10% - 12px); border: 1.5px dashed color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 30px; }
.hero-photo { position: absolute; margin: 0; overflow: hidden; background: var(--surface-2); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-main { inset: 0 0 0 10%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero-photo-inset { left: 0; bottom: -5%; width: 36%; aspect-ratio: 3 / 4; border-radius: var(--radius); border: 5px solid var(--bg); box-shadow: var(--shadow); }

/* --- Услуги --- */
.services-feature { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.service-card figure { aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--surface-2); }
.service-card img { width: 100%; height: 100%; object-fit: cover; }
.service-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 22px 24px 24px; }
.service-body h3 { font-size: 1.3rem; }
.service-body p { flex: 1; color: var(--muted); font-size: .95rem; }
.service-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.service-price { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.service-price small { font-family: var(--font-sans); font-size: .8rem; font-weight: 500; color: var(--muted); margin-right: 4px; }

.services-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 5vw, 64px); margin-top: clamp(28px, 4vw, 44px); }
.service-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: start; padding: 22px 0; border-bottom: 1px dashed var(--line-strong); }
.service-row h3 { font-size: 1.12rem; }
.service-row p { grid-column: 1; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.service-row .service-side { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.service-row .service-price { font-size: 1.12rem; }

/* --- Почему мы --- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 56px); }
.why-item { padding: 24px 0 28px; border-top: 1px solid var(--line-strong); }
.why-item h3 { font-size: 1.2rem; }
.why-item p { margin-top: 10px; color: var(--muted); font-size: .96rem; }

/* --- Работы --- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.04); }
.gallery-more { margin-top: 32px; }

.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: rgba(8, 7, 9, .78); animation: fade .24s ease-out; }
.modal[hidden] { display: none; }
.modal.is-closing { animation: fade-out .2s ease-in forwards; }
.modal.is-closing .modal-panel { animation: sink .2s ease-in forwards; }
@keyframes fade { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } }
@keyframes sink { to { opacity: 0; transform: translateY(12px) scale(.985); } }
.modal-panel { display: flex; flex-direction: column; width: min(1180px, 100%); height: min(92vh, 900px); height: min(92dvh, 900px); min-height: 0; border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--line-strong); box-shadow: var(--shadow); animation: rise .34s var(--ease); overflow: hidden; }
.modal-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.modal-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; min-width: 0; }
.modal-head h2 { font-size: 1.4rem; }
.modal-count { font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.modal-head .icon-btn { flex: none; }
.modal-filters { flex: none; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.modal-filters .chips { flex-wrap: wrap; }
.modal-filters .chip { white-space: nowrap; }
.modal-body { flex: 1 1 auto; min-height: 0; padding: 20px 22px 24px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.modal-body .gallery { grid-template-columns: repeat(5, 1fr); gap: 12px; }
body.is-locked { overflow: hidden; }

.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); background: #060507; animation: fade .24s ease-out; }
.lightbox[hidden] { display: none; }
.lightbox.is-closing { animation: fade-out .18s ease-in forwards; }
.lightbox-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.lightbox-count { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #e8e2d8; font-size: .88rem; font-variant-numeric: tabular-nums; }
.lightbox-figure { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0 4px; }
.lightbox-stage { position: relative; flex: 1 1 auto; min-height: 0; width: min(100%, 1100px); }
.lightbox-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lightbox-stage img.is-in-next { animation: slide-next .34s var(--ease); }
.lightbox-stage img.is-in-prev { animation: slide-prev .34s var(--ease); }
@keyframes slide-next { from { opacity: 0; transform: translateX(34px); } }
@keyframes slide-prev { from { opacity: 0; transform: translateX(-34px); } }
.lightbox-figure figcaption { flex: none; max-width: 640px; padding-inline: 8px; text-align: center; color: #d6d0c7; font-size: .95rem; line-height: 1.45; }
.lightbox .icon-btn { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .25); }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .5); }
.lightbox-nav { position: absolute; inset: 50% 14px auto 14px; display: flex; justify-content: space-between; pointer-events: none; translate: 0 -50%; }
.lightbox-nav .icon-btn { pointer-events: auto; width: 52px; height: 52px; }

/* --- Стоимость --- */
.calc { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.calc-list { display: grid; gap: 10px; }
.calc-item { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: border-color var(--t-fast), background-color var(--t-fast); }
.calc-item:hover { border-color: var(--line-strong); }
.calc-item:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.check { appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 7px; border: 1.5px solid var(--line-strong); background: var(--surface-2); display: grid; place-items: center; cursor: pointer; transition: background-color var(--t-fast), border-color var(--t-fast); }
.check::after { content: ""; width: 11px; height: 6px; border-left: 2.5px solid var(--on-accent); border-bottom: 2.5px solid var(--on-accent); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check:checked { background: var(--accent); border-color: var(--accent); }
.check:checked::after { opacity: 1; }
.calc-name { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.calc-price { font-family: var(--font-display); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text-soft); }
.calc-price small { font-family: var(--font-sans); font-weight: 500; color: var(--muted); margin-right: 3px; font-size: .78rem; }
.calc-total { position: sticky; top: calc(var(--header-h) + 20px); padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-strong); }
.calc-label { font-size: .9rem; color: var(--muted); font-weight: 500; }
.calc-sum { margin: 6px 0 4px; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.calc-sum small { font-size: .5em; color: var(--accent-text); }
.calc-hint { min-height: 3em; margin-bottom: 18px; color: var(--muted); font-size: .92rem; }
.calc-note { margin-top: 14px; font-size: .8rem; color: var(--muted); line-height: 1.5; }

/* --- Этапы --- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { padding-top: 20px; border-top: 2px solid var(--accent); }
.step-num { display: block; margin-bottom: 14px; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--accent-text); }
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* --- Отзывы --- */
.rating { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 28px; }
.rating-num { font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1; letter-spacing: -.03em; }
.rating-num small { font-size: .45em; color: var(--muted); font-weight: 600; margin-left: 4px; }
.rating-meta { color: var(--text-soft); }
.reviews { position: relative; overflow: hidden; }
.reviews::before, .reviews::after { content: ""; position: absolute; top: 0; bottom: 0; width: clamp(24px, 6vw, 96px); z-index: 2; pointer-events: none; }
.reviews::before { left: 0; background: linear-gradient(90deg, var(--bg-alt), transparent); }
.reviews::after { right: 0; background: linear-gradient(270deg, var(--bg-alt), transparent); }
.reviews-track { display: flex; width: max-content; will-change: transform; animation: ticker var(--dur, 90s) linear infinite; }
.reviews:hover .reviews-track, .reviews.is-paused .reviews-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translate3d(-50%, 0, 0); } }
.reviews-set { display: flex; gap: 16px; padding-right: 16px; }
.review { flex: none; width: clamp(280px, 80vw, 380px); display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.review p { color: var(--text-soft); font-size: .96rem; line-height: 1.65; }
.review footer { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.review footer b { font-family: var(--font-display); }
.review footer span { font-size: .82rem; color: var(--muted); }
.reviews-source { margin-top: 24px; font-size: .9rem; color: var(--muted); }

/* --- FAQ --- */
.faq-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; }
.faq-layout .section-head .btn { margin-top: 26px; }
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; list-style: none; padding: 20px 52px 20px 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.02rem, 1.5vw, 1.15rem); cursor: pointer; transition: color var(--t-fast); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover, .faq[open] summary { color: var(--accent-text); }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 2px; margin-top: -1px; background: currentColor; border-radius: 2px; transition: transform var(--t) var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq[open] summary::after { transform: rotate(0); }
.faq-body { padding: 0 52px 22px 0; color: var(--muted); }

/* --- Запись --- */
.section-booking { background: radial-gradient(800px 420px at 0% 0%, var(--glow), transparent 70%), var(--bg-alt); }
.booking-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.booking-layout .section-head { margin-bottom: 0; }

.contact-list { display: grid; gap: 4px; }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-link, .contact-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; }
.contact-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; color: var(--accent-text); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); transition: background-color var(--t-fast), color var(--t-fast); }
.contact-ico .icon { width: 20px; height: 20px; }
a.contact-link:hover .contact-ico { background: var(--accent); color: var(--on-accent); }
.contact-text b { display: block; font-family: var(--font-display); font-size: 1.1rem; line-height: 1.3; }
.contact-text span { display: block; font-size: .86rem; color: var(--muted); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: clamp(22px, 4vw, 38px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-strong); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label, .field legend { padding: 0; font-size: .9rem; font-weight: 600; color: var(--text-soft); }
.field legend { margin-bottom: 10px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .8; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.field.has-error input { border-color: var(--red); }
.field-error { min-height: 1.1em; font-size: .84rem; color: var(--red); }
[data-theme="dark"] .field-error { color: #ff7d73; }
.form-result { padding: 18px 20px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); font-size: .95rem; }
.form-result[hidden] { display: none; }
.form-result b { display: block; margin-bottom: 6px; font-family: var(--font-display); font-size: 1.1rem; }
.form-result .result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.form-result.is-error { background: color-mix(in srgb, var(--red) 12%, var(--surface-2)); border-color: color-mix(in srgb, var(--red) 50%, transparent); }

/* --- Контакты --- */
.contacts-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; align-items: stretch; }
.contacts-card { padding: clamp(22px, 4vw, 36px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.contacts-card .contact-text span a { color: var(--accent-text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent-text) 40%, transparent); text-underline-offset: 3px; }
.contacts-card .contact-row .contact-text b { font-size: 1rem; }
.contacts-card .contact-text span { font-size: .95rem; color: var(--text-soft); }
.pay { margin-top: 18px; padding-top: 20px; border-top: 1px dashed var(--line-strong); }
.pay > p { margin-bottom: 10px; font-size: .9rem; font-weight: 600; color: var(--text-soft); }
.pay .chip { cursor: default; font-size: .86rem; padding: 7px 14px; }
.pay .chip:hover { border-color: var(--line-strong); color: var(--text-soft); }
.contacts-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.map { position: relative; min-height: 440px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.map.is-active iframe { pointer-events: auto; }
.map-hint { position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); font-size: .82rem; color: var(--text-soft); pointer-events: none; }
.map.is-active .map-hint { display: none; }
.map-cover { position: absolute; inset: 0; z-index: 1; }
.map.is-active .map-cover { display: none; }

/* --- Подвал --- */
.site-footer { padding: clamp(48px, 7vw, 80px) 0 28px; background: var(--bg-alt); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.footer-brand p { margin-top: 16px; max-width: 320px; color: var(--muted); font-size: .92rem; }
.site-footer h3 { margin-bottom: 16px; font-family: var(--font-sans); font-size: .92rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.footer-nav ul, .footer-contacts ul { display: grid; gap: 10px; font-size: .94rem; color: var(--text-soft); }
.footer-nav a:hover, .footer-contacts a:hover { color: var(--accent-text); }
.dev-logo { display: inline-block; max-width: 210px; }
.dev-logo img { width: 100%; height: auto; }
.dev-logo-light { display: none; }
[data-theme="light"] .dev-logo-dark { display: none; }
[data-theme="light"] .dev-logo-light { display: block; }
.footer-bottom { margin-top: clamp(32px, 5vw, 56px); padding-top: 22px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }

/* --- Плавающие элементы --- */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--on-accent); background: var(--accent); box-shadow: var(--shadow); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity var(--t), transform var(--t) var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.mobile-bar-call { display: none; }

/* --- Адаптив --- */
@media (max-width: 1100px) {
  .header-phone span { display: none; }
  .header-phone { width: 44px; height: 44px; justify-content: center; border-radius: 50%; border: 1px solid var(--line-strong); margin-right: 0; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .modal-body .gallery { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  :root { --header-h: 64px; }
  .burger { display: inline-grid; }
  .header-cta, .header-phone { display: none; }
  .header-inner { gap: 12px; }
  .header-actions { margin-left: auto; }

  /* Мобильное меню: панель под шапкой, анимируются только opacity и transform */
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0; z-index: 99;
    display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
    padding: 8px var(--gutter) max(24px, env(safe-area-inset-bottom));
    background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .22s ease, transform .28s var(--ease), visibility 0s linear .28s;
  }
  body.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  body.nav-open { overflow: hidden; }
  .site-header { border-bottom-color: var(--line); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { display: flex; align-items: center; justify-content: space-between; padding: 18px 2px; font-family: var(--font-display); font-size: clamp(1.4rem, 5.6vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; color: var(--text); border-radius: 0; background: none; }
  .main-nav a:hover { background: none; }
  .main-nav a.is-current { color: var(--accent-text); }
  .nav-extra { display: grid; gap: 12px; }
  .nav-extra .btn { justify-content: center; width: 100%; padding: 15px 22px; border-radius: 999px; font-family: var(--font-sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
  .nav-extra .btn-primary { background: var(--accent); color: var(--on-accent); }
  .nav-extra .btn-ghost { color: var(--text); border: 1px solid var(--line-strong); }
  .nav-extra-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { width: min(80%, 380px); margin-top: 20px; }
  .services-feature { grid-template-columns: 1fr 1fr; }
  .services-feature .service-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.2fr; }
  .services-feature .service-card:last-child figure { aspect-ratio: auto; height: 100%; }
  .services-list { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .calc, .faq-layout, .booking-layout, .contacts-layout { grid-template-columns: minmax(0, 1fr); }
  .calc-total, .faq-layout .section-head { position: static; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .map { min-height: 360px; }
}

@media (max-width: 640px) {
  .services-feature { grid-template-columns: minmax(0, 1fr); }
  .services-feature .service-card:last-child { display: flex; }
  .services-feature .service-card:last-child figure { aspect-ratio: 4 / 3.4; height: auto; }
  .why-grid, .steps, .form { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .hero-visual { width: min(84%, 340px); }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-item { border-radius: 12px; }
  .gallery-more .btn { width: 100%; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 1.3rem; }
  .service-row { grid-template-columns: 1fr; }
  .service-row .service-side { grid-column: 1; grid-row: auto; flex-direction: row; align-items: center; justify-content: space-between; margin-top: 8px; }
  .service-foot .link-btn { padding: 10px 0; }

  .modal { padding: 0; place-items: stretch; }
  .modal-panel { width: 100%; height: 100vh; height: 100dvh; border-radius: 0; border: 0; }
  .modal-head { padding: max(12px, env(safe-area-inset-top)) 16px 12px; }
  .modal-head h2 { font-size: 1.25rem; }
  .modal-filters { padding: 10px 0; }
  .modal-filters .chips { flex-wrap: nowrap; overflow-x: auto; padding: 2px 16px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 28px), transparent); }
  .modal-filters .chips::-webkit-scrollbar { display: none; }
  .modal-filters .chip { flex: none; scroll-snap-align: center; padding: 10px 16px; }
  .modal-body { padding: 14px 16px calc(24px + env(safe-area-inset-bottom)); }
  .modal-body .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .lightbox { padding-inline: 10px; }
  .lightbox-figure { padding-bottom: 76px; }
  .lightbox-nav { inset: auto 0 max(14px, env(safe-area-inset-bottom)) 0; translate: none; justify-content: center; gap: 24px; }
  .lightbox-figure figcaption { font-size: .9rem; }

  .contacts-actions .btn { flex: 1 1 100%; }
  .map { min-height: 320px; }
  .review { padding: 22px; }

  .mobile-bar-call { position: fixed; left: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 700; color: var(--on-accent); background: var(--accent); box-shadow: var(--shadow); transform: translateY(90px); transition: transform var(--t) var(--ease); }
  .mobile-bar-call.is-visible { transform: none; }
}

@media (max-width: 380px) {
  .service-card .service-body { padding: 18px; }
  .calc-item { padding: 14px; gap: 12px; }
  .calc-total { padding: 22px; }
}

/* Режим «уменьшить анимацию»: отзывы листаются вручную */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reviews { overflow-x: auto; }
  .reviews-track { animation: none; }
  .reviews::before, .reviews::after { display: none; }
  .modal, .modal-panel, .lightbox, .lightbox-stage img { animation: none !important; }
}
