/* ==========================================================================
   Сборка мебели — оформление сайта

   Идея: тёплое дерево и живой оранжевый акцент вместо привычного «синего
   сервиса». Мебель — это про дом, и сайт должен ощущаться так же.

   Порядок: переменные → основа → шапка → первый экран → блоки → формы →
   прайс → подвал → мобильная полоса → адаптив → печать.
   ========================================================================== */

:root {
  --ink:        #1A1714;
  --ink-soft:   #5E554B;
  --ink-mute:   #8A7F72;
  --paper:      #FDFBF7;
  --card:       #FFFFFF;
  --tint:       #F6EFE4;
  --line:       #E8DFD1;
  --line-soft:  #F0E8DB;

  --accent:      #E8743B;
  --accent-dark: #C85A26;
  --accent-soft: #FDEFE6;

  --wood:        #E0B080;
  --wood-light:  #F2D7B2;
  --green:       #2F7A5B;

  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow:    0 1px 2px rgba(26,23,20,.04), 0 8px 24px rgba(26,23,20,.06);
  --shadow-lg: 0 2px 6px rgba(26,23,20,.06), 0 20px 48px rgba(26,23,20,.12);

  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font: 400 17px/1.6 'Manrope', -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
body.is-locked { overflow: hidden; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 4.6vw, 52px); }
h2 { font-size: clamp(25px, 3.1vw, 36px); }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
p  { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

a { color: var(--accent-dark); text-decoration-color: rgba(200,90,38,.35); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

img, svg { max-width: 100%; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 780px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------------- кнопки */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; line-height: 1;
  padding: 15px 26px; border: 1.5px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .14s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn--accent {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 0 var(--accent-dark), 0 10px 24px rgba(232,116,59,.3);
}
.btn--accent:hover { background: var(--accent-dark); color: #fff; box-shadow: 0 2px 0 var(--accent-dark), 0 14px 30px rgba(232,116,59,.38); }

.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: #fff; }

.btn--lg { padding: 18px 34px; font-size: 17px; }
.btn--sm { padding: 11px 18px; font-size: 15px; }
.btn--wide { width: 100%; }

.link-arrow { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--accent-soft); }
.link-arrow::after { content: ' →'; }
.link-arrow:hover { border-bottom-color: var(--accent); }

/* ---------------------------------------------------------------- шапка */

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253,251,247,.88);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(26,23,20,.05); }
.header__in { display: flex; align-items: center; gap: 24px; min-height: 76px; }

.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: none; }
.logo__mark {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border-radius: 11px; background: var(--accent); color: #fff;
}
.logo__mark svg { width: 24px; height: 24px; }
.logo__text { display: grid; line-height: 1.15; }
.logo__text b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.logo__text i { font-style: normal; font-size: 12.5px; color: var(--ink-mute); }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15.5px; }
.nav a:hover { color: var(--accent-dark); }

.header__act { display: flex; align-items: center; gap: 14px; }
.header__phone { color: var(--ink); font-weight: 800; text-decoration: none; font-size: 16.5px; white-space: nowrap; }

.burger { display: none; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; padding: 0; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3.5px auto; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------------------------------------------------------- первый экран */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 420px at 88% -8%, var(--wood-light) 0%, transparent 62%),
    linear-gradient(180deg, var(--tint) 0%, var(--paper) 78%);
}
.hero__in { display: grid; grid-template-columns: 1.08fr .92fr; gap: 50px; align-items: center; padding: 60px 20px 72px; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px 8px 12px; font-size: 14px; font-weight: 700; color: var(--ink);
  margin: 0 0 22px; box-shadow: var(--shadow);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47,122,91,.16); }

.hero__h1 { margin-bottom: 18px; }
.hero__lead { font-size: 19px; max-width: 34em; margin-bottom: 24px; }

