/* «Перфекционист Pro» — реставрация полов, дверей и мебели.
   Палитра: зелёное сукно реставрационного стола, латунь фурнитуры, дерево на рисунках. */

:root {
  --felt: #1E3B33;
  --felt-2: #27493F;
  --felt-3: #35594E;
  --paper: #F5F6F2;
  --paper-2: #E8ECE5;
  --ink: #17302A;
  --ink-2: #4B5E57;
  --line: #CCD5CD;
  --brass: #D9A94F;
  --brass-2: #ECC06E;
  --brass-ink: #8A6420;
  --mark: #C08A2E;
  --on-felt: #EEF2EC;
  --on-felt-2: #B5C6BD;
  --felt-line: rgba(238, 242, 236, .16);

  --serif: 'Piazzolla', Georgia, 'Times New Roman', serif;
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font: 400 17px/1.6 var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(38px, 5.2vw, 66px); line-height: 1.03; font-weight: 650; }
h2 { font-size: clamp(30px, 3.5vw, 44px); line-height: 1.08; }
h3 { font-size: 22px; line-height: 1.25; }
h4 { font-size: 20px; line-height: 1.25; }

:focus-visible { outline: 3px solid var(--brass-2); outline-offset: 3px; border-radius: 2px; }

.sr {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  padding: 10px 16px; background: var(--brass); color: var(--ink); font-weight: 600; border-radius: var(--r);
}
.skip:focus { top: 12px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

.dark { background: var(--felt); color: var(--on-felt); }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: var(--r);
  font: 600 16px/1.15 var(--sans); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }

.btn-call { background: var(--brass); color: var(--ink); }
.btn-call:hover { background: var(--brass-2); }

.btn-line { border-color: currentColor; background: transparent; }
.btn-line:hover { background: rgba(23, 48, 42, .06); }

.btn-msg { border-color: var(--felt-line); color: var(--on-felt); background: rgba(238, 242, 236, .04); }
.btn-msg:hover { border-color: var(--on-felt-2); background: rgba(238, 242, 236, .1); }

.btn-big { min-height: 64px; padding: 0 26px; gap: 14px; }
.btn-big svg { width: 24px; height: 24px; }
.btn-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.btn-sub { font-weight: 500; font-size: 15px; opacity: .8; }

/* ---------- шапка ---------- */

.top { position: relative; z-index: 20; border-bottom: 1px solid var(--felt-line); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 78px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-mark { width: 42px; height: 42px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 650 23px/1.05 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.brand-pro {
  display: inline-block; margin-left: 7px; padding: 2px 5px 1px; vertical-align: 3px;
  border: 1.2px solid var(--brass); border-radius: 3px; color: var(--brass-2);
  font: 600 11px/1.1 var(--sans); letter-spacing: .02em;
}
.brand-sub { font-size: 13px; color: var(--on-felt-2); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .drop > summary {
  display: block; padding: 10px 12px; border-radius: var(--r);
  font-weight: 500; font-size: 16px; text-decoration: none; cursor: pointer;
}
.nav > a:hover, .drop > summary:hover { background: rgba(238, 242, 236, .08); }

.drop > summary { list-style: none; display: flex; align-items: center; gap: 6px; }
.drop > summary::-webkit-details-marker { display: none; }
.drop > summary::after {
  content: ''; width: 7px; height: 7px; margin-top: -4px;
  border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg);
  transition: transform .15s;
}
.drop[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  width: min(1200px, 100% - 48px); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr 1.1fr; gap: 28px;
  padding: 28px; background: var(--paper); color: var(--ink);
  border-radius: 0 0 10px 10px; box-shadow: 0 24px 48px rgba(10, 26, 22, .28);
}
.mega-title { font: 600 21px/1.2 var(--serif); margin-bottom: 10px; }
.mega-intro p:not(.mega-title) { color: var(--ink-2); font-size: 15px; }
.mega-card { border-radius: 8px; padding: 22px; font-size: 15px; }
.mega-card p { color: var(--on-felt-2); }
.mega-card-title { font: 600 19px/1.2 var(--serif); color: var(--on-felt) !important; margin-bottom: 8px; }

.svc-label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.svc-list { display: grid; gap: 6px; }
.svc-link {
  display: flex; align-items: center; gap: 12px; padding: 8px; margin: 0 -8px;
  border-radius: var(--r); text-decoration: none;
}
.svc-link:hover, .svc-link[aria-current="page"] { background: var(--paper-2); }
.svc-pic { flex: none; width: 66px; height: 44px; border-radius: 4px; background: var(--paper-2); color: var(--ink); }
.svc-link:hover .svc-pic, .svc-link[aria-current="page"] .svc-pic { background: var(--paper); }
.svc-pic .pic { width: 100%; height: 100%; }
.svc-txt { display: flex; flex-direction: column; line-height: 1.25; }
.svc-name { font-weight: 600; font-size: 15px; }
.svc-hint { font-size: 13px; color: var(--ink-2); }

.top-call {
  display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none;
}
.top-call-ico {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brass); color: var(--ink);
}
.top-call-ico svg { width: 18px; height: 18px; }
.top-call-txt { display: flex; flex-direction: column; line-height: 1.2; font-weight: 600; font-size: 17px; white-space: nowrap; }
.top-call-txt small { font-weight: 400; font-size: 13px; color: var(--on-felt-2); }
.top-call:hover .top-call-ico { background: var(--brass-2); }

.menu { display: none; }

/* ---------- рисунки услуг ---------- */

.pic .ln { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.pic .fill-paper { fill: var(--paper-2); }
.pic .mk { fill: none; stroke: var(--mark); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- первый экран ---------- */

.hero { padding: 56px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: start; }
.hero-text { padding-top: 22px; }
.hero h1 { margin-bottom: 24px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--on-felt-2); max-width: 34em; margin-bottom: 32px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-bottom: 32px; }
.msg { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.msg-label { font-size: 15px; color: var(--on-felt-2); width: 100%; }

.facts { display: grid; gap: 10px; font-size: 16px; color: var(--on-felt-2); }
.facts li { display: flex; gap: 12px; align-items: baseline; }
.facts li::before {
  content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--brass); transform: translateY(-1px);
}

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--on-felt-2); margin-bottom: 18px; }
.crumbs li + li::before { content: '/'; margin-right: 8px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--on-felt); text-decoration: underline; }

