/* ============ Header ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  padding: 16px 0;
  transition: background var(--t), padding var(--t), box-shadow var(--t);
  background: transparent;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--border);
}
.header.is-scrolled .header__inner,
.header.is-scrolled .nav__link,
.header.is-scrolled .header__phone {
  color: var(--text-dark);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  color: var(--text-light);
}

.header__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  transition: background var(--t);
}
.header.is-scrolled .header__logo {
  background: var(--bg-dark);
}
.header__logo-img {
  height: 32px;
  width: auto;
  display: block;
}
.header__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--text-light);
  border-radius: var(--radius-sm);
  font-weight: 800;
}
.header__logo-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.header__logo-name strong { font-size: 1rem; }
.header__logo-name span { font-size: 0.7rem; opacity: 0.7; }

.nav {
  display: none;
  align-items: center;
  gap: var(--space-6);
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 1024px) {
  .nav { display: flex; }
}
.nav__item { position: relative; }
.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  transition: color var(--t);
}
.nav__link:hover { color: var(--accent); }
.nav__caret { transition: transform var(--t); }
.nav__item:hover .nav__caret { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-6);
  min-width: 720px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--t);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  color: var(--text-dark);
  margin-top: 8px;
}
.nav__item:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown-group h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.nav__dropdown-group ul { display: flex; flex-direction: column; gap: 6px; }
.nav__dropdown-group a {
  font-size: 0.9375rem;
  padding: 6px 0;
  display: block;
  transition: color var(--t);
}
.nav__dropdown-group a:hover { color: var(--accent); }

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}
@media (min-width: 1024px) { .header__actions { margin-left: 0; } }

.header__phone {
  display: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}
@media (min-width: 768px) { .header__phone { display: inline-flex; } }

.header__social {
  display: none;
  gap: 8px;
}
@media (min-width: 1024px) { .header__social { display: flex; } }
.header__social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all var(--t);
}
.header.is-scrolled .header__social a {
  background: var(--bg-gray);
  color: var(--text-dark);
}
.header__social a:hover {
  background: var(--accent);
  color: var(--text-light);
}
.header__social svg, .header__social img { width: 18px; height: 18px; }

.header__burger {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
@media (min-width: 1024px) { .header__burger { display: none; } }
.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.header__burger span::before,
.header__burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
}
.header__burger span::before { top: -7px; }
.header__burger span::after { top: 7px; }

/* ============ Mobile menu (sliding panel) ============ */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  color: var(--text-light);
  z-index: var(--z-popup);
  transform: translateX(100%);
  transition: transform var(--t-slow);
  display: flex;
  flex-direction: column;
}
.mobile-menu.is-open { transform: translateX(0); }

/* Шапка панели — sticky, чтобы кнопка закрытия всегда была доступна */
.mobile-menu__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.mobile-menu__logo img {
  height: 36px;
  width: auto;
}
.mobile-menu__close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  transition: background var(--t);
}
.mobile-menu__close:hover { background: rgba(255, 255, 255, 0.15); }

/* Скроллируемое тело */
.mobile-menu__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-5) var(--space-5) var(--space-10);
  -webkit-overflow-scrolling: touch;
}

/* Главный CTA */
.mobile-menu__cta {
  margin-bottom: var(--space-6);
}

/* Навигация */
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: var(--space-6);
}

.mm-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-4) var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-light);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  text-align: left;
  transition: background var(--t);
}
.mm-link:active,
.mm-link:hover { background: rgba(255, 255, 255, 0.06); }
.mm-link + .mm-link { border-top: 1px solid rgba(255, 255, 255, 0.06); border-radius: 0; }

.mm-link__meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-muted-dark);
}
.mm-link__count {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(var(--accent-rgb), 0.18);
  color: var(--accent);
}
.mm-link__chev {
  transition: transform var(--t);
}
.mm-link--toggle[aria-expanded="true"] .mm-link__chev {
  transform: rotate(180deg);
}

/* Раскрывающаяся панель услуг */
.mm-panel {
  display: none;
  padding: 4px 0 var(--space-3);
}
.mm-panel.is-open {
  display: block;
  animation: mm-slide 0.25s ease-out;
}
@keyframes mm-slide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.mm-subcat + .mm-subcat {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.mm-subcat__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-2);
  padding: 0 var(--space-3);
}
.mm-subcat ul {
  display: flex;
  flex-direction: column;
}
.mm-subcat a {
  display: block;
  padding: 12px var(--space-3);
  font-size: 0.9375rem;
  color: var(--text-light);
  border-radius: var(--radius-sm);
  transition: background var(--t), color var(--t);
}
.mm-subcat a:active,
.mm-subcat a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
}

/* Блок контактов в подвале меню */
.mobile-menu__contacts {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mm-phone {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  color: var(--text-light);
  transition: background var(--t);
}
.mm-phone:active { background: rgba(255, 255, 255, 0.10); }
.mm-phone__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  flex-shrink: 0;
}
.mm-phone__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.mm-phone__text strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
}
.mm-phone__text span {
  font-size: 0.8125rem;
  color: var(--text-muted-dark);
  margin-top: 2px;
}

.mm-social {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
.mm-social a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: var(--space-3) var(--space-2);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  color: var(--text-light);
  transition: background var(--t);
}
.mm-social a:active { background: rgba(255, 255, 255, 0.10); }
.mm-social img {
  width: 22px;
  height: 22px;
}
.mm-social span {
  font-size: 0.75rem;
  font-weight: 600;
}

.mm-address {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  color: var(--text-muted-dark);
  font-size: 0.875rem;
}
.mm-address svg { flex-shrink: 0; color: var(--accent); }

/* Mobile bottom bar */
.mobile-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: var(--z-sticky);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--bg-dark);
  color: var(--text-light);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}
@media (min-width: 1024px) { .mobile-bar { display: none; } }
.mobile-bar a, .mobile-bar button {
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-light);
}
.mobile-bar a:last-child, .mobile-bar button:last-child {
  background: var(--accent);
}
.mobile-bar svg, .mobile-bar img { width: 20px; height: 20px; }

/* Floating chat */
.float-chat {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: var(--z-sticky);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
}
@media (max-width: 1023px) { .float-chat { display: none; } }
.float-chat__items {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.float-chat.is-open .float-chat__items { display: flex; }
.float-chat__items a {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: transform var(--t);
}
.float-chat__items a:hover { transform: scale(1.1); }
.float-chat__items svg, .float-chat__items img { width: 24px; height: 24px; }
.float-chat__toggle {
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-accent);
  transition: transform var(--t);
}
.float-chat__toggle:hover { transform: scale(1.05); }
.float-chat__toggle svg { width: 28px; height: 28px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--bg-dark);
  color: var(--text-light);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero--inner { min-height: 60vh; padding: 140px 0 80px; }