.hero__chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 15px; font-size: 14.5px; font-weight: 700; color: var(--ink);
}
.chip--ghost { background: var(--accent-soft); border-color: #F6D9C6; color: var(--accent-dark); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 34px; }

.hero__facts { display: flex; flex-wrap: wrap; gap: 34px; list-style: none; padding: 0; margin: 0; }
.hero__facts li { display: grid; }
.hero__facts b { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.hero__facts span { font-size: 14px; color: var(--ink-mute); }

.hero__media { display: grid; place-items: center; }
.hero__art { width: 100%; max-width: 460px; }
.h-line { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.h-soft { fill: var(--accent-soft); stroke: var(--ink); stroke-width: 2.4; }
.h-dot  { fill: var(--accent); }
.hero__door { animation: doorIn .9s cubic-bezier(.2,.75,.3,1) both; }
.hero__tool { animation: toolIn 1.05s cubic-bezier(.2,.75,.3,1) .12s both; }
@keyframes doorIn { from { opacity: 0; transform: translateX(26px) rotate(3deg); } }
@keyframes toolIn { from { opacity: 0; transform: translate(18px, 14px); } }

/* --------------------------------------------------------------- секции */

.section { padding: 76px 0; }
.section--tint { background: var(--tint); }
.section--order { background: linear-gradient(180deg, var(--paper) 0%, var(--tint) 100%); }

.shead { max-width: 680px; margin-bottom: 38px; }
.shead p { font-size: 17.5px; margin: 0; }
.section__more { margin: 34px 0 0; }

/* ------------------------------------------------------- карточки услуг */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 18px; }
.cards--compact { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

.card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px 20px;
  display: flex; flex-direction: column; gap: 4px; cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
  text-decoration: none;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--wood); }
.card__art { height: 78px; display: grid; place-items: center; margin-bottom: 10px; }

.ico { width: 72px; height: 72px; color: var(--ink); }
.ico--xl { width: 180px; height: 180px; }
.ico .w-line { stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.ico .w-fill { fill: var(--wood-light); stroke: none; }
.ico .w-dot  { fill: var(--accent); }
.card:hover .ico .w-fill { fill: var(--wood); }

.card__title { font-size: 17px; margin: 0 0 6px; }
.card__price { margin: 0; font-size: 15px; color: var(--ink-soft); }
.card__price b { font-size: 19px; color: var(--accent-dark); font-weight: 800; }
.card__price span { color: var(--ink-mute); font-size: 13.5px; white-space: nowrap; }
.card__time { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-mute); }
.card__link {
  margin-top: auto; padding-top: 14px; font-size: 14.5px; font-weight: 700;
  color: var(--accent-dark); text-decoration: none;
}
.card__link::after { content: ' →'; }
.card--link { cursor: pointer; }
.card--link .card__price { margin-top: auto; }

/* ----------------------------------------------------------------- шаги */

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; position: relative; }
.step__n {
  display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px;
  border-radius: 11px; background: var(--ink); color: #fff; font-weight: 800; font-size: 17px;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; font-size: 15px; }

/* -------------------------------------------------------------- причины */

.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 28px; }
.reason { padding-top: 18px; border-top: 2px solid var(--line); }
.reason__n { display: block; font-size: 13px; font-weight: 800; color: var(--accent); margin-bottom: 8px; letter-spacing: .06em; }
.reason h3 { margin-bottom: 7px; }
.reason p { margin: 0; font-size: 15.5px; }

/* ----------------------------------------------------- заявка (2 колонки) */

.order { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.order__text h2 { margin-bottom: 14px; }
.order__text p { font-size: 17.5px; }
.order__list { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 11px; }
.order__list li { position: relative; padding-left: 30px; font-weight: 600; color: var(--ink); }
.order__list li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 18px; height: 10px;
  border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg); border-radius: 1px;
}
.order__phone { display: inline-block; font-size: 27px; font-weight: 800; color: var(--ink); text-decoration: none; margin-top: 8px; }
.order__form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg); }

/* ---------------------------------------------------------------- формы */

.form { display: grid; gap: 15px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.field { display: grid; gap: 6px; }
.field__label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.field__hint { font-size: 12.5px; color: var(--ink-mute); }

.form input[type="text"], .form input[type="tel"], .form textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 4px rgba(232,116,59,.13);
}
.form textarea { resize: vertical; min-height: 64px; }

.form__chosen {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--accent-soft); border: 1px solid #F6D9C6; border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: 14.5px; color: var(--accent-dark);
}
.form__chosen b { color: var(--ink); }
.form__clear {
  margin-left: auto; border: 0; background: transparent; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--accent-dark); padding: 0 4px;
}

.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 13.5px; color: var(--ink-mute); cursor: pointer; }
.check input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; flex: none; }
.check a { color: var(--ink-soft); }

