/* TonHouse — канон категории всерьёз. Графит владеет входом и выходом, белое поле работает между ними. */

:root {
  --ink: #0B0B0D;
  --ink-2: #14161B;
  --ink-3: #1E222A;
  --paper: #FFFFFF;
  --mist: #F4F5F7;
  --line: #E3E5EA;
  --line-dark: #2A2E37;
  --text: #0B0B0D;
  --text-2: #5D626C;
  --text-on-ink: #FFFFFF;
  --text-on-ink-2: #A8AEBA;
  --amber: #FFB020;
  --wa: #25D366;
  --wa-ink: #0B3B20;
  --tg: #29A8E0;
  --vk: #0061D1;

  --r-card: 14px;
  --r-btn: 10px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(11, 11, 13, .06), 0 1px 1px rgba(11, 11, 13, .04);
  --sh-2: 0 2px 4px rgba(11, 11, 13, .05), 0 12px 28px -14px rgba(11, 11, 13, .28);
  --sh-3: 0 4px 10px rgba(11, 11, 13, .08), 0 24px 48px -20px rgba(11, 11, 13, .38);

  --gut: 20px;
  --max: 1180px;
  --ease: cubic-bezier(.16, .84, .32, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.028em; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: rgba(11, 11, 13, .3); text-underline-offset: .18em; }
button { font: inherit; color: inherit; }

::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.sec--ink :focus-visible, .hero :focus-visible, .foot :focus-visible { outline-color: var(--amber); }

@supports (scrollbar-color: black white) {
  html { scrollbar-color: #C3C7D0 var(--mist); }
}
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--mist); }
::-webkit-scrollbar-thumb { background: #C3C7D0; border: 3px solid var(--mist); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: #A6ABB6; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic--star { fill: var(--amber); stroke: none; width: 16px; height: 16px; }

.vh {
  position: absolute; 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; top: 0; z-index: 60;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r-btn) 0;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: 820px; }

/* ── header ─────────────────────────────────────────── */

.head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 11, 13, .92);
  backdrop-filter: saturate(140%) blur(10px);
  color: var(--text-on-ink);
  border-bottom: 1px solid var(--line-dark);
}
.head__in { display: flex; align-items: center; gap: 20px; height: 72px; }

.mark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.mark__logo { width: 52px; height: 52px; }
.mark--foot .mark__logo { width: 54px; height: 54px; }
.mark__word {
  font-weight: 800; font-size: 19px; letter-spacing: .01em;
  font-feature-settings: "ss01"; text-transform: lowercase; color: #fff;
}