.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.55) 55%, rgba(10,10,10,0.35) 100%),
    radial-gradient(ellipse at top right, rgba(var(--accent-rgb), 0.25), transparent 60%),
    url('/uploads/migrated/request.jpg');
  background-size: cover;
  background-position: center;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.4) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><defs><pattern id='g' width='40' height='40' patternUnits='userSpaceOnUse'><circle cx='1' cy='1' r='1' fill='rgba(255,255,255,0.04)'/></pattern></defs><rect width='100%' height='100%' fill='url(%23g)'/></svg>");
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: var(--space-5);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
}
.hero__title {
  font-size: clamp(2rem, 5.5vw, 4rem);
  margin-bottom: var(--space-5);
  line-height: 1.05;
}
.hero__title span { color: var(--accent); }
.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  color: var(--text-muted-dark);
  margin-bottom: var(--space-8);
  max-width: 640px;
  line-height: 1.5;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-8);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}
@media (min-width: 768px) {
  .hero__stats { grid-template-columns: repeat(4, 1fr); }
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.hero__cta-foot {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.8125rem;
  color: var(--text-muted-dark);
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  display: inline-flex;
  width: fit-content;
}
.hero__cta-foot svg {
  width: 32px; height: 32px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Hero inner bullets */
.hero-inner-bullets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
@media (min-width: 768px) {
  .hero-inner-bullets { grid-template-columns: repeat(4, 1fr); }
}
.hero-inner-bullet {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-light);
}
.hero-inner-bullet svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* ============ Partners strip ============ */
.partners {
  padding: var(--space-10) 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-light);
}
.partners__title {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}
.partners__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
}
.partners__item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity var(--t);
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.partners__item:hover { opacity: 1; }

/* ============ Service grid ============ */
.services-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============ Services variant A — 5 × 2 квадратами ============ */
.services-a {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .services-a { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .services-a { grid-template-columns: repeat(5, 1fr); } }

.svc-square {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-dark);
  display: block;
  isolation: isolate;
  text-decoration: none;
  transition: transform var(--t);
}
.svc-square:hover { transform: translateY(-4px); }
.svc-square__img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.svc-square__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.svc-square:hover .svc-square__img img { transform: scale(1.07); }
.svc-square::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 55%, rgba(0,0,0,0.92) 100%);
  z-index: 1;
}
.svc-square__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  z-index: 2;
  color: var(--text-light);
}
.svc-square__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.15;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.svc-square__price {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}
.svc-square__arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: background var(--t), transform var(--t);
}
.svc-square__arrow svg { width: 14px; height: 14px; }
.svc-square:hover .svc-square__arrow {
  background: var(--accent);
  transform: rotate(-45deg);
}

/* ============ Services variant C — Bento ============ */
.services-bento {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(180px, 1fr);
}
@media (min-width: 1024px) {
  .services-bento {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
  }
}

.bento-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-dark);
  display: block;
  isolation: isolate;
  text-decoration: none;
  transition: transform var(--t);
}
.bento-card:hover { transform: translateY(-4px); }
.bento-card__img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.bento-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.bento-card:hover .bento-card__img img { transform: scale(1.06); }
.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.92) 100%);
  z-index: 1;
}
.bento-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4) var(--space-5);
  z-index: 2;
  color: var(--text-light);
}
.bento-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.15;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.bento-card__price {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}
.bento-card__sub {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}
.bento-card__arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: background var(--t), transform var(--t);
}
.bento-card__arrow svg { width: 14px; height: 14px; }
.bento-card:hover .bento-card__arrow { background: var(--accent); transform: rotate(-45deg); }

/* Hero-карточки в bento: на мобайле выглядят как обычные (тот же размер шрифта),
   описание-подзаголовок скрыто, чтобы влезало. На десктопе занимают 2×2 и получают
   увеличенный текст + видимое описание. */
.bento-card--hero .bento-card__sub { display: none; }

@media (min-width: 1024px) {
  .bento-card--hero { grid-column: span 2; grid-row: span 2; }
  .bento-card--hero .bento-card__title { font-size: 1.75rem; }
  .bento-card--hero .bento-card__price { font-size: 1rem; }
  .bento-card--hero .bento-card__sub { display: block; font-size: 0.9375rem; }
  .bento-card--hero .bento-card__body { padding: var(--space-6); }
  .bento-card--wide { grid-column: 1 / -1; }
  .bento-card--wide .bento-card__title { font-size: 1.25rem; }
}

/* ============ USP cards (Почему выбирают нас) ============ */
.usp-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .usp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .usp-grid { grid-template-columns: repeat(3, 1fr); } }

.usp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 180px;
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-light);
  color: var(--text-dark);
  transition: transform var(--t);
}
.usp-card:hover { transform: translateY(-4px); }

.usp-card--dark { background: #1A1A1A; color: var(--text-light); }
.usp-card--beige { background: #FCDCEC; color: var(--text-dark); }
.usp-card--gray { background: var(--bg-gray-2); color: var(--text-dark); }
.usp-card--photo, .usp-card--photo-dark {
  color: var(--text-light);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.usp-card--photo::before, .usp-card--photo-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.55) 100%);
  z-index: 0;
}
.usp-card--photo-dark::before {
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.85) 100%);
}
.usp-card--photo > *, .usp-card--photo-dark > * { position: relative; z-index: 1; }
.usp-card--photo .usp-card__title,
.usp-card--photo-dark .usp-card__title,
.usp-card--photo .usp-card__desc,
.usp-card--photo-dark .usp-card__desc {
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.usp-card__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-right: 80px; /* резерв под иконку в правом верхнем углу */
}
.usp-card--photo .usp-card__head,
.usp-card--photo-dark .usp-card__head { padding-right: 0; }

.usp-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.usp-card__desc {
  font-size: 0.9375rem;
  line-height: 1.5;
  opacity: 0.78;
  max-width: 32ch;
}
.usp-card--dark .usp-card__desc { opacity: 0.7; }
.usp-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-4);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: fit-content;
}
.usp-card__cta::after { content: '→'; transition: transform var(--t); }
.usp-card__cta:hover::after { transform: translateX(4px); }

/* Floating visual в углу карточки */
.usp-card__visual {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.usp-card__visual--right {
  right: -30px;
  bottom: -30px;
  width: 60%;
  max-width: 220px;
  opacity: 0.95;
}
.usp-card__visual img { width: 100%; height: auto; display: block; }
.usp-card__visual--icon {
  right: var(--space-5);
  top: var(--space-5);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.usp-card--dark .usp-card__visual--icon { background: rgba(255,255,255,0.1); }
.usp-card__visual--icon svg { width: 28px; height: 28px; }

/* ============ Image cards (услуги в стиле фото-карточек) ============ */
.image-cards-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .image-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .image-cards-grid { grid-template-columns: repeat(3, 1fr); } }

.image-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--text-light);
  text-decoration: none;
  transition: transform var(--t);
  isolation: isolate;
}
.image-card:hover { transform: translateY(-6px); }
.image-card__img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.image-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.image-card:hover .image-card__img img { transform: scale(1.06); }
.image-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.85) 100%);
}
.image-card__arrow {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: background var(--t), transform var(--t);
}
.image-card:hover .image-card__arrow {
  background: var(--accent);
  transform: rotate(-45deg);
}
.image-card__arrow svg { width: 18px; height: 18px; }
.image-card__body {
  position: relative;
  z-index: 2;
  padding: var(--space-6);
}
.image-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.image-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: var(--space-3);
}
.image-card__list li {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  transition: color var(--t);
}
.image-card:hover .image-card__list li { color: var(--text-light); }