/* ---------- «до и после» ---------- */

.ba { --pos: 50%; }
.ba-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.ba-tabs button {
  padding: 9px 16px; border: 0; border-radius: var(--r); background: transparent;
  color: var(--on-felt-2); font-weight: 500; font-size: 15px; cursor: pointer;
}
.ba-tabs button:hover { color: var(--on-felt); background: rgba(238, 242, 236, .07); }
.ba-tabs button[aria-selected="true"] { color: var(--ink); background: var(--on-felt); }

.ba-stage {
  position: relative; aspect-ratio: 5 / 4; overflow: hidden;
  border-radius: 8px; background: #6F5236; isolation: isolate;
  box-shadow: 0 30px 60px -30px rgba(5, 18, 14, .7);
}
.ba-scene, .ba-after, .ba-before { position: absolute; inset: 0; }
.ba-scene[hidden] { display: none; }
.ba-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before img:first-child { filter: saturate(.42) brightness(1.07) contrast(.86) sepia(.14); }
.ba-after img:first-child { filter: saturate(1.06) contrast(1.05) brightness(.97); }

.ba-tag {
  position: absolute; top: 14px; z-index: 2; padding: 5px 11px; border-radius: 4px;
  background: rgba(23, 48, 42, .82); color: var(--on-felt); font-size: 14px; font-weight: 500;
  pointer-events: none;
}
.ba-tag-before { left: 14px; }
.ba-tag-after { right: 14px; }

.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3; width: 2px; margin-left: -1px;
  background: var(--brass-2); pointer-events: none;
  box-shadow: 0 0 0 1px rgba(23, 48, 42, .25);
}
.ba-handle::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: var(--felt) no-repeat center / 26px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 14'%3E%3Cpath d='M8 1 2 7l6 6M18 1l6 6-6 6' fill='none' stroke='%23ECC06E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  border: 2px solid var(--brass-2);
  box-shadow: 0 6px 16px rgba(5, 18, 14, .45);
}
.ba-stage:has(.ba-range:focus-visible) .ba-handle::after { outline: 3px solid var(--on-felt); outline-offset: 3px; }

.ba-range {
  position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; touch-action: pan-y;
  -webkit-appearance: none; appearance: none; background: transparent;
}
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 600px; }
.ba-range::-moz-range-thumb { width: 56px; height: 600px; border: 0; }

.ba-note { margin-top: 12px; font-size: 14px; color: var(--on-felt-2); max-width: 46em; }

/* ---------- разделы ---------- */

