/*
 * Стиль по мотивам new-house22.ru (выбор пользователя 01.11.2026): фото на весь
 * первый экран, лёгкий гротеск Inter Tight, полупрозрачные карточки поверх фото,
 * оливковые кнопки-капсулы, светлый фон, крупные скругления.
 * Скругления: карточки 28px, плитки внутри 20px, всё интерактивное капсулой.
 */
@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/inter-tight-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/inter-tight-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20B8, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f7f7f2;
  --panel: #ededE6;
  --panel-2: #e3e3da;
  --card: #ffffff;
  --ink: #26282a;
  --ink-soft: #575b5e;
  --ink-mute: #85898c;
  --line: #dcdcd2;
  --accent: #d3dea0;
  --accent-hover: #c6d48a;
  --accent-ink: #23280f;
  --dark: #2b2e2c;
  --dark-hover: #3a3e3b;
  --on-dark: #f3f4ee;
  --glass: rgba(255, 255, 255, 0.16);
  --glass-line: rgba(255, 255, 255, 0.32);
  --r-card: 28px;
  --r-tile: 20px;
  --wrap: 1392px;
  --gutter: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171918;
    --panel: #212422;
    --panel-2: #2a2d2b;
    --card: #1d201e;
    --ink: #eceee8;
    --ink-soft: #b5b9b3;
    --ink-mute: #8b8f8a;
    --line: #313532;
    --dark: #eceee8;
    --dark-hover: #ffffff;
    --on-dark: #1b1d1c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: 84px; /* нижняя панель на телефоне */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.03em; text-wrap: balance; }
h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.02; }
h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; letter-spacing: -0.025em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 999px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
@media (max-width: 600px) { :root { --gutter: 16px; } }
.section { padding-block: clamp(64px, 9vw, 120px); }
.lead-muted { color: var(--ink-soft); max-width: 46ch; }
.tag { display: inline-flex; justify-self: start; align-self: start; padding: 6px 14px; border-radius: 999px; background: var(--panel); color: var(--ink-soft); font-size: 14px; }
.head { display: grid; gap: 20px; margin-bottom: 40px; }