/* ============ Calculator ============ */
.calculator {
  max-width: 880px;
  margin: 0 auto;
  padding: var(--space-8);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.calc-step {
  margin-bottom: var(--space-6);
}
.calc-step__label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.calc-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
@media (min-width: 768px) {
  .calc-options { grid-template-columns: repeat(4, 1fr); }
}
.calc-option {
  padding: var(--space-4);
  background: var(--bg-gray);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--t);
  font-weight: 600;
  font-size: 0.9375rem;
}
.calc-option:hover { background: var(--bg-gray-2); }
.calc-option.is-active {
  background: var(--bg-light);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.calc-checkboxes {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-3);
}
@media (min-width: 768px) {
  .calc-checkboxes { grid-template-columns: repeat(3, 1fr); }
}
.calc-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--space-4);
  background: var(--bg-gray);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--t);
  font-size: 0.9375rem;
}
.calc-checkbox.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.calc-checkbox input { accent-color: var(--accent); margin-right: 4px; }

.calc-result {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.calc-result__label {
  font-size: 0.9375rem;
  color: var(--text-muted-dark);
  margin-bottom: 4px;
}
.calc-result__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* ============ Packages grid ============ */
.packages-grid {
  display: grid;
  gap: var(--space-5);
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  overflow-x: auto;
  padding-bottom: var(--space-4);
  scroll-snap-type: x mandatory;
}
.packages-grid > * { scroll-snap-align: start; }
@media (min-width: 1280px) {
  .packages-grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: unset;
    overflow: visible;
  }
}

/* ============ Portfolio ============ */
.portfolio-filter {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
  justify-content: center;
}
.portfolio-filter button {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--t);
}
.portfolio-filter button:hover { border-color: var(--accent); color: var(--accent); }
.portfolio-filter button.is-active {
  background: var(--text-dark);
  color: var(--text-light);
  border-color: var(--text-dark);
}

/* ============ Portfolio grid (вместо карусели) ============ */
.portfolio-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(4, 1fr); } }

/* ============ Reviews grid (3×2) ============ */
.reviews-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }

.review-card__source--yandex { color: #FFCC00; }
.review-card__source--2gis { color: #19AD41; }

.portfolio-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-light);
  border: 1px solid var(--border);
  transition: all var(--t);
  height: 100%;
}
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.portfolio-card__img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  overflow: hidden;
}
.portfolio-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.portfolio-card:hover .portfolio-card__img img { transform: scale(1.05); }
.portfolio-card__body {
  padding: var(--space-4);
}
.portfolio-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 4px;
}
.portfolio-card__service {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ============ Before-After Slider ============ */
/* ============ Before/after grid (2 в ряд) ============ */
.ba-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .ba-grid { grid-template-columns: repeat(2, 1fr); }
}

.ba-item { display: flex; flex-direction: column; gap: var(--space-3); }

.ba-item__caption {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
}
.ba-item__caption small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  background: var(--bg-dark);
}
.ba-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.ba-after { clip-path: inset(0 0 0 50%); }
.ba-label {
  position: absolute;
  top: var(--space-4);
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  pointer-events: none;
}
.ba-label--before { left: var(--space-4); }
.ba-label--after { right: var(--space-4); background: var(--accent); }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='15 18 9 12 15 6'/><polyline points='9 18 15 12 9 6'/></svg>");
  background-size: 28px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============ Video ============ */
.video-block {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 1024px) {
  .video-block { grid-template-columns: 2fr 1fr; }
}
.video-main {
  aspect-ratio: 16 / 9;
  background: var(--bg-dark);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.video-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.video-main__play { position: relative; z-index: 1; }
.video-main__play {
  width: 80px;
  height: 80px;
  background: var(--accent);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-accent);
  cursor: pointer;
  transition: transform var(--t);
}
.video-main__play:hover { transform: scale(1.08); }
.video-main__play svg { width: 32px; height: 32px; }
.video-list {
  display: grid;
  gap: var(--space-3);
}
.video-thumb {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--bg-gray);
  cursor: pointer;
  transition: background var(--t);
}
.video-thumb:hover { background: var(--bg-gray-2); }
.video-thumb__preview {
  width: 80px;
  aspect-ratio: 16 / 9;
  background: var(--bg-dark);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}
.video-thumb__title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ============ Social channels (Telegram + VK) ============ */
.socials {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.social-channel {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.social-channel__head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.social-channel__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.social-channel__icon svg, .social-channel__icon img { width: 28px; height: 28px; }
.social-channel--tg .social-channel__icon { background: rgba(0, 136, 204, 0.18); color: #29B6F6; }
.social-channel--vk .social-channel__icon { background: rgba(7, 144, 246, 0.18); color: #4A90E2; }

.social-channel__meta { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; }
.social-channel__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-light);
}
.social-channel__handle {
  font-size: 0.9375rem;
  color: var(--text-muted-dark);
  transition: color var(--t);
}
.social-channel__handle:hover { color: var(--text-light); }

.social-channel__cta { margin-left: auto; }

.socials-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.socials-scroll::-webkit-scrollbar { display: none; }

.socials-track {
  display: flex;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
}

.social-card {
  flex: 0 0 220px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--bg-darker);
  scroll-snap-align: start;
  transition: transform var(--t);
  display: block;
  text-decoration: none;
}
@media (min-width: 768px) {
  .social-card { flex: 0 0 240px; }
}
.social-card:hover { transform: translateY(-4px); }
.social-card__img {
  position: absolute;
  inset: 0;
}
.social-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.social-card:hover .social-card__img img { transform: scale(1.06); }
.social-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}
.social-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: background var(--t), transform var(--t);
}
.social-card:hover .social-card__play {
  background: var(--accent);
  border-color: var(--accent);
  transform: translate(-50%, -50%) scale(1.1);
}
.social-card__play svg { width: 24px; height: 24px; margin-left: 3px; }
.social-card__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  z-index: 2;
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
}
.social-card__caption strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 4px;
}

/* VK cards — 16:9 since VK content is usually horizontal */
.social-channel--vk .social-card {
  flex: 0 0 320px;
  aspect-ratio: 16 / 9;
}
@media (min-width: 768px) {
  .social-channel--vk .social-card { flex: 0 0 380px; }
}

/* ============ Founder block ============ */
.founder {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 1024px) {
  .founder { grid-template-columns: 1fr 2fr; }
}
.founder__photo {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border-radius: var(--radius-xl);
  max-width: 360px;
  overflow: hidden;
}
.founder__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder__quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.4;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: var(--space-6);
}
.section--dark .founder__quote { color: var(--text-light); }

