/* =========================================================
   Мастерская Александра — живой тёмный инженерный стиль
   #0F1115 / #161A20 / #262B35 / #F59E0B / #10B981
   ========================================================= */

:root {
  --bg:         #0F1115;
  --bg-alt:     #12151B;
  --surface:    #161A20;
  --surface-2:  #1B2028;
  --border:     #262B35;
  --border-hi:  #353D4D;
  --text:       #F3F4F6;
  --muted:      #9CA3AF;
  --muted-2:    #6B7280;
  --accent:     #F59E0B;
  --accent-hi:  #FBBF24;
  --accent-ink: #0F1115;
  --wa:         #10B981;
  --wa-hi:      #14CA8E;
  --wa-ink:     #051911;

  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;
  --container: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
  padding-bottom: calc(74px + env(safe-area-inset-bottom));
}
body.is-locked { overflow: hidden; }
@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) {
  .container { padding-inline: 32px; }
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.u-amber { color: var(--accent); font-weight: 700; }

/* ---------- Scroll Progress Hairline ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 95;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

/* =========================================================
   BUTTONS (Primary Pill + Distinct Secondary Outline)
   ========================================================= */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 100%;
  min-height: 48px;
  padding: 5px 6px 5px 18px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.15;
  white-space: nowrap;
  transition: background-color 200ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.pill-btn:active { transform: scale(0.98); }

.pill-btn--sm {
  min-height: 40px;
  padding: 4px 5px 4px 16px;
  font-size: 0.875rem;
  gap: 10px;
}
.pill-btn--lg {
  min-height: 54px;
  padding: 6px 7px 6px 22px;
  font-size: 0.96875rem;
}
.pill-btn--block { width: 100%; }
@media (max-width: 400px) {
  .pill-btn--lg {
    min-height: 50px;
    padding: 5px 6px 5px 16px;
    font-size: 0.88rem;
    gap: 8px;
  }
  .pill-btn--lg .pill-btn__circle { width: 36px; height: 36px; }
}

.pill-btn__circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 300ms var(--ease-spring);
}
.pill-btn--sm .pill-btn__circle { width: 30px; height: 30px; }
.pill-btn--lg .pill-btn__circle { width: 40px; height: 40px; }
.pill-btn__circle svg {
  width: 16px;
  height: 16px;
  transition: transform 300ms var(--ease-spring);
}
.pill-btn:hover .pill-btn__circle { transform: scale(1.07); }
.pill-btn:hover .pill-btn__circle svg { transform: translate(1.8px, -1.8px); }

.pill-btn--wa {
  background: var(--wa);
  color: var(--wa-ink);
}
.pill-btn--wa:hover {
  background: var(--wa-hi);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.22);
}
.pill-btn--wa .pill-btn__circle {
  background: var(--bg);
  color: var(--wa);
}

.pill-btn--amber {
  background: var(--accent);
  color: var(--accent-ink);
}
.pill-btn--amber:hover {
  background: var(--accent-hi);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.22);
}
.pill-btn--amber .pill-btn__circle {
  background: var(--bg);
  color: var(--accent);
}

/* Второстепенная кнопка — чистый прямоугольник с тонкой рамкой */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-hi);
  background: rgba(22, 26, 32, 0.85);
  color: var(--text);
  font-weight: 600;
  font-size: 0.96875rem;
  white-space: nowrap;
  transition: border-color 200ms ease, background-color 200ms ease, transform 200ms var(--ease);
}
.btn-outline:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-1px);
}
.btn-outline--ic svg { width: 17px; height: 17px; color: var(--accent); }

/* =========================================================
   FLOATING NAVBAR (Чистая на десктопе, с 2 полосками на моб.)
   ========================================================= */
.nav-shell {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 70;
  padding-inline: 14px;
  pointer-events: none;
  transition: transform 320ms var(--ease);
}
@media (min-width: 768px) {
  .nav-shell { top: 18px; padding-inline: 32px; }
}