.section { padding: 96px 0; }
.band { background: var(--paper-2); }
.section-head { max-width: 46em; margin-bottom: 44px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 18px; color: var(--ink-2); margin: 0; }

/* Что ремонтируем */
.svc-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.svc-group-title { font-size: 28px; padding-bottom: 14px; margin-bottom: 22px; border-bottom: 1.5px solid var(--ink); }
.works { display: grid; gap: 30px; }
.work { display: block; text-decoration: none; }
.work-pic { display: block; aspect-ratio: 16 / 9; border-radius: var(--r); background: var(--paper-2); color: var(--ink); padding: 6%; transition: background-color .15s; }
.work-pic .pic { width: 100%; height: 100%; }
.work:hover .work-pic { background: #DCE2DA; }
.work-name { margin: 16px 0 6px; font-size: 21px; }
.work:hover .work-name { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.work p { margin: 0; color: var(--ink-2); font-size: 16px; }
.band .work-pic { background: var(--paper); }
.band .work:hover .work-pic { background: #FBFBF9; }

.works-compact { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 24px; }
.works-compact .work-name { font-size: 18px; margin-top: 12px; }

/* Каталог повреждений */
.defects { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 20px; }
.defects img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 4px; margin-bottom: 12px; }
.defect-name { font-weight: 600; margin: 0 0 2px; }
.defect-where { font-size: 14px; color: var(--ink-2); margin: 0; }

/* Пришлите фото */
.cta-photo .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.cta-photo h2 { margin-bottom: 18px; }
.cta-photo-text > p { color: var(--ink-2); font-size: 18px; max-width: 34em; }
.cta-photo-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.cta-photo-call { font-size: 16px; color: var(--ink-2); margin: 0; }
.cta-photo-call a { color: var(--ink); font-weight: 600; }

.chat { max-width: 380px; justify-self: center; width: 100%; border-radius: 22px; padding: 10px; box-shadow: 0 30px 60px -28px rgba(5, 18, 14, .55); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 14px; font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--felt-line); }
.chat-head svg { width: 28px; height: 28px; }
.chat-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 6px 6px; }
.bubble { max-width: 84%; margin: 0; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.4; }
.bubble.out { align-self: flex-end; background: var(--brass); color: var(--ink); border-bottom-right-radius: 5px; }
.bubble.in { align-self: flex-start; background: var(--felt-3); border-bottom-left-radius: 5px; }
.bubble-photo { padding: 5px; width: 62%; }
.bubble-photo img { width: 100%; height: auto; border-radius: 12px; }

/* Ремонт или замена */
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.choice-col { padding: 32px; border-radius: 10px; background: var(--paper); }
.choice-col h3 { font-size: 24px; margin-bottom: 20px; }
.choice-col li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.choice-col li:last-child { margin-bottom: 0; }
.choice-col li::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; background: no-repeat center / contain; }
.choice-yes li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%23D9A94F'/%3E%3Cpath d='m5.5 10.3 3 3 6-6.3' fill='none' stroke='%2317302A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.choice-no { background: transparent; border: 1.5px solid var(--line); }
.choice-no li { color: var(--ink-2); }
.choice-no li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.2' fill='none' stroke='%234B5E57' stroke-width='1.6'/%3E%3Cpath d='m7 7 6 6m0-6-6 6' stroke='%234B5E57' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* Цены и опросник */
.price .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.price h2 { margin-bottom: 18px; }
.price-promise { font: 600 24px/1.3 var(--serif); color: var(--brass-2); max-width: 22em; }
.price .intro { color: var(--on-felt-2); max-width: 34em; }
.price h3 { margin: 32px 0 14px; font-size: 20px; }
.factors { display: grid; gap: 10px; color: var(--on-felt-2); }
.factors li { display: flex; gap: 12px; align-items: baseline; }
.factors li::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--brass); transform: translateY(-1px); }

