/* Николай Макрушин: стили сайта. Палитра и шрифты из выбранного варианта главной */
:root {
  color-scheme: light;
  --paper: #f5f3ee;
  --white: #fffefa;
  --ink: #292c29;
  --muted: #656a64;
  --line: #d6d7d0;
  --line-2: #c9ccc3;
  --accent: #775c49;
  --dark: #303a34;
  --dark-2: #263029;
  --sage: #e8e9e2;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --page: min(1320px, calc(100% - 88px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; }
::selection { background: #d9c8b5; }
h1, h2, h3, p, dl, dd, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; }
.wrap { width: var(--page); margin-inline: auto; }
.narrow { max-width: 780px; }
:focus-visible { outline: 3px solid #aa7851; outline-offset: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- шапка ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 30; }
.header-inner { min-height: 84px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 31px; height: 31px; border: 2px solid var(--ink); position: relative; flex-shrink: 0; }
.brand-mark::after { content: ""; position: absolute; top: -2px; bottom: -2px; left: 12px; border-left: 2px solid var(--ink); transform: skew(-20deg); }
.brand-name { font-size: 16px; font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.brand-name span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: .02em; }
.nav { display: flex; gap: clamp(12px, 1.5vw, 26px); margin-left: auto; align-items: center; }
.nav > a, .nav-item > button { font-size: 13px; text-decoration: none; white-space: nowrap; background: none; border: 0; padding: 30px 0; cursor: pointer; }
.nav > a:hover, .nav-item > button:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav-item { position: relative; }
.nav-item > button::after { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 0 3px 7px; border-right: 1.3px solid currentColor; border-bottom: 1.3px solid currentColor; transform: rotate(45deg); }
.drop { position: absolute; top: 100%; left: -22px; min-width: 290px; background: var(--white); border: 1px solid var(--line); padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; box-shadow: 0 18px 40px #29302a14; }
.nav-item:hover .drop, .nav-item:focus-within .drop, .nav-item.open .drop { opacity: 1; visibility: visible; transform: none; }
.drop a { display: block; padding: 9px 22px; font-size: 14px; text-decoration: none; }
.drop a:hover { background: var(--paper); color: var(--accent); }
.header-phone { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; margin-left: clamp(4px, 1vw, 16px); }
.header-phone:hover { color: var(--accent); }
.header-calc { font-size: 13px; font-weight: 700; text-decoration: none; padding: 10px 14px; border: 1px solid var(--ink); white-space: nowrap; background: none; cursor: pointer; transition: background .2s, color .2s; }
.header-calc:hover { background: var(--ink); color: var(--paper); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); background: none; cursor: pointer; position: relative; flex-shrink: 0; }
.burger span, .burger::before, .burger::after { content: ""; position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .2s, opacity .2s; }
.burger::before { top: 15px; } .burger span { top: 21px; } .burger::after { top: 27px; }
.menu-open .burger::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span { opacity: 0; }
.menu-open .burger::after { transform: translateY(-6px) rotate(-45deg); }

/* мобильное меню */
.mmenu { display: none; }
@media (max-width: 1180px) {
  .nav, .header-calc { display: none; }
  .burger { display: block; }
  .header-phone { margin-left: auto; }
  .mmenu { display: block; position: fixed; inset: 64px 0 0 0; background: var(--paper); z-index: 40; overflow-y: auto; padding: 8px 0 110px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .menu-open .mmenu { opacity: 1; transform: none; visibility: visible; }
  .menu-open { overflow: hidden; }
  .mmenu details { border-bottom: 1px solid var(--line); }
  .mmenu summary, .mmenu > .wrap > a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-family: var(--serif); font-size: 24px; letter-spacing: -.03em; list-style: none; cursor: pointer; text-decoration: none; border-bottom: 1px solid var(--line); }
  .mmenu details summary { border-bottom: 0; }
  .mmenu summary::-webkit-details-marker { display: none; }
  .mmenu summary::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
  .mmenu details[open] summary::after { transform: rotate(-135deg); }
  .mmenu details a { display: block; padding: 9px 0 9px 2px; font-size: 16px; text-decoration: none; color: var(--muted); }
  .mmenu details div { padding-bottom: 14px; }
  .mmenu .mm-contacts { padding: 26px 0 0; display: grid; gap: 12px; }
}

/* ---------- общие элементы ---------- */
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .09em; line-height: 1.5; text-transform: uppercase; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; }
h2 { max-width: 780px; margin-top: 12px; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.12; }
h3 { font-size: 17px; line-height: 1.3; }
.section { padding-block: 96px; }
.section + .section { padding-top: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 38px; }
.section-note { max-width: 340px; margin-bottom: 5px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 54px; padding: 14px 21px; background: var(--dark); border: 1px solid var(--dark); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.button:hover { background: #526457; border-color: #526457; transform: translateY(-2px); }
.button--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.button--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.text-link { font-size: 14px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; background: none; border: 0; padding: 0; cursor: pointer; }
.text-link:hover { color: var(--accent); }
.prose p { font-size: 16.5px; line-height: 1.7; color: #3a3e3a; }
.prose p + p { margin-top: 16px; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.dash-list { margin-top: 22px; border-top: 1px solid var(--line); list-style: none; }
.dash-list li { padding: 12px 0 12px 24px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.55; position: relative; }
.dash-list li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 8px; height: 8px; border: 1px solid var(--accent); transform: rotate(45deg); }
.photo-cap { padding-top: 11px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* хлебные крошки */
.crumbs { padding-top: 22px; font-size: 12.5px; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "/"; margin: 0 9px; color: var(--line-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ---------- первый экран страницы услуги ---------- */
.phero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(40px, 5vw, 84px); padding-block: 34px 72px; align-items: stretch; }
.phero h1 { margin-top: 20px; font-size: clamp(40px, 4.1vw, 64px); line-height: 1.07; max-width: 720px; }
.phero-lead { max-width: 560px; margin-top: 24px; font-size: clamp(16.5px, 1.3vw, 19px); line-height: 1.6; }
.phero-points { margin-top: 26px; list-style: none; border-top: 1px solid var(--line); max-width: 560px; }
.phero-points li { padding: 12px 0 12px 24px; border-bottom: 1px solid var(--line); font-size: 15px; position: relative; }
.phero-points li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 8px; height: 8px; border: 1px solid var(--accent); transform: rotate(45deg); }
.phero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.status { display: flex; align-items: center; gap: 9px; margin-top: 22px; font-size: 13px; color: var(--muted); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #4f8a5b; box-shadow: 0 0 0 4px #4f8a5b22; }
.phero-media { display: flex; flex-direction: column; background: var(--white); min-height: 520px; }
.phero-media img { width: 100%; height: 0; flex: 1 1 auto; object-fit: cover; }
.phero-media figcaption { padding: 13px 15px; font-size: 12.5px; line-height: 1.45; color: var(--muted); min-height: 54px; }
.phero--plain { grid-template-columns: 1fr; padding-bottom: 50px; }
.phero-meta { margin-top: 20px; display: flex; gap: 18px; font-size: 13px; color: var(--muted); }

/* главная: первый экран */
.hero { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); grid-template-rows: auto 1fr; grid-template-areas: "intro visual" "copy visual"; column-gap: clamp(40px, 5vw, 84px); padding-block: clamp(48px, 6vw, 80px) 70px; min-height: 680px; }
.hero-intro { grid-area: intro; }
.hero h1 { max-width: 670px; margin-top: 25px; font-size: clamp(48px, 4.8vw, 76px); line-height: 1.06; }
.hero-copy { grid-area: copy; align-self: end; padding-top: 30px; }
.hero-lead { max-width: 500px; margin-bottom: 15px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; }
.hero-assurance { max-width: 490px; margin-bottom: 28px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.hero-visual { grid-area: visual; display: grid; grid-template-columns: 1.15fr .85fr; gap: 9px; min-height: 510px; }
.photo { display: flex; flex-direction: column; min-width: 0; background: var(--white); }
.photo img { width: 100%; height: 0; flex: 1 1 auto; object-fit: cover; }
.photo figcaption { display: flex; min-height: 64px; align-items: center; padding: 12px 14px; font-size: 12px; line-height: 1.4; }
.photo figcaption span { color: var(--muted); }
.hero .photo--detail img { object-position: center 48%; }
.hero .photo--portrait img { object-position: center 24%; }

/* полоса гарантий */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { padding: 25px 28px 27px 0; }
.proof-item + .proof-item { border-left: 1px solid var(--line); padding-left: 28px; }
.proof-item strong { display: block; margin-bottom: 7px; font-size: 15px; }
.proof-item span { display: block; max-width: 300px; color: var(--muted); font-size: 13px; line-height: 1.55; }

/* ---------- блок text ---------- */
.tblock { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.tblock--flip .tblock-media { order: -1; }
.tblock--solo { grid-template-columns: minmax(0, 1fr); }
.tblock--solo .tblock-text { max-width: 800px; }
.tblock-text h2 { margin-bottom: 26px; }
.tblock-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #dedbd3; }

/* строки-направления */
.tasks { border-top: 1px solid var(--line); }
.task { display: grid; grid-template-columns: 60px minmax(0, 1.1fr) minmax(0, 1fr) 190px 28px; align-items: center; gap: 24px; padding: 25px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .25s, background .25s; }
a.task:hover { background: var(--white); padding-inline: 18px; }
.task-n { font-family: var(--serif); color: var(--accent); font-size: 15px; font-variant-numeric: tabular-nums; }
.task-title { font-family: var(--serif); font-size: clamp(21px, 1.9vw, 27px); letter-spacing: -.03em; line-height: 1.15; }
.task-note { color: var(--muted); font-size: 14px; line-height: 1.55; }
.task-price { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.task-price small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 3px; }
.task svg { width: 22px; height: 22px; transition: transform .25s; }
a.task:hover svg { transform: translateX(4px); }
.tasks-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 24px; font-size: 14px; color: var(--muted); }

/* состав работ */
.wtable { border-top: 1px solid var(--line); }
.wrow { display: grid; grid-template-columns: minmax(180px, .45fr) 1fr 28px; gap: 24px; padding: 17px 0; border-bottom: 1px solid var(--line); align-items: baseline; text-decoration: none; }
.wrow strong { font-size: 16px; }
.wrow span { color: var(--muted); font-size: 15px; line-height: 1.55; }
.wrow svg { width: 18px; height: 18px; align-self: center; color: var(--accent); }
a.wrow:hover strong { color: var(--accent); }
.wnote { margin-top: 18px; font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 760px; }
.wnote b { color: var(--ink); }

/* цены */
.rates-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.rates-layout--solo { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.rates-list { border-top: 1px solid var(--line); }
.rate-row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rate-row span { font-size: 17px; }
.rate-row span small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.rate-row strong { font-size: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rates-footnote { max-width: 680px; margin-top: 18px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.example { background: var(--white); border: 1px solid var(--line); padding: 30px 30px 28px; }
.example h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -.03em; line-height: 1.15; margin-top: 10px; }
.example dl { margin-top: 22px; border-top: 1px solid var(--line); }
.example dl div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.example dd { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.example p { margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* факторы */
.factors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(30px, 5vw, 80px); border-top: 1px solid var(--line); counter-reset: f; }
.factor { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.factor::before { counter-increment: f; content: "0" counter(f); font-family: var(--serif); color: var(--accent); font-size: 15px; padding-top: 2px; }
.factor h3 { font-size: 17px; margin-bottom: 7px; }
.factor p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* шаги */
.process { padding-block: 92px 96px; background: var(--sage); }
.section + .process, .process + .section { padding-top: 92px; }
.process-layout { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr); gap: clamp(45px, 8vw, 125px); }
.process-intro > p:not(.eyebrow) { max-width: 380px; margin-top: 23px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.process-list { border-top: 1px solid var(--line-2); counter-reset: st; list-style: none; }
.process-item { display: grid; grid-template-columns: 44px 190px 1fr; gap: 18px; padding: 21px 0; border-bottom: 1px solid var(--line-2); }
.process-item::before { counter-increment: st; content: counter(st, decimal-leading-zero); font-family: var(--serif); color: var(--accent); font-size: 15px; }
.process-item strong { font-size: 15px; line-height: 1.4; }
.process-item p { max-width: 560px; color: #525a53; font-size: 14.5px; line-height: 1.65; }
.materials { margin-top: 24px; font-size: 14px; color: #525a53; line-height: 1.65; }

/* детали */
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.detail-image { display: block; width: 100%; padding: 0; overflow: hidden; border: 0; background: #dedbd3; cursor: zoom-in; }
.detail-image img { width: 100%; aspect-ratio: 1.27; object-fit: cover; transition: transform .35s; }
.detail-image:hover img { transform: scale(1.045); }
.detail-card h3 { margin: 17px 0 6px; }
.detail-card p { max-width: 380px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* сценарии */
.scen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.scen-item { background: var(--white); border: 1px solid var(--line); padding: 28px 30px 30px; }
.scen-item h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: -.03em; line-height: 1.2; margin-bottom: 12px; }
.scen-item p { color: var(--muted); font-size: 15px; line-height: 1.65; }

/* сравнение */
.cmp-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 15px 18px 15px 0; border-bottom: 1px solid var(--line); line-height: 1.55; }
.cmp thead th { font-family: var(--serif); font-weight: 400; font-size: 19px; letter-spacing: -.02em; padding-top: 18px; }
.cmp tbody th { font-weight: 700; width: 24%; }
.cmp td { color: #3f443f; }

/* предупреждение */
.notice { display: grid; grid-template-columns: 6px 1fr; gap: 26px; background: var(--white); border: 1px solid var(--line); padding: 28px 30px; max-width: 980px; }
.notice::before { content: ""; background: var(--accent); }
.notice h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: -.03em; margin-bottom: 8px; }
.notice p { color: #4a4f4a; font-size: 15.5px; line-height: 1.65; }

/* чек-лист */
.check { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 100px); }
.check-list { list-style: none; border-top: 1px solid var(--line); counter-reset: c; }
.check-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.55; }
.check-list li::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--dark); margin-top: 3px; }
.check .button { margin-top: 28px; }

/* кейс */
.case { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 5vw, 80px); }
.case-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-self: start; }
.vid { position: relative; background: #1e2320; }
.vid video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.vid-label { position: absolute; left: 0; top: 0; padding: 9px 12px; background: var(--paper); font-size: 12px; font-weight: 700; }
.vid-play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: linear-gradient(transparent 60%, #0006); cursor: pointer; }
.vid-play span { width: 64px; height: 64px; border-radius: 50%; background: #f5f3eeee; display: grid; place-items: center; transition: transform .2s; }
.vid-play:hover span { transform: scale(1.07); }
.vid-play svg { width: 20px; height: 20px; margin-left: 3px; }
.vid.playing .vid-play, .vid.playing .vid-label { display: none; }
.passport { border-top: 1px solid var(--line); margin-top: 28px; }
.passport div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.55; }
.passport dt { color: var(--muted); }
.case-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; }
.case-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.case-photos figcaption { padding-top: 10px; font-size: 12px; color: var(--muted); }
.case-cta { margin-top: 30px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }

/* скрытые работы */
.hidden-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.hidden-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.hidden-grid figcaption { padding-top: 13px; font-size: 14px; line-height: 1.5; }
.hidden-grid figcaption span { display: block; color: var(--muted); font-size: 13px; }
.hidden-empty { aspect-ratio: 3 / 4; border: 1px dashed var(--line-2); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; color: var(--muted); font-size: 13px; line-height: 1.55; background: repeating-linear-gradient(0deg, transparent 0 59px, #d6d7d066 59px 60px), repeating-linear-gradient(90deg, transparent 0 59px, #d6d7d066 59px 60px); }
.hidden-empty b { color: var(--ink); font-size: 15px; display: block; margin-bottom: 6px; }

/* галерея */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery button { padding: 0; border: 0; background: #dedbd3; cursor: zoom-in; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .35s; }
.gallery button:hover img { transform: scale(1.04); }

/* мастер */
.master { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.master-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.master-text > p { max-width: 560px; margin-top: 24px; font-size: 17px; line-height: 1.65; }
.skills { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); list-style: none; }
.skills li { padding: 14px 20px 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: flex; gap: 14px; }
.skills li::before { content: ""; width: 9px; height: 9px; margin-top: 5px; border: 1px solid var(--accent); transform: rotate(45deg); flex-shrink: 0; }
.master-note { margin-top: 22px; max-width: 560px; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* отзывы и география */
.duo { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.duo > div { padding: 56px 56px 56px 0; }
.duo > div + div { padding: 56px 0 56px 56px; border-left: 1px solid var(--line); }
.duo h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: -.035em; line-height: 1.15; margin-top: 10px; }
.duo p { margin-top: 16px; max-width: 520px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.places { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.places span { font-size: 13px; padding: 7px 11px; border: 1px solid var(--line-2); }

/* вопросы */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 110px); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 21px 0; font-size: 17px; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 11px; height: 11px; margin-top: 4px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); transition: transform .25s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 9px; }
.faq details p { padding: 0 60px 22px 0; color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 700px; }

/* смотрите также */
.related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.related a { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px 0; text-decoration: none; border-bottom: 1px solid var(--line); min-height: 138px; }
.related a + a { padding-left: 24px; border-left: 1px solid var(--line); }
.related a strong { font-family: var(--serif); font-weight: 400; font-size: 21px; letter-spacing: -.025em; line-height: 1.2; }
.related a span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.related a:hover strong { color: var(--accent); }
.related--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* расчет */
.contact { padding-block: 92px 96px; background: var(--dark); color: #f9f8f3; }
.contact-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact .eyebrow { color: #d0bba2; }
.contact h2 { max-width: 600px; }
.contact-lead { max-width: 520px; margin-top: 20px; color: #d0d8d0; font-size: 15px; line-height: 1.65; }
.contact-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.contact .button { background: #f5f3ee; border-color: #f5f3ee; color: var(--dark); }
.contact .button:hover { background: #e3dbcf; border-color: #e3dbcf; }
.contact .text-link { color: #f9f8f3; }
.contact .text-link:hover { color: #d0bba2; }
.calc { background: #3a453e; border: 1px solid #4c5a51; padding: 30px; }
.calc-step + .calc-step { margin-top: 24px; }
.calc-q { font-size: 13px; color: #c2cbc2; margin-bottom: 11px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #66756b; background: transparent; color: #f3f2ec; padding: 10px 14px; font-size: 14px; cursor: pointer; transition: background .2s, border-color .2s; }
.chip:hover { border-color: #a9b6ad; }
.chip[aria-pressed="true"] { background: #f5f3ee; color: var(--dark); border-color: #f5f3ee; }
.area { display: flex; align-items: center; gap: 14px; }
.area input[type=range] { flex: 1; accent-color: #d0bba2; }
.area output { font-family: var(--serif); font-size: 26px; min-width: 96px; text-align: right; font-variant-numeric: tabular-nums; }
.calc-result { margin-top: 28px; padding-top: 22px; border-top: 1px solid #56645b; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; }
.calc-sum { font-family: var(--serif); font-size: 40px; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-sum small { display: block; font-family: var(--sans); font-size: 12px; color: #c2cbc2; letter-spacing: 0; margin-bottom: 10px; }
.calc-note { grid-column: 1 / -1; font-size: 12.5px; color: #b8c2b9; line-height: 1.6; }

/* контакты */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); padding: 28px 30px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.card small { color: var(--muted); font-size: 13px; }
.card strong { font-family: var(--serif); font-weight: 400; font-size: 28px; letter-spacing: -.03em; line-height: 1.15; }
.card span { color: var(--muted); font-size: 14px; line-height: 1.55; }
a.card:hover strong { color: var(--accent); }

/* список работ */
.filters { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 28px; align-items: center; }
.filters .grp { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filters .grp > span { font-size: 12px; color: var(--muted); margin-right: 4px; }
.fchip { border: 1px solid var(--line-2); background: none; padding: 8px 12px; font-size: 13px; cursor: pointer; }
.fchip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.wcard { text-decoration: none; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.wcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.wcard div { padding: 20px 22px 24px; }
.wcard h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: -.03em; line-height: 1.2; }
.wcard p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.wcard--empty { border-style: dashed; justify-content: flex-end; padding: 26px; min-height: 320px; color: var(--muted); font-size: 14px; line-height: 1.6; background: repeating-linear-gradient(0deg, transparent 0 59px, #d6d7d066 59px 60px), repeating-linear-gradient(90deg, transparent 0 59px, #d6d7d066 59px 60px); }
.wcard--empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.empty-filter { display: none; padding: 30px 0; color: var(--muted); }

/* статья */
.article-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.toc { position: sticky; top: 24px; font-size: 13.5px; }
.toc b { display: block; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.toc a { display: block; padding: 8px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--muted); line-height: 1.4; }
.toc a:hover { color: var(--ink); }
.article-body { min-width: 0; }
.article-body > * + * { margin-top: 64px; }
.article-body h2 { font-size: clamp(28px, 2.7vw, 38px); margin-bottom: 20px; }
.answer { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 24px 28px; font-size: 17px; line-height: 1.65; }
.answer b { display: block; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.a-figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.article-body .tblock { grid-template-columns: 1fr; gap: 24px; }
.article-body .tblock--flip .tblock-media { order: 0; }
.article-body .check, .article-body .faq-layout { grid-template-columns: 1fr; gap: 22px; }
.article-body .process-layout { grid-template-columns: 1fr; }

/* политика */
.policy .tblock-text h2 { font-size: clamp(24px, 2.2vw, 30px); }
.policy .section { padding-block: 26px; }

/* подвал */
footer { padding: 56px 0 30px; background: var(--dark-2); color: #c7d0c6; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 30px; }
.footer-grid b { display: block; color: #f3f2ec; font-size: 13px; margin-bottom: 12px; }
.footer-grid a { display: block; text-decoration: none; padding: 4px 0; color: #c7d0c6; line-height: 1.4; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid #3a463e; font-size: 12px; color: #9aa69b; }
.footer-bottom a { color: inherit; }

/* нижняя панель телефона */
.mbar { display: none; }

/* чат */
.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: flex; align-items: center; gap: 10px; background: var(--dark); color: #fff; border: 0; padding: 14px 18px 14px 14px; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 12px 30px #1a221c40; transition: transform .2s; }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.chat-open .chat-fab { display: none; }
.chat { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 380px; max-width: calc(100vw - 24px); height: min(620px, calc(100dvh - 44px)); background: var(--paper); border: 1px solid var(--line-2); box-shadow: 0 24px 60px #1a221c40; display: none; flex-direction: column; }
.chat-open .chat { display: flex; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--white); }
.chat-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.chat-head b { display: block; font-size: 14px; }
.chat-head span { font-size: 12px; color: var(--muted); }
.chat-close { margin-left: auto; width: 36px; height: 36px; border: 0; background: none; cursor: pointer; position: relative; }
.chat-close::before, .chat-close::after { content: ""; position: absolute; left: 10px; right: 10px; top: 17px; height: 1.5px; background: var(--ink); transform: rotate(45deg); }
.chat-close::after { transform: rotate(-45deg); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 11px 14px; font-size: 14px; line-height: 1.5; }
.msg.bot { background: var(--white); border: 1px solid var(--line); align-self: flex-start; }
.msg.me { background: var(--dark); color: #fff; align-self: flex-end; }
.msg a { font-weight: 700; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { border: 1px solid var(--line-2); background: var(--white); padding: 8px 11px; font-size: 13px; cursor: pointer; }
.quick button:hover { border-color: var(--ink); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--white); }
.chat-form input { flex: 1; min-width: 0; border: 1px solid var(--line-2); background: var(--paper); padding: 11px 12px; font: inherit; font-size: 14px; }
.chat-form button { border: 0; background: var(--dark); color: #fff; padding: 0 16px; font-weight: 700; font-size: 13px; cursor: pointer; }
.lead-form { display: grid; gap: 8px; background: var(--white); border: 1px solid var(--line); padding: 14px; }
.lead-form input[type=text], .lead-form input[type=tel] { border: 1px solid var(--line-2); background: var(--paper); padding: 10px 11px; font: inherit; font-size: 14px; }
.lead-form label { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
.lead-form .button { min-height: 44px; }

/* увеличение фото */
.image-dialog { max-width: min(900px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 12px; border: 0; background: var(--white); box-shadow: 0 25px 90px #0005; }
.image-dialog::backdrop { background: #151c18d9; }
.image-dialog img { max-height: calc(100dvh - 125px); width: auto; margin: auto; object-fit: contain; }
.dialog-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 12px 3px 2px; font-size: 14px; }
.dialog-close { padding: 5px; border: 0; background: transparent; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* 404 */
.nf { padding-block: 120px; }
.nf h1 { font-size: clamp(44px, 5vw, 72px); }
.nf p { margin-top: 20px; color: var(--muted); font-size: 17px; }

/* ---------- адаптив ---------- */
@media (max-width: 1050px) {
  :root { --page: min(100% - 56px, 1320px); }
  .hero { column-gap: 30px; min-height: 620px; }
  .phero { grid-template-columns: 1fr; }
  .phero-media { min-height: 0; }
  .phero-media img { height: auto; aspect-ratio: 16 / 10; flex: none; }
  .proof-inner { grid-template-columns: 1fr 1fr; }
  .proof-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .proof-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .task { grid-template-columns: 40px 1fr 170px 24px; }
  .task-note { display: none; }
  .tblock, .case-layout, .master, .rates-layout, .process-layout, .faq-layout, .contact-inner, .check { grid-template-columns: 1fr; }
  .tblock--flip .tblock-media { order: 0; }
  .hidden-grid, .case-photos, .gallery { grid-template-columns: 1fr 1fr; }
  .related { grid-template-columns: 1fr 1fr; }
  .related a:nth-child(3) { padding-left: 0; border-left: 0; }
  .works, .cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .article-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 700px) {
  :root { --page: calc(100% - 36px); }
  .header-inner { min-height: 64px; gap: 10px; }
  .brand { gap: 10px; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-mark::after { left: 10px; }
  .brand-name { font-size: 13px; }
  .brand-name span { font-size: 10px; }
  .header-phone { font-size: 12px; }
  .burger { width: 40px; height: 40px; }
  .burger::before { top: 13px; } .burger span { top: 19px; } .burger::after { top: 25px; }
  .burger span, .burger::before, .burger::after { left: 11px; right: 11px; }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto; grid-template-areas: "intro" "visual" "copy"; gap: 0; min-height: 0; padding-block: 30px 44px; }
  .eyebrow { font-size: 10.5px; }
  .hero h1 { margin: 13px 0 24px; font-size: clamp(38px, 9.6vw, 56px); line-height: 1.08; }
  .hero-visual { min-height: 0; height: clamp(260px, 70vw, 420px); gap: 6px; }
  .photo figcaption { min-height: 48px; padding: 7px 8px; font-size: 10px; }
  .hero-copy { padding-top: 24px; }
  .hero-lead { font-size: 16px; }
  .hero-assurance { font-size: 13px; margin-bottom: 20px; }
  .hero-actions .button, .phero-actions .button { width: 100%; }
  .phero { padding-block: 22px 50px; gap: 30px; }
  .phero h1 { font-size: clamp(33px, 8.6vw, 46px); margin-top: 14px; }
  .phero-lead { font-size: 16px; margin-top: 18px; }
  .phero-points li { font-size: 14px; }
  .proof-inner { grid-template-columns: 1fr; }
  .proof-item, .proof-item + .proof-item { padding: 16px 0; border-left: 0; }
  .proof-item + .proof-item { border-top: 1px solid var(--line); }
  .section { padding-block: 64px; }
  .section + .process, .process + .section { padding-top: 64px; }
  .section-heading { display: block; margin-bottom: 26px; }
  h2 { font-size: clamp(30px, 8vw, 42px); }
  .section-note { margin-top: 14px; }
  .prose p { font-size: 16px; }
  .task { grid-template-columns: 1fr 24px; gap: 6px 14px; padding: 18px 0; }
  .task-n { display: none; }
  .task-price { grid-column: 1; grid-row: 2; text-align: left; font-size: 14px; }
  .task-price small { display: inline; margin-left: 6px; }
  .task svg { grid-column: 2; grid-row: 1 / 3; }
  a.task:hover { padding-inline: 0; background: none; }
  .tasks-foot { display: block; }
  .tasks-foot .text-link { display: table; margin-top: 10px; }
  .wrow { grid-template-columns: 1fr 20px; gap: 4px 12px; }
  .wrow span { grid-column: 1; grid-row: 2; font-size: 14px; }
  .wrow svg { grid-column: 2; grid-row: 1 / 3; }
  .factors { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; gap: 30px; }
  .detail-image img { aspect-ratio: 1.5; }
  .scen { grid-template-columns: 1fr; }
  .scen-item { padding: 22px; }
  .scen-item h3 { font-size: 21px; }
  .notice { padding: 22px; gap: 18px; grid-template-columns: 4px 1fr; }
  .notice h3 { font-size: 21px; }
  .case-videos { gap: 8px; }
  .passport div { grid-template-columns: 1fr; gap: 3px; }
  .case-photos, .hidden-grid, .gallery { gap: 8px; }
  .case-photos { margin-top: 28px; }
  .skills { grid-template-columns: 1fr; }
  .master-text > p { font-size: 16px; }
  .example { padding: 22px; }
  .rate-row span { font-size: 15px; }
  .rate-row strong { font-size: 16px; }
  .process { padding-block: 64px 70px; }
  .process-item { grid-template-columns: 30px 1fr; gap: 6px 12px; padding: 17px 0; }
  .process-item p { grid-column: 2; }
  .hidden-grid figcaption { font-size: 13px; }
  .hidden-empty { padding: 14px; font-size: 12px; }
  .duo { grid-template-columns: 1fr; }
  .duo > div, .duo > div + div { padding: 40px 0; border-left: 0; }
  .duo > div + div { border-top: 1px solid var(--line); }
  .duo h3 { font-size: 27px; }
  .faq summary { font-size: 16px; padding: 18px 0; }
  .faq details p { padding-right: 0; font-size: 14.5px; }
  .related, .related--3 { grid-template-columns: 1fr; }
  .related a, .related a + a { padding: 18px 0; border-left: 0; min-height: 0; }
  .works, .cards { grid-template-columns: 1fr; }
  .contact { padding-block: 64px 70px; }
  .calc { padding: 20px; }
  .calc-sum { font-size: 32px; }
  .calc-result { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { display: block; line-height: 1.9; }
  .footer-bottom > * { display: block; }
  body { padding-bottom: 62px; }
  .mbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--paper); border-top: 1px solid var(--line); }
  .mbar a, .mbar button { display: flex; align-items: center; justify-content: center; height: 62px; font-size: 13px; font-weight: 700; text-decoration: none; border: 0; background: none; cursor: pointer; }
  .mbar > * + * { border-left: 1px solid var(--line) !important; }
  .mbar .main { background: var(--dark); color: #fff; }
  .chat-fab { display: none; }
  .chat { right: 0; bottom: 0; width: 100%; max-width: none; height: 100dvh; border: 0; }
  .answer { padding: 20px; font-size: 16px; }
  .cmp { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .site-header, .mbar, .chat, .chat-fab, .contact, footer { display: none; }
}