.founder__quote::before {
  content: '«';
  display: block;
  font-size: 4rem;
  color: var(--accent);
  line-height: 0.7;
  margin-bottom: var(--space-3);
}
.founder__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--text-dark);
}
.section--dark .founder__name { color: var(--text-light); }

.founder__role {
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.section--dark .founder__role { color: var(--text-muted-dark); }

/* ============ Team grid ============ */
.team-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 480px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(5, 1fr); } }

.team-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-darker);
  isolation: isolate;
}
.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
  display: block;
}
.team-card:hover img { transform: scale(1.05); }
.team-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}
.team-card__label {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  z-index: 2;
  color: var(--text-light);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}
.team-card__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}
.team-card__role {
  font-size: 0.6875rem;
  color: var(--text-muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

/* ============ Actions/promos ============ */
.actions-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 768px) {
  .actions-grid { grid-template-columns: repeat(3, 1fr); }
}
.action-card {
  padding: var(--space-6);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
  transition: all var(--t);
}
.action-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.action-card__discount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-3);
}
.action-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: var(--space-2);
}
.action-card__desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-4);
  flex-grow: 1;
}
.action-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

/* ============ Actions VARIANT A — Bento с флагманом ============ */
.actions-bento {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .actions-bento {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
}
.action-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--text-light);
  min-height: 280px;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
}
@media (min-width: 768px) {
  .action-hero { grid-row: span 2; }
}
.action-hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.action-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.action-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.85) 100%);
}
.action-hero__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.action-hero__discount {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--text-light);
  letter-spacing: -0.04em;
}
.action-hero__timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--accent);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.action-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  margin-bottom: var(--space-2);
}
.action-hero__desc { color: rgba(255,255,255,0.85); margin-bottom: var(--space-4); }
.action-mini {
  position: relative;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: all var(--t);
}
.action-mini:hover { border-color: var(--accent); transform: translateY(-2px); }
.action-mini__discount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.action-mini__title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.action-mini__meta { font-size: 0.8125rem; color: var(--text-muted); margin-top: auto; }

/* ============ Actions VARIANT B — Купоны ============ */
.actions-coupons {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .actions-coupons { grid-template-columns: repeat(2, 1fr); }
}
.coupon {
  display: grid;
  grid-template-columns: 140px 1fr;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--t);
  min-height: 140px;
}
.coupon:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.coupon__left {
  background: var(--accent);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  position: relative;
}
.coupon__discount {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.coupon__badge {
  margin-top: 8px;
  padding: 3px 10px;
  background: rgba(0,0,0,0.25);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
/* Перфорация-вырез между половинками */
.coupon::before, .coupon::after {
  content: '';
  position: absolute;
  left: 130px;
  width: 20px;
  height: 20px;
  background: var(--bg-gray);
  border-radius: 50%;
  z-index: 1;
}
.coupon::before { top: -10px; }
.coupon::after { bottom: -10px; }
/* Пунктирная линия отрыва */
.coupon__divider {
  position: absolute;
  left: 140px;
  top: 16px;
  bottom: 16px;
  width: 0;
  border-left: 2px dashed var(--border);
  pointer-events: none;
}
.coupon__right {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.coupon__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
}
.coupon__desc { font-size: 0.875rem; color: var(--text-muted); }
.coupon__meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 8px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ============ Actions VARIANT C — Тёмные премиум ============ */
.actions-dark {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .actions-dark { grid-template-columns: repeat(3, 1fr); } }
.action-dark {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t);
}
.action-dark:hover { transform: translateY(-4px); }
.action-dark::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(var(--accent-rgb),0.35), transparent 70%);
  z-index: -1;
}
.action-dark__star {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
}
.action-dark__discount {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: var(--space-2) 0 var(--space-3);
}
.action-dark__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  margin-bottom: 6px;
}
.action-dark__desc { font-size: 0.875rem; color: rgba(255,255,255,0.65); flex-grow: 1; }
.action-dark__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  margin-top: var(--space-4);
  border-top: 1px solid var(--border-dark);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
}
.action-dark__arrow {
  display: inline-flex;
  width: 32px; height: 32px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--text-light);
  transition: all var(--t);
}
.action-dark:hover .action-dark__arrow { background: var(--accent); transform: rotate(-45deg); }

/* ============ Trio (guarantee + installment + replacement car) ============ */
.trio-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 768px) {
  .trio-grid { grid-template-columns: repeat(3, 1fr); }
}
.trio-card {
  padding: var(--space-8);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--t);
}
.trio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.trio-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
}
.trio-card__icon svg { width: 36px; height: 36px; }
.trio-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
}
.trio-card__desc {
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  font-size: 0.9375rem;
}

/* ============ Gift cert strip ============ */
.gift-strip {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  color: var(--text-light);
  padding: var(--space-8) var(--space-8);
  border-radius: var(--radius-xl);
  display: grid;
  gap: var(--space-4);
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .gift-strip { grid-template-columns: 2fr 1fr; padding: var(--space-10); }
}
.gift-strip::before {
  content: '🎁';
  position: absolute;
  right: -40px;
  bottom: -40px;
  font-size: 240px;
  opacity: 0.06;
}
.gift-strip__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: var(--space-3);
}
.gift-strip__desc { color: var(--text-muted-dark); }

/* ============ Map block ============ */
.map-block {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 1024px) {
  .map-block { grid-template-columns: 2fr 1fr; }
}
.map-placeholder {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), transparent),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><defs><pattern id='m' width='10' height='10' patternUnits='userSpaceOnUse'><path d='M 10 0 L 0 0 0 10' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='0.5'/></pattern></defs><rect width='100%' height='100%' fill='%231a1a1a'/><rect width='100%' height='100%' fill='url(%23m)'/></svg>");
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.map-pin {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--text-light);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: var(--shadow-accent);
}
.map-pin svg { transform: rotate(45deg); width: 24px; height: 24px; }

.contacts-card {
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
}
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-dark);
}
.contact-row:last-child { border-bottom: none; }
.contact-row__icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
}
.contact-row__icon svg { width: 18px; height: 18px; }
.contact-row__label {
  font-size: 0.8125rem;
  color: var(--text-muted-dark);
}
.contact-row__value {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-light);
}

/* ============ Combined Contacts + CTA block (компактный) ============ */
/* Уменьшенные паддинги для секции */
#contacts.section { padding: var(--space-12) 0; }
#contacts .section-head { margin-bottom: var(--space-8); }