.nav { display: flex; gap: 22px; margin-inline: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--text-on-ink-2); transition: color .16s var(--ease); }
.nav a:hover { color: #fff; }

.head__tel {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 600; font-size: 15px;
  font-variant-numeric: tabular-nums;
  padding: 9px 14px; border: 1px solid var(--line-dark); border-radius: var(--r-btn);
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.head__tel:hover { background: var(--ink-3); border-color: #3A404C; }
.head__tel .ic { width: 17px; height: 17px; }



/* ── buttons ────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 20px; border-radius: var(--r-btn);
  font-weight: 600; font-size: 15.5px; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .14s var(--ease), background-color .16s var(--ease),
              border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 11px 16px; font-size: 14.5px; }

.btn--wa { background: var(--wa); color: var(--wa-ink); box-shadow: var(--sh-2); }
.btn--wa:hover { background: #1FBE5B; }
.btn--tg { background: var(--tg); color: #04283A; }
.btn--tg:hover { background: #1E97CD; }
.btn--vk { background: var(--vk); color: #fff; }
.btn--vk:hover { background: #0052B3; }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); }

.btn--ghost { background: transparent; color: #fff; border-color: #343A45; }
.btn--ghost:hover { background: rgba(255, 255, 255, .07); border-color: #4A5160; }
.btn--ghost-dark { color: var(--ink); border-color: var(--line); background: var(--paper); }
.btn--ghost-dark:hover { background: var(--mist); border-color: #CFD3DB; }

.lnk {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  color: var(--ink); border-bottom: 1.5px solid var(--amber); padding-bottom: 2px;
  align-self: flex-start;
  transition: gap .16s var(--ease);
}
.lnk .ic { width: 17px; height: 17px; }
.lnk:hover { gap: 11px; }

/* ── hero ───────────────────────────────────────────── */

.hero {
  background-color: var(--ink);
  color: var(--text-on-ink);
  padding: 56px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto 40%;
  height: 120%; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 50%, rgba(63, 88, 124, .30), transparent 70%);
  filter: blur(4px);
}
.hero__in { position: relative; }

.hero__h {
  font-size: clamp(2.2rem, 6.4vw, 3.9rem);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.04;
  margin-bottom: 20px;
}
.hero__sub {
  max-width: 60ch; color: #C9CEDA; font-size: 17px; line-height: 1.55;
  margin-bottom: 36px;
}

.pick { margin-bottom: 28px; }
.pick__t {
  font-size: 14px; font-weight: 600; letter-spacing: .02em;
  color: var(--text-on-ink-2); margin-bottom: 12px;
}
.pick__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.tile {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  text-align: left; padding: 16px 16px 18px;
  background: var(--ink-2); border: 1px solid var(--line-dark);
  border-radius: var(--r-card); cursor: pointer; color: #fff;
  transition: border-color .18s var(--ease), background-color .18s var(--ease),
              transform .18s var(--ease);
}
.tile:hover { background: var(--ink-3); border-color: #3C434F; }
.tile[aria-pressed="true"] {
  border-color: var(--amber);
  background: linear-gradient(180deg, rgba(255, 176, 32, .10), rgba(255, 176, 32, .03));
}
.tile__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tile__area { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.tile__addr { font-size: 15px; color: #D3D8E2; }
.tile__meta {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; color: var(--text-on-ink-2); font-variant-numeric: tabular-nums;
}
.tile__meta .ic { width: 15px; height: 15px; }
.tile__kind {
  margin-top: 6px; font-size: 13px; color: var(--text-on-ink-2);
  padding-top: 10px; border-top: 1px solid var(--line-dark);
}
.tile__mark {
  position: absolute; top: 14px; right: 14px;
  width: 24px; height: 24px; border-radius: var(--r-pill);
  background: var(--amber); color: var(--ink);
  display: grid; place-items: center;
  transform: scale(.4); opacity: 0;
  transition: transform .26s var(--ease), opacity .18s var(--ease);
}
.tile__mark .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.tile[aria-pressed="true"] .tile__mark { transform: scale(1); opacity: 1; }
.tile[aria-pressed="true"] .rate { opacity: 0; }

.rate {
  display: inline-flex; align-items: baseline; gap: 5px;
  font-size: 13px; color: var(--text-on-ink-2); white-space: nowrap;
  transition: opacity .18s var(--ease);
}
.rate .ic--star { align-self: center; }
.rate b { font-size: 15px; color: #fff; font-variant-numeric: tabular-nums; }
.rate__n { font-variant-numeric: tabular-nums; }
.rate--dark { color: var(--text-2); }
.rate--dark b { color: var(--ink); }

.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.cta--hero { margin-bottom: 20px; }
.hero__hint { max-width: 62ch; font-size: 14.5px; color: var(--text-on-ink-2); line-height: 1.5; }

/* ── sections ───────────────────────────────────────── */

.sec { padding: 72px 0; }
.sec--mist { background: var(--mist); }
.sec--ink { background: var(--ink); color: var(--text-on-ink); }

.sec__head { margin-bottom: 36px; max-width: 70ch; }
.sec__t { font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin-bottom: 12px; }
.sec__lead { color: var(--text-2); font-size: 16.5px; max-width: 68ch; }
.sec--ink .sec__lead { color: #B4BAC6; }

/* ── services ───────────────────────────────────────── */

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--sh-1);
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { box-shadow: var(--sh-2); border-color: #D2D6DE; }
.card--wide { grid-column: span 2; flex-direction: row; gap: 22px; padding: 0; overflow: hidden; }
.card--wide .card__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 24px 0; flex: 1; }

.card__shot { margin: 0; flex: none; width: 44%; overflow: hidden; background: var(--mist); }
.card__shot img { width: 100%; height: 100%; object-fit: cover; }
.card__shot--sm { width: auto; height: 128px; border-radius: 10px; margin-bottom: 4px; }
.card__shot--sm img { height: 128px; object-position: center 42%; }

.card__ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--mist); color: var(--ink);
  display: grid; place-items: center; margin-bottom: 2px;
}
.card__t { font-size: 18.5px; font-weight: 700; }
.card--wide .card__t { font-size: 22px; }
.card__d { color: var(--text-2); font-size: 15.5px; }
.card__p { font-size: 15px; color: var(--text-2); margin-top: auto; padding-top: 4px; }
.card__p b { font-size: 19px; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── price ──────────────────────────────────────────── */

.price__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  padding: 9px 15px; border-radius: var(--r-pill);
  background: var(--paper); border: 1px solid var(--line);
  font-size: 14.5px; font-weight: 500; cursor: pointer;
  transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.chip:hover { border-color: #C6CAD3; }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

.price__t {
  width: 100%; border-collapse: collapse;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; box-shadow: var(--sh-1);
}
.price__t thead th {
  text-align: left; font-size: 13px; font-weight: 600; letter-spacing: .03em;
  color: var(--text-2); padding: 14px 20px; border-bottom: 1px solid var(--line);
  background: #FAFBFC;
}
.price__t tbody tr { border-bottom: 1px solid var(--line); }
.price__t tbody tr:last-child { border-bottom: 0; }
.price__t tbody tr.is-off { display: none; }
.price__t th[scope="row"] { text-align: left; font-weight: 500; font-size: 16px; padding: 15px 20px; }
.price__t .num {
  font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap;
  padding: 15px 20px; text-align: right; width: 1%;
}
.price__t .act { padding: 15px 20px; text-align: right; width: 1%; }
.price__t .act a {
  font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
  border-bottom: 1.5px solid var(--amber); padding-bottom: 1px;
}
.price__t tbody tr:hover { background: #FBFBFC; }

.price__foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-top: 20px;
}
.price__foot p { font-size: 14px; color: var(--text-2); max-width: 46ch; }

/* ── trust ──────────────────────────────────────────── */

.proof { display: flex; flex-direction: column; }
.proof__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  padding: 26px 0; border-top: 1px solid var(--line-dark);
  align-items: start;
}
.proof__row:last-child { border-bottom: 1px solid var(--line-dark); }
.proof__claim h3 { font-size: 21px; margin-bottom: 8px; }
.proof__claim p { color: #B4BAC6; font-size: 16px; max-width: 42ch; }

.quote { margin: 0; }
.quote blockquote {
  margin: 0 0 10px; font-size: 17px; line-height: 1.5; color: #fff;
  text-wrap: pretty;
}
.quote figcaption { font-size: 14px; color: var(--text-on-ink-2); }
.quote figcaption a { color: #D3D8E2; text-decoration-color: rgba(211, 216, 226, .4); }
.quote figcaption a:hover { color: #fff; }

/* ── gallery ────────────────────────────────────────── */

.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.shot {
  position: relative; display: block; width: 100%; margin: 0;
  border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; background: var(--mist);
  aspect-ratio: 3 / 4;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px; text-align: left;
  font-size: 14.5px; font-weight: 600; color: #fff;
  background: linear-gradient(to top, rgba(11, 11, 13, .82), rgba(11, 11, 13, 0));
}

/* ── reviews ────────────────────────────────────────── */

.revs {
  columns: 3; column-gap: 16px;
}
.rev {
  break-inside: avoid; margin-bottom: 16px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 18px 20px; box-shadow: var(--sh-1);
}
.rev blockquote { margin: 0 0 10px; font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.rev__who { font-size: 13.5px; color: var(--text-2); }
.revs__note { margin-top: 12px; font-size: 13.5px; color: var(--text-2); }

/* ── branches ───────────────────────────────────────── */

.brs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.br {
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--paper); box-shadow: var(--sh-1);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.br.is-picked { border-color: var(--ink); box-shadow: var(--sh-2); }
.br__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.br__t { font-size: 18px; }
.br__kind { font-size: 14px; color: var(--text-2); }
.br__rows { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.br__rows > div { display: flex; gap: 10px; align-items: flex-start; }
.br__rows dt { color: var(--text-2); }
.br__rows dd { margin: 0; font-size: 15.5px; }
.br__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.br__acts .btn { padding: 11px 16px; font-size: 14.5px; }

/* ── faq ────────────────────────────────────────────── */

.faq--narrow { max-width: 820px; }
.faq { border-top: 1px solid var(--line); }
.q { border-bottom: 1px solid var(--line); }
.q summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 2px; cursor: pointer; list-style: none;
  font-size: 17.5px; font-weight: 600; letter-spacing: -.015em;
}
.q summary::-webkit-details-marker { display: none; }
.q__sign {
  flex: none; width: 30px; height: 30px; border-radius: var(--r-pill);
  border: 1px solid var(--line); display: grid; place-items: center;
  transition: transform .26s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.q[open] .q__sign { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.q__a { padding: 0 2px 22px; max-width: 68ch; }
.q__a p { color: var(--text-2); font-size: 16px; }

/* ── final ──────────────────────────────────────────── */

.final { padding: 76px 0 72px; text-align: left; }
.final__t { font-size: clamp(1.8rem, 4.4vw, 2.9rem); font-weight: 800; letter-spacing: -.034em; margin-bottom: 14px; }
.final__lead { color: #B4BAC6; font-size: 17px; max-width: 56ch; margin-bottom: 28px; }
.cta--final { margin-bottom: 18px; }
.final__state { font-size: 14.5px; color: var(--text-on-ink-2); }

/* ── footer ─────────────────────────────────────────── */

.foot {
  background: #08080A; color: var(--text-on-ink-2);
  border-top: 1px solid var(--line-dark); padding: 44px 0 40px;
  font-size: 15px;
}
.foot__in {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
}
.foot__brand .mark { color: #fff; margin-bottom: 12px; }
.foot__brand p { max-width: 34ch; }
.foot__col h3 { font-size: 14px; color: #fff; margin-bottom: 12px; letter-spacing: .02em; }
.foot__col li + li { margin-top: 8px; }
.foot__col a { text-decoration: none; transition: color .16s var(--ease); }
.foot__col a:hover { color: #fff; text-decoration: underline; }
.foot__note {
  grid-column: 1 / -1; padding-top: 24px; margin-top: 4px;
  border-top: 1px solid var(--line-dark); font-size: 13px; color: #7B8291; max-width: 84ch;
}

/* ── плашка демо ────────────────────────────────────── */

.demo {
  background: var(--ink-2); color: var(--text-on-ink-2);
  border-top: 1px solid var(--line-dark);
  padding: 14px 0 calc(14px + env(safe-area-inset-bottom));
  font-size: 13.5px;
}
.demo__in { display: flex; align-items: flex-start; gap: 10px; }
.demo__dot {
  width: 8px; height: 8px; border-radius: var(--r-pill);
  background: var(--amber); flex: none; margin-top: 6px;
}

/* ── sticky bar ─────────────────────────────────────── */

.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: rgba(11, 11, 13, .94);
  backdrop-filter: saturate(140%) blur(12px);
  border-top: 1px solid var(--line-dark);
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform .34s var(--ease);
}
.bar.is-up { transform: translateY(0); }
.bar__in { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.bar__state {
  color: #fff; font-size: 14.5px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── adaptive ───────────────────────────────────────── */

@media (max-width: 1040px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; }
  .brs { grid-template-columns: 1fr; }
  .revs { columns: 2; }
  .foot__in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .head__tel { margin-left: auto; }
  .head__in { gap: 12px; }
  .mark__logo { width: 40px; height: 40px; }

  .pick__row { grid-template-columns: 1fr; }
  .tile { padding: 14px; }
  .hero { padding: 40px 0 32px; }
  .hero__sub { font-size: 16px; margin-bottom: 28px; }

  .sec { padding: 52px 0; }
  .sec__head { margin-bottom: 26px; }

  .cards { grid-template-columns: 1fr; }
  .card--wide { grid-column: span 1; flex-direction: column; }
  .card--wide .card__body { padding: 0 20px 22px; }
  .card__shot { width: 100%; height: 220px; }
  .card__shot--sm { height: 150px; }
  .card__shot--sm img { height: 150px; }

  .proof__row { grid-template-columns: 1fr; gap: 14px; }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .revs { columns: 1; }
  .price__t .act { display: none; }
  .price__t thead th:last-child { display: none; }

  .foot__in { grid-template-columns: 1fr; gap: 26px; }

  body { padding-bottom: 68px; }
}

@media (max-width: 420px) {
  /* мессенджер во всю ширину, остальные каналы — парами, чтобы первый экран не растягивался */
  .cta--hero .btn, .cta--final .btn { flex: 1 1 calc(50% - 5px); }
  .cta--hero .btn--wa, .cta--final .btn--wa { flex: 1 1 100%; }
  .gal { grid-template-columns: 1fr; }
  .hero__h { font-size: 2rem; }
}

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