.quiz { background: var(--paper); color: var(--ink); border-radius: 12px; padding: 30px; }
.quiz-title { font: 600 26px/1.15 var(--serif); margin-bottom: 18px; }
.quiz-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.quiz-steps li.is-cur { color: var(--ink); font-weight: 600; }
.quiz-steps li.is-done { color: var(--brass-ink); }
.quiz-bar { height: 4px; border-radius: 2px; background: var(--paper-2); overflow: hidden; margin-bottom: 18px; }
.quiz-bar span { display: block; height: 100%; width: 20%; background: var(--brass); transition: width .25s; }
.quiz-count { font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.quiz-q { font: 600 21px/1.25 var(--serif); margin-bottom: 16px; }
.quiz-q:focus { outline: none; }
.opts { display: grid; gap: 8px; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left;
  border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; font-size: 16px;
}
.opt:hover { border-color: var(--ink); }
.opt-dot { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ink-2); }
.opt.is-picked { border-color: var(--brass-ink); background: #FBF4E4; }
.opt.is-picked .opt-dot { border: 5px solid var(--brass-ink); }
.quiz-summary { display: grid; gap: 4px; margin-bottom: 14px; font-size: 16px; }
.quiz-summary li { padding-left: 16px; position: relative; }
.quiz-summary li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.quiz-note { font-size: 15px; color: var(--ink-2); }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.quiz-back, .quiz-restart {
  margin-top: 14px; padding: 6px 0; border: 0; background: none; cursor: pointer;
  color: var(--ink-2); font-size: 15px; text-decoration: underline; text-underline-offset: 3px;
}
.quiz-back:hover, .quiz-restart:hover { color: var(--ink); }
.quiz-fallback { display: none; }
html:not(.js) .quiz { display: none; }
html:not(.js) .quiz-fallback { display: block; }

/* Как проходит работа: настоящая последовательность, поэтому с номерами */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 1.5px solid var(--ink); }
.steps li::before { content: counter(step); display: block; font: 600 44px/1 var(--serif); color: var(--brass-ink); margin-bottom: 18px; }
.steps h3 { font-size: 20px; margin-bottom: 10px; }
.steps p { color: var(--ink-2); font-size: 16px; margin: 0; }

/* Где работаем */
.areas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.areas-grid h3 { margin-bottom: 10px; }
.areas-grid p { color: var(--ink-2); margin: 0; max-width: 36em; }

/* Вопросы */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 64px; align-items: start; }
.faq-aside h2 { margin-bottom: 16px; }
.faq-aside p { color: var(--ink-2); margin-bottom: 24px; }
.faq details { border-bottom: 1.5px solid var(--line); }
.faq details:first-child { border-top: 1.5px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 20px 0; font: 600 20px/1.3 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line);
  background: no-repeat center / 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%2317302A' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
.faq details[open] summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 6h10' stroke='%2317302A' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.faq summary:hover::after { border-color: var(--ink); }
.faq details p { padding: 0 52px 22px 0; margin: 0; color: var(--ink-2); max-width: 44em; }

/* Страница услуги */
.dolist { columns: 2; column-gap: 48px; }
.dolist li { break-inside: avoid; position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--line); }
.dolist li::before { content: ''; position: absolute; left: 0; top: 18px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--mark); }
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.types li { padding: 26px; border-radius: 10px; background: var(--paper); }
.types h3 { font-size: 21px; margin-bottom: 10px; }
.types p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ---------- подвал ---------- */

.contacts { padding: 88px 0 40px; }
.foot-cta { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: end; padding-bottom: 48px; border-bottom: 1px solid var(--felt-line); }
.foot-cta h2 { margin-bottom: 14px; }
.foot-cta p { color: var(--on-felt-2); margin: 0; max-width: 36em; }
.foot-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 32px; padding: 40px 0; }
.foot-label { font-size: 14px; color: var(--on-felt-2); margin-bottom: 12px; }
.foot-links { display: grid; gap: 8px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover, .foot-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }
.contact-facts { margin: 0; display: grid; gap: 18px; }
.contact-facts dt { font-size: 14px; color: var(--on-felt-2); margin-bottom: 4px; }
.contact-facts dd { margin: 0; }
.foot-phone {
  display: block; width: fit-content; text-decoration: none; color: var(--brass-2);
  font: 600 clamp(40px, 8.4vw, 116px)/1 var(--serif); letter-spacing: -.02em; white-space: nowrap;
  padding: 12px 0 36px;
}
.foot-phone:hover { color: var(--on-felt); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; border-top: 1px solid var(--felt-line); font-size: 14px; color: var(--on-felt-2); }

.callbar { display: none; }

/* ---------- 404 ---------- */