.contacts-cta__grid {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 1024px) {
  .contacts-cta__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.contacts-cta__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
/* Контакты в сетке 2×2 (вместо 4 вертикальных строк) */
.contacts-grid-mini {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 480px) { .contacts-grid-mini { grid-template-columns: repeat(2, 1fr); } }
.contacts-grid-mini__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
}
.contacts-grid-mini__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.contacts-grid-mini__icon svg { width: 18px; height: 18px; }
.contacts-grid-mini__label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted-dark);
  margin-bottom: 2px;
}
.contacts-grid-mini__value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.3;
}
.contacts-cta__quick {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.contacts-cta__form-wrap {
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.contacts-cta__form-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb), 0.12), transparent 60%);
  pointer-events: none;
}
.contacts-cta__form-wrap > * { position: relative; }
.contacts-cta__form-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: var(--space-4);
}
/* Компактные поля в форме contacts-cta — без label, только placeholder */
.contacts-cta__form-wrap .form { gap: var(--space-3); }
.contacts-cta__form-wrap .form-field input,
.contacts-cta__form-wrap .form-field select { padding: 12px 14px; font-size: 0.9375rem; }

/* ============ CTA form block (legacy, оставлен на случай возврата) ============ */
.cta-block {
  position: relative;
  padding: var(--space-16) 0;
  background: var(--bg-dark);
  color: var(--text-light);
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(var(--accent-rgb), 0.2), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(var(--accent-rgb), 0.1), transparent 50%);
}
.cta-block__inner {
  position: relative;
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 1024px) {
  .cta-block__inner { grid-template-columns: 1fr 1fr; }
}
.cta-block__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}
.cta-block__sub {
  color: var(--text-muted-dark);
  margin-bottom: var(--space-6);
}
.cta-block__form {
  padding: var(--space-8);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
}

/* ============ Breadcrumbs ============ */
/* Крошки скрыты визуально, но остаются в DOM (для краулинга) и в JSON-LD (<head>).
   За счёт убранного блока сокращается отступ между шапкой и заголовком страницы. */
.breadcrumbs {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.breadcrumbs ul {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  flex-wrap: wrap;
}
.breadcrumbs li::after {
  content: '/';
  margin-left: 8px;
  color: var(--text-muted);
}
.breadcrumbs li:last-child::after { display: none; }
.breadcrumbs a { transition: color var(--t); }
.breadcrumbs a:hover { color: var(--text-light); }
.breadcrumbs li:last-child { color: var(--text-light); }

/* ============ What-is two-column block ============ */
.two-col {
  display: grid;
  gap: var(--space-8);
  align-items: start;          /* было: center — при длинном тексте картинка прыгала; теперь привязка к верху */
}
@media (min-width: 1024px) {
  .two-col { grid-template-columns: 1.1fr 1fr; }   /* текст чуть шире картинки */
}
/* Без картинки — одна колонка во всю ширину, текст ограничен по читаемой мере (не растягиваем на весь экран и не оставляем пустую колонку) */
.two-col--solo { grid-template-columns: 1fr !important; }
.two-col--solo .two-col__text,
.two-col--solo .two-col__footnote { max-width: 70ch; }
.two-col__body { min-width: 0; }
.two-col__visual {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
/* Sticky на десктопе: картинка не уезжает наверх пока читаешь длинный текст */
@media (min-width: 1024px) {
  .two-col__visual {
    position: sticky;
    top: 100px;
  }
}
.two-col__visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.two-col__title { margin-bottom: var(--space-4); }
.two-col__text {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: var(--space-4);
}
/* Lead-параграф — первый: крупнее, темнее, более ёмкий */
.two-col__text--lead {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--text-dark);
  font-weight: 500;
}
/* Footnote — для SEO-синонимов и сносок: мелким серым, отделён линией */
.two-col__footnote {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ============ SEO-секции услуги: двухколоночная раскладка ============
   Слева заголовок + вводная, справа список — заполняет ширину, без пустого правого поля.
   На мобильном схлопывается в одну колонку (вводная → список). */
.seo-block__grid { display: grid; gap: var(--space-5); }
@media (min-width: 900px) {
  .seo-block__grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: var(--space-10, 64px);
    align-items: start;
  }
}
/* Нет списка — одна колонка по читаемой мере (как было) */
.seo-block__grid--solo { display: block; }
.seo-block__grid--solo .two-col__text { max-width: 70ch; }
.seo-block__head .two-col__title { margin-bottom: var(--space-4); }
.seo-block__head .two-col__text { margin-bottom: 0; }
.seo-block__body { margin-bottom: 0; }
.seo-block__body > *:first-child { margin-top: 0; }

/* ============ SEO-секции услуги (.seo-list) ============
   Дефисные перечисления в тексте приводятся к <ul class="seo-list"> на сервере
   (см. uslugi.htm → $listify). Тон по смыслу заголовка:
   --yes — что делаем (✓ зелёный), --no — когда нельзя (✕ янтарный), без модификатора — точка-акцент. */
.two-col__text .seo-list {
  list-style: none;
  margin: var(--space-5) 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}
.two-col__text .seo-list li {
  position: relative;
  padding-left: 2.1rem;
  color: var(--text-muted);
}
.two-col__text .seo-list li strong { color: var(--text-dark); font-weight: 600; }
/* Дефолт — нейтральная точка-акцент (факторы, перечни без явного тона) */
.two-col__text .seo-list li::before {
  content: "";
  position: absolute;
  left: .5rem;
  top: .62em;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--accent);
}
/* Бейдж-маркер для ✓ / ✕ */
.two-col__text .seo-list--yes li::before,
.two-col__text .seo-list--no li::before {
  left: 0;
  top: .15em;
  width: 1.45rem;
  height: 1.45rem;
  line-height: 1.45rem;
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  border-radius: 50%;
}
.two-col__text .seo-list--yes li::before {
  content: "✓";
  color: var(--success);
  background: rgba(16, 185, 129, 0.12);
}
.two-col__text .seo-list--no li::before {
  content: "✕";
  color: var(--warning);
  background: rgba(245, 158, 11, 0.12);
}

/* ============ Effects grid ============ */
.effects {
  display: grid;
  gap: var(--space-4);
  /* minmax(0,1fr) — колонки строго равной ширины: длинные слова не раздувают трек */
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .effects { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.effect {
  padding: var(--space-5);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--t);
}
.effect:hover { border-color: var(--accent); }
.effect__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
}
.effect__icon svg { width: 28px; height: 28px; }
.effect__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}
.effect__desc {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* ============ Compare table ============ */
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #C2C8D2;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 12px 28px rgba(16, 24, 40, 0.08);
  font-size: 0.9375rem;
}
.compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
}
.compare th, .compare td {
  padding: var(--space-3) var(--space-4);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
/* Числовые ячейки (цены, диапазоны) не переносим посреди числа — узкий экран скроллит таблицу. */
.compare th:not(:first-child),
.compare td:not(:first-child) { white-space: nowrap; }
.compare th { background: var(--bg-gray); font-weight: 700; font-family: var(--font-display); }
.compare th:first-child, .compare td:first-child {
  text-align: left;
  font-weight: 500;
  background: var(--bg-gray);
  position: sticky;
  left: 0;
  min-width: 200px;
}
.compare td.check { color: var(--success); font-size: 1.25rem; }
.compare td.dash { color: var(--text-muted); }
.compare tr:last-child td { border-bottom: none; }
.compare-row--hot { background: var(--accent-soft); }

/* ============ Price grid (цены по элементам × материалам) ============
   Самостоятельная вёрстка таблицы прайса: чёрная рамка-каркас, тёмная шапка,
   тонкая сетка строк, выделенный первый столбец. Не зависит от .compare. */
.price-grid-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
}
.price-grid {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: var(--bg-light);
  font-size: 1rem;
}
.price-grid th,
.price-grid td {
  padding: var(--space-4) var(--space-5);
  text-align: center;
}
/* Шапка — тёмная плашка с белым текстом */
.price-grid thead th {
  background: var(--text-dark);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}