.nav-pill {
  pointer-events: auto;
  max-width: var(--container);
  margin-inline: auto;
  height: 60px;
  padding: 6px 8px 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(22, 26, 32, 0.96);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  transition: border-color 220ms ease, background-color 220ms ease;
}
.nav-shell.is-scrolled .nav-pill {
  border-color: var(--border-hi);
  background: #161A20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-hi);
  color: var(--accent);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  transition: border-color 200ms ease, transform 240ms var(--ease);
}
.brand:hover .brand__mark {
  border-color: var(--accent);
  transform: rotate(12deg);
}
.brand__mark svg { width: 18px; height: 18px; }

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.brand__name {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__sub {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 440px) {
  .nav-pill { padding: 6px 6px 6px 10px; gap: 8px; }
  .brand { gap: 8px; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__mark svg { width: 16px; height: 16px; }
  .brand__name { font-size: 0.84rem; }
  .brand__sub { font-size: 0.68rem; }
}

.nav-links { display: none; }
@media (min-width: 1080px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
  }
}
.nav-links__item {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding-block: 4px;
  transition: color 180ms ease;
}
.nav-links__item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease);
}
.nav-links__item:hover { color: var(--text); }
.nav-links__item:hover::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: border-color 180ms ease, color 180ms ease;
}
.nav-phone:hover { border-color: var(--accent); color: var(--accent); }
.nav-phone__ic { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.nav-phone__num { display: none; }
@media (min-width: 1220px) {
  .nav-phone {
    border-color: transparent;
    background: transparent;
    padding: 0 8px;
  }
  .nav-phone__num { display: inline; }
}

.nav-wa { display: none; }
@media (min-width: 768px) {
  .nav-wa { display: inline-flex; }
}

/* Две полоски меню показываются только когда горизонтальная навигация скрыта */
.menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
  background: var(--bg);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.menu-toggle:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}
.menu-toggle__line {
  width: 16px;
  height: 1.75px;
  background: var(--text);
  border-radius: 2px;
  transition: background-color 180ms ease;
}
.menu-toggle:hover .menu-toggle__line { background: var(--accent); }

@media (min-width: 1080px) {
  .menu-toggle { display: none; }
}

/* =========================================================
   FULL-SCREEN SLIDE-OUT DRAWER
   ========================================================= */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 420ms;
}
.drawer.is-open {
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0s;
}
.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 13, 0.76);
  opacity: 0;
  transition: opacity 360ms var(--ease);
}
.drawer.is-open .drawer__backdrop { opacity: 1; }

.drawer__panel {
  position: absolute;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 24px calc(24px + env(safe-area-inset-bottom));
  transform: translateX(100%);
  transition: transform 440ms var(--ease);
  overflow-y: auto;
}
@media (min-width: 768px) {
  .drawer__panel {
    left: auto;
    width: min(540px, 100%);
    border-left: 1px solid var(--border);
    padding: 26px 36px 32px;
  }
}
.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.drawer__close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
  background: var(--surface);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 260ms var(--ease);
}
.drawer__close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: rotate(90deg);
}

.drawer__nav { margin-block: auto; padding-block: 12px; }
.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: clamp(14px, 2.2vh, 20px);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 380ms var(--ease), transform 380ms var(--ease), color 180ms ease;
}
.drawer.is-open .drawer__link { opacity: 1; transform: translateX(0); }
.drawer.is-open .drawer__link:nth-child(1) { transition-delay: 70ms; }
.drawer.is-open .drawer__link:nth-child(2) { transition-delay: 110ms; }
.drawer.is-open .drawer__link:nth-child(3) { transition-delay: 150ms; }
.drawer.is-open .drawer__link:nth-child(4) { transition-delay: 190ms; }
.drawer.is-open .drawer__link:nth-child(5) { transition-delay: 230ms; }
.drawer.is-open .drawer__link:nth-child(6) { transition-delay: 270ms; }

.drawer__label {
  font-size: clamp(1.375rem, 3.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.drawer__arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-grid;
  place-items: center;
  color: var(--muted);
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 240ms var(--ease);
}
.drawer__arrow svg { width: 16px; height: 16px; }
.drawer__link:hover .drawer__label { color: var(--accent); }
.drawer__link:hover .drawer__arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: translate(2px, -2px);
}

