/* mint decor — стили сайта. Палитра «Шалфей»: тёплый белый, графит, мятный акцент. */

@font-face { font-family: 'Cormorant'; font-weight: 500; font-style: normal; font-display: swap;
  src: url(../fonts/cormorant-garamond-cyrillic-500-normal.woff2?v=5d2fd943) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant'; font-weight: 500; font-style: normal; font-display: swap;
  src: url(../fonts/cormorant-garamond-latin-500-normal.woff2?v=efeea72c) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant'; font-weight: 500; font-style: italic; font-display: swap;
  src: url(../fonts/cormorant-garamond-cyrillic-500-italic.woff2?v=63bbd029) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant'; font-weight: 500; font-style: italic; font-display: swap;
  src: url(../fonts/cormorant-garamond-latin-500-italic.woff2?v=9b8a16c9) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap;
  src: url(../fonts/manrope-cyrillic-400-normal.woff2?v=7d1637a6) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap;
  src: url(../fonts/manrope-latin-400-normal.woff2?v=1589a53d) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap;
  src: url(../fonts/manrope-cyrillic-500-normal.woff2?v=50c16b5d) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap;
  src: url(../fonts/manrope-latin-500-normal.woff2?v=f95b8f97) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap;
  src: url(../fonts/manrope-cyrillic-600-normal.woff2?v=3470ad06) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap;
  src: url(../fonts/manrope-latin-600-normal.woff2?v=58d382c3) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ── палитра ─────────────────────────────────────────── */
:root {
  --bg: #f6f4ef; --bg-alt: #ece8e0; --surface: #fbfaf7;
  --ink: #1f2422; --ink-2: #5d6461; --line: #dad5cb;
  --mint: #a8d4c2; --mint-soft: #dcede5; --accent: #2d6a5a;
  --btn: #2d6a5a; --btn-ink: #f6f4ef; --btn-hover: #24574a;
  --img-bg: #e3ded4;
  color-scheme: light;
}

:root {
  --serif: 'Cormorant', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --sec: clamp(80px, 11vw, 160px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

/* ── база ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.65 var(--sans); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--mint); color: #111; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--sec); }
.sec--alt { background: var(--bg-alt); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -.012em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 5.6vw, 4.9rem); }
h2 { font-size: clamp(2.3rem, 5vw, 4.1rem); }
h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.1; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }
p { margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 .74rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .6; flex: none; }
@media (max-width: 599px) { .hide-sm { display: none; } }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--ink-2); max-width: 34em; }
.muted { color: var(--ink-2); }

.sec-head { display: grid; gap: 22px; margin-bottom: clamp(44px, 6vw, 80px); }
.sec-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .sec-head--split { grid-template-columns: 1.1fr .9fr; gap: 60px; } }

/* ── кнопки ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 30px; border-radius: 999px;
  background: var(--btn); color: var(--btn-ink);
  font: 500 .95rem/1 var(--sans); letter-spacing: .02em;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink-2); }
.btn--block { width: 100%; }

.link {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 500;
  padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .3s var(--ease);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.link svg { width: 16px; height: 16px; }

/* ── шапка ───────────────────────────────────────────── */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.header.is-solid { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
/* пока шапка над видео — светлая */
.header.is-over { color: #fff; }
.header.is-over .nav a, .header.is-over .header__phone { color: rgba(255,255,255,.86); }
.header.is-over .nav a:hover { color: #fff; }
.header.is-over .btn { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); backdrop-filter: blur(6px); }
.header.is-over .btn:hover { background: #fff; color: var(--ink); }
.header.is-over .burger span, .header.is-over .burger span::before, .header.is-over .burger span::after { background: #fff; }
.menu-open .header { color: var(--ink); }
.menu-open .header .burger span::before, .menu-open .header .burger span::after { background: var(--ink); }

.logo { display: inline-flex; align-items: center; gap: .5em; font: 500 1.18rem/1 var(--sans); letter-spacing: .16em; white-space: nowrap; }
.logo b { width: .42em; height: .42em; border-radius: 50%; background: var(--mint); flex: none; }
.logo svg { width: 30px; height: 30px; flex: none; }

.nav { display: none; gap: clamp(18px, 2vw, 30px); margin-left: auto; font-size: .9rem; white-space: nowrap; }
.header .btn, .header__phone { white-space: nowrap; }
.nav a { color: var(--ink-2); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.header__phone { display: none; font-weight: 500; font-size: .95rem; white-space: nowrap; }
.header .btn { display: none; min-height: 44px; padding: 0 22px; font-size: .88rem; }
.burger { margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 1.5px; background: var(--ink); position: relative; transition: transform .3s var(--ease), background .2s; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1100px) {
  .nav { display: flex; }
  .header__phone { display: block; }
  .header .btn { display: inline-flex; }
  .burger { display: none; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a.mm-link { font: 500 2.2rem/1.25 var(--serif); padding: 6px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .mm-foot { margin-top: auto; display: grid; gap: 14px; }
.menu-open { overflow: hidden; }
@media (min-width: 1100px) { .mobile-menu { display: none; } }

/* ── первый экран: видео на весь экран ─────────────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #6f6a5c; }
.hero__video, .hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,17,16,.45) 0%, rgba(14,17,16,.12) 26%, rgba(14,17,16,.22) 55%, rgba(14,17,16,.78) 100%),
              linear-gradient(90deg, rgba(14,17,16,.35) 0%, rgba(14,17,16,0) 60%); }
.hero__toggle { position: absolute; z-index: 2; right: var(--gutter); top: calc(var(--header-h) + 14px); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s; }
.hero__toggle:hover { background: rgba(255,255,255,.28); }
.hero__toggle svg { width: 18px; height: 18px; }
.hero__toggle[hidden] { display: none; }
.hero .wrap { position: relative; z-index: 1; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(28px, 5vw, 56px); display: grid; gap: clamp(36px, 6vw, 72px); }
.hero__text { display: grid; gap: 24px; max-width: 760px; }
.hero .eyebrow { color: rgba(255,255,255,.82); }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); color: #fff; max-width: 11em; }
.hero h1 em { color: var(--mint); }
.hero .lead { color: rgba(255,255,255,.86); max-width: 36em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; margin-top: 6px; }
.hero__cta .btn { background: #fff; color: var(--ink); }
.hero__cta .btn:hover { background: var(--mint); }
.hero__cta .link { color: #fff; }
.hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.28); }
.hero__facts b { display: block; font: 500 clamp(1.9rem, 3vw, 2.6rem)/1 var(--serif); margin-bottom: 8px; color: #fff; }
.hero__facts span { font-size: .86rem; color: rgba(255,255,255,.8); line-height: 1.4; display: block; max-width: 22em; }
@media (max-width: 699px) {
  .hero__facts { grid-template-columns: 1fr; gap: 14px; }
  .hero__facts div { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 12px; }
  .hero__facts b { margin: 0; font-size: 1.7rem; white-space: nowrap; }
}

/* ── о нас ───────────────────────────────────────────── */
.about__head { display: grid; gap: 28px; margin-bottom: clamp(48px, 6vw, 84px); }
.about__text { display: grid; gap: 18px; align-content: start; }
@media (min-width: 900px) { .about__head { grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: end; } }

/* ── манифест ────────────────────────────────────────── */
.manifesto .wrap { display: grid; gap: 48px; align-items: center; }
.manifesto blockquote { margin: 0; font: 500 clamp(1.9rem, 3.6vw, 3.1rem)/1.18 var(--serif); letter-spacing: -.01em; text-wrap: pretty; }
.manifesto blockquote em { color: var(--accent); }
.manifesto figure { margin: 0; position: relative; }
.manifesto figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: var(--img-bg); }
.manifesto figcaption { margin-top: 14px; font-size: .82rem; color: var(--ink-2); }
@media (min-width: 900px) { .manifesto .wrap { grid-template-columns: .8fr 1.2fr; gap: clamp(60px, 8vw, 140px); } .manifesto figure { max-width: 440px; } }

/* ── почему мы ───────────────────────────────────────── */
.why { display: grid; gap: 0; border-top: 1px solid var(--line); }
.why__item { display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.why__num { font: italic 500 1.5rem/1.2 var(--serif); color: var(--accent); grid-row: span 2; }
.why__item h3 { font-size: 1.7rem; }
.why__item p { color: var(--ink-2); max-width: 30em; }
@media (min-width: 900px) {
  .why { grid-template-columns: repeat(4, 1fr); border-top: 0; }
  .why__item { grid-template-columns: 1fr; padding: 34px 32px 8px 0; border-bottom: 0; border-top: 1px solid var(--line); gap: 16px; }
  .why__item + .why__item { padding-left: 32px; border-left: 1px solid var(--line); }
  .why__num { grid-row: auto; }
}

/* ── покрытия: пять направлений ─────────────────────── */
.coats { display: grid; grid-auto-flow: column; grid-auto-columns: min(74vw, 300px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.coats::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .coats { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); gap: 22px; overflow: visible; margin: 0; padding: 0; } }
.coat { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; text-align: left; cursor: pointer; scroll-snap-align: start; }
.coat__img { position: relative; overflow: hidden; aspect-ratio: 4/5; background: var(--img-bg); }
.coat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.coat:hover .coat__img img { transform: scale(1.06); }
.coat__num { position: absolute; left: 14px; top: 12px; font: italic 500 1.3rem/1 var(--serif); color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.coat h3 { font-size: clamp(1.45rem, 1.8vw, 1.7rem); line-height: 1.08; }
.coat__btn { text-align: left; font: inherit; letter-spacing: inherit; line-height: inherit; }
.coat__btn::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.coat__short { color: var(--ink-2); font-size: .9rem; line-height: 1.5; }
.coat__price { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); font-size: .9rem; }
.coat__price b { font-weight: 600; }
.coat__price svg { width: 18px; height: 18px; color: var(--accent); transition: transform .3s var(--ease); }
.coat:hover .coat__price svg { transform: translateX(4px); }
.coat__more { display: none; }
.scroll-hint { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: .8rem; color: var(--ink-2); }
@media (min-width: 1000px) { .scroll-hint { display: none; } }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 7px 13px; border-radius: 999px; background: var(--mint-soft); font-size: .84rem; }

/* ── работы ──────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip {
  min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: .88rem;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); transition: .2s var(--ease);
}
.chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-2); }
.chip[aria-pressed="true"], .chip:has(input:checked) { background: var(--ink); color: var(--bg); box-shadow: none; }
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
@media (min-width: 900px) { .works { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.work { margin: 0; cursor: zoom-in; min-width: 0; }
.work[hidden] { display: none; }
.work__img { aspect-ratio: 4/5; overflow: hidden; background: var(--img-bg); }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .5s; }
.work:hover img { transform: scale(1.04); }
.work figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: .86rem; }
.work figcaption b { font-weight: 500; }
.works__more { display: flex; justify-content: center; margin-top: 12px; }
.works__more[hidden] { display: none; }
.work figcaption span { color: var(--ink-2); text-align: right; }
.work figcaption b, .work figcaption span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 599px) { .work figcaption { flex-direction: column; gap: 0; margin-top: 8px; font-size: .8rem; } .work figcaption span { text-align: left; } }

/* ── калькулятор ─────────────────────────────────────── */
.calc { display: grid; gap: 40px; }
@media (min-width: 1000px) { .calc { grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: start; } }
.calc__form { display: grid; gap: 34px; }
.field { display: grid; gap: 14px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend, .field > label { font: 500 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); padding: 0; margin-bottom: 14px; }
.field > label { margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label.chip { display: inline-flex; align-items: center; position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.area { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; }
.area__num { display: flex; align-items: baseline; gap: 6px; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.area__num input { width: 3.4em; border: 0; background: none; font: 500 2.2rem/1 var(--serif); text-align: right; padding: 0; -moz-appearance: textfield; }
.area__num input::-webkit-outer-spin-button, .area__num input::-webkit-inner-spin-button { -webkit-appearance: none; }
.area__num input:focus { outline: none; }
.area__num span { color: var(--ink-2); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: none; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(var(--accent), var(--accent)) 0/var(--fill, 20%) 100% no-repeat, var(--line); }
input[type=range]::-moz-range-track { height: 2px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 2px; background: var(--accent); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }

.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-alt); gap: 4px; flex-wrap: wrap; }
.seg button { min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: .88rem; color: var(--ink-2); transition: .2s var(--ease); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 6px rgba(0,0,0,.08); }
.nums { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 22px; }
.num { display: grid; gap: 6px; }
.num > span { font-size: .8rem; color: var(--ink-2); }
.num div { display: flex; align-items: baseline; gap: 6px; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.num input { width: 3.6em; border: 0; background: none; font: 500 2.1rem/1 var(--serif); padding: 0; -moz-appearance: textfield; }
.num input::-webkit-outer-spin-button, .num input::-webkit-inner-spin-button { -webkit-appearance: none; }
.num input:focus { outline: none; }
.num div:focus-within { border-color: var(--accent); }
.num em { font-style: normal; color: var(--ink-2); }
.nums .times { font: 500 1.6rem/1 var(--serif); color: var(--ink-2); padding-bottom: 8px; }
.calc__area { font-size: .92rem; padding-bottom: 8px; }
.calc__area b { font-weight: 600; }
[data-mode] [data-show] { display: none; }
[data-mode="area"] [data-show~="area"], [data-mode="room"] [data-show~="room"] { display: flex; }
[data-mode="area"] fieldset[data-show~="area"] { display: grid; }
.calc__result { position: sticky; top: calc(var(--header-h) + 24px); padding: clamp(28px, 3.4vw, 44px); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 18px; }
.calc__label { font: 500 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.calc__sum { font: 500 clamp(2rem, 3.2vw, 2.7rem)/1.1 var(--serif); letter-spacing: -.01em; }
.calc__sum span { white-space: nowrap; }
.calc__sum small { font-size: .55em; color: var(--ink-2); }
.calc__per { color: var(--ink-2); font-size: .92rem; }
.calc__list { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .9rem; }
.calc__list li { display: flex; justify-content: space-between; gap: 16px; }
.calc__list li span:first-child { color: var(--ink-2); }
.calc__note { font-size: .82rem; color: var(--ink-2); line-height: 1.5; }

/* ── этапы ───────────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 4px 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before { counter-increment: s; content: '0' counter(s); font: italic 500 1.6rem/1.1 var(--serif); color: var(--accent); grid-row: span 2; }
.step h3 { font-size: 1.55rem; }
.step p { color: var(--ink-2); max-width: 36em; }
.process { display: grid; gap: 48px; }
.process figure { margin: 0; }
.process figure img { width: 100%; aspect-ratio: 3/2; object-fit: cover; background: var(--img-bg); }
.process figcaption { margin-top: 14px; font-size: .82rem; color: var(--ink-2); }
@media (min-width: 1000px) {
  .process { grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: start; }
  .process figure { position: sticky; top: calc(var(--header-h) + 30px); }
  .process figure img { aspect-ratio: 4/5; }
}

/* ── материалы: две ценовые категории ──────────────── */
.tiers { display: grid; gap: 20px; }
@media (min-width: 900px) { .tiers { grid-template-columns: 1fr 1fr; gap: 28px; } }
.tier { padding: clamp(28px, 4vw, 48px); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 22px; align-content: start; }
.tier__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tier__label h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.tier__label span { font: 500 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.tier p { color: var(--ink-2); }
.tier__brands { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.tier__brands div { padding: 22px 22px 4px 0; min-width: 0; }
.tier__brands div + div { padding: 22px 0 4px 22px; border-left: 1px solid var(--line); }
.tier__brands b { display: block; font: 500 clamp(1.25rem, 2vw, 1.55rem)/1 var(--serif); letter-spacing: .12em; text-transform: uppercase; }
.tier__brands span { display: block; margin-top: 8px; font-size: .8rem; color: var(--ink-2); }
@media (max-width: 599px) {
  .tier__brands b { font-size: 1.12rem; letter-spacing: .06em; }
  .tier__brands div { padding-right: 14px; }
  .tier__brands div + div { padding-left: 14px; padding-right: 0; }
}

/* ── отзывы с Авито ───────────────────────────────── */
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: min(84vw, 340px); gap: 14px; align-items: start; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 12px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.reviews::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .reviews { display: block; columns: 3; column-gap: 20px; overflow: visible; margin: 0; padding: 0; } .review { break-inside: avoid; margin-bottom: 20px !important; } }
.review { scroll-snap-align: start; margin: 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 14px; }
.review__top { display: flex; align-items: center; gap: 12px; }
.review__ava { width: 42px; height: 42px; border-radius: 50%; background: var(--mint-soft); color: var(--accent); display: grid; place-items: center; font: 600 1.05rem/1 var(--sans); flex: none; }
.review__who { display: grid; gap: 2px; }
.review__who b { font-weight: 600; }
.review__who span { font-size: .8rem; color: var(--ink-2); }
.review__stars { color: #f5b301; letter-spacing: 2px; font-size: 1rem; line-height: 1; }
.review blockquote { margin: 0; font-size: .95rem; line-height: 1.6; white-space: pre-line; }
.review__src { font-size: .78rem; color: var(--ink-2); }
.reviews-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.avito-badge { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.avito-badge i { width: 26px; height: 26px; border-radius: 7px; background: conic-gradient(#00aaff 0 25%, #97cf26 0 50%, #ff6163 0 75%, #a169f7 0); }

/* ── дизайнерам ──────────────────────────────────────── */
.designers { padding-bottom: 0; }
.designers__card { display: grid; gap: 36px; padding: clamp(28px, 5vw, 64px); background: var(--mint-soft); border-radius: 4px; }
@media (min-width: 1000px) { .designers__card { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; } }
.designers__text { display: grid; gap: 20px; }
.designers__text h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.designers__cta { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; margin-top: 6px; }
.designers__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.designers__list li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.designers__list b { font-weight: 600; }
.designers__list span { color: var(--ink-2); font-size: .93rem; }

/* ── вопросы ─────────────────────────────────────────── */
.faq { display: grid; gap: 60px; }
@media (min-width: 1000px) { .faq { grid-template-columns: .8fr 1.2fr; gap: 90px; } }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font: 500 clamp(1.35rem, 2vw, 1.65rem)/1.2 var(--serif); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { flex: none; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); position: relative; transition: transform .35s var(--ease), background .2s; }
.qa summary i::before, .qa summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.qa summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease); }
.qa[open] summary i { background: var(--mint-soft); }
.qa[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.qa p { padding: 0 0 28px; color: var(--ink-2); max-width: 40em; }

/* ── контакты ────────────────────────────────────────── */
.contact { background: var(--bg-alt); }
.contact .wrap { display: grid; gap: 56px; }
@media (min-width: 1000px) { .contact .wrap { grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; } }
.contact__info { display: grid; gap: 28px; align-content: start; }
.contact__lines { display: grid; gap: 4px; margin-top: 12px; }
.contact__phone { font: 500 clamp(2rem, 3.6vw, 2.8rem)/1.1 var(--serif); }
.messengers { display: flex; flex-wrap: wrap; gap: 10px; }
.msg { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; font-size: .92rem; transition: box-shadow .2s; }
.msg:hover { box-shadow: inset 0 0 0 1px var(--ink-2); }
.msg svg { width: 22px; height: 22px; }

.form { display: grid; gap: 18px; padding: clamp(28px, 4vw, 48px); background: var(--surface); border: 1px solid var(--line); }
.form h3 { margin-bottom: 4px; }
.input { display: grid; gap: 8px; }
.input span { font-size: .8rem; color: var(--ink-2); }
.input input, .input textarea { width: 100%; min-height: 56px; padding: 0 18px; border: 1px solid var(--line); background: var(--bg); border-radius: 2px; font-size: 1.02rem; transition: border-color .2s; }
.input input:focus { outline: none; border-color: var(--accent); }
.input input[aria-invalid="true"] { border-color: #b4553f; }
.form__calc { font-size: .85rem; color: var(--ink-2); padding: 12px 14px; background: var(--mint-soft); border-radius: 2px; }
.form__calc[hidden] { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .8rem; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: .9rem; min-height: 1.4em; }
.form__status.is-err { color: #b4553f; }
.form__fields { display: grid; gap: 18px; }
.form.is-done .form__fields { display: none; }
.form__done { display: none; gap: 14px; }
.form.is-done .form__done { display: grid; }
.form__done b { font: 500 2rem/1.1 var(--serif); }

/* ── подвал ──────────────────────────────────────────── */
.footer { padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: .86rem; color: var(--ink-2); }
.footer .wrap { display: grid; gap: 28px; }
.footer .logo { color: var(--ink); }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer nav a:hover { color: var(--ink); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .78rem; }
@media (min-width: 900px) { .footer .wrap { grid-template-columns: auto 1fr; align-items: center; } .footer nav { justify-content: flex-end; } .footer__legal { grid-column: 1 / -1; } }

/* ── кнопки мессенджеров ─────────────────────────────── */
.fab { position: fixed; right: 20px; bottom: 24px; z-index: 40; display: none; flex-direction: column; gap: 10px; }
.fab a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: 0 10px 30px -10px rgba(0,0,0,.35), inset 0 0 0 1px var(--line); transition: transform .25s var(--ease); }
.fab a:hover { transform: translateY(-2px); }
.fab svg { width: 26px; height: 26px; }
@media (min-width: 900px) { .fab { display: flex; } }

.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 8px; align-items: center;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -1px 0 var(--line); transform: translateY(110%); transition: transform .35s var(--ease);
}
.mbar.is-on { transform: none; }
.mbar .btn { flex: 1; min-height: 50px; padding: 0 18px; }
.mbar a.ic { width: 50px; height: 50px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.mbar a.ic svg { width: 24px; height: 24px; }
@media (min-width: 900px) { .mbar { display: none; } }

.ico-wa { color: #25d366; } .ico-tg { color: #2aabee; }

/* ── окна ────────────────────────────────────────────── */
dialog { padding: 0; border: 0; color: var(--ink); background: var(--bg); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(12, 14, 13, .55); backdrop-filter: blur(4px); }
.sheet { width: min(1080px, calc(100vw - 32px)); max-height: calc(100svh - 32px); margin: auto; overflow: auto; }
.sheet[open] { animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
.sheet__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.sheet__close svg { width: 18px; height: 18px; }
.coat-sheet { display: grid; }
.coat-sheet__img { aspect-ratio: 4/3; overflow: hidden; background: var(--img-bg); }
.coat-sheet__img img { width: 100%; height: 100%; object-fit: cover; }
.coat-sheet__body { padding: clamp(26px, 4vw, 52px); display: grid; gap: 22px; align-content: start; }
.coat-sheet__body h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.coat-sheet__body .lead { font-size: 1.02rem; }
.specs { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.specs dt { color: var(--ink-2); }
.specs dd { margin: 0; }
.coat-sheet__price { font: 500 1.9rem/1 var(--serif); }
.coat-sheet__cta { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
@media (min-width: 860px) { .coat-sheet { grid-template-columns: 1fr 1fr; } .coat-sheet__img { aspect-ratio: auto; min-height: 100%; } }

.lightbox { width: 100vw; height: 100svh; background: rgba(14, 16, 15, .94); color: #eee; }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { margin: 0; display: grid; place-items: center; padding: 64px 16px 10px; min-height: 0; }
.lightbox img { max-width: 100%; max-height: calc(100svh - 150px); object-fit: contain; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px 22px; font-size: .9rem; }
.lightbox__bar span { color: #aaa; }
.lightbox__nav { display: flex; gap: 8px; }
.lightbox__nav button, .lightbox .sheet__close { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.08); color: #eee; display: grid; place-items: center; box-shadow: none; }
.lightbox__nav svg { width: 20px; height: 20px; }

/* ── появление при прокрутке ─────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── режим концепции (убрать перед запуском) ─────────── */
.concept-note { display: none; }
.concept .concept-note {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 7px 12px; border-radius: 6px;
  background: #fff3c4; color: #5c4a00; font: 500 .78rem/1.35 var(--sans);
}

@media (max-width: 899px) { .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }
