/* ==========================================================================
   ДОМ 43 — ремонт квартир в Кирове
   Светлая / тёмная тема · тёплый минимализм · Cormorant Garamond + Manrope
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  --font-sans: "Golos Text", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-display: "Spectral", Georgia, "Times New Roman", serif;

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --wrap: 1320px;
  --pad: 32px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.4, 0, 0.2, 1);

  color-scheme: light;
}

[data-theme="light"] {
  --bg: #f7f4ef;
  --bg-alt: #f0ebe2;
  --surface: #fffdf9;
  --surface-2: #f3eee6;
  --ink: #16140f;
  --ink-soft: #37332b;
  --muted: #6e685d;
  --line: rgba(22, 20, 15, 0.12);
  --line-strong: rgba(22, 20, 15, 0.24);
  --accent: #a94b2b;
  --accent-hover: #8e3c20;
  --accent-ink: #fff8f4;
  --accent-soft: rgba(169, 75, 43, 0.1);
  --gold: #b9822b;
  --green: #3f7a4f;
  --shadow: 0 1px 2px rgba(22, 20, 15, 0.04), 0 18px 50px -18px rgba(22, 20, 15, 0.22);
  --shadow-sm: 0 1px 2px rgba(22, 20, 15, 0.05), 0 8px 22px -12px rgba(22, 20, 15, 0.2);

  --map-bg: #ece6dc;
  --map-line: rgba(22, 20, 15, 0.05);
  --map-road: #e0d8ca;
  --map-road-thin: #e6dfd2;
  --map-park: #dde5d7;
  --map-water: #d9e4e3;
  --map-text: rgba(22, 20, 15, 0.44);
}

[data-theme="dark"] {
  --bg: #11100e;
  --bg-alt: #16140f;
  --surface: #1b1915;
  --surface-2: #221f1a;
  --ink: #f2ede3;
  --ink-soft: #d9d2c5;
  --muted: #a49b8c;
  --line: rgba(242, 237, 227, 0.13);
  --line-strong: rgba(242, 237, 227, 0.26);
  --accent: #d9784f;
  --accent-hover: #e58a62;
  --accent-ink: #1a1009;
  --accent-soft: rgba(217, 120, 79, 0.14);
  --gold: #d8a24a;
  --green: #7fb98d;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 60px -22px rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 26px -14px rgba(0, 0, 0, 0.6);

  --map-bg: #191713;
  --map-line: rgba(242, 237, 227, 0.05);
  --map-road: #24211b;
  --map-road-thin: #201d18;
  --map-park: #1d241d;
  --map-water: #16201f;
  --map-text: rgba(242, 237, 227, 0.42);
}

/* ---------------------------------------------------------------- reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01" on, "cv11" on;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease-io), color 0.35s var(--ease-io);
}

body.is-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-io);
}

.skip:focus {
  transform: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] { display: none !important; }

/* ---------------------------------------------------------------- layout */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 124px var(--pad);
}

.section__head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  margin-bottom: 60px;
}

.section__index {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding-top: 16px;
  font-variant-numeric: tabular-nums;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 4.4vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.section__title em {
  font-style: italic;
  color: var(--accent);
}

.section__lead {
  max-width: 58ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.section__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding-top: 18px;
  color: var(--ink);
  white-space: nowrap;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}

.section__link svg {
  transition: transform 0.25s var(--ease);
}

.section__link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.section__link:hover svg {
  transform: translateX(4px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ---------------------------------------------------------------- buttons */
.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: background-color 0.22s, color 0.22s, border-color 0.22s, transform 0.22s var(--ease), box-shadow 0.22s;
}

.btn svg {
  flex: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--accent) 75%, transparent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -14px color-mix(in srgb, var(--accent) 80%, transparent);
}

.btn--primary:active {
  transform: translateY(0) scale(0.99);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--ink);
}

.btn--sm {
  --h: 40px;
  padding: 0 18px;
  font-size: 12.5px;
}

.btn--lg {
  --h: 56px;
  font-size: 15px;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.72;
  pointer-events: none;
}

.btn.is-loading .btn__label {
  opacity: 0.55;
}

.btn.is-loading .btn__spinner {
  display: block;
}

.btn__spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------------------------------------------------------------- header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease-io), border-color 0.3s, backdrop-filter 0.3s;
}

.header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-bottom-color: var(--line);
}

.header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 84px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.header.is-scrolled .header__inner {
  height: 72px;
  transition: height 0.3s var(--ease-io);
}

.logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  flex: none;
}

.logo__mark {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.logo__mark b {
  color: var(--accent);
  font-weight: 600;
}

.logo__sub {
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 30px;
  margin-inline: auto;
}

.nav a {
  position: relative;
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.header__cta-short { display: none; }

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.header__phone:hover {
  color: var(--accent);
}

.header__phone svg {
  color: var(--muted);
}

/* theme switch */
.theme-toggle {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 999px;
}

.theme-toggle__track {
  position: relative;
  width: 58px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
  transition: background-color 0.25s, border-color 0.25s;
}

.theme-toggle__icon {
  width: 13px;
  height: 13px;
  color: var(--muted);
  z-index: 1;
  transition: color 0.25s;
}

.theme-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.32s var(--ease), background-color 0.25s;
}

[data-theme="dark"] .theme-toggle__thumb {
  transform: translateX(28px);
  background: var(--ink);
}

.theme-toggle:hover .theme-toggle__track {
  border-color: var(--ink);
}

[data-theme="light"] .theme-toggle__icon--sun { color: var(--accent-ink); }
[data-theme="dark"] .theme-toggle__icon--moon { color: var(--bg); }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: none;
  padding: 0;
  position: relative;
}

.burger span {
  position: absolute;
  left: 50%;
  width: 15px;
  height: 1.5px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { bottom: 17px; }

.burger[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, 3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translate(-50%, -3.5px) rotate(-45deg); }

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 20px var(--pad) 32px;
  display: grid;
  gap: 4px;
  box-shadow: var(--shadow);
  animation: menuIn 0.3s var(--ease);
}

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-8px); }
}

.mobile-menu a:not(.btn) {
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.mobile-menu .btn {
  margin-top: 16px;
}

.mobile-menu__phone {
  border: 0 !important;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding: 148px 0 0;
}

.hero__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 6.2vw, 96px);
  line-height: 0.93;
  letter-spacing: -0.025em;
  margin: 22px 0 30px;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
  padding-right: 0.06em;
}

.hero__lead {
  max-width: 44ch;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.68;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.rating-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 430px;
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--gold);
}

.stars svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.stars--sm svg { width: 12px; height: 12px; }
.stars--lg svg { width: 19px; height: 19px; }

.rating-line__text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
  font-size: 13px;
  color: var(--muted);
}

.rating-line__text b {
  font-size: 19px;
  color: var(--ink);
  font-weight: 700;
}

.rating-line__text small {
  flex-basis: 100%;
  font-size: 11.5px;
  color: var(--muted);
}

.hero__media {
  min-width: 0;
}

.hero__shot {
  position: relative;
}

.hero__figure {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.02);
}

.hero__caption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  text-align: right;
}

.hero__caption span {
  color: var(--ink);
  font-weight: 600;
}

.badge {
  position: absolute;
  z-index: 2;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.badge--rating {
  left: -26px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px 14px 18px;
}

.badge__value {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 0.85;
  letter-spacing: -0.02em;
}

.badge__meta {
  display: grid;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
}

.badge--slots {
  right: -14px;
  top: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  font-size: 11.5px;
  color: var(--muted);
}

.badge--slots b {
  color: var(--ink);
  font-weight: 700;
}

.badge__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4d9a5f;
  box-shadow: 0 0 0 0 rgba(77, 154, 95, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(77, 154, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(77, 154, 95, 0); }
}

/* stats */
.stats {
  max-width: var(--wrap);
  margin: 84px auto 0;
  padding: 0 var(--pad) 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.stat {
  padding: 30px 24px 34px 0;
  display: grid;
  gap: 6px;
}

.stat + .stat {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.stat b {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 12.5px;
  color: var(--muted);
  max-width: 22ch;
}

/* ---------------------------------------------------------------- services */
.services {
  padding-top: 132px;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 190px;
  gap: 32px;
  padding: 32px 20px 32px 12px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s var(--ease-io), padding-left 0.3s var(--ease);
}

.service-item:hover {
  background: var(--surface);
  padding-left: 24px;
}

.service-item__no {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding-top: 8px;
  font-variant-numeric: tabular-nums;
}

.service-item h3 {
  font-family: var(--font-display);
  font-size: clamp(27px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 10px;
  transition: color 0.25s;
}

.service-item:hover h3 {
  color: var(--accent);
}

.service-item p {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 64ch;
}

.service-item__inc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-soft);
}

.service-item__inc li::before {
  content: "—";
  color: var(--accent);
  margin-right: 6px;
}

.service-item__aside {
  text-align: right;
  padding-top: 4px;
}

.service-item__price {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.service-item__price span {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.service-item__term {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--muted);
}

.service-item__hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--r-sm);
}

.services__note {
  margin-top: 32px;
  font-size: 13.5px;
  color: var(--muted);
}

.services__note a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.services__note a:hover {
  color: var(--accent);
}

/* ---------------------------------------------------------------- projects */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 44px 28px;
}