/* Кнопки-капсулы: подпись + круг со стрелкой, как в образце */
.cta { display: inline-flex; align-items: stretch; gap: 4px; text-decoration: none; }
.cta span, .cta i {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; border-radius: 999px; font-style: normal;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.cta span { padding: 0 28px; gap: 10px; font-weight: 500; font-size: 17px; white-space: nowrap; }
.cta i { width: 60px; flex: none; }
.cta svg { width: 22px; height: 22px; }
.cta:hover i { transform: rotate(45deg); }
.cta:active span, .cta:active i { transform: scale(0.98); }
.cta-call span, .cta-call i { background: var(--accent); color: var(--accent-ink); }
.cta-call:hover span, .cta-call:hover i { background: var(--accent-hover); }
.cta-wa span, .cta-wa i { background: var(--dark); color: var(--on-dark); }
.cta-wa:hover span, .cta-wa:hover i { background: var(--dark-hover); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (prefers-reduced-motion: reduce) { .cta span, .cta i { transition: none; } .cta:hover i { transform: none; } }

/* Стекло (веб-приближение, не Apple Liquid Glass) */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #fff;
}
@media (prefers-reduced-transparency: reduce) { .glass { background: rgba(38, 40, 42, 0.86); backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* Первый экран */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; border-radius: 0 0 var(--r-card) var(--r-card); }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,22,21,.55) 0%, rgba(20,22,21,.15) 35%, rgba(20,22,21,.72) 100%); }
.hero-inner { display: grid; grid-template-rows: auto 1fr; min-height: min(100dvh, 900px); padding-block: 20px 28px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.logo svg { width: 30px; height: 30px; }
.nav-links { display: none; gap: 6px; }
.nav-links a { padding: 9px 16px; border-radius: 999px; font-size: 14px; text-decoration: none; }
.nav-links a:hover { background: rgba(255,255,255,.28); }
.nav-phone { padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--accent-ink); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
@media (min-width: 1000px) { .nav-links { display: flex; } }
.hero-body { display: grid; gap: 28px; align-content: end; padding-top: 72px; }
@media (min-width: 1000px) { .hero-body { grid-template-columns: 1fr 460px; align-items: end; } }
.hero h1 { font-size: clamp(36px, 4.4vw, 62px); line-height: 1.04; letter-spacing: -0.028em; }
.hero h1 .dim { color: rgba(255, 255, 255, 0.62); }
.hero .sub { margin: 20px 0 28px; font-size: clamp(17px, 1.4vw, 20px); color: rgba(255,255,255,.86); max-width: 34ch; }
.hero-copy { animation: rise .9s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-copy { animation: none; } }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { border-radius: var(--r-tile); padding: 18px 20px; display: grid; gap: 4px; align-content: end; min-height: 128px; }
.tile b { font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; }
.tile small { font-size: 14px; color: rgba(255,255,255,.82); }
.tile-photo { grid-column: 1 / -1; position: relative; overflow: hidden; padding: 0; min-height: 150px; display: grid; grid-template-columns: 1fr 1fr; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; margin: 4px; height: calc(100% - 8px); }
.tile-photo div { padding: 18px 20px; display: grid; align-content: space-between; gap: 12px; }
.tile-photo a { display: flex; justify-content: space-between; align-items: center; text-decoration: none; border-top: 1px solid var(--glass-line); padding-top: 12px; font-size: 15px; }
.tile-photo a svg { width: 18px; height: 18px; }
@media (max-width: 999px) { .tile-photo { display: none; } }

/* Главные услуги: большая карточка, фото слева, текст справа */
.feature { display: grid; gap: 4px; background: var(--panel); border-radius: var(--r-card); padding: 4px; }
.feature + .feature { margin-top: 16px; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; } }
.feature img { border-radius: 24px; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-body { padding: clamp(20px, 3vw, 36px); display: grid; gap: 18px; grid-template-rows: auto auto 1fr auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--panel-2); color: var(--ink-soft); font-size: 14px; }
.feature-body p { color: var(--ink-soft); max-width: 46ch; align-self: end; }
.feature-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; }
.price { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

/* Остальные услуги: 4 плитки */
.svc { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 640px) { .svc { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .svc { grid-template-columns: repeat(4, 1fr); } }
.svc article { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-tile); padding: 22px; display: grid; gap: 10px; grid-template-rows: auto auto 1fr auto; }
.svc h3 { font-size: 21px; }
.svc .price { font-size: 26px; }
.svc p { color: var(--ink-soft); font-size: 15px; }
.svc a { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--panel); text-decoration: none; font-size: 15px; font-weight: 500; }
.svc a:hover { background: var(--panel-2); }
.svc a svg { width: 18px; height: 18px; }

/* Шаги: одна широкая плашка оливкового цвета */
.steps-panel { background: var(--accent); color: var(--accent-ink); border-radius: var(--r-card); padding: clamp(28px, 4vw, 56px); display: grid; gap: 40px; }
.steps-panel h2 { max-width: 14ch; }
.steps { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; display: grid; gap: 10px; align-content: start; border-top: 1px solid rgba(35, 40, 15, 0.25); padding-top: 18px; }
.steps li::before { content: counter(s); font-size: 15px; opacity: .6; }
.steps h3 { font-size: 22px; }
.steps p { font-size: 15px; opacity: .82; }

/* Стационар: мозаика из 5 фото */
.mosaic { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--r-tile); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .6s var(--ease); }
.mosaic figure:hover img { transform: scale(1.03); }
.mosaic figure:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .mosaic figure:first-child { grid-column: 1; grid-row: 1 / 3; }
  .mosaic figure:first-child img { aspect-ratio: auto; }
}
.mosaic figcaption { padding: 10px 4px 0; font-size: 14px; color: var(--ink-mute); }
@media (prefers-reduced-motion: reduce) { .mosaic img { transition: none; } .mosaic figure:hover img { transform: none; } }