.form__under { margin: 0; font-size: 13px; color: var(--ink-mute); text-align: center; }
.form__msg { margin: 0; font-size: 15px; font-weight: 700; min-height: 0; }
.form__msg.ok  { color: var(--green); }
.form__msg.err { color: #C0392B; }

/* ---------------------------------------------------------------- вопросы */

.faq { display: grid; gap: 10px; }
.faq__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq__q {
  width: 100%; display: flex; align-items: center; gap: 16px; justify-content: space-between;
  font: inherit; font-weight: 700; font-size: 17px; color: var(--ink); text-align: left;
  background: none; border: 0; padding: 20px 22px; cursor: pointer;
}
.faq__ico { position: relative; width: 20px; height: 20px; flex: none; }
.faq__ico i {
  position: absolute; left: 2px; top: 9px; width: 16px; height: 2.4px;
  background: var(--accent); border-radius: 2px; transition: transform .22s ease;
}
.faq__ico i:last-child { transform: rotate(90deg); }
.faq__item.is-open .faq__ico i:last-child { transform: rotate(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .26s ease; }
.faq__a p { margin: 0; padding: 0 22px 22px; font-size: 16px; }

/* -------------------------------------------------------- хлебные крошки */

.crumbs { padding: 16px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; font-size: 14px; }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--ink-mute); }
.crumbs a { color: var(--ink-mute); text-decoration: none; }
.crumbs a:hover { color: var(--accent-dark); }
.crumbs span { color: var(--ink); }

/* ------------------------------------------------------- шапка услуги */

.shero { padding: 30px 0 56px; background: linear-gradient(180deg, var(--tint) 0%, var(--paper) 100%); }
.shero__in { display: grid; grid-template-columns: 1.25fr .75fr; gap: 44px; align-items: center; }
.shero__lead { font-size: 18.5px; max-width: 36em; }

.shero__meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.meta { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 18px; min-width: 128px; }
.meta__k { display: block; font-size: 12.5px; color: var(--ink-mute); margin-bottom: 3px; }
.meta__v { display: block; font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.meta__v i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--ink-mute); margin-left: 5px; }

.shero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.shero__note { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-mute); }
.shero__art { display: grid; place-items: center; color: var(--ink); }

.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 46px; align-items: start; }
.prose h2 { font-size: 25px; margin-top: 0; }
.prose h2 + p, .prose p { font-size: 16.5px; }
.ticks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 32px; font-size: 16.5px; }
.ticks li::before {
  content: ''; position: absolute; left: 2px; top: 7px; width: 17px; height: 9px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg); border-radius: 1px;
}

.pricebox { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); position: sticky; top: 96px; }
.pricebox__title { font-size: 19px; margin-bottom: 14px; }
.pricebox__note { font-size: 13.5px; color: var(--ink-mute); margin: 14px 0 18px; }

/* ---------------------------------------------------------------- прайс */

.phero { padding: 34px 0 44px; background: linear-gradient(180deg, var(--tint) 0%, var(--paper) 100%); }
.phero__lead { font-size: 18.5px; max-width: 62ch; }
.phero__facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.phero__facts span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.phero--doc { padding-bottom: 20px; }
.phero--404 { text-align: center; padding: 70px 0; }
.phero--404 .hero__cta { justify-content: center; }
.phero--404 .phero__lead { margin-left: auto; margin-right: auto; }

.pnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.pnav__item { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 14.5px; font-weight: 600; color: var(--ink); text-decoration: none; }
.pnav__item:hover { border-color: var(--accent); color: var(--accent-dark); }