.notfound { padding: 56px 0 96px; }
.nf-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.nf-art { width: 100%; height: auto; margin-bottom: 28px; color: var(--on-felt-2); }
.nf-art .ln { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; opacity: .55; }
.nf-art .nf-gap { fill: rgba(5, 18, 14, .35); stroke: var(--brass-2); stroke-width: 1.6; stroke-dasharray: 6 5; }
.nf-art .mk { fill: none; stroke: var(--brass-2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.nf-code { color: var(--brass-2); font-weight: 600; margin-bottom: 8px; }
.notfound h1 { margin-bottom: 18px; }
.notfound .wrap > div > p:not(.nf-code) { color: var(--on-felt-2); font-size: 18px; max-width: 32em; margin-bottom: 28px; }
.nf-links { display: grid; gap: 26px; background: var(--paper); color: var(--ink); padding: 28px; border-radius: 12px; }

/* ---------- планшет ---------- */

@media (max-width: 1100px) {
  .nav > a { display: none; }
  .mega { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega-intro, .mega-card { grid-column: span 3; }
  .mega-intro { display: flex; align-items: center; gap: 20px; }
  .mega-intro p { margin: 0; }
  .mega-card { display: none; }
  .defects { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-facts { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { padding-top: 0; }
  .svc-groups { grid-template-columns: 1fr; gap: 56px; }
  .svc-group .works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .cta-photo .wrap, .price .wrap, .faq-grid, .nf-grid { grid-template-columns: 1fr; gap: 44px; }
  .foot-cta { grid-template-columns: 1fr; }
}

/* ---------- телефон ---------- */

@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .wrap { width: calc(100% - 32px); }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head p { font-size: 17px; }

  .top .wrap { min-height: 64px; gap: 12px; }
  .nav, .top-call-txt { display: none; }
  .top-call { margin-left: auto; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 19px; }
  .brand-pro { margin-left: 5px; font-size: 10px; }
  .brand-sub { font-size: 12px; }

  .menu { display: block; }
  .menu > summary {
    list-style: none; cursor: pointer; padding: 9px 14px; border-radius: var(--r);
    border: 1.5px solid var(--felt-line); font-weight: 600; font-size: 15px;
  }
  .menu > summary::-webkit-details-marker { display: none; }
  .menu-close-txt, .menu[open] .menu-open-txt { display: none; }
  .menu[open] .menu-close-txt { display: inline; }
  .menu-panel {
    position: fixed; left: 0; right: 0; bottom: 0; top: 64px; z-index: 30; overflow-y: auto;
    background: var(--paper); color: var(--ink); padding: 20px 16px 28px;
    display: flex; flex-direction: column; gap: 24px;
  }
  .menu-nav { display: grid; gap: 22px; }
  .menu-sections { display: grid; gap: 2px; margin-top: -8px; }
  .menu-sections a { padding: 10px 0; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
  .menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .menu-actions .btn-msg { color: var(--ink); border-color: var(--ink); }
  html.menu-open { overflow: hidden; }

  .hero { padding: 32px 0 56px; }
  /* На телефоне «до и после» сразу под первым абзацем: кнопки связи и так есть в нижней панели */
  .hero .wrap { display: flex; flex-direction: column; gap: 0; }
  .hero-text { display: contents; }
  .hero h1 { order: 1; margin-bottom: 18px; }
  .hero .crumbs { order: 0; }
  .hero .lead { order: 2; }
  .hero .ba { order: 3; margin-bottom: 32px; }
  .hero .actions { order: 4; }
  .hero .facts { order: 5; }
  .lead { font-size: 17px; margin-bottom: 26px; }
  .actions { gap: 16px; }
  .actions .btn-big { width: 100%; justify-content: flex-start; }
  .msg .btn { flex: 1; }
  .ba-stage { aspect-ratio: 4 / 3.4; border-radius: 6px; }
  .ba-tabs button { flex: 1; padding: 9px 8px; }

  .svc-group .works { gap: 20px 14px; }
  .work-name { font-size: 18px; margin-top: 12px; }
  .work p { font-size: 15px; }
  .defects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .choice { grid-template-columns: 1fr; }
  .choice-col { padding: 24px 20px; }
  .quiz { padding: 22px 18px; }
  .quiz-steps { font-size: 12px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .areas-grid { grid-template-columns: 1fr; gap: 28px; }
  .faq summary { font-size: 18px; padding: 16px 0; }
  .faq details p { padding-right: 0; }
  .dolist { columns: 1; }
  .types li { padding: 22px 20px; }

  .contacts { padding: 64px 0 28px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .contact-facts { grid-template-columns: 1fr; }
  .foot-phone { font-size: clamp(34px, 10.5vw, 60px); }

  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--felt-line);
  }
  .menu-open .callbar { display: none; }
}

@media (max-width: 420px) {
  .brand-sub { display: none; }
  .svc-group .works { grid-template-columns: 1fr; }
}