.drawer__bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.drawer__meta { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: var(--muted); }
.drawer__phone { font-size: 1.05rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.drawer__phone:hover { color: var(--accent); }

/* =========================================================
   100VH HERO WITH PARALLAX & MASKED TEXT REVEAL
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: 112px;
  padding-bottom: clamp(36px, 5.5vh, 64px);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero__bg {
  position: absolute;
  inset: -6% 0;
  z-index: 0;
  background: var(--bg);
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 45%;
  filter: brightness(0.72) contrast(1.08) saturate(0.8);
  transform: scale(1.08);
  opacity: 0.8;
  will-change: transform;
  transition: transform 1300ms var(--ease), opacity 900ms ease;
}
.is-ready .hero__img {
  transform: scale(1.02);
  opacity: 0.84;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 17, 21, 0.94) 0%, rgba(15, 17, 21, 0.74) 54%, rgba(15, 17, 21, 0.36) 100%),
    linear-gradient(180deg, rgba(15, 17, 21, 0.56) 0%, rgba(15, 17, 21, 0.14) 42%, rgba(15, 17, 21, 0.96) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: end;
}
@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 44px;
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(22, 26, 32, 0.9);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #D1D5DB;
  margin-bottom: 20px;
}
.hero__badge-ic { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }

.hero__title {
  font-size: clamp(2.25rem, 5.2vw, 4.15rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.04;
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.js .line > span {
  display: block;
  transform: translateY(115%);
  transition: transform 860ms var(--ease-spring);
  transition-delay: calc(var(--d, 0) * 100ms);
}
.is-ready .line > span { transform: translateY(0); }

.js .hero-enter {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease);
  transition-delay: calc(var(--d, 0) * 95ms);
}
.is-ready .hero-enter { opacity: 1; transform: translateY(0); }

.hero__lead {
  margin-top: 22px;
  font-size: clamp(1.03rem, 1.45vw, 1.18rem);
  color: #D1D5DB;
  max-width: 52ch;
  line-height: 1.58;
}

.hero__cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 540px) {
  .hero__cta { flex-direction: row; flex-wrap: wrap; }
}

.hero__facts {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.875rem;
  color: var(--muted);
}
.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero__facts svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }

/* Карточка рейтинга 2ГИС */
.trust-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  background: rgba(22, 26, 32, 0.94);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-lg);
  transition: border-color 220ms ease, transform 260ms var(--ease);
}
.trust-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.trust-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.trust-card__stars { color: var(--accent); letter-spacing: 2px; font-size: 0.95rem; }
.trust-card__gis { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.trust-card__score {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.trust-card__score strong {
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
  color: var(--text);
}
.trust-card__score span { font-size: 0.9rem; color: var(--muted); }
.trust-card__desc { font-size: 0.84rem; color: var(--muted); line-height: 1.45; }

/* =========================================================
   SECTIONS & KICKERS
   ========================================================= */
.section {
  padding-block: clamp(72px, 9.5vw, 120px);
  scroll-margin-top: 88px;
}
.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}
.kicker svg { width: 16px; height: 16px; flex-shrink: 0; }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-bottom: clamp(30px, 4.5vw, 48px);
}
@media (min-width: 900px) {
  .sec-head {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: end;
    gap: 40px;
  }
}
.sec-head__title {
  font-size: clamp(1.85rem, 3.8vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.08;
}
.sec-head__lead {
  color: var(--muted);
  font-size: 1rem;
  max-width: 46ch;
}
.sec-head__right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (min-width: 900px) {
  .sec-head__right { align-items: flex-end; text-align: right; }
}

/* =========================================================
   EDITORIAL + LINE DRAW + RE-TRIGGERING KPIS
   ========================================================= */
.editorial {
  display: grid;
  gap: 12px;
}
@media (min-width: 900px) {
  .editorial {
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: start;
  }
}
.editorial__statement {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.2;
}
.editorial__muted { color: var(--muted); }

.rule-draw {
  margin-top: clamp(36px, 5vw, 56px);
  height: 1px;
  background: var(--border);
  transform-origin: left center;
}
.js .rule-draw {
  transform: scaleX(0);
  transition: transform 900ms var(--ease);
}
.js .rule-draw.is-visible { transform: scaleX(1); }

.kpis {
  margin-top: clamp(28px, 4vw, 42px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 20px;
}
@media (min-width: 900px) {
  .kpis {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .kpi {
    padding-inline: 26px;
    border-left: 1px solid var(--border);
  }
  .kpi:first-child { padding-left: 0; border-left: 0; }
}

.kpi__num {
  font-size: clamp(1.75rem, 3.3vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  white-space: nowrap;
  color: var(--text);
}
.kpi:first-child .kpi__num,
.kpi:nth-child(2) .kpi__num { color: var(--accent); }
.kpi__label {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

/* =========================================================
   ANIMATED SLIDING FILTER TABS & PRICE LIST
   ========================================================= */
.tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}
.tabs__slider {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  border-radius: var(--r-pill);
  background: var(--accent);
  transition: transform 340ms var(--ease-spring), width 340ms var(--ease-spring);
  pointer-events: none;
  z-index: 0;
}
.tabs__btn {
  position: relative;
  z-index: 1;
  min-height: 38px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color 220ms ease;
}
.tabs__btn:hover { color: var(--text); }
.tabs__btn.is-active { color: var(--accent-ink); }

.price {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}

.price__row {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  grid-template-areas:
    "ic name ask"
    "ic val  ask";
  align-items: center;
  gap: 4px 14px;
  padding: 18px 20px;
  border-top: 1px solid var(--border);
  transition: background-color 180ms ease;
}
.price__row:first-child { border-top: 0; }
.price__row:hover { background: var(--surface-2); }
.price__row[hidden] { display: none; }

@keyframes row-glide {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: translateX(0); }
}
.price__row.is-gliding {
  animation: row-glide 360ms var(--ease) both;
}

/* Аккуратная прямая полоска слева — без загибания на скруглённых углах */
.price__row--hot {
  background: rgba(245, 158, 11, 0.03);
}
.price__row--hot::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}
.price__row--hot:hover { background: rgba(245, 158, 11, 0.065); }

.price__ic {
  grid-area: ic;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  transition: border-color 180ms ease, color 180ms ease;
}
.price__ic svg { width: 18px; height: 18px; }
.price__row--hot .price__ic,
.price__row:hover .price__ic {
  border-color: rgba(245, 158, 11, 0.45);
  color: var(--accent);
}

.price__name {
  grid-area: name;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
}
.price__badge {
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
}

.price__value {
  grid-area: val;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.01em;
}
.price__row--hot .price__value { color: var(--accent); }

.price__ask {
  grid-area: ask;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}
.price__ask:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent);
}