.pblock { margin-bottom: 44px; scroll-margin-top: 92px; }
.pblock__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pblock__head h2 { margin: 0; font-size: 24px; }
.pblock__ico { flex: none; }
.pblock__ico .ico { width: 42px; height: 42px; }
.pblock__link { margin-left: auto; font-size: 14.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.pblock__link::after { content: ' →'; }

.ptable { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ptable th, .ptable td { text-align: left; padding: 13px 18px; border-top: 1px solid var(--line-soft); font-weight: 400; font-size: 15.5px; }
.ptable tbody tr:first-child th, .ptable tbody tr:first-child td { border-top: 0; }
.ptable thead th { background: var(--tint); font-size: 13px; font-weight: 700; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .04em; border: 0; }
.ptable__unit  { color: var(--ink-mute); font-size: 14px; white-space: nowrap; width: 90px; }
.ptable__price { font-weight: 800; color: var(--ink); white-space: nowrap; text-align: right; width: 120px; }

.prow:hover { background: var(--accent-soft); }
.prow th a, .prow th button {
  color: var(--ink); text-decoration: none; font: inherit; font-size: 15.5px;
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
}
.prow:hover th a, .prow:hover th button { color: var(--accent-dark); }

.pnote { font-size: 14.5px; color: var(--ink-mute); max-width: 70ch; }

/* ------------------------------------------------------------ география */

.geo { display: flex; flex-wrap: wrap; gap: 8px; }
.geo--cols { gap: 7px; }
.geo__item {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; font-size: 14.5px; color: var(--ink); text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
.geo__item:hover { border-color: var(--accent); color: var(--accent-dark); }
.geo__item--big { font-size: 16px; font-weight: 700; padding: 12px 22px; }
.geo__item--all { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }
.geo__item--all:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.geo__h { font-size: 22px; margin: 36px 0 16px; }
.geo__h:first-child { margin-top: 0; }

/* ------------------------------------------------------------ документы */

.doc h2 { font-size: 21px; margin: 32px 0 10px; }
.doc p, .doc li { font-size: 16.5px; }
.doc__back { margin-top: 40px; }

/* ---------------------------------------------------------------- подвал */

.footer { background: var(--ink); color: #BCB2A5; padding: 60px 0 30px; margin-top: 10px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .logo { color: #fff; }
.footer .logo__text i { color: #8E857A; }
.footer__about { font-size: 15px; max-width: 34ch; margin: 18px 0; }
.footer__phone { display: inline-block; font-size: 23px; font-weight: 800; color: #fff; text-decoration: none; }
.footer__hours { font-size: 13.5px; margin: 4px 0 0; color: #8E857A; }
.footer__col h3 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer__col a { color: #BCB2A5; text-decoration: none; font-size: 14.5px; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { padding-top: 26px; font-size: 13.5px; color: #8E857A; display: grid; gap: 10px; }
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__legal a { color: #8E857A; }
.footer__note { max-width: 86ch; }

/* ------------------------------------------------- мобильная полоса снизу */

.dock { display: none; }

/* ------------------------------------------------------- окно заявки */

.modal {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(26,23,20,.55); backdrop-filter: blur(3px);
  padding: 20px; overflow-y: auto;
  opacity: 0; transition: opacity .18s ease;
}
.modal.is-open { opacity: 1; }
.modal__box {
  background: var(--card); border-radius: var(--radius-lg); padding: 32px;
  max-width: 500px; margin: min(7vh, 70px) auto; position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(14px); transition: transform .22s cubic-bezier(.2,.75,.3,1);
}
.modal.is-open .modal__box { transform: none; }
.modal__close {
  position: absolute; right: 14px; top: 14px; width: 38px; height: 38px;
  border: 0; border-radius: 50%; background: var(--tint); color: var(--ink);
  font-size: 23px; line-height: 1; cursor: pointer;
}
.modal__close:hover { background: var(--accent); color: #fff; }
.modal__title { font-size: 25px; margin-bottom: 8px; }
.modal__lead { font-size: 15.5px; margin-bottom: 20px; }

/* --------------------------------------------------------------- адаптив */

@media (max-width: 1020px) {
  .hero__in { grid-template-columns: 1fr; gap: 30px; padding-top: 44px; }
  .hero__media { order: -1; }
  .hero__art { max-width: 340px; }
  .shero__in { grid-template-columns: 1fr; }
  .shero__art { display: none; }
  .grid-2 { grid-template-columns: 1fr; gap: 34px; }
  .pricebox { position: static; }
  .order { grid-template-columns: 1fr; gap: 30px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .reasons { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 54px 0; }

  .nav {
    position: fixed; inset: 76px 0 auto; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 20px 20px;
    transform: translateY(-120%); transition: transform .25s ease; z-index: 40;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 17px; }
  .burger { display: block; }
  .header__phone { display: none; }
  .header__act .btn { display: none; }
  /* Меню на телефоне становится fixed и выпадает из потока, поэтому
     margin-left:auto на нём больше не отодвигает кнопки вправо —
     бургер прижимался к логотипу. Отодвигаем сами. */
  .header__act { margin-left: auto; }

  .hero__facts { gap: 20px; }
  .hero__facts b { font-size: 22px; }
  .hero__cta .btn { flex: 1 1 auto; }

  .steps, .reasons { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .card { padding: 16px 14px; }
  .card__link-extra { display: none; }   /* на телефоне достаточно «Подробнее →» */
  .card__art { height: 58px; }
  .ico { width: 54px; height: 54px; }

  /* Плитки «Цена / Время / Гарантия / Выезд» — ровной сеткой 2×2.
     Раскладкой по ширине содержимого они вставали лесенкой и выглядели
     как недоделанная вёрстка */
  .shero__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .meta { min-width: 0; padding: 11px 14px; }
  .meta__v { font-size: 17px; }
  .meta__v i { display: block; margin: 2px 0 0; }

  .order__form { padding: 22px 18px; }
  .form__row { grid-template-columns: 1fr; }
  .modal__box { padding: 24px 20px; margin-top: 16px; }

  /* Таблица прайса: единицу прячем, она дублируется в названии работы */
  .ptable th, .ptable td { padding: 12px 14px; font-size: 15px; }
  .ptable__unit { display: none; }
  .ptable thead th:nth-child(2) { display: none; }
  .pblock__link { margin-left: 0; width: 100%; }
  .pblock__head { flex-wrap: wrap; gap: 10px; }

  .footer { padding-bottom: 96px; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }

  /* Полоса действий снизу: главный способ заказать с телефона */
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(253,251,247,.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .dock__call, .dock__order {
    flex: 1; text-align: center; font: inherit; font-weight: 700; font-size: 16px;
    padding: 15px 10px; border-radius: var(--radius-sm); cursor: pointer; text-decoration: none;
  }
  .dock__call { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
  .dock__order { background: var(--accent); border: 0; color: #fff; box-shadow: 0 2px 0 var(--accent-dark); }
  .dock__order--wide { flex: 1 1 100%; }
}

@media print {
  .header, .footer, .dock, .modal, .hero__media, .order__form, .pnav { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .section { padding: 12px 0; }
  a { text-decoration: none; color: #000; }
  .ptable { border-color: #999; }
}

/* ==========================================================================
   Мастера: карточки, профиль, кабинет, анкета
   ========================================================================== */

.masters { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }

.mcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 14px;
}
.mcard__top { display: flex; gap: 15px; align-items: flex-start; }
.mcard__photo {
  width: 84px; height: 84px; border-radius: 14px; object-fit: cover; flex: none;
  background: var(--tint); border: 1px solid var(--line);
}
.mcard__photo--empty {
  display: grid; place-items: center; font-size: 32px; font-weight: 800; color: var(--wood);
}
.mcard__who { min-width: 0; }
.mcard__who h3 { margin: 0 0 3px; font-size: 18px; }
.mcard__who h3 a { color: var(--ink); text-decoration: none; }
.mcard__who h3 a:hover { color: var(--accent-dark); }
.mcard__exp { margin: 0; font-size: 14px; color: var(--ink-mute); }
.mcard__links { margin: 6px 0 0; display: flex; gap: 12px; font-size: 13.5px; }
.mcard__about { margin: 0; font-size: 15px; }

.mcard__prices { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.mcard__prices li { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.mcard__prices span { color: var(--ink-soft); }
.mcard__prices b { color: var(--ink); white-space: nowrap; }
.mcard__price--one {
  margin: 0; background: var(--accent-soft); border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: 15px;
}
.mcard__price--one b { font-size: 18px; color: var(--accent-dark); }
.mcard__price--one span { color: var(--ink-mute); font-size: 13px; }

.mcard__act { margin-top: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mcard__more { font-size: 14px; font-weight: 600; text-decoration: none; }

/* --- профиль --- */

.mhero { display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: start; }
.mhero__photo {
  width: 200px; height: 200px; border-radius: var(--radius-lg); object-fit: cover;
  border: 1px solid var(--line); background: var(--tint);
}
.mhero__photo--empty { display: grid; place-items: center; font-size: 76px; font-weight: 800; color: var(--wood); }
.mhero__role { font-size: 17px; color: var(--ink-mute); margin: -6px 0 16px; }
.mhero__facts { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.mhero__facts span {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px; font-size: 14px; font-weight: 600; color: var(--ink);
}
.mhero__about { font-size: 16.5px; margin-bottom: 16px; }
.mhero__links { font-size: 14.5px; color: var(--ink-mute); }
.mhero__links a { margin-left: 10px; }

.geo__sub { display: block; font-size: 12.5px; color: var(--ink-mute); font-weight: 400; }

/* --- подсказка городов --- */

.city-suggest {
  position: relative; margin-top: 6px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow);
  max-height: 280px; overflow-y: auto;
}
.city-suggest__item {
  display: flex; align-items: baseline; gap: 9px; width: 100%; text-align: left;
  font: inherit; background: none; border: 0; border-top: 1px solid var(--line-soft);
  padding: 11px 15px; cursor: pointer;
}
.city-suggest__item:first-child { border-top: 0; }
.city-suggest__item:hover, .city-suggest__item.is-on { background: var(--accent-soft); }
.city-suggest__item b { color: var(--ink); font-size: 15.5px; }
.city-suggest__item span { color: var(--ink-mute); font-size: 13.5px; }

/* --- заметки и формы --- */

.note {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--wood);
  border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 22px; font-size: 15.5px;
}
.note--ok  { border-left-color: var(--green); background: #F2FAF6; }
.note--err { border-left-color: #C0392B; background: #FDF2F0; }
.note h2 { font-size: 21px; margin-bottom: 8px; }
.note ul { margin: 8px 0 0; }

.form--reg { max-width: 100%; }
.form__h { font-size: 20px; margin: 26px 0 4px; }
.form__h:first-of-type { margin-top: 0; }
.req { color: var(--accent); }
.form input[type="file"] { font: inherit; font-size: 15px; padding: 10px 0; }
.form input[type="password"], .form input[type="number"] {
  font: inherit; font-size: 16px; color: var(--ink); padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); width: 100%;
}
.empty-note { font-size: 16.5px; color: var(--ink-mute); max-width: 68ch; }

/* --- кабинет --- */

.dash__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.dash__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 34px; }
.dash__card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: grid; gap: 4px; text-decoration: none;
}
.dash__card b { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.dash__card span { font-size: 13.5px; color: var(--ink-mute); }
.dash__card--accent { background: var(--accent-soft); border-color: #F6D9C6; }
.dash__card--accent b { color: var(--accent-dark); }
.dash__card--link:hover { border-color: var(--accent); }
.dash__h { font-size: 24px; margin: 0 0 8px; }
.dash__lead { font-size: 15.5px; max-width: 70ch; margin-bottom: 20px; }
.dash__prices input[type="number"] { width: 110px; padding: 8px 10px; font: inherit;
  border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper); }
.dash__unit { color: var(--ink-mute); font-size: 13px; font-weight: 400; }
.dash__off { text-align: center; }
.dash__off input { width: 19px; height: 19px; accent-color: var(--accent); }
.dash__save { margin-top: 18px; }

.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.pill--ok   { background: #E7F7EE; color: var(--green); }
.pill--wait { background: #FEF6E7; color: #B45309; }
.pill--off  { background: #FDEAEC; color: #C0392B; }

.leads { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.lead { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; }
.lead__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.lead__name { font-weight: 800; color: var(--ink); font-size: 16.5px; }
.lead__date { font-size: 13px; color: var(--ink-mute); }
.lead__status select { font: inherit; font-size: 14px; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; }
.lead__phone { font-size: 20px; font-weight: 800; color: var(--ink); text-decoration: none; }
.lead__meta { display: flex; flex-wrap: wrap; gap: 7px; }
.lead__comment { margin: 0; background: var(--tint); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 15px; }

@media (max-width: 760px) {
  .masters { grid-template-columns: 1fr; }
  .mhero { grid-template-columns: 1fr; gap: 20px; }
  .mhero__photo { width: 140px; height: 140px; }
  .leads { grid-template-columns: 1fr; }
  .dash__prices input[type="number"] { width: 90px; }
}

/* ==========================================================================
   Портфолио и отзывы
   ========================================================================== */

/* --- звёзды --- */

.stars { display: inline-flex; gap: 1px; letter-spacing: 1px; }
.stars i { font-style: normal; color: #DCD5C9; font-size: 15px; line-height: 1; }
.stars i.is-on { color: #E8A33B; }

.rating { display: flex; align-items: center; gap: 9px; margin: 0; }
.rating b { font-size: 19px; color: var(--ink); }
.rating span { color: var(--ink-mute); font-size: 14.5px; }

.mcard__rating { display: flex; align-items: center; gap: 7px; margin: 0 0 3px; font-size: 13.5px; }
.mcard__rating b { color: var(--ink); font-size: 15px; }
.mcard__rating span { color: var(--ink-mute); }

.mhero__rating {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px;
}
.mhero__rating b { color: var(--ink); font-size: 16px; }
.mhero__rating span { color: var(--ink-mute); font-size: 14px; }

/* --- работы --- */

.works { display: grid; gap: 20px; }
.work {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: grid; gap: 12px;
}
.work__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.work__head h3 { margin: 0; font-size: 19px; }
.work__price {
  background: var(--accent-soft); color: var(--accent-dark); font-weight: 800;
  border-radius: 999px; padding: 5px 14px; font-size: 15px;
}
.work__about { margin: 0; font-size: 15.5px; color: var(--ink-soft); }

.work__shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.shot {
  display: block; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; background: var(--tint); cursor: zoom-in; aspect-ratio: 4 / 3;
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.shot:hover img { transform: scale(1.04); }
.shot--sm { aspect-ratio: 1; }
span.shot { cursor: default; }
span.shot:hover img { transform: none; }

/* --- отзывы --- */

.revs { display: grid; gap: 14px; margin-bottom: 26px; }
.rev { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.rev__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 9px; }
.rev__who { color: var(--ink); font-size: 16.5px; }
.rev__date { color: var(--ink-mute); font-size: 13.5px; margin-left: auto; }
.rev__text { margin: 0; font-size: 16px; }
.rev__shots { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.rev__shots .shot { width: 104px; }
.rev__reply {
  margin-top: 14px; padding: 12px 15px; background: var(--tint);
  border-radius: var(--radius-sm); font-size: 15px;
}
.rev__reply b { color: var(--ink); font-size: 13.5px; }
.rev__reply p { margin: 4px 0 0; }
.rev__replyform { margin-top: 12px; display: grid; gap: 9px; justify-items: start; }
.rev__replyform textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 11px 13px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); resize: vertical;
}

.revform { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px; }
.revform summary {
  cursor: pointer; font-weight: 700; color: var(--ink); font-size: 16.5px; padding: 18px 0; list-style: none;
}
.revform summary::-webkit-details-marker { display: none; }
.revform summary::before { content: '+ '; color: var(--accent); font-weight: 800; }
.revform[open] summary::before { content: '− '; }
.revform[open] summary { border-bottom: 1px solid var(--line-soft); margin-bottom: 18px; }
.revform .form { padding-bottom: 22px; }

/* Оценка звёздами: порядок в разметке обратный, чтобы работал ~ в CSS */
.rate { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rate input { position: absolute; opacity: 0; width: 0; height: 0; }
.rate label { font-size: 30px; line-height: 1; color: #DCD5C9; cursor: pointer; transition: color .12s ease; }
.rate input:checked ~ label,
.rate label:hover, .rate label:hover ~ label { color: #E8A33B; }
.rate input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.dash__newwork { margin-top: 24px; }
.works--dash .work { border-style: dashed; }
.works--dash .work__shots { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }

/* --- просмотр фото --- */

.zoom {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: center;
  background: rgba(26,23,20,.9); padding: 24px; cursor: zoom-out;
  opacity: 0; transition: opacity .18s ease;
}
.zoom.is-open { opacity: 1; }
.zoom img { max-width: 100%; max-height: 90vh; border-radius: var(--radius); }
.zoom__close {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
}
.zoom__close:hover { background: rgba(255,255,255,.26); }

@media (max-width: 760px) {
  .work__shots { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
  .rev__date { margin-left: 0; width: 100%; }
  .revform { padding: 4px 16px; }
}

/* Свои услуги мастера в кабинете */
.dash__h--sub { font-size: 19px; margin-top: 30px; }
.dash__prices input[type="text"] {
  width: 100%; font: inherit; font-size: 15px; padding: 8px 10px;
  border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper);
}
.dash__unitinput { max-width: 110px; }
.linkbtn {
  font: inherit; font-size: 14px; background: none; border: 0; padding: 0;
  color: #C0392B; cursor: pointer; text-decoration: underline;
}
.linkbtn:hover { color: #96271a; }
.hidden-form { display: none; }
.dash__newextra { margin-top: 22px; }