/* Лицензия и гарантии */
.proof { display: grid; gap: 16px; }
@media (min-width: 1000px) { .proof { grid-template-columns: 1.1fr 1fr; } }
.proof-facts { background: var(--panel); border-radius: var(--r-card); padding: clamp(24px, 3.4vw, 44px); display: grid; gap: 28px; align-content: start; }
.facts { display: grid; gap: 22px; margin: 0; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts dt { font-size: 20px; letter-spacing: -0.02em; }
.facts dd { margin: 6px 0 0; color: var(--ink-soft); font-size: 15px; }
.scans { background: var(--panel); border-radius: var(--r-card); padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.scans a { background: #fff; border-radius: 24px; padding: 18px; display: grid; gap: 12px; text-decoration: none; color: #26282a; font-size: 14px; }
.scans img { border-radius: 8px; box-shadow: 0 6px 24px rgba(60, 64, 40, 0.12); }

/* Вопросы */
.faq { display: grid; gap: 8px; max-width: 980px; }
.faq details { background: var(--panel); border-radius: var(--r-tile); padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 19px; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; transition: transform .3s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--ink-soft); max-width: 70ch; }

/* Финал: фото с оверлеем */
.final { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-card); color: #fff; padding: clamp(32px, 6vw, 80px) clamp(24px, 4vw, 56px); display: grid; gap: 28px; }
.final img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,22,21,.82), rgba(20,22,21,.35)); }
.final h2 { max-width: 16ch; }
.final p { color: rgba(255,255,255,.84); max-width: 44ch; }
.final address { font-style: normal; font-size: 15px; color: rgba(255,255,255,.8); }

/* Подвал */
.foot { padding-block: 40px 48px; color: var(--ink-mute); font-size: 14px; display: grid; gap: 12px; }
.foot .warn { color: var(--ink); font-size: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Нижняя панель на телефоне */
.dock { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.dock a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 16px; }
.dock svg { width: 20px; height: 20px; }
.dock .d-call { background: var(--accent); color: var(--accent-ink); }
.dock .d-wa { background: var(--dark); color: var(--on-dark); }
@media (min-width: 900px) { .dock { display: none; } }

/* Текстовые страницы */
.doc { max-width: 760px; padding-block: 48px 72px; display: grid; gap: 16px; }
.doc h1 { font-size: 44px; line-height: 1.05; }
.doc h2 { font-size: 26px; margin-top: 12px; }
.doc p { color: var(--ink-soft); }
.doc-top { background: var(--dark); color: var(--on-dark); }
.doc-top .nav { padding-block: 18px; }

/* Страница «Срочный выезд»: лицензия и номер на первом экране */
.license-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-size: 14px; text-decoration: none; margin-bottom: 20px; }
.license-badge svg { width: 18px; height: 18px; }
.big-phone { display: block; margin: -8px 0 22px; font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -0.03em; text-decoration: none; color: #fff; font-variant-numeric: tabular-nums; }
.license-card { background: #fff; color: #26282a; border-radius: var(--r-card); padding: 8px; display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; }
.license-card img { border-radius: 18px; border: 1px solid #e3e3da; }
.license-card div { display: grid; gap: 6px; padding-right: 12px; }
.license-card b { font-weight: 500; font-size: 18px; letter-spacing: -0.02em; }
.license-card span { font-size: 14px; color: #575b5e; }
@media (max-width: 999px) { .license-card { grid-template-columns: 110px 1fr; } }
.pricelist { display: grid; gap: 8px; }
@media (min-width: 700px) { .pricelist { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pricelist { grid-template-columns: repeat(5, 1fr); } }
.pricelist div { background: var(--panel); border-radius: var(--r-tile); padding: 20px 22px; display: grid; gap: 14px; align-content: space-between; min-height: 130px; }
.pricelist span { color: var(--ink-soft); font-size: 15px; }
.pricelist b { font-weight: 400; font-size: 26px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.alert { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 18px 22px; border-radius: var(--r-tile); background: var(--accent); color: var(--accent-ink); font-size: 16px; }
.alert svg { width: 24px; height: 24px; flex: none; }