@media (min-width: 768px) {
  .price__row {
    grid-template-columns: 40px 1fr auto auto;
    grid-template-areas: "ic name val ask";
    gap: 18px;
    padding: 18px 24px;
  }
  .price__ic { width: 40px; height: 40px; }
  .price__value { text-align: right; font-size: 0.98rem; color: var(--text); }
}

/* =========================================================
   QUICK WHATSAPP FORM (Человечная, без «окна консоли»)
   ========================================================= */
.request {
  margin-top: 32px;
  padding: clamp(20px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  scroll-margin-top: 96px;
  transition: border-color 300ms ease, box-shadow 300ms ease;
}
.request__left { min-width: 0; }
.request.is-flash {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35);
}
@media (min-width: 900px) {
  .request {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 48px;
    align-items: center;
  }
}

.request__title {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.15;
}
.request__text {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.97rem;
  max-width: 44ch;
}
.request__hints {
  margin-top: 22px;
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
  color: #D1D5DB;
}
.request__hints li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.request__hints svg { width: 16px; height: 16px; color: var(--wa); flex-shrink: 0; }

.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.form__field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.form__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #D1D5DB;
}
.form__control {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 0 14px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
select.form__control {
  padding-right: 34px;
  cursor: pointer;
  text-overflow: ellipsis;
}
.form__control::placeholder { color: var(--muted-2); }
.form__control:hover { border-color: var(--border-hi); }
.form__control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}
.form__control.is-invalid { border-color: var(--accent); }
.form__error { font-size: 0.82rem; color: var(--accent); }

/* =========================================================
   CURSOR SPOTLIGHT SURFACE (Тонкий живой блик на карточках)
   ========================================================= */
.spotlight-card {
  position: relative;
  overflow: hidden;
}
.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(245, 158, 11, 0.08),
    transparent 65%
  );
  transition: opacity 280ms ease;
}
.spotlight-card:hover::after { opacity: 1; }

/* =========================================================
   WHY CARDS + GALLERY
   ========================================================= */
.why {
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) {
  .why { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .why { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}

.why__card {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 220ms ease, transform 280ms var(--ease);
}
.why__card:hover {
  border-color: var(--border-hi);
  transform: translateY(-4px);
}
.why__card--primary {
  border-color: rgba(245, 158, 11, 0.45);
}
.why__card--primary:hover { border-color: var(--accent); }

.why__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border-hi);
  color: var(--accent);
  display: inline-grid;
  place-items: center;
  margin-bottom: 6px;
  transition: transform 280ms var(--ease);
}
.why__icon svg { width: 21px; height: 21px; }
.why__icon--solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.why__card:hover .why__icon { transform: scale(1.06); }

.why__title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.why__text {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.56;
}

.gallery {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

.photo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 220ms ease;
}
.photo-card:hover { border-color: var(--border-hi); }