.price-grid thead th:last-child { border-right: none; }
.price-grid thead th:first-child,
.price-grid .price-grid__el { text-align: left; }
/* Тело — тонкие горизонтальные разделители + вертикаль после первого столбца */
.price-grid tbody th,
.price-grid tbody td { border-top: 1px solid var(--border); }
.price-grid tbody td {
  color: var(--text-dark);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* Первый столбец — элемент: жирный, на сером фоне, с чёрным разделителем */
.price-grid__el {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-dark);
  background: var(--bg-gray);
  border-right: 1px solid var(--accent);
}
.price-grid tbody tr:hover th.price-grid__el { background: #ECEEF2; }
.price-grid tbody tr:hover td { background: var(--accent-soft); }
.price-grid__note {
  margin-top: var(--space-4);
  font-size: 0.875rem;
  color: var(--text-muted);
}
@media (max-width: 600px) {
  .price-grid th,
  .price-grid td { padding: var(--space-3); font-size: 0.875rem; }
}

/* ============ Stages with details ============ */
.stages-list {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 768px) {
  .stages-list { grid-template-columns: repeat(2, 1fr); }
}
.stage-detail {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--t);
}
.stage-detail:hover { border-color: var(--accent); }
.stage-detail__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
  min-width: 48px;
}
.stage-detail__body {
  flex: 1 1 auto;
  min-width: 0;
}
.stage-detail__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 4px;
}
.stage-detail__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============ Warranty block ============ */
.warranty-block {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 1024px) {
  .warranty-block { grid-template-columns: 2fr 1fr; }
}
.warranty-list {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.warranty-item {
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
}
.warranty-item--yes { border-left: 4px solid var(--success); }
.warranty-item--no { border-left: 4px solid var(--accent); }
.warranty-item__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.warranty-item--yes .warranty-item__label { color: var(--success); }
.warranty-item--no .warranty-item__label { color: var(--accent); }
.warranty-cert {
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted-dark);
  text-align: center;
  padding: var(--space-6);
  font-family: var(--font-display);
  font-weight: 700;
}

/* ============ Footer ============ */
.footer {
  background: var(--bg-darker);
  color: var(--text-muted-dark);
  padding: var(--space-16) 0 var(--space-8);
  margin-bottom: 60px;
}
@media (min-width: 1024px) { .footer { margin-bottom: 0; } }
.footer__grid {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer__col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-light);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer__col ul { display: flex; flex-direction: column; gap: 8px; }
.footer__col a {
  font-size: 0.9375rem;
  transition: color var(--t);
}
.footer__col a:hover { color: var(--text-light); }
.footer__about p {
  font-size: 0.9375rem;
  margin-bottom: var(--space-4);
  line-height: 1.6;
}
.footer__socials {
  display: flex;
  gap: var(--space-2);
}
.footer__socials a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  transition: all var(--t);
}
.footer__socials a:hover { background: var(--accent); color: var(--text-light); }
.footer__socials svg, .footer__socials img { width: 18px; height: 18px; }

.footer__bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 0.8125rem;
}
.footer__legal { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* ============ Animations ============ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Stagger fade-in для сеток === */
.is-staggered > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.is-staggered.is-visible > * { opacity: 1; transform: translateY(0); }
.is-staggered > *:nth-child(1) { transition-delay: 0.04s; }
.is-staggered > *:nth-child(2) { transition-delay: 0.10s; }
.is-staggered > *:nth-child(3) { transition-delay: 0.16s; }
.is-staggered > *:nth-child(4) { transition-delay: 0.22s; }
.is-staggered > *:nth-child(5) { transition-delay: 0.28s; }
.is-staggered > *:nth-child(6) { transition-delay: 0.34s; }
.is-staggered > *:nth-child(7) { transition-delay: 0.40s; }
.is-staggered > *:nth-child(8) { transition-delay: 0.46s; }
.is-staggered > *:nth-child(9) { transition-delay: 0.52s; }

/* === Световой блик при hover на карточках === */
.portfolio-card,
.usp-card,
.image-card { position: relative; }

.portfolio-card::after,
.usp-card::after,
.image-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,0.18) 50%, transparent 75%);
  transform: translateX(-100%);
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: overlay;
}
.portfolio-card:hover::after,
.usp-card:hover::after,
.image-card:hover::after {
  transform: translateX(100%);
}
/* для тёмных карточек блик должен быть ярче — используем lighten */
.usp-card--dark::after,
.usp-card--photo::after,
.usp-card--photo-dark::after,
.image-card::after {
  background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,0.22) 50%, transparent 75%);
  mix-blend-mode: screen;
}

/* === Pulse-glow на главных CTA (только в hero и финальной форме) === */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.25); }
  50%      { box-shadow: 0 12px 36px rgba(var(--accent-rgb), 0.55); }
}
.hero .btn--primary,
.cta-block .btn--primary {
  animation: pulse-glow 2.8s ease-in-out infinite;
}
.hero .btn--primary:hover,
.cta-block .btn--primary:hover { animation: none; }

/* === Magnetic-эффект на primary-кнопках === */
/* CSS-переменные для смещения, JS их выставляет */
.btn--primary {
  --mx: 0px;
  --my: 0px;
  transform: translate(var(--mx), var(--my));
  transition: background var(--t), box-shadow var(--t), transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 12px 32px rgba(var(--accent-rgb), 0.35);
  /* transform для magnetic выставляется через CSS-переменные из JS */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn--primary { --mx: 0px; --my: 0px; }
  .portfolio-card::after, .usp-card::after, .image-card::after {
    display: none;
  }
}

/* === 3-колоночный дропдаун: на узких десктопах не вылазит за вьюпорт === */
@media (max-width: 1180px) {
  .nav__dropdown {
    left: auto;
    right: -16px;
    min-width: 640px;
  }
}

/* ============ Contacts page ============ */
.contacts-grid {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 900px) {
  .contacts-grid { grid-template-columns: 1fr 1.4fr; align-items: start; }
}
.contacts-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.contacts-block {
  padding: var(--space-5);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.contacts-block__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.contacts-block__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}