.project {
  grid-column: span 6;
}

.project--wide {
  grid-column: span 6;
}

.project__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}

.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.93) contrast(1.02);
  transition: transform 0.8s var(--ease), filter 0.5s;
}

.project:hover .project__media img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.03);
}

.project__tag {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(20, 18, 14, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.project__info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
}

.project__info h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 27px);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 6px;
}

.project__info p {
  font-size: 12.5px;
  color: var(--muted);
}

.project__meta {
  display: flex;
  gap: 22px;
  flex: none;
}

.project__meta dt {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.project__meta dd {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- reviews */
.reviews {
  padding-top: 112px;
}

.reviews__top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 28px;
  margin-bottom: 48px;
  align-items: stretch;
}

.score {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 26px;
  align-items: center;
  padding: 30px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.score__num {
  font-family: var(--font-display);
  font-size: clamp(76px, 8vw, 104px);
  line-height: 0.75;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.score__side {
  display: grid;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
}

.score__side p:first-of-type {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}

.score__rec {
  color: var(--green);
}

.score__bars {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.bar {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 30px;
  gap: 12px;
  align-items: center;
  font-size: 10.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.bar i {
  position: relative;
  display: block;
  height: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.bar i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 0%);
  background: var(--gold);
  border-radius: 999px;
}

.bar b {
  text-align: right;
  font-weight: 500;
}

.sources {
  display: grid;
  gap: 10px;
}

.source {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name score" "count score";
  align-items: center;
  gap: 0 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.source:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.source__name {
  grid-area: name;
  font-size: 13.5px;
  font-weight: 600;
}

.source__count {
  grid-area: count;
  font-size: 11.5px;
  color: var(--muted);
}

.source__score {
  grid-area: score;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
}

.source__score svg {
  fill: var(--gold);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.review {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color 0.3s, transform 0.35s var(--ease), box-shadow 0.35s;
}

.review:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.review blockquote {
  flex: 1;
  margin: 16px 0 22px;
  font-size: 14px;
  line-height: 1.68;
  color: var(--ink-soft);
}

.review figcaption {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.review figcaption b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}

.review figcaption small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  margin-top: 2px;
}

.avatar {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.verified {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--green);
  white-space: nowrap;
  align-self: flex-start;
  padding-top: 3px;
}

/* ---------------------------------------------------------------- process */
.process__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: 56px;
  align-items: start;
}

.steps {
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.step__num {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--accent);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 54ch;
}

.step__time {
  justify-self: end;
  align-self: start;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
}

.promise {
  position: sticky;
  top: 108px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}

.promise__title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.promise__list {
  display: grid;
  gap: 18px;
}

.promise__list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 11px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.promise__list svg {
  color: var(--accent);
  margin-top: 2px;
}

.promise__list b {
  color: var(--ink);
  font-weight: 600;
}

.promise__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- lead */
.lead {
  max-width: none;
  margin: 0;
  padding: 116px 0;
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.lead__grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.lead__intro .section__title {
  margin: 18px 0 0;
  font-size: clamp(40px, 5vw, 72px);
}

.lead__text {
  margin-top: 22px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 42ch;
}

.lead__points {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.lead__points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.lead__points svg {
  flex: none;
  color: var(--accent);
  margin-top: 3px;
}

.lead__contact {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
  max-width: 420px;
}

.lead__contact span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.lead__contact a[href^="tel"] {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.lead__contact a[href^="tel"]:hover {
  color: var(--accent);
}

.lead__messengers {
  display: flex;
  gap: 8px;
}

.lead__messengers a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-soft);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.lead__messengers a:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* form card */
.lead__card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form {
  display: grid;
  gap: 17px;
}

.form__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 4px;
}

.form__head h3 {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.form__hint {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
}

.field {
  display: grid;
  gap: 7px;
  position: relative;
  min-width: 0;
}

fieldset.field {
  border: 0;
  padding: 0;
  margin: 0;
}

.field > label,
.field > legend {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding: 0;
  margin-bottom: 1px;
}

.req {
  color: var(--accent);
}

.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 78%, transparent);
}

.field input:hover,
.field textarea:hover {
  border-color: color-mix(in srgb, var(--ink) 34%, transparent);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface);
}

.field textarea {
  resize: vertical;
  min-height: 88px;
}

.field input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.field input[type="number"]::-webkit-outer-spin-button,
.field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field__error {
  min-height: 0;
  font-size: 11px;
  color: #c0392b;
  opacity: 0;
  transition: opacity 0.2s;
}

[data-theme="dark"] .field__error {
  color: #e88b7e;
}

.field.has-error input {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.field.has-error .field__error {
  opacity: 1;
}

.field__counter {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.field--chips.has-error .chip {
  border-color: #c0392b;
  color: #c0392b;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.chip:active {
  transform: scale(0.98);
}

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.agree {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
  position: relative;
}

.agree input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.agree__box {
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: transparent;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.agree input:checked + .agree__box {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.agree input:focus-visible + .agree__box {
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.agree a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__small {
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.form__error,
.form__success-text {
  font-size: 12px;
  color: #c0392b;
  text-align: center;
  min-height: 0;
}

[data-theme="dark"] .form__error {
  color: #e88b7e;
}

.form__error:empty {
  display: none;
}

/* success */
.form-success:focus,
.form-success:focus-visible {
  outline: none;
}

.form-success {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 8px 2px;
  animation: successIn 0.45s var(--ease);
}

@keyframes successIn {
  from { opacity: 0; transform: translateY(10px); }
}

.form-success__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.form-success p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 42ch;
}

.form-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.form-success__small {
  font-size: 11px !important;
  color: var(--muted);
}

.form-success__small a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------------------------------------------------------------- faq */
.faq__list {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  cursor: pointer;
  list-style: none;
  font-size: 15.5px;
  font-weight: 500;
  transition: color 0.2s;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary:hover {
  color: var(--accent);
}

.faq__item summary i {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform 0.3s var(--ease), background-color 0.2s, border-color 0.2s;
}

.faq__item summary i::before,
.faq__item summary i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.faq__item summary i::before {
  width: 11px;
  height: 1.5px;
}

.faq__item summary i::after {
  width: 1.5px;
  height: 11px;
  transition: opacity 0.2s, transform 0.3s var(--ease);
}

.faq__item[open] summary i {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  transform: rotate(180deg);
}

.faq__item[open] summary i::after {
  opacity: 0;
}

.faq__answer {
  padding: 0 60px 26px 4px;
  max-width: 78ch;
  animation: faqIn 0.3s var(--ease);
}

.faq__answer p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

@keyframes faqIn {
  from { opacity: 0; transform: translateY(-4px); }
}

/* ---------------------------------------------------------------- contacts */
.contacts__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.contacts__text {
  margin-top: 20px;
  max-width: 42ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.contacts__list {
  display: grid;
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.contacts__list > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.contacts__list dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contacts__list dt svg {
  flex: none;
}

.contacts__list dd {
  font-size: 14px;
  line-height: 1.55;
}

.contacts__list dd a:hover {
  color: var(--accent);
}

.contacts__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.contacts__map {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--map-bg);
  box-shadow: var(--shadow-sm);
}

.contacts__map svg {
  width: 100%;
  height: auto;
}

.map-bg { fill: var(--map-bg); }
.map-grid-g { stroke: var(--map-line); }
.map-grid path { fill: none; stroke: var(--map-line); stroke-width: 1; }
.map-parks rect { fill: var(--map-park); }
.map-water { fill: var(--map-water); }
.map-roads path { fill: none; stroke: var(--map-road); stroke-width: 15; stroke-linecap: round; }
.map-roads-thin path { fill: none; stroke: var(--map-road-thin); stroke-width: 5; stroke-linecap: round; }
.map-labels text {
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  fill: var(--map-text);
}
.map-labels__water { font-style: italic; letter-spacing: 0.2em; }
.map-pulse { fill: var(--accent); opacity: 0.14; }
.map-dot { fill: var(--accent); }
.map-dot-in { fill: var(--accent-ink); }
.map-card { fill: var(--surface); stroke: var(--line); }
.map-card__title { font-family: var(--font-sans); font-size: 11px; font-weight: 700; fill: var(--ink); letter-spacing: 0.02em; }
.map-card__sub { font-family: var(--font-sans); font-size: 9.5px; fill: var(--muted); }

.contacts__map-note {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.contacts__map-note span {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 10.5px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---------------------------------------------------------------- footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px var(--pad) 0;
  background: var(--bg);
}

.footer__top {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 48px;
}

.logo--footer .logo__mark {
  font-size: 30px;
}

.footer__nav {
  display: flex;
  gap: clamp(28px, 6vw, 88px);
  flex-wrap: wrap;
}

.footer__nav > div {
  display: grid;
  gap: 9px;
  align-content: start;
}

.footer__nav h4 {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.footer__nav a {
  font-size: 13px;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.footer__nav a:hover {
  color: var(--accent);
}

.footer__bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

.footer__legal a:hover {
  color: var(--accent);
}

/* ---------------------------------------------------------------- sticky cta + toast */
.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateY(140%);
  transition: transform 0.4s var(--ease);
}

.sticky-cta.is-visible {
  transform: none;
}

.sticky-cta__text {
  display: grid;
  line-height: 1.25;
}

.sticky-cta__text b {
  font-size: 12.5px;
}

.sticky-cta__text span {
  font-size: 10.5px;
  color: var(--muted);
}

.toast {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  transform: translate(-50%, 140%);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), opacity 0.25s, visibility 0.25s;
  max-width: calc(100vw - 32px);
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ---------------------------------------------------------------- reveal */
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------- theme transition */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .nav { gap: 20px; }
  .header__phone span { display: none; }
  .section__head { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 20px; }
  .hero__inner { gap: 40px; }
}

@media (max-width: 980px) {
  :root { --pad: 24px; }

  .nav { display: none; }
  .burger { display: block; }
  .header__phone { display: none; }

  .hero { padding-top: 120px; }
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__title { font-size: clamp(46px, 10vw, 76px); }
  .hero__lead { max-width: 52ch; }
  .hero__media { max-width: 560px; }
  .badge--rating { left: 12px; bottom: 14px; }
  .badge--slots { right: 12px; top: 14px; }
  .hero__figure { aspect-ratio: 4 / 4.4; }

  .stats { margin-top: 60px; grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 22px 0; }
  .stat + .stat { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .section { padding: 88px var(--pad); }
  .section__head { grid-template-columns: 1fr; gap: 12px; }
  .section__index { padding-top: 0; }
  .section__link { padding-top: 4px; justify-self: start; }
  .section__head { margin-bottom: 40px; }

  .service-item { grid-template-columns: 40px minmax(0, 1fr); gap: 18px; padding: 26px 8px; }
  .service-item__aside { grid-column: 2; text-align: left; display: flex; align-items: baseline; gap: 12px; padding-top: 0; }
  .service-item__term { margin-top: 0; }
  .service-item:hover { padding-left: 8px; }

  .project, .project--wide, .project:nth-child(5), .project:nth-child(6) { grid-column: span 6; }
  .projects__grid { gap: 36px 20px; }

  .reviews__top { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score { padding: 26px; }

  .process__layout { grid-template-columns: 1fr; gap: 36px; }
  .promise { position: static; }

  .lead { padding: 80px 0; }
  .lead__grid { grid-template-columns: 1fr; gap: 36px; }
  .lead__contact { max-width: none; }

  .contacts__grid { grid-template-columns: 1fr; gap: 36px; }

  .footer { padding-top: 48px; }
  .footer__top { gap: 36px; }

  .sticky-cta { display: flex; }
  .toast { bottom: 86px; }
}

@media (max-width: 640px) {
  :root { --pad: 18px; }
  .header__inner { gap: 10px; height: 72px; padding-inline: 16px; }
  .header.is-scrolled .header__inner { height: 64px; }
  .logo__mark { font-size: 22px; }
  .logo__sub { font-size: 7.6px; letter-spacing: 0.14em; }
  .header__actions { gap: 8px; }
  .header__cta-long { display: none; }
  .header__cta-short { display: inline; }
  .header__cta { --h: 36px; padding: 0 13px; font-size: 11.5px; }
  .theme-toggle__track { width: 50px; height: 27px; padding: 0 6px; }
  .theme-toggle__thumb { width: 19px; height: 19px; top: 3px; left: 3px; }
  [data-theme="dark"] .theme-toggle__thumb { transform: translateX(23px); }
  .burger { width: 36px; height: 36px; }
  .burger span:nth-child(1) { top: 14px; }
  .burger span:nth-child(2) { bottom: 14px; }

  .hero__title { font-size: clamp(42px, 12.4vw, 62px); }
  .hero__actions .btn { flex: 1 1 100%; }
  .rating-line { margin-top: 32px; }
  .hero__caption { font-size: 10px; }

  .stat b { font-size: 34px; }
  .stat span { font-size: 11.5px; }
  .stat:nth-child(even) { padding-left: 16px; }

  .section { padding: 72px var(--pad); }
  .section__title { font-size: clamp(34px, 9.6vw, 46px); }

  .project, .project--wide, .project:nth-child(5), .project:nth-child(6) { grid-column: span 12; }
  .project__info { flex-wrap: wrap; gap: 12px; }
  .project__meta { gap: 16px; }

  .review-grid { grid-template-columns: 1fr; }
  .score { grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; padding: 22px; }
  .score__num { font-size: 72px; }

  .form__row { grid-template-columns: 1fr; }
  .lead__card { padding: 22px 18px; border-radius: var(--r-lg); }
  .form__head { flex-direction: column; gap: 2px; }
  .form__head h3 { font-size: 24px; }

  .step { grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
  .step__time { grid-column: 2; justify-self: start; margin-top: 8px; }

  .contacts__list > div { grid-template-columns: 1fr; gap: 4px; padding: 13px 0; }
  .contacts__list dd { font-size: 13.5px; }
  .contacts__actions .btn { flex: 1 1 100%; }

  .faq__item summary { font-size: 14px; gap: 14px; padding: 20px 0; }
  .faq__answer { padding-right: 0; }

  .footer__bottom { flex-direction: column; gap: 8px; }
  .footer__nav { gap: 28px 40px; }
}

@media (max-width: 400px) {
  .hero__title { font-size: 40px; }
  .badge--rating { left: 8px; padding: 10px 14px; gap: 10px; }
  .badge__value { font-size: 32px; }
  .badge--slots { display: none; }
}

/* ---------------------------------------------------------------- motion prefs */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}


/* ---------------------------------------------------------------- legal page */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 150px 32px 100px;
}
.legal h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.legal h1 em { font-style: italic; color: var(--accent); }
.legal__date { font-size: 12px; color: var(--muted); margin-bottom: 40px; }
.legal h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  margin: 36px 0 10px;
}
.legal p, .legal li {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.legal ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; margin: 10px 0; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal__back { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; margin-top: 44px; border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; }
@media (max-width: 640px) { .legal { padding: 120px 20px 72px; } }


/* ==========================================================================
   НОВЫЙ СЛОЙ: Spectral + Golos, фактура, печать, калькулятор, контакты
   ========================================================================== */

/* фактура бумаги */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: multiply;
}

[data-theme="dark"] body::before {
  mix-blend-mode: screen;
  opacity: 0.07;
}

/* типографика под Spectral */
.hero__title {
  font-weight: 300;
  font-size: clamp(46px, 5.9vw, 90px);
  line-height: 0.95;
  letter-spacing: -0.028em;
}

.hero__title em {
  font-weight: 300;
}

.section__title {
  font-weight: 400;
  letter-spacing: -0.018em;
  font-size: clamp(36px, 4.15vw, 62px);
}

.logo__mark {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.badge__value,
.score__num,
.stat b,
.calc__price,
.contacts__big a,
.visit h3,
.lead__contact a[href^="tel"] {
  font-weight: 400;
}

.service-item h3,
.project__info h3,
.promise__title,
.form__head h3,
.form-success h3,
.drawer__head h2 {
  font-weight: 400;
}

/* печать в герое */
.hero__stamp {
  position: absolute;
  right: -40px;
  bottom: 24%;
  width: 128px;
  height: 128px;
  padding: 10px;
  border-radius: 50%;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero__stamp-ring {
  width: 100%;
  height: 100%;
  animation: stampSpin 48s linear infinite;
}

.hero__stamp-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1px;
  line-height: 1;
  pointer-events: none;
}

.hero__stamp-center b {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero__stamp-center i {
  font-style: normal;
  font-size: 7.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__stamp {
  display: grid;
  place-items: center;
}

.hero__stamp text {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: currentColor;
}

@keyframes stampSpin {
  to { transform: rotate(360deg); }
}

/* бегущая строка */
.marquee {
  margin-top: 8px;
  padding: 17px 0;
  border-block: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 38px;
  width: max-content;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  animation: marqueeMove 52s linear infinite;
}

.marquee__track i {
  font-style: normal;
  color: var(--accent);
  font-size: 9px;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marqueeMove {
  to { transform: translateX(-50%); }
}

/* номер проекта */
.project__num {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: #fff;
  background: rgba(20, 18, 14, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-variant-numeric: tabular-nums;
}

.project__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 32%, transparent 70%, rgba(0, 0, 0, 0.22) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.project:hover .project__media::after {
  opacity: 1;
}

/* калькулятор */
.calc__card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.calc__form {
  display: grid;
  gap: 26px;
  align-content: start;
  padding: 38px;
}

.calc__types {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.calc__types legend {
  padding: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.calc__area-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.calc__area-head label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

#calcAreaOut {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.calc__area input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  margin: 20px 0 10px;
  border-radius: 999px;
  background: var(--line-strong);
  outline: none;
  cursor: pointer;
}

.calc__area input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 1px var(--accent), 0 6px 14px -6px rgba(0, 0, 0, 0.45);
  cursor: grab;
}

.calc__area input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--surface);
  cursor: grab;
}

.calc__area input[type="range"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

.calc__scale {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.calc__toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toggle {
  position: relative;
  flex: 1 1 210px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.toggle:hover {
  border-color: var(--line-strong);
}

.toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.toggle__box {
  width: 18px;
  height: 18px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  transition: background-color 0.2s, border-color 0.2s;
}

.toggle input:checked + .toggle__box {
  background: var(--accent);
  border-color: var(--accent);
}

.toggle input:checked + .toggle__box::after {
  content: "";
  width: 8px;
  height: 4px;
  margin-top: -2px;
  border-left: 1.6px solid var(--accent-ink);
  border-bottom: 1.6px solid var(--accent-ink);
  transform: rotate(-45deg);
}

.toggle input:focus-visible + .toggle__box {
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.toggle small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 1px;
}

.calc__result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 38px;
  background: var(--bg-alt);
  border-left: 1px solid var(--line);
}

.calc__label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.calc__price {
  font-family: var(--font-display);
  font-size: clamp(38px, 3.6vw, 52px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.18s;
}

.calc__price.is-changing {
  opacity: 0.45;
}

.calc__term {
  font-size: 12px;
  color: var(--muted);
}

.calc__hint {
  margin: 6px 0 8px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 34ch;
}

.calc__note {
  font-size: 10px;
  text-align: center;
  color: var(--muted);
}

/* контакты без офиса */
.contacts {
  position: relative;
  overflow: hidden;
}

.contacts__word {
  position: absolute;
  right: -8px;
  bottom: 10px;
  font-family: var(--font-display);
  font-size: clamp(110px, 17vw, 230px);
  line-height: 0.7;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.contacts__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.contacts__text {
  margin-top: 20px;
  max-width: 44ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.contacts__big {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 30px;
}

.contacts__big a {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.1vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  width: fit-content;
  transition: color 0.2s;
}

.contacts__big a:hover {
  color: var(--accent);
}

.districts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 28px;
  max-width: 520px;
}

.districts__label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.districts ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.districts li {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  color: var(--ink-soft);
}

.visit {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}

.visit__label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.visit h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.visit__list {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.visit__list li {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.visit__list svg {
  color: var(--accent);
  margin-top: 3px;
}

.visit__foot {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}

.visit__foot > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.visit__foot a {
  color: var(--ink);
  width: fit-content;
}

.visit__foot a:hover {
  color: var(--accent);
}

.visit__geo {
  font-size: 10.5px;
}

/* адаптив нового слоя */
@media (max-width: 980px) {
  .hero__stamp { display: none; }
  .calc__card { grid-template-columns: 1fr; }
  .calc__form { padding: 26px; gap: 22px; }
  .calc__result { padding: 26px; border-left: 0; border-top: 1px solid var(--line); }
  .contacts__grid { grid-template-columns: 1fr; }
  .contacts__word { font-size: 120px; bottom: 4px; opacity: 0.4; }
}

@media (max-width: 640px) {
  .marquee { padding: 13px 0; }
  .marquee__track { gap: 24px; font-size: 9px; letter-spacing: 0.18em; }
  .calc__form { padding: 20px; }
  .calc__result { padding: 22px 20px; }
  .calc__price { font-size: 36px; }
  .toggle { flex: 1 1 100%; }
  .contacts__big a { font-size: 28px; }
  .visit { padding: 22px; }
  .visit h3 { font-size: 26px; }
  .contacts__word { font-size: 92px; opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track,
  .hero__stamp-ring {
    animation: none;
  }
}


/* ==========================================================================
   Клубные аккаунты, скидка 13%, личный кабинет
   ========================================================================== */

.header__login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.header__login:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.header__login.is-authed {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: var(--accent-soft);
}

.club-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: 1px;
}

.form__club {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--ink);
  text-align: left;
  transition: border-color 0.2s, background-color 0.2s;
}

.form__club div {
  display: grid;
  gap: 1px;
}

.form__club b {
  font-size: 12px;
  font-weight: 600;
}

.form__club span:not(.form__club-badge) {
  font-size: 10.5px;
  color: var(--muted);
}

.form__club-badge {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
  flex: none;
}

.form__club--guest {
  border-style: dashed;
  background: transparent;
  border-color: var(--line-strong);
}

.form__club--guest:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ---------------------------------------------------------------- account */
.account-body {
  background: var(--bg);
}

.account-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.account-head__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.account-head__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-head__link {
  font-size: 12.5px;
  color: var(--muted);
  transition: color 0.2s;
}

.account-head__link:hover {
  color: var(--ink);
}

.account-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 128px var(--pad) 96px;
}

.account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 240px);
}

.account-promo h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(44px, 5.6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.012em;
  margin: 18px 0 22px;
}

.account-promo h1 em {
  font-style: italic;
  color: var(--accent);
}

.account-promo > p:not(.eyebrow) {
  max-width: 44ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.account-promo__list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.account-promo__list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-soft);
}

.account-promo__list svg {
  color: var(--accent);
  flex: none;
  margin-top: 3px;
}

.account-card {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
}

.account-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 22px;
  background: var(--surface-2);
  border-radius: 10px;
}

.account-tab {
  flex: 1;
  padding: 9px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}

.account-tab:hover {
  color: var(--ink);
}

.account-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.account-form {
  display: grid;
  gap: 13px;
}

.account-form .lfield {
  display: grid;
  gap: 6px;
}

.account-form .lfield > span {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.account-form input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.account-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface);
}

.account-form .agree {
  margin-top: 2px;
}

.account-error {
  min-height: 16px;
  font-size: 11.5px;
  color: var(--red, #c0392b);
}

.account-error:empty {
  display: none;
}

.account-fine {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--muted);
}

.account-fine b {
  color: var(--accent);
}

/* кабинет */
.account-dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.account-dash-head h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: -0.015em;
}

.account-dash-head h1 em {
  font-style: italic;
  color: var(--accent);
}

.account-dash-head p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.account-dash {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
}

.club-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow);
}

.club-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--bg) 22%, transparent);
}

.club-card__label {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
}

.club-card__percent {
  font-family: var(--font-display);
  font-size: clamp(64px, 7vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 18px 0 4px;
}

.club-card__percent span {
  font-size: 0.36em;
  letter-spacing: 0;
}

.club-card__text {
  font-size: 12px;
  line-height: 1.55;
  opacity: 0.7;
  max-width: 26ch;
}

.club-card__holder {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--bg) 18%, transparent);
  font-size: 11px;
}

.club-card__holder b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.club-card__holder span {
  opacity: 0.55;
}

.account-aside {
  display: grid;
  gap: 14px;
}

.account-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.account-stat {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.account-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
}

.account-stat span {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.account-aside .btn {
  width: 100%;
}

.orders-panel {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.orders-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.orders-panel__head h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.orders-panel__head span {
  font-size: 11px;
  color: var(--muted);
}

.order-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.order-row:last-child {
  border-bottom: 0;
}

.order-row__num {
  display: grid;
  gap: 3px;
  font-size: 10.5px;
  color: var(--muted);
}

.order-row__num b {
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
}

.order-row__body b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 2px;
}

.order-row__body span {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
}

.order-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
}

.order-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.order-status--new { color: var(--accent); background: var(--accent-soft); }
.order-status--accepted { color: #39628f; background: rgba(57, 98, 143, 0.12); }
.order-status--in_progress { color: #3f7a4f; background: rgba(63, 122, 79, 0.13); }
.order-status--done { color: var(--muted); background: var(--surface-2); }
.order-status--declined { color: #ad3a2c; background: rgba(173, 58, 44, 0.1); }

[data-theme="dark"] .order-status--accepted { color: #8db3d9; }
[data-theme="dark"] .order-status--in_progress { color: #7fb98d; }
[data-theme="dark"] .order-status--declined { color: #e0806f; }

.account-empty {
  padding: 32px 0 24px;
  display: grid;
  gap: 12px;
  justify-items: start;
  color: var(--muted);
  font-size: 12.5px;
}

.account-empty a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

.account-dash__cta {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* адаптив кабинета */
@media (max-width: 1180px) {
  .header__login [data-client-label] { display: none; }
}

@media (max-width: 980px) {
  .account-main { padding-top: 112px; }
  .account-hero { grid-template-columns: 1fr; min-height: 0; gap: 36px; }
  .account-promo h1 { font-size: clamp(42px, 9vw, 64px); }
  .account-dash { grid-template-columns: 1fr; }
  .account-card { padding: 24px; }
}

@media (max-width: 640px) {
  .header__login { display: none; }
  .account-main { padding: 100px var(--pad) 72px; }
  .account-head__inner { height: 68px; }
  .account-head__link { font-size: 11.5px; }
  .account-card { padding: 20px; border-radius: 20px; }
  .club-card { padding: 22px; }
  .orders-panel { padding: 18px; }
  .order-row { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
  .order-status { grid-column: 2; justify-self: start; }
  .account-stats { grid-template-columns: 1fr 1fr; }
  .account-dash-head h1 { font-size: 38px; }
}

.mobile-menu__staff {
  padding: 14px 4px 0 !important;
  border: 0 !important;
  font-size: 12px !important;
  color: var(--muted) !important;
  text-align: center;
}

.account-staff {
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.account-staff a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}

.account-staff a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