.photo-card__frame {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg);
}
.photo-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.84) contrast(1.06) saturate(0.85);
  transition: transform 700ms var(--ease), filter 420ms ease;
}
.photo-card:hover .photo-card__frame img {
  transform: scale(1.05);
  filter: brightness(0.95) contrast(1.03) saturate(0.95);
}
.photo-card__cap {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}

/* =========================================================
   REVIEWS — HORIZONTAL SCROLLABLE CAROUSEL (SLIDES RIGHT → LEFT)
   ========================================================= */
.reviews-sec { overflow: hidden; }

.reviews-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
@media (min-width: 900px) {
  .reviews-controls { justify-content: flex-end; }
}

.reviews-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--border-hi);
  padding-bottom: 2px;
  transition: color 180ms ease, border-color 180ms ease;
}
.reviews-link:hover { color: var(--accent); border-color: var(--accent); }

.carousel-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
  background: var(--surface);
  color: var(--text);
  display: inline-grid;
  place-items: center;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 200ms var(--ease);
}
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: scale(1.05);
}

.reviews-track-wrap {
  width: 100%;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-inline: max(20px, calc((100vw - var(--container)) / 2 + 32px));
  padding-bottom: 10px;
  scrollbar-width: none;
  cursor: grab;
}
.reviews-track:active { cursor: grabbing; }
.reviews-track::-webkit-scrollbar { display: none; }

.review {
  flex: 0 0 min(84vw, 390px);
  scroll-snap-align: start;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 18px;
  user-select: none;
  transition: border-color 220ms ease, transform 280ms var(--ease);
}
.review:hover {
  border-color: var(--border-hi);
  transform: translateY(-4px);
}

.review__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.review__stars { color: var(--accent); font-size: 0.95rem; letter-spacing: 2px; }
.review__tag {
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.review__text {
  font-size: 0.97rem;
  line-height: 1.62;
  color: var(--text);
}

.review__author {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.review__initials {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-hi);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.review__name { display: block; font-weight: 700; font-size: 0.95rem; line-height: 1.25; }
.review__src { display: block; font-size: 0.8rem; color: var(--muted); }

/* 4-я карточка-приглашение в 2ГИС */
.review--cta {
  justify-content: center;
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(160deg, var(--surface) 0%, #191E26 100%);
}
.review--cta:hover { border-color: var(--accent); }
.review--cta__score {
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
}
.review--cta__desc { font-size: 0.95rem; color: var(--muted); max-width: 28ch; }
.review--cta__link {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
}
.review--cta:hover .review--cta__link { color: var(--accent); }

/* =========================================================
   CONTACTS + REAL DARK LEAFLET MAP
   ========================================================= */
.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.contacts__info, .map-card { min-width: 0; }
@media (min-width: 960px) {
  .contacts {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 44px;
    align-items: start;
  }
}

.contact-list { border-top: 1px solid var(--border); }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-block: 16px;
  border-bottom: 1px solid var(--border);
}
.contact-item__ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-item__ic svg { width: 18px; height: 18px; }

.contact-item__body { display: flex; flex-direction: column; gap: 4px; }
.contact-item__label { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.contact-item__val { font-size: 0.98rem; font-weight: 500; color: var(--text); line-height: 1.45; }
.contact-item__link {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--border-hi);
  transition: color 160ms ease, border-color 160ms ease;
}
.contact-item__link:hover { color: var(--accent); border-color: var(--accent); }

.copy-btn {
  margin-top: 6px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  transition: border-color 180ms ease, color 180ms ease;
}
.copy-btn__ic { width: 14px; height: 14px; }
.copy-btn:hover { border-color: var(--accent); color: var(--text); }
.copy-btn.is-copied { border-color: var(--wa); color: var(--wa); }

.notice {
  margin-top: 22px;
  padding: 15px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--r-md);
  font-size: 0.92rem;
  line-height: 1.5;
}
.notice__ic { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.contacts__cta {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 520px) {
  .contacts__cta { flex-direction: row; flex-wrap: wrap; }
}

/* Настоящая тёмная интерактивная карта Leaflet */
.map-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.map-card__canvas {
  width: 100%;
  height: 320px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 1;
}
@media (min-width: 960px) {
  .map-card__canvas { height: 370px; }
}

/* Тёмная стилизация элементов Leaflet + тёмная инверсия тайлов OpenStreetMap */
.leaflet-container {
  background: #0F1115 !important;
  font-family: var(--font-sans) !important;
}
.leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) brightness(0.86) contrast(1.08) saturate(0.32);
}
.leaflet-bar {
  border: 1px solid var(--border-hi) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45) !important;
}
.leaflet-bar a {
  background-color: var(--surface) !important;
  color: var(--text) !important;
  border-bottom: 1px solid var(--border) !important;
}
.leaflet-bar a:hover {
  background-color: var(--surface-2) !important;
  color: var(--accent) !important;
}
.leaflet-control-attribution {
  background: rgba(15, 17, 21, 0.78) !important;
  color: #6B7280 !important;
  font-size: 10px !important;
}
.leaflet-control-attribution a { color: #9CA3AF !important; }

.map-pin {
  position: relative;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}
.map-pin__ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: map-pulse 2.2s ease-out infinite;
}
.map-pin__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #0F1115;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.4);
}
@keyframes map-pulse {
  0% { transform: scale(0.7); opacity: 0.95; }
  100% { transform: scale(1.9); opacity: 0; }
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--border-hi);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55) !important;
}
.leaflet-popup-content { margin: 10px 14px !important; font-size: 0.85rem; line-height: 1.4; }
.leaflet-popup-content strong { display: block; color: var(--accent); margin-bottom: 2px; }

