/* ============================================================
   МЕТР 2 — ремонт под ключ, Якутск
   Язык: тёплый и спокойный. Кремовая бумага, глубокий зелёный,
   крупные скругления, мягкие тени. Никакого монофонта и техничности —
   тут продаётся спокойствие, а не спецификация.
   Мобильная версия базовая, десктоп надстраивается.
   ============================================================ */

:root {
  --paper:   #f7f4ee;
  --card:    #ffffff;
  --cream:   #efe9df;
  --ink:     #191d1b;
  --ink-soft:#59615c;
  --ink-dim: #8a918c;
  --line:    #e2dbcf;

  --brand:      #0e4638;   /* глубокий зелёный */
  --brand-dk:   #093126;
  --brand-lt:   #7fc9ae;   /* на тёмном */
  --brand-tint: #e8f2ed;
  --sun:        #e2a33f;   /* тёплый акцент, только точечно */

  --wrap: 1180px;
  --pad:  clamp(18px, 5vw, 40px);
  --r:    20px;
  --r-sm: 14px;

  --sh:    0 2px 4px rgba(25,29,27,.03), 0 10px 30px -14px rgba(25,29,27,.22);
  --sh-lg: 0 4px 8px rgba(25,29,27,.04), 0 26px 60px -26px rgba(25,29,27,.35);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.vh {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; z-index: 300;
  background: var(--brand); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; top: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ─────────────── типографика ─────────────── */

h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(31px, 8vw, 60px); line-height: 1.06; }
h2 { font-size: clamp(24px, 5.6vw, 40px); }
h3 { font-size: clamp(18px, 4.2vw, 22px); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lead { font-size: clamp(16px, 4vw, 19px); color: var(--ink-soft); max-width: 40em; }

.kick {
  display: inline-block; margin: 0 0 14px;
  padding: 7px 15px; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand);
  font-size: 13px; font-weight: 600;
}
.sect--dark .kick { background: rgba(255,255,255,.1); color: var(--brand-lt); }

/* ─────────────── шапка ─────────────── */

.hdr {
  position: sticky; top: 0; z-index: 120;
  background: rgba(247,244,238,.93);
  backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr__in {
  max-width: var(--wrap); margin: 0 auto; padding: 11px var(--pad);
  display: flex; align-items: center; gap: 12px;
}

.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.logo img { height: 40px; width: auto; }

/* временный знак — заменяется логотипом клиента */
.logo__mark {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  background: var(--brand); color: #fff;
  display: grid; place-content: center;
  font-size: 15px; font-weight: 700; letter-spacing: -.02em;
}
.logo__txt b { display: block; font-size: 17px; font-weight: 700; line-height: 1.1; }
.logo__txt em {
  display: none; font-style: normal; font-size: 11.5px; color: var(--ink-dim);
}

.nav { display: none; }
.hdr__tel { display: none; font-weight: 700; font-size: 15.5px; text-decoration: none; white-space: nowrap; }
/* кнопка расчёта видна и на мобильном — это главный призыв.
   .btn задаёт inline-flex, поэтому здесь только сужаем на узких экранах */
@media (max-width: 359px) { .hdr__cta { display: none; } }

.burger {
  width: 44px; height: 44px; flex: none; padding: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 13px;
  cursor: pointer; display: grid; place-content: center; gap: 5px;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .22s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 110; background: var(--paper);
  padding: 80px var(--pad) calc(26px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease;
  overflow-y: auto;
}
.drawer[hidden] { display: none; }   /* display:flex перебивает [hidden] */
.drawer.open { transform: none; }
.drawer > a:not(.btn):not(.drawer__tel) {
  padding: 17px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; font-size: 20px; font-weight: 600;
}
.drawer a[aria-current] { color: var(--brand); }
.drawer__tel {
  margin-top: auto; padding: 22px 0 14px;
  font-size: 22px; font-weight: 700; text-decoration: none;
}

/* ─────────────── кнопки ─────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 17px 30px; border-radius: 999px;
  font: 600 16px/1 var(--font); text-decoration: none; text-align: center;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .17s, color .17s, border-color .17s, transform .17s;
}
.btn:active { transform: translateY(1px); }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-dk); }
.btn--ghost { border-color: var(--line); background: var(--card); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: var(--cream); }
.btn--sun { background: var(--sun); color: #241a06; }
.btn--sun:hover { background: #cf9130; }
.btn--sm { padding: 11px 20px; font-size: 14.5px; }
.btn--wide { width: 100%; }

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

.hero { padding: 30px 0 44px; }
.hero h1 span { color: var(--brand); }
.hero .lead { margin-top: 18px; }
.hero__cta { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }

/* три обещания из шапки профиля — вынесены на первый экран */
.promises {
  list-style: none; margin: 30px 0 0; padding: 0;
  display: grid; gap: 10px;
}
.promises li {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 15px 17px;
  display: flex; align-items: flex-start; gap: 13px;
}
.promises b { display: block; font-size: 15.5px; }
.promises span { font-size: 13.5px; color: var(--ink-soft); }
.promises i {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand-tint); color: var(--brand);
  display: grid; place-content: center; font-style: normal; font-weight: 700; font-size: 15px;
}

.hero__ph {
  margin-top: 30px; border-radius: var(--r); overflow: hidden;
  aspect-ratio: 4/3; border: 1px dashed var(--line);
  background:
    repeating-linear-gradient(45deg, rgba(14,70,56,.05) 0 10px, transparent 10px 20px),
    var(--cream);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 20px; font-size: 13.5px; font-weight: 600; color: var(--ink-dim);
}
.hero__ph::after { content: attr(data-ph); }

/* ─────────────── секции ─────────────── */

.sect { padding: 54px 0; }
.sect--cream { background: var(--cream); }
.sect--dark { background: var(--brand); color: #cfe3da; }
.sect--dark h2, .sect--dark h3 { color: #fff; }
.sect--dark .lead { color: #a8c6ba; }

.sect__head { margin-bottom: 28px; }
.sect__head .lead { margin-top: 14px; }

/* ─────────────── пакеты — ядро сайта ─────────────── */

.packs { display: grid; gap: 16px; }
.pack {
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--r); padding: 24px 22px;
  display: flex; flex-direction: column;
  position: relative;
}
.pack--hit { border-color: var(--brand); box-shadow: var(--sh-lg); }
.pack__flag {
  position: absolute; top: -12px; left: 22px;
  background: var(--sun); color: #241a06;
  padding: 5px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
}
.pack h3 { margin-bottom: 6px; }
.pack__for { color: var(--ink-soft); font-size: 14.5px; min-height: 2.6em; }
.pack__price {
  margin: 18px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.pack__price b { display: block; font-size: clamp(26px, 6.4vw, 32px); font-weight: 700; letter-spacing: -.03em; }
.pack__price span { font-size: 13px; color: var(--ink-dim); }
.pack ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.pack li { position: relative; padding-left: 26px; font-size: 14.5px; }
.pack li::before {
  content: ""; position: absolute; left: 2px; top: 7px;
  width: 11px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.pack li.no { color: var(--ink-dim); }
.pack li.no::before {
  border: 0; left: 4px; top: 9px; width: 9px; height: 2px; background: var(--ink-dim); transform: none;
}
.pack .btn { margin-top: auto; }

/* ─────────────── шаги ─────────────── */

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li {
  counter-increment: s; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 19px 20px 19px 60px; position: relative;
}
.steps li::before {
  content: counter(s); position: absolute; left: 18px; top: 18px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-content: center; font-size: 13.5px; font-weight: 700;
}
.sect--dark .steps li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.sect--dark .steps li::before { background: var(--brand-lt); color: var(--brand-dk); }
.steps b { display: block; font-size: 16.5px; margin-bottom: 4px; }
.steps span { color: var(--ink-soft); font-size: 14.5px; }
.sect--dark .steps span { color: #a8c6ba; }

/* ─────────────── врезка ─────────────── */

.note {
  background: var(--card); border-left: 4px solid var(--brand);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 18px 20px; font-size: 15px; color: var(--ink-soft); max-width: 46em;
}
.sect--dark .note { background: rgba(255,255,255,.07); border-color: var(--brand-lt); color: #cfe3da; }

/* ─────────────── калькулятор ─────────────── */

.calc { display: grid; gap: 24px; }
.calc__form {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px; box-shadow: var(--sh);
}
.calc__form fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.calc__form legend { padding: 0; margin-bottom: 12px; font-size: 14.5px; font-weight: 700; }

.range { display: flex; align-items: center; gap: 14px; }
.range input[type=range] {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 5px; border-radius: 5px; background: var(--cream); outline: none;
}
.range input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); border: 4px solid #fff; cursor: pointer;
  box-shadow: 0 2px 10px rgba(14,70,56,.35);
}
.range input[type=range]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); border: 4px solid #fff; cursor: pointer;
}
.range output { font-size: 18px; font-weight: 700; min-width: 76px; text-align: right; }
.hint { margin: 10px 0 0; font-size: 13px; color: var(--ink-dim); }

.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.opts label { position: relative; }
.opts input { position: absolute; opacity: 0; inset: 0; }
.opts span {
  display: block; text-align: center; padding: 14px 8px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 600; cursor: pointer; background: var(--paper);
}
.opts input:checked + span { border-color: var(--brand); background: var(--brand-tint); color: var(--brand); }
.opts input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.result {
  background: var(--brand); color: #fff; border-radius: var(--r-sm);
  padding: 22px; text-align: center; margin-bottom: 18px;
}
.result .lbl { display: block; font-size: 13px; color: #a8c6ba; margin-bottom: 8px; }
.result strong { display: block; font-size: clamp(23px, 6.4vw, 31px); font-weight: 700; letter-spacing: -.02em; }
.result .per { display: block; font-size: 13px; color: #a8c6ba; margin-top: 8px; }

.field-row { display: grid; gap: 10px; }

/* ─────────────── формы ─────────────── */

label.lbl { display: block; margin: 16px 0 7px; font-size: 14px; font-weight: 600; }
label.lbl span { font-weight: 400; color: var(--ink-dim); }

input[type=text], input[type=tel], textarea {
  width: 100%; padding: 16px; font: 400 16px/1.4 var(--font);
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink);
}
input:focus, textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
input.err, textarea.err { border-color: #c0392b; background: #fdf6f5; }
textarea { resize: vertical; }

.policy { margin: 12px 0 0; font-size: 12px; color: var(--ink-dim); }
.policy a { color: var(--ink-soft); }
.form-msg { margin: 14px 0 0; font-size: 14.5px; font-weight: 600; }
.form-msg.ok  { color: #1d7a54; }
.form-msg.bad { color: #c0392b; }

.lead-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px 20px; box-shadow: var(--sh);
  color: var(--ink);
}

/* ─────────────── галерея ─────────────── */

.shots { display: grid; gap: 13px; }
.shot { margin: 0; }
.shot__ph {
  border-radius: var(--r-sm); aspect-ratio: 4/3;
  border: 1px dashed var(--line);
  background:
    repeating-linear-gradient(45deg, rgba(14,70,56,.05) 0 10px, transparent 10px 20px),
    var(--cream);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 16px; font-size: 13px; font-weight: 600; color: var(--ink-dim);
}
.shot__ph::after { content: attr(data-ph); }
.shot img { border-radius: var(--r-sm); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.shot--wide .shot__ph, .shot--wide img { aspect-ratio: 16/10; }
.shot figcaption { margin-top: 9px; font-size: 13.5px; color: var(--ink-soft); }

/* ─────────────── отзывы ─────────────── */

.revs { display: grid; gap: 14px; }
.rev {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px;
}
.rev p { font-size: 15px; color: var(--ink-soft); }
.rev__who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.rev__ava {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--brand-tint); color: var(--brand);
  display: grid; place-content: center; font-weight: 700;
}
.rev__who b { display: block; font-size: 14.5px; }
.rev__who span { font-size: 13px; color: var(--ink-dim); }

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

.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 0 20px;
}
.faq summary {
  cursor: pointer; padding: 18px 32px 18px 0; position: relative;
  font-weight: 600; font-size: 16px; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 15px;
  font-size: 24px; font-weight: 400; color: var(--brand); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); font-size: 15px; }

/* ─────────────── контакты ─────────────── */

.contacts { display: grid; gap: 26px; }
.contacts__tel {
  display: block; font-size: clamp(25px, 7vw, 36px); font-weight: 700;
  text-decoration: none; letter-spacing: -.02em; margin-top: 14px;
}
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.chips a {
  padding: 11px 18px; border: 1.5px solid var(--line); border-radius: 999px;
  font-size: 14.5px; font-weight: 600; text-decoration: none; background: var(--card);
}
.chips a:hover { border-color: var(--brand); color: var(--brand); }

/* ─────────────── полоса призыва ─────────────── */

.band { background: var(--brand); color: #fff; }
.band .wrap { padding-top: 44px; padding-bottom: 44px; }
.band h2 { color: #fff; }
.band p { color: #a8c6ba; max-width: 38em; margin-top: 12px; }
.band .btn { margin-top: 22px; }

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

.ftr { background: #12211c; color: #8d9b94; padding: 44px 0 0; }
.ftr__in { display: grid; gap: 28px; }
.ftr__brand .logo__txt b { color: #fff; }
.ftr__brand .logo__mark { background: var(--brand-lt); color: var(--brand-dk); }
.ftr__brand p { margin: 14px 0 0; font-size: 14px; max-width: 30em; }
.ftr h4 { font-size: 13px; color: #5f6d66; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .08em; }
.ftr nav { display: grid; gap: 11px; }
.ftr a { text-decoration: none; font-size: 14.5px; }
.ftr a:hover { color: #fff; }
.ftr__tel { font-size: 19px; font-weight: 700; color: #fff !important; }
.ftr__bottom {
  margin-top: 34px; border-top: 1px solid #1e3129;
  padding: 18px 0 calc(18px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 12.5px;
}

/* ─────────────── нижняя панель (мобильный) ─────────────── */

.callbar {
  position: fixed; z-index: 100; left: 0; right: 0;
  bottom: 0; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: rgba(247,244,238,.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 9px;
  transform: translateY(130%); transition: transform .3s ease;
}
.callbar.show { transform: none; }
.callbar a {
  padding: 14px; border-radius: 999px; text-align: center;
  font-weight: 600; font-size: 15px; text-decoration: none;
}
.callbar__tel { background: var(--brand); color: #fff; }
.callbar__wa  { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); }
@media (max-width: 899px) { .ftr { padding-bottom: 84px; } }

/* ─────────────── документ ─────────────── */

.doc { max-width: 780px; }
.doc h2 { font-size: clamp(19px, 4.4vw, 23px); margin: 32px 0 10px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 15.5px; }
.crumbs { font-size: 13.5px; color: var(--ink-dim); padding: 18px 0 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

/* ============================================================
   ПЛАНШЕТ
   ============================================================ */
@media (min-width: 620px) {
  .hero__cta { flex-direction: row; }
  .promises { grid-template-columns: repeat(3, 1fr); }
  .promises li { flex-direction: column; gap: 10px; }
  .packs { grid-template-columns: repeat(2, 1fr); }
  .opts { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr auto; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .shot--wide { grid-column: span 2; }
  .revs { grid-template-columns: repeat(2, 1fr); }
  .contacts { grid-template-columns: 1fr 1fr; }
  .ftr__in { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .lead-card { padding: 30px; }
}

/* ============================================================
   ДЕСКТОП
   ============================================================ */
@media (min-width: 900px) {
  .sect { padding: 84px 0; }
  .hero { padding: 56px 0 70px; }

  .burger, .drawer, .callbar { display: none; }
  .nav { display: flex; gap: 24px; margin-right: 22px; }
  .nav a {
    text-decoration: none; font-size: 15px; font-weight: 500;
    color: var(--ink-soft); padding: 6px 0; position: relative;
  }
  .nav a:hover { color: var(--ink); }
  .nav a[aria-current] { color: var(--brand); font-weight: 600; }
  .hdr__tel { display: inline-flex; }
  .logo__txt em { display: block; }

  .hero__in { display: grid; grid-template-columns: 1.06fr .94fr; gap: 52px; align-items: center; }
  .hero__ph { margin-top: 0; aspect-ratio: 3/4; }
  .promises { grid-column: 1 / -1; margin-top: 44px; }

  .packs { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .pack--hit { transform: translateY(-8px); }

  .steps--2col { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: .88fr 1.12fr; gap: 46px; align-items: start; }
  .calc__form { padding: 30px; }
  .shots { grid-template-columns: repeat(3, 1fr); }
  .shot--wide { grid-column: span 2; grid-row: span 2; }
  .shot--wide .shot__ph, .shot--wide img { aspect-ratio: auto; height: 100%; min-height: 330px; }
  .revs { grid-template-columns: repeat(3, 1fr); }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
  .faq summary { font-size: 17px; }
}