.contacts-block__hint {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.contacts-block .btn { margin-top: 8px; }
.contacts-socials {
  display: flex;
  gap: var(--space-3);
  margin-top: 4px;
}
.contacts-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  transition: all var(--t);
}
.contacts-social:hover { border-color: var(--accent); transform: translateY(-2px); }
.contacts-map {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  min-height: 360px;
}
.contacts-map iframe { display: block; width: 100%; height: 100%; border: 0; min-height: 360px; }
@media (max-width: 767px) { .contacts-map, .contacts-map iframe { min-height: 280px; height: 280px; } }

/* ============ Education page ============ */
.education-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 768px) {
  .education-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .education-grid { grid-template-columns: repeat(3, 1fr); }
}
.education-card {
  padding: var(--space-6);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: all var(--t);
}
.education-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.education-card__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}
.education-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-dark);
}
.education-card__sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: -4px;
}
.education-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.education-card__list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.9375rem;
  color: var(--text-dark);
}
.education-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 700;
}

/* ============ Compare table (s-compare) ============ */
.compare-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-light);
}
.compare-table__head,
.compare-table__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.compare-table__row:last-child { border-bottom: 0; }
.compare-table__cell {
  padding: var(--space-4) var(--space-5);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.compare-table__cell--header {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  background: var(--bg-gray);
}
.compare-table__cell--param {
  font-weight: 600;
  color: var(--text-muted);
}
.compare-table__cell--a {
  background: rgba(16, 185, 129, 0.06);
  border-left: 3px solid var(--success);
  color: var(--text-dark);
  font-weight: 500;
}
.compare-table__cell--b {
  color: var(--text-muted);
}
.compare-table__footer {
  margin-top: var(--space-4);
  font-size: 0.9375rem;
  color: var(--text-dark);
  font-weight: 600;
  text-align: center;
}
@media (max-width: 720px) {
  .compare-table__head { display: none; }
  .compare-table__row {
    grid-template-columns: 1fr;
    padding: var(--space-3) 0;
  }
  .compare-table__cell { padding: 8px var(--space-4); border-left: 0 !important; }
  .compare-table__cell--param { background: var(--bg-gray); font-weight: 700; color: var(--text-dark); }
  .compare-table__cell--a::before,
  .compare-table__cell--b::before {
    content: attr(data-label) ": ";
    color: var(--text-muted);
    font-size: 0.8125rem;
    display: block;
    margin-bottom: 2px;
  }
}

/* ============ Price table (s-price-table) ============ */
.price-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-light);
}
.price-table__row {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
}
.price-table__row:last-child { border-bottom: 0; }
.price-table__row--header { background: var(--bg-gray); font-family: var(--font-display); font-weight: 800; }
.price-table__cell {
  padding: var(--space-4) var(--space-4);
  font-size: 0.9375rem;
}
.price-table__cell--first { font-weight: 600; }
.price-table__cell--header { font-size: 0.875rem; }
.price-table__footer {
  margin-top: var(--space-3);
  font-size: 0.8125rem;
  color: var(--text-muted);
}
@media (max-width: 720px) {
  .price-table__row--header { display: none; }
  .price-table__row {
    grid-template-columns: 1fr;
    padding: var(--space-3) 0;
  }
  .price-table__cell { padding: 6px var(--space-4); }
  .price-table__cell--first { background: var(--bg-gray); font-weight: 700; padding: 10px var(--space-4); }
  .price-table__cell:not(.price-table__cell--first)::before {
    content: attr(data-label) ": ";
    color: var(--text-muted);
    margin-right: 6px;
  }
}

/* ============ Limitations (s-limitations) ============ */
.limitations {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 768px) {
  .limitations { grid-template-columns: repeat(2, 1fr); }
}
.limitation-card {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-left: 4px solid #F59E0B;
  border-radius: var(--radius-lg);
}
.limitation-card__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #F59E0B;
}
.limitation-card__icon svg { width: 100%; height: 100%; }
.limitation-card__case {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.limitation-card__action {
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.limitations__footer {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
  font-size: 0.9375rem;
  color: var(--text-dark);
}

/* ============ Feature (s-feature — сезонный/тематический блок) ============ */
.feature-grid {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 900px) {
  .feature-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
.feature-grid__text { display: flex; flex-direction: column; gap: var(--space-3); }
.feature-grid__heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-dark);
  margin: 0 0 8px;
}
.feature-grid__text p { color: var(--text-dark); font-size: 1rem; line-height: 1.65; margin: 0; }
.feature-grid__card {
  padding: var(--space-6);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.feature-grid__card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: var(--space-4);
}
.feature-grid__card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-grid__card-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 0.9375rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.feature-grid__card-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.feature-grid__card-label { color: var(--text-dark); flex: 1; }
.feature-grid__card-value { color: var(--accent); font-weight: 700; white-space: nowrap; }
.btn--full { width: 100%; justify-content: center; }
.feature-wide {
  margin-top: var(--space-6);
  padding: var(--space-6);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.feature-wide__heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  margin: 0 0 var(--space-3);
}
.feature-wide p { color: var(--text-dark); line-height: 1.65; margin: 0 0 var(--space-3); }
.feature-wide p:last-child { margin-bottom: 0; }
.feature-cta {
  margin-top: var(--space-6);
  padding: var(--space-6);
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--text-light);
}
.feature-cta__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0 0 var(--space-3);
}
.feature-cta__sub { color: rgba(255,255,255,0.75); margin: 0 0 var(--space-4); font-size: 0.9375rem; }
.feature-cta__buttons { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

/* ============ Brands grid (s-brands) ============ */
.brands-grid {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 640px) { .brands-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .brands-grid { grid-template-columns: repeat(4, 1fr); } }
.brand-card {
  padding: var(--space-4) var(--space-5);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--t);
}
.brand-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.brand-card__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.brand-card__note { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.4; }
.brands-grid__footer {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text-dark);
  line-height: 1.55;
}

/* ============ Case story (s-case-story) ============ */
.case-story { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .case-story { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.case-story__body p { color: var(--text-dark); line-height: 1.7; margin: 0 0 var(--space-3); font-size: 1.0625rem; }
.case-story__body p:last-child { margin-bottom: 0; }
.case-story__stats {
  padding: var(--space-5);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: sticky;
  top: 100px;
}
.case-story__stats-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.case-story__stats-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.case-story__stats-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}
.case-story__stats-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.case-story__stats-label { color: var(--text-muted); flex: 1; }
.case-story__stats-value { color: var(--text-dark); font-weight: 700; text-align: right; }
.case-story__gallery {
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .case-story__gallery { grid-template-columns: repeat(3, 1fr); } }
.case-story__photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-gray);
}
.case-story__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-story__cta {
  margin-top: var(--space-6);
  padding: var(--space-6);
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  text-align: center;
}
.case-story__cta-title { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; margin: 0 0 var(--space-2); }
.case-story__cta-sub { color: rgba(255,255,255,0.75); margin: 0 0 var(--space-4); font-size: 0.9375rem; }
.case-story__cta-buttons { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

/* ============ Section CTA (under any block) ============ */
.section-cta {
  margin-top: var(--space-5);
  display: flex;
  justify-content: center;
}

/* ─── Компактная соц-полоска (s-socials-cta) ───────────────── */
.socials-cta { padding: var(--space-8) 0; }
.socials-cta__panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  background: var(--accent-soft);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
}
.socials-cta__text { min-width: 0; }
.socials-cta__title { font-size: 1.35rem; margin: 2px 0 6px; }
.socials-cta__sub { color: var(--text-muted); margin: 0; max-width: 54ch; }
.socials-cta__actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.socials-cta__btn { background: var(--bg-light); }
.socials-cta__icon {
  width: 20px; height: 20px;
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
}
@media (max-width: 640px) {
  .socials-cta__panel { flex-direction: column; align-items: flex-start; }
  .socials-cta__actions { width: 100%; }
  .socials-cta__btn { flex: 1 1 auto; }
}