.map-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.map-card__addr { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.map-card__sub { font-size: 0.88rem; color: var(--muted); margin-bottom: 14px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding-top: clamp(56px, 8vw, 92px);
  padding-bottom: 28px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer__top {
  display: grid;
  gap: 36px;
}
@media (min-width: 900px) {
  .footer__top {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}
.footer__eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}
.footer__headline {
  font-size: clamp(1.4rem, 2.7vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.18;
  max-width: 24ch;
  margin-bottom: 22px;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}
.footer__col-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.footer__col a:hover { color: var(--accent); }

.footer__wordmark {
  margin-top: clamp(44px, 7vw, 80px);
  font-size: clamp(1.9rem, 6.2vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.94;
  color: #1B2029;
  user-select: none;
  text-align: center;
}

.footer__bar {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}
@media (min-width: 768px) {
  .footer__bar { flex-direction: row; justify-content: space-between; }
}

/* =========================================================
   MOBILE FIXED BAR
   ========================================================= */
.mbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
  transition: transform 260ms var(--ease), opacity 220ms ease;
}
.mbar.is-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.mbar__info {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.mbar__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wa); }
.mbar__btn { flex: 1; max-width: 248px; }
@media (min-width: 768px) {
  .mbar { display: none; }
}

/* =========================================================
   VARIED HIGH-LEVEL SCROLL CHOREOGRAPHY
   ========================================================= */
.js .reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 660ms var(--ease), transform 660ms var(--ease);
  transition-delay: calc(var(--stagger, 0) * 80ms);
}
.js .reveal-up.is-visible { opacity: 1; transform: translateY(0); }

.js .reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease);
}
.js .reveal-left.is-visible { opacity: 1; transform: translateX(0); }

/* Отзывы выезжают плавно СПРАВА НАЛЕВО (как в Caster) */
.js .reveal-right {
  opacity: 0;
  transform: translateX(72px);
  transition: opacity 760ms var(--ease-spring), transform 760ms var(--ease-spring);
  transition-delay: calc(var(--stagger, 0) * 110ms);
}
.js .reveal-right.is-visible { opacity: 1; transform: translateX(0); }

.js .reveal-scale {
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition: opacity 640ms var(--ease), transform 640ms var(--ease-spring);
  transition-delay: calc(var(--stagger, 0) * 85ms);
}
.js .reveal-scale.is-visible { opacity: 1; transform: translateY(0) scale(1); }

.js .reveal-clip {
  opacity: 0;
  clip-path: inset(10% 0 0 0 round 16px);
  transform: translateY(18px);
  transition: opacity 760ms var(--ease), clip-path 820ms var(--ease-spring), transform 760ms var(--ease-spring);
  transition-delay: calc(var(--stagger, 0) * 110ms);
}
.js .reveal-clip.is-visible {
  opacity: 1;
  clip-path: inset(0 0 0 0 round 16px);
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal-up,
  .js .reveal-left,
  .js .reveal-right,
  .js .reveal-scale,
  .js .reveal-clip,
  .js .rule-draw,
  .js .hero-enter,
  .js .line > span,
  .hero__img {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  .map-pin__ring { animation: none; }
}