/* ===== Юридические страницы (UrPages: pdpolicy/agreement/cookiepolicy/approval) ===== */
.legal-content { max-width: 880px; margin: 0 auto; color: var(--text-dark, #1a1a1a); line-height: 1.7; font-size: 0.97rem; }
.legal-content h1, .legal-content h2 { font-size: 1.4rem; margin: var(--space-8, 2rem) 0 var(--space-3, .75rem); line-height: 1.3; }
.legal-content h3 { font-size: 1.15rem; margin: var(--space-6, 1.5rem) 0 var(--space-2, .5rem); }
.legal-content h4 { font-size: 1.02rem; margin: var(--space-5, 1.25rem) 0 var(--space-2, .5rem); }
.legal-content p { margin: 0 0 var(--space-3, .85rem); }
.legal-content ul, .legal-content ol { margin: 0 0 var(--space-3, .85rem) var(--space-5, 1.25rem); padding-left: 1rem; }
.legal-content li { margin: .3rem 0; }
.legal-content a { color: var(--accent, #e6007e); word-break: break-word; }
.legal-content table { width: 100%; border-collapse: collapse; margin: var(--space-4, 1rem) 0; font-size: .9rem; }
.legal-content th, .legal-content td { border: 1px solid #e2e2e2; padding: .5rem .65rem; text-align: left; vertical-align: top; }
.legal-content strong { font-weight: 600; }

/* ===== Модалка юр-текста (согласие на обработку ПД) — поверх поп-апа записи ===== */
.legal-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center;
  justify-content: center; padding: var(--space-4, 1rem); background: rgba(0,0,0,.7);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.legal-modal.is-open { opacity: 1; visibility: visible; }
.legal-modal__panel { position: relative; width: 100%; max-width: 760px; max-height: 85vh;
  overflow-y: auto; background: #fff; border-radius: 16px; padding: var(--space-8, 2rem) var(--space-6, 1.5rem);
  -webkit-overflow-scrolling: touch; }
.legal-modal__close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px;
  border: 0; background: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--text-muted, #888); }
.legal-modal__close:hover { color: var(--text-dark, #1a1a1a); }
.legal-modal__title { margin: 0 0 var(--space-4, 1rem); padding-right: 2rem; font-size: 1.2rem; line-height: 1.3; }
.legal-modal__body { font-size: .9rem; }

/* ===== 404 ===== */
.error404 { min-height: 62vh; display: flex; align-items: center; text-align: center; }
.error404__inner { max-width: 680px; margin: 0 auto; }
.error404__code { font-family: var(--font-head, inherit); font-weight: 800; line-height: 1;
  font-size: clamp(5rem, 18vw, 9rem); color: var(--accent, #F6218F); letter-spacing: -2px; }
.error404__title { margin: var(--space-3, .75rem) 0 var(--space-2, .5rem); font-size: clamp(1.4rem, 4vw, 2rem); }
.error404__sub { color: var(--text-muted-dark, #b8b8c0); margin-bottom: var(--space-6, 1.5rem); }
.error404__actions { display: flex; flex-wrap: wrap; gap: var(--space-3, .75rem); justify-content: center; }
.error404__popular { margin-top: var(--space-10, 2.5rem); }
.error404__popular-label { display: block; color: var(--text-muted-dark, #b8b8c0);
  font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: var(--space-3, .75rem); }
.error404__chips { display: flex; flex-wrap: wrap; gap: var(--space-2, .5rem); justify-content: center; }
.error404__chip { display: inline-flex; padding: 9px 18px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.18); color: var(--text-light, #fff); font-size: .9rem;
  transition: border-color var(--t, .2s), background var(--t, .2s), color var(--t, .2s); }
.error404__chip:hover { border-color: var(--accent, #F6218F); background: var(--accent-soft, rgba(var(--accent-rgb),.12)); }
.error404__phone { margin-top: var(--space-6, 1.5rem); color: var(--text-muted-dark, #b8b8c0); font-size: .95rem; }
.error404__phone a { color: var(--accent, #F6218F); font-weight: 600; white-space: nowrap; }

/* Реквизиты арендатора (blocks/legal-information) — показывается, когда у города есть юр-лицо */
.legal-info-section { padding-top: 0; }
.legal-info__title { font-size: 1.25rem; margin: 0 0 var(--space-4, 1rem); color: var(--text-dark); }
/* Реквизиты — один компактный блок: карточка с плотной сеткой «лейбл/значение» */
.legal-reqs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3, 12px) var(--space-6, 24px);
  padding: var(--space-5, 20px) var(--space-6, 24px);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.legal-reqs__item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.legal-reqs__label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted);
}
.legal-reqs__value {
  font-weight: 600; font-size: 0.95rem; line-height: 1.35;
  color: var(--text-dark); word-break: break-word;
}
@media (max-width: 640px) { .legal-reqs { grid-template-columns: 1fr; gap: var(--space-3, 12px); } }

/* Иерархическая нумерация юр-документов (1, 1.1, 1.2…). Контент приходит по API без
   классов нумерации — нумеруем вложенные <ol> в .legal-content через CSS-счётчики. */
.legal-content ol { counter-reset: item; list-style: none; padding-left: 1.4rem; }
.legal-content ol > li { counter-increment: item; position: relative; }
.legal-content ol > li::before {
  content: counters(item, ".") ". ";
  font-weight: 600; color: var(--text-dark, #1a1a1a); margin-right: .4em;
}
.legal-content ol > li > strong { display: inline; }

/* Текстовый логотип (название компании из настроек города вместо картинки).
   Лого — постоянная тёмная плашка с белым текстом → читаемо и поверх hero, и при скролле. */
.header__logo { background: var(--bg-dark); }
.header__logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; color: #fff; }
@media (max-width: 480px) { .header__logo-text { font-size: 1rem; white-space: normal; } }

/* Заголовок внутренней страницы (page-hero): свой верхний клиренс под фикс-шапку,
   т.к. хлебные крошки скрыты и больше не отбивают контент. */
.page-hero.section { padding-top: 104px; }

/* Виджет Yandex SmartCaptcha в формах */
.form-captcha { margin: 0 0 var(--space-3, 12px); min-height: 0; }
