
/* ============================================================
   RESET + БАЗА
============================================================ */
#sc-page,
#sc-page *,
#sc-page *::before,
#sc-page *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Обрезаем случайный вылет контента по горизонтали, не ломая position: sticky */
html { overflow-x: clip; scrollbar-gutter: stable; }

/* Отдельная страница: сброс браузерного отступа body */
html, body { margin: 0; padding: 0; background: #FFFFFF; }

/* --- СВЕТЛАЯ ТЕМА (по умолчанию) --- */
:root {
  --c-bg:        #FFFFFF;
  --c-panel:     #FAF7EF;      /* тёплый молочный (в тон #FFFCDF) */
  --c-panel-2:   #F3EFE3;
  --c-line:      #E5E1D5;
  --c-orange:    #FBAD48;
  --c-orange-2:  #F89406;
  --c-green:     #3BAB4A;
  --c-red:       #FF2B2B;
  --c-text:      #1A1C20;
  --c-text-dim:  #6B6F76;
  --c-text-dark: #333333;
  --c-white:     #FFFFFF;

  --c-hero-tint-1: rgba(251, 173, 72, 0.10);
  --c-hero-tint-2: rgba(251, 173, 72, 0.04);
  --c-header-bg:   rgba(255, 255, 255, 0.98);

  --shadow-card:   0 1px 3px rgba(20, 20, 20, 0.04), 0 4px 20px rgba(20, 20, 20, 0.03);
  --shadow-card-hover: 0 4px 12px rgba(20, 20, 20, 0.08), 0 12px 40px rgba(251, 173, 72, 0.10);
  --shadow-form:   0 4px 24px rgba(20, 20, 20, 0.06);

  --f-display:   'Oswald', 'Arial Narrow', sans-serif;
  --f-body:      'Open Sans', 'Helvetica', sans-serif;
  --f-mono:      'JetBrains Mono', 'Consolas', monospace;

  --container: 1440px;
  --pad-side: 40px;
}

/* --- ТЁМНАЯ ТЕМА --- */

/* Плавный скролл только для якорной навигации, не для мобильного touch */
@media (min-width: 900px) and (hover: hover) {
  html { scroll-behavior: smooth; }
}
#sc-page {
  font-family: var(--f-body);
  /* Паттерн — фоновая картинка самого элемента: рисуется поверх
     своего же фонового цвета, поэтому не зависит от фона body темы.
     Прозрачность линий впечена в сам topo-pattern.svg. */
  background-color: var(--c-bg);
  background-image: var(--pattern-url-dark);
  background-repeat: repeat;
  background-size: 600px 600px;
  color: var(--c-text);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  position: relative;
  transition: background 0.3s ease, color 0.3s ease;
}
/* На мобилке фон-паттерн отключаем — тяжёлый для GPU при скролле */
@media (max-width: 900px) {
  #sc-page { background-image: none; }
}

#sc-page img,
#sc-page svg { max-width: 100%; display: block; }
#sc-page a { color: inherit; text-decoration: none; }
#sc-page button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

#sc-page .container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-side);
}

/* ============================================================
   ТИПОГРАФИКА
============================================================ */
#sc-page .eyebrow {
  font-family: var(--f-mono);
  font-size: 26px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-orange);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  padding: 14px 22px 14px 20px;
  background: rgba(251, 173, 72, 0.10);
  border-left: 5px solid var(--c-orange);
  line-height: 1.15;
}

#sc-page .eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--c-orange);
}

#sc-page h1.display {
  font-family: var(--f-display);
  font-weight: 700;
  /* Кегль подобран так, чтобы строки заполняли блок по ширине.
     При смене текста заголовка подобрать заново — см. CLAUDE.md.
     Потолок 80px выбран Богданом. Вычитание 8px в calc обязательно:
     у контейнера padding 40px с каждой стороны, поэтому чистый vw обгоняет
     ширину блока и заголовок разваливается на лишнюю строку из-за длинного
     слова «специализированный». Потолок ограничен ещё и этим словом — оно
     обязано уместиться в строку целиком */
  font-size: clamp(48px, calc(9.3vw - 8px), 80px);
  line-height: 1.10;
  text-align: center;
  /* «СПЕЦИАЛИЗИРОВАННЫЙ» шире мобильного экрана: без переносов слово
     распирает grid-элемент и уносит за край всю сетку первого экрана.
     Точка переноса задана в разметке через &shy; — на hyphens: auto
     полагаться нельзя, словарь переносов есть не в каждом браузере */
  hyphens: manual;
  overflow-wrap: break-word;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
#sc-page h2.display {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(36px, 4.2vw, 68px);
  line-height: 1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
#sc-page h3.title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

#sc-page .orange { color: var(--c-orange); }

/* ============================================================
   КНОПКИ
============================================================ */
#sc-page .btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition-property: background-color, border-color, color, transform;
  transition-duration: 0.2s;
  transition-timing-function: ease-out;
  cursor: pointer;
}
#sc-page .btn-primary {
  background: var(--c-orange);
  color: #1A1C20;
}
#sc-page .btn-primary:hover {
  background: var(--c-orange-2);
  color: #FFFFFF;
  transform: translateY(-2px);
}
#sc-page .btn-ghost {
  border-color: var(--c-line);
  color: var(--c-text);
  background: transparent;
}

#sc-page .btn-ghost:hover {
  border-color: var(--c-orange);
  color: var(--c-orange);
}
#sc-page .btn-arrow::after {
  content: '→';
  font-family: sans-serif;
  transition: transform 0.2s ease;
}
#sc-page .btn:hover .btn-arrow::after,
#sc-page .btn-arrow:hover::after {
  transform: translateX(4px);
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
/* Не блокируем body { overflow: hidden } — overflow: hidden ломает position: sticky.
   Overlay сам защищает body от пробойного скролла через overscroll-behavior */

#sc-page .mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
@keyframes cookieSlideUp {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalIn {
  from { transform: translateY(30px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* ============================================================
   КАРТА И КНОПКИ ПЕРЕХОДА НА КАРТЫ
============================================================ */
#sc-page .map-block {
  margin-top: 30px;
  border: 2px solid var(--c-line);
  background: var(--c-panel);
  overflow: hidden;
}
#sc-page .map-frame {
  position: relative;
  width: 100%;
  height: 340px;
  background: var(--c-panel);
}
#sc-page .map-frame iframe {
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: 0;
  display: block;
}
#sc-page .map-block,
#sc-page .map-frame { max-width: 100%; overflow: hidden; }
@media (max-width: 640px) {
  #sc-page .map-frame { height: 260px; }
}

/* ============================================================
   HERO — главный экран с ползунком до/после
============================================================ */
#sc-page .hero {
  position: relative;
  padding: 60px 0 80px;
  overflow: hidden;
}
#sc-page .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, var(--c-hero-tint-1), transparent 50%),
    radial-gradient(ellipse at bottom left, var(--c-hero-tint-2), transparent 60%);
  pointer-events: none;
}
#sc-page .hero-top {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 60px;
  align-items: end;
  margin-bottom: 50px;
}
/* Заголовок занимает обе колонки — под ним лид и статы */
#sc-page .hero-head { grid-column: 1 / -1; min-width: 0; }
#sc-page .hero-intro { min-width: 0; }
#sc-page .hero-top .eyebrow { margin-bottom: 24px; }
#sc-page .hero-top h1 { margin-bottom: 0; }
#sc-page .hero-lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--c-text-dim);
  max-width: 480px;
  margin-bottom: 32px;
}
#sc-page .hero-lead strong { color: var(--c-text); font-weight: 600; }
#sc-page .hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
#sc-page .hero-stats-side {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 32px 0;
  border-top: 2px solid var(--c-line);
  border-bottom: 2px solid var(--c-line);
}
#sc-page .hero-stat-num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 60px;
  color: var(--c-orange);
  line-height: 1;
  margin-bottom: 12px;
}
#sc-page .hero-stat-label {
  font-size: 20px;
  color: var(--c-text);
  line-height: 1.35;
  font-weight: 600;
}

/* Хиро-нижняя лента */

/* ============================================================
   СЕКЦИИ
============================================================ */
#sc-page .section {
  padding: 110px 0;
  position: relative;
}
#sc-page .section-head {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
  align-items: end;
}
/* Вариант без правой колонки — заголовок на всю ширину */
#sc-page .section-head.section-head--wide {
  grid-template-columns: 1fr;
}
#sc-page .section-head--wide h2.display {
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 0.95;
}
#sc-page .section-head-left .eyebrow { margin-bottom: 20px; }
#sc-page .section-head-right {
  color: var(--c-text-dim);
  font-size: 26px;
  line-height: 1.4;
  font-weight: 400;
  max-width: 640px;
}
#sc-page .section-head-right strong {
  color: var(--c-text);
  font-weight: 600;
}
/* Акцентная плашка внутри правой колонки section-head */

/* --- Акции --- */
#sc-page .actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--c-line);
  background: var(--c-panel);
}
#sc-page .action-card {
  padding: 42px 32px;
  border-right: 1px solid var(--c-line);
  position: relative;
  transition: background 0.25s;
  display: flex;
  flex-direction: column;
}
#sc-page .action-card:last-child { border-right: none; }
#sc-page .action-card:hover { background: var(--c-panel-2); }

/* Ссылка "Что проверяем →" в карточке диагностики */
#sc-page .action-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 22px;
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-orange);
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--c-orange);
  padding: 12px 20px;
  transition: gap 0.15s, background 0.15s;
  align-self: flex-start;
}
#sc-page .action-more:hover { gap: 12px; background: rgba(251, 173, 72, 0.08); }
#sc-page .action-more::after {
  content: '→';
  font-family: var(--f-display);
  font-size: 17px;
}
#sc-page .action-book-btn,
#sc-page .process-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 14px 24px;
  background: var(--c-orange);
  color: #1A1C20;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: filter 0.15s, transform 0.15s;
  align-self: flex-start;
}
#sc-page .action-book-btn:hover,
#sc-page .process-btn:hover { filter: brightness(1.06); transform: translateY(-1px); color: #1A1C20; }
#sc-page .process-btn { border: 0; cursor: pointer; margin-top: 26px; }

/* Плашка "Подойдёт, если:" в акциях */
#sc-page .action-fit {
  background: rgba(251, 173, 72, 0.10);
  padding: 12px 16px;
  border-radius: 4px;
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-text);
  margin-bottom: 12px;
}
#sc-page .action-fit strong { font-weight: 700; }
/* Мелкая приписка курсивом */
#sc-page .services-note {
  margin-top: 28px;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-text-dim);
}
#sc-page .services-note strong { color: var(--c-text); font-weight: 600; }
@media (max-width: 720px) {
  #sc-page .services-note { margin-top: 20px; font-size: 14px; }
}

#sc-page .action-hint {
  font-family: var(--f-body);
  font-size: 13px;
  line-height: 1.5;
  font-style: italic;
  color: var(--c-text-dim);
  margin-bottom: 16px;
}

/* Выделенная карточка акции + метка «Рекомендуем» */
/* Специфичность выше, чем у .action-card:nth-child(…) в медиа-запросах ниже:
   иначе на планшете и телефоне они сносили рамке правую и нижнюю стороны */
#sc-page .actions-grid .action-card.is-featured {
  border: 2px solid var(--c-orange);
  border-radius: 4px;
}
#sc-page .action-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 12px;
  background: var(--c-orange);
  color: #1A1C20;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
}

/* Сноска под сеткой акций */
#sc-page .actions-note {
  margin-top: 26px;
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-text-dim);
}
@media (max-width: 720px) {
  #sc-page .action-badge { top: 14px; right: 14px; font-size: 10px; padding: 5px 10px; }
  #sc-page .actions-note { margin-top: 20px; font-size: 13px; }
}

/* Модалка со списком диагностики */
#sc-page .diag-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s;
}
#sc-page .diag-modal.visible { display: flex; }
#sc-page .diag-modal-content {
  background: var(--c-bg);
  max-width: 820px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px 44px;
  position: relative;
  border: 2px solid var(--c-text);
  animation: modalIn 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
#sc-page .diag-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--c-text-dim);
  line-height: 1;
  transition: color 0.15s;
}
#sc-page .diag-modal-close:hover { color: var(--c-orange); }

/* Форма внутри модалки записи */
#sc-page .booking-modal .diag-modal-content {
  max-width: 720px;
  padding: 36px 40px;
}
#sc-page .booking-modal h2 {
  font-size: 28px;
  margin-bottom: 8px;
}
#sc-page .booking-modal .diag-modal-lead {
  margin-bottom: 20px;
}
/* Специфичные селекторы — переопределяем .form-block который идёт позже в CSS */
#sc-page .booking-modal .booking-form {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  margin-top: 0;
}
#sc-page .booking-modal .booking-form .form-row {
  margin-bottom: 18px;
  gap: 16px;
}
#sc-page .booking-modal .booking-form .form-input,
#sc-page .booking-modal .booking-form .form-select {
  font-size: 16px;
}
#sc-page .booking-modal .booking-form .form-submit {
  width: 100%;
  display: flex;
  margin-top: 10px;
  padding: 18px;
  font-size: 15px;
}
#sc-page .booking-modal .form-privacy {
  margin-top: 14px;
}
@media (max-width: 720px) {
  #sc-page .booking-modal .diag-modal-content { padding: 28px 22px; max-width: 100%; }
  #sc-page .booking-modal h2 { font-size: 22px; }
  #sc-page .booking-modal .booking-form .form-row { grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
}
#sc-page .diag-modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-orange);
  padding: 6px 10px;
  background: rgba(251, 173, 72, 0.1);
  border-left: 3px solid var(--c-orange);
  margin-bottom: 16px;
}
#sc-page .diag-modal h2 {
  font-family: var(--f-display);
  font-size: 34px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--c-text);
}
#sc-page .diag-modal h2 .orange { color: var(--c-orange); }
#sc-page .diag-modal-lead {
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text-dim);
  margin-bottom: 28px;
  max-width: 620px;
}
#sc-page .diag-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  counter-reset: diag-item;
}
#sc-page .diag-list li {
  counter-increment: diag-item;
  font-size: 14px;
  line-height: 1.4;
  color: var(--c-text);
  padding: 12px 0 12px 40px;
  border-bottom: 1px solid var(--c-line);
  position: relative;
}
#sc-page .diag-list li::before {
  content: counter(diag-item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-orange);
  letter-spacing: 0.05em;
}
#sc-page .diag-modal-footer {
  border-top: 2px solid var(--c-line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
#sc-page .diag-modal-footer-text {
  font-size: 13px;
  color: var(--c-text-dim);
  line-height: 1.5;
  flex: 1;
  min-width: 240px;
}
#sc-page .diag-modal-footer-text strong { color: var(--c-text); }
#sc-page .diag-modal-cta {
  padding: 12px 20px;
  background: var(--c-orange);
  color: var(--c-text);
  border: 2px solid var(--c-text);
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: filter 0.15s;
  white-space: nowrap;
}

#sc-page .diag-modal-cta:hover { filter: brightness(1.08); }
#sc-page .diag-modal-cta::after { content: '→'; font-family: var(--f-display); font-size: 15px; }
body.diag-open { overflow: hidden; }

@media (max-width: 640px) {
  #sc-page .diag-modal-content { padding: 28px 22px; }
  #sc-page .diag-modal h2 { font-size: 24px; }
  #sc-page .diag-list { grid-template-columns: 1fr; gap: 0; }
}
#sc-page .action-num {
  font-family: var(--f-mono);
  font-size: 15px;
  color: var(--c-text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 22px;
  font-weight: 700;
}
#sc-page .action-card.is-featured .action-num { color: var(--c-orange); }
#sc-page .action-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 26px;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 16px;
}
#sc-page .action-desc {
  font-size: 17px;
  color: var(--c-text-dim);
  line-height: 1.55;
  margin-bottom: 22px;
}

/* --- Услуги --- */
#sc-page .section-services { background: transparent; }
#sc-page .services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
#sc-page .service-card {
  background: var(--c-bg);
  padding: 40px 32px;
  transition: background 0.2s;
  position: relative;
}
#sc-page .service-card:hover { background: var(--c-panel-2); }
#sc-page .service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 26px;
  color: var(--c-orange);
}
#sc-page .service-icon svg { width: 100%; height: 100%; }
#sc-page .service-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 26px;
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1.1;
}
#sc-page .service-desc {
  font-size: 17px;
  color: var(--c-text-dim);
  line-height: 1.55;
  margin-bottom: 22px;
}
#sc-page .service-price {
  font-family: var(--f-mono);
  font-size: 16px;
  color: var(--c-orange);
  letter-spacing: 0.05em;
  padding-top: 18px;
  border-top: 1px solid var(--c-line);
  font-weight: 600;
}
#sc-page .service-price strong {
  font-size: 21px;
  color: var(--c-orange);
  font-weight: 700;
}

/* --- Процесс --- */
#sc-page .process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
#sc-page .process-step {
  position: relative;
  padding: 42px 32px;
  background: var(--c-bg);
  transition: background 0.25s;
  display: flex;
  flex-direction: column;
}
#sc-page .process-step:hover { background: var(--c-panel-2); }
#sc-page .process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--c-orange);
}
#sc-page .process-num {
  font-family: var(--f-mono);
  font-size: 16px;
  color: var(--c-orange);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  font-weight: 700;
}
#sc-page .process-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 26px;
  text-transform: uppercase;
  margin-bottom: 16px;
  line-height: 1.15;
}
#sc-page .process-desc {
  font-size: 17px;
  color: var(--c-text-dim);
  line-height: 1.6;
}

/* --- Прайс --- */
#sc-page .section-price { background: transparent; }
/* --- Прайс: раскрывающиеся категории --- */
#sc-page .price-acc {
  border-top: 1px solid var(--c-line);
}
#sc-page .price-group {
  border-bottom: 1px solid var(--c-line);
}
#sc-page .price-group-head {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto auto 22px;
  align-items: center;
  gap: 24px;
  padding: 24px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: background-color .2s ease;
}
#sc-page .price-group-head:hover { background: rgba(251, 173, 72, 0.06); }
#sc-page .price-group-head:focus-visible { outline: 2px solid var(--c-orange); outline-offset: -2px; }
#sc-page .price-group-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--c-text);
}
#sc-page .price-group-count {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--c-text-dim);
  white-space: nowrap;
}
#sc-page .price-group-from {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--c-text-dim);
  white-space: nowrap;
}
#sc-page .price-group-from strong {
  font-size: 19px;
  font-weight: 700;
  color: var(--c-orange);
}
/* Стрелка рисуется бордюрами — без иконочных шрифтов и лишних SVG */
#sc-page .price-group-chev {
  width: 10px;
  height: 10px;
  justify-self: end;
  border-right: 2px solid var(--c-text-dim);
  border-bottom: 2px solid var(--c-text-dim);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .3s ease, border-color .2s ease;
}
#sc-page .price-group.is-open .price-group-chev {
  transform: rotate(-135deg) translate(-3px, -3px);
  border-color: var(--c-orange);
}
#sc-page .price-group-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(0.4, 0, 0.2, 1);
}
#sc-page .price-group-inner { padding: 0 4px 12px; }
#sc-page .price-row {
  display: grid;
  grid-template-columns: 1fr 110px 140px;
  align-items: baseline;
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid var(--c-line);
}
#sc-page .price-row:first-child { border-top: 0; }
#sc-page .price-row-name {
  font-size: 17px;
  line-height: 1.45;
  color: var(--c-text);
}
#sc-page .price-row-time {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--c-text-dim);
  text-align: center;
  white-space: nowrap;
}
#sc-page .price-row-cost {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--c-text-dim);
  text-align: right;
  white-space: nowrap;
}
#sc-page .price-row-cost strong {
  font-size: 19px;
  font-weight: 700;
  color: var(--c-text);
}
#sc-page .price-note {
  margin-top: 28px;
  padding: 28px 32px;
  border-left: 5px solid var(--c-orange);
  background: rgba(251, 173, 72, 0.12);
  font-size: 19px;
  color: var(--c-text);
  line-height: 1.6;
  font-weight: 500;
  box-shadow: var(--shadow-form);
}
#sc-page .price-note strong { color: var(--c-orange); font-weight: 700; }

@media (max-width: 720px) {
  #sc-page .price-note {
    padding: 20px 22px;
    font-size: 16px;
  }
}

/* --- Причины --- */
#sc-page .reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 80px;
}
#sc-page .reason {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  align-items: start;
}
#sc-page .reason-num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 60px;
  color: var(--c-orange);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
#sc-page .reason-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 26px;
  text-transform: uppercase;
  margin-bottom: 14px;
  line-height: 1.1;
}
#sc-page .reason-desc {
  font-size: 18px;
  color: var(--c-text-dim);
  line-height: 1.6;
}

/* --- Бренды --- */
/* Бренды — подвал секции прайса */
#sc-page .section-brands {
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
#sc-page .brands-band > * { min-width: 0; }
#sc-page .brands-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
#sc-page .brand-pill {
  padding: 14px 26px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
  transition: border-color .2s ease, transform .2s ease;
}
#sc-page .brand-pill:hover {
  border-color: var(--c-orange);
  transform: translateY(-1px);
}
@media (max-width: 720px) {
  #sc-page .brands-list { gap: 10px; }
  #sc-page .brand-pill { padding: 12px 20px; font-size: 15px; }
}

/* ============================================================
   НАША РАБОТА — галерея фото и видео, формат инстаграма 4:5
============================================================ */
#sc-page .works-card {
  position: relative;
  overflow: hidden;
  padding: 40px 40px 32px;
  border-radius: 6px;
  background-color: var(--c-panel);
  border: 1px solid var(--c-line);
  touch-action: pan-y;
}

/* Горизонтальный кадр 4:3 — в нём большинство снимков.
   Вертикальные фото и видео 9:16 вписываются по высоте с полями по бокам:
   обрезать машины ради единого формата хуже, чем оставить поля. */
#sc-page .works-stage.motion-stage { height: clamp(300px, 39vw, 560px); }
#sc-page .works-stage .works-slide { aspect-ratio: 4 / 3; }
#sc-page .works-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
#sc-page .works-stage .works-slide.role-left,
#sc-page .works-stage .works-slide.role-right { height: 62%; bottom: 14%; }
#sc-page .works-stage .works-slide.role-left { left: 10%; }
#sc-page .works-stage .works-slide.role-right { left: 90%; }
#sc-page .works-stage .works-slide.role-back { height: 40%; bottom: 28%; }

#sc-page .works-footer {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--c-text);
}
#sc-page .works-footer > * { min-width: 0; }

/* Светлая карточка: навигация и стрелки перекрашиваются из белого */
#sc-page .works-card .motion-btn {
  border-color: var(--c-line);
  color: var(--c-text);
}
#sc-page .works-card .motion-btn:hover {
  border-color: var(--c-orange);
  background: var(--c-orange);
  color: #1A1C20;
}
#sc-page .works-card .motion-arrow {
  border-color: var(--c-line);
  background: rgba(255, 255, 255, 0.85);
}
#sc-page .works-card .motion-arrow::before { border-color: var(--c-text); }

@media (max-width: 900px) {
  #sc-page .works-card { padding: 26px 18px 22px; }
  #sc-page .works-stage.motion-stage { height: clamp(200px, 62vw, 300px); }
}

/* Модалка видео из галереи работ */
#sc-page .video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s;
}
#sc-page .video-modal.visible { display: flex; }
#sc-page .video-modal-content {
  position: relative;
  width: min(420px, 100%);
  max-height: 92vh;
}
#sc-page .video-modal video {
  width: 100%;
  max-height: 92vh;
  display: block;
  border-radius: 6px;
  background: #000;
}
#sc-page .video-modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}
#sc-page .video-modal-close:hover { background: var(--c-orange); color: #1A1C20; }
#sc-page .video-modal-caption {
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}
body.video-open { overflow: hidden; }

/* Счётчик вместо точек, когда работ много */
#sc-page .works-counter {
  display: none;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--c-text-dim);
  margin-bottom: 22px;
}
#sc-page .works-counter b { color: var(--c-orange); font-weight: 700; }
#sc-page .works-card.has-counter .works-dots { display: none; }
#sc-page .works-card.has-counter .works-counter { display: flex; }

@media (max-width: 720px) {
  #sc-page .video-modal-close { top: -42px; }
}

/* --- Форма --- */
#sc-page .section-cta {
  background:
    linear-gradient(135deg, rgba(251, 173, 72, 0.08), transparent 60%);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
#sc-page .cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
#sc-page .cta-left h2 { margin-bottom: 24px; }
#sc-page .cta-left-text {
  color: var(--c-text-dim);
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 32px;
}
#sc-page .cta-contacts {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--c-line);
}
#sc-page .cta-contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 18px;
}
#sc-page .cta-contact-item strong {
  font-family: var(--f-display);
  font-size: 24px;
  color: var(--c-orange);
  font-weight: 700;
  letter-spacing: 0.02em;
}
#sc-page .cta-contact-item .label {
  font-family: var(--f-mono);
  font-size: 16px;
  color: var(--c-text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  min-width: 160px;
  font-weight: 800;
}

#sc-page .form-block {
  background: var(--c-panel);
  padding: 48px;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-form);
}
#sc-page .form-block h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 26px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
#sc-page .form-block .form-sub {
  color: var(--c-text-dim);
  font-size: 17px;
  margin-bottom: 32px;
}
#sc-page .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
#sc-page .form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#sc-page .form-field.full { grid-column: span 2; }
#sc-page .form-label {
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  font-weight: 700;
}
#sc-page .form-input,
#sc-page .form-select {
  padding: 16px 18px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 18px;
  transition: border-color 0.15s;
}
#sc-page .form-input:focus,
#sc-page .form-select:focus {
  outline: none;
  border-color: var(--c-orange);
}
#sc-page .form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23FBAD48' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px;
  padding-right: 44px;
}
#sc-page .form-submit {
  margin-top: 24px;
  width: 100%;
  padding: 20px;
  justify-content: center;
}
#sc-page .form-privacy {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--c-text-dim);
  letter-spacing: 0.03em;
  margin-top: 18px;
  line-height: 1.55;
  font-weight: 500;
}
#sc-page .form-privacy a { color: var(--c-orange); }

@media (max-width: 900px) {
  #sc-page .hero-top { grid-template-columns: 1fr; gap: 30px; margin-bottom: 30px; }
}

/* ============================================================
   MOTION-СЕКЦИЯ «Собираем под задачу»
============================================================ */
#sc-page .motion-card {
  position: relative;
  overflow: hidden;
  padding: 40px 40px 32px;
  border-radius: 6px;
  transition: background-color 650ms cubic-bezier(0.4,0,0.2,1);
  touch-action: pan-y;
}
#sc-page .motion-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' seed='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.28;
  z-index: 5;
  border-radius: 6px;
}
/* На мобилке noise pattern слишком дорого стоит для GPU — отключаем */
@media (max-width: 900px) {
  #sc-page .motion-card::before { display: none; }
}

/* Верхняя строка секции — счётчик */
/* Пагинация точками под фото — заменила счётчик «01 / 04» */
#sc-page .motion-dots {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-bottom: 18px;
}
#sc-page .motion-dot {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
/* Сама точка — псевдоэлемент, кнопка вокруг крупнее для пальца */
#sc-page .motion-dot::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 300ms ease, background-color 300ms ease;
}
#sc-page .motion-dot:hover::before { background: rgba(255, 255, 255, 0.75); }
#sc-page .motion-dot.is-active::before {
  width: 28px;
  background: var(--c-orange);
}

/* Сцена карусели — компактнее по вертикали, слайды широкоформатные */
#sc-page .motion-stage {
  position: relative;
  height: clamp(300px, 45vw, 640px);
  margin-bottom: 30px;
  z-index: 8;
}
#sc-page .motion-slide {
  position: absolute;
  aspect-ratio: 1.6 / 1;
  transition:
    transform 650ms cubic-bezier(0.4,0,0.2,1),
    filter 650ms cubic-bezier(0.4,0,0.2,1),
    opacity 650ms cubic-bezier(0.4,0,0.2,1),
    left 650ms cubic-bezier(0.4,0,0.2,1),
    height 650ms cubic-bezier(0.4,0,0.2,1),
    bottom 650ms cubic-bezier(0.4,0,0.2,1);
}
#sc-page .motion-slide svg,
#sc-page .motion-slide img { width: 100%; height: 100%; object-fit: contain; }

/* Роли */
#sc-page .motion-slide.role-center {
  left: 50%;
  bottom: 0;
  height: 100%;
  max-width: 100%;
  transform: translateX(-50%) scale(1);
  filter: blur(0);
  opacity: 1;
  z-index: 20;
}
#sc-page .motion-slide.role-left {
  left: 8%;
  bottom: 10%;
  height: 44%;
  transform: translateX(-50%) scale(1);
  filter: blur(2px);
  opacity: 0.5;
  z-index: 10;
}
#sc-page .motion-slide.role-right {
  left: 92%;
  bottom: 10%;
  height: 44%;
  transform: translateX(-50%) scale(1);
  filter: blur(2px);
  opacity: 0.5;
  z-index: 10;
}
#sc-page .motion-slide.role-back {
  left: 50%;
  bottom: 32%;
  height: 28%;
  transform: translateX(-50%) scale(1);
  filter: blur(5px);
  opacity: 0;
  z-index: 5;
}

/* Нижняя строка — заголовок сборки, кнопки, CTA */
#sc-page .motion-footer {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: end;
  color: #fff;
}
#sc-page .motion-footer-left { max-width: 480px; box-sizing: content-box; }
#sc-page .motion-footer-left .kicker {
  font-family: var(--f-mono);
  font-size: 16px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.2;
}
#sc-page .motion-title {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
#sc-page .motion-worklist {
  font-family: var(--f-mono);
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
  opacity: 0.92;
  letter-spacing: 0.01em;
  font-weight: 500;
}
#sc-page .motion-worklist li {
  list-style: none;
  padding-left: 20px;
  position: relative;
  margin-bottom: 4px;
}
#sc-page .motion-worklist li::before {
  content: '/';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.65);
  font-weight: 700;
}

/* Кнопки навигации — скрываем на мобильном, оставляем на десктопе */
#sc-page .motion-nav {
  display: flex;
  gap: 14px;
  align-self: end;
  margin-bottom: 4px;
}
#sc-page .motion-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 180ms, background-color 180ms;
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1;
}
#sc-page .motion-btn:hover {
  transform: scale(1.08);
  background-color: rgba(255,255,255,0.14);
}

/* Подсказка про свайп — видна только на мобильном */
#sc-page .motion-swipe-hint {
  display: none;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-orange);
  font-weight: 700;
  padding: 8px 0;
  text-align: center;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

#sc-page .motion-footer-right { text-align: right; }
#sc-page .motion-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 34px);
  color: #fff;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.01em;
  opacity: 0.95;
  transition: opacity 200ms;
}
#sc-page .motion-cta:hover { opacity: 1; color: #fff; }
#sc-page .motion-cta::after {
  content: '→';
  font-size: 0.9em;
  transition: transform 200ms;
}
#sc-page .motion-cta:hover::after { transform: translateX(6px); }

/* Стрелки поверх фотографии — основной сигнал «меня можно листать» */
#sc-page .motion-arrow {
  display: none;
  position: absolute;
  top: 50%;
  z-index: 30;          /* у .motion-slide тоже 20 — иначе картинка перекрывает */
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(26, 28, 32, 0.55);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background-color 180ms, transform 180ms;
}
#sc-page .motion-arrow-prev { left: 8px; }
#sc-page .motion-arrow-next { right: 8px; }
#sc-page .motion-arrow:active { background: rgba(26, 28, 32, 0.8); transform: scale(0.96); }
/* Шеврон бордюрами — тот же приём, что в аккордеоне прайса */
#sc-page .motion-arrow::before {
  content: '';
  width: 11px;
  height: 11px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
}
#sc-page .motion-arrow-prev::before { transform: rotate(45deg) translate(2px, -2px); }
#sc-page .motion-arrow-next::before { transform: rotate(-135deg) translate(2px, -2px); }

/* Подталкивание при первом показе: фото дёргается вбок, как от свайпа */
@keyframes motionNudge {
  0%, 12%, 100% { transform: translateX(0); }
  32% { transform: translateX(-26px); }
  52% { transform: translateX(0); }
  68% { transform: translateX(-14px); }
  84% { transform: translateX(0); }
}

/* Мобильная адаптация */
@media (max-width: 900px) {
  #sc-page .motion-arrow { display: flex; }
  #sc-page .motion-stage.is-nudging { animation: motionNudge 1.9s ease-in-out 1; }
  #sc-page .motion-card { padding: 20px 18px 22px; border-radius: 4px; }
  #sc-page .motion-dots { margin-bottom: 12px; }
  #sc-page .motion-stage { height: clamp(200px, 55vw, 320px); margin-bottom: 14px; }
  #sc-page .motion-slide.role-center { height: 100%; bottom: 0; transform: translateX(-50%) scale(1); }
  #sc-page .motion-slide.role-left,
#sc-page .motion-slide.role-right,
#sc-page .motion-slide.role-back { display: none; }
  #sc-page .motion-nav { display: none; }
  #sc-page .motion-swipe-hint { display: inline-flex; }
  #sc-page .motion-footer { grid-template-columns: 1fr; gap: 12px; }
  #sc-page .motion-footer-right { text-align: left; order: 3; }
  #sc-page .motion-footer-left { order: 1; max-width: 100%; }
  #sc-page .motion-title { font-size: 22px; margin-bottom: 10px; }
  #sc-page .motion-worklist { font-size: 15px; }
  #sc-page .motion-cta { font-size: 22px; }
}

@media (max-width: 1100px) {
  :root { --pad-side: 24px; }
  #sc-page { font-size: 16px; }
  #sc-page .hero-top { grid-template-columns: 1fr; gap: 40px; }
  #sc-page .hero-stats-side { grid-template-columns: repeat(3, 1fr); }
  #sc-page .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  #sc-page .section-head-right {
    max-width: none;
    font-size: 17px;
    line-height: 1.55;
  }
  #sc-page .actions-grid { grid-template-columns: repeat(2, 1fr); }
  #sc-page .action-card:nth-child(2) { border-right: none; }
  #sc-page .action-card:nth-child(-n+2) { border-bottom: 1px solid var(--c-line); }
  #sc-page .services-grid { grid-template-columns: repeat(2, 1fr); }
  #sc-page .process-grid { grid-template-columns: repeat(2, 1fr); }
  #sc-page .reasons-grid { grid-template-columns: 1fr; gap: 40px; }
  #sc-page .cta-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  :root { --pad-side: 16px; }
  #sc-page { font-size: 16px; }
  /* clip вместо hidden — не создаёт scroll-контейнер и не ломает position: sticky */
  html,
#sc-page { overflow-x: clip; }
  /* Защита от переполнения дочерних элементов grid/flex —
     min-width: auto по дефолту раздувает их до размера контента */
  #sc-page .cta-grid > *,
#sc-page .form-row > *,
#sc-page .motion-footer > *,
#sc-page .services-grid > *,
#sc-page .actions-grid > *,
#sc-page .reasons-grid > *,
#sc-page .process-grid > *,
#sc-page .brands-list > * { min-width: 0; }
  #sc-page .form-block,
#sc-page .cta-left,
#sc-page .cta-contact-item,
#sc-page .cta-contacts,
#sc-page .form-row,
#sc-page .map-block,
#sc-page .map-frame { min-width: 0; max-width: 100%; }
  #sc-page img,
#sc-page iframe,
#sc-page video,
#sc-page svg { max-width: 100%; }
  #sc-page .section { padding: 70px 0; }
  #sc-page .hero { padding: 40px 0 70px; }
  #sc-page .hero-lead { font-size: 17px; }
  #sc-page h1.display { line-height: 1.15; font-size: clamp(34px, 10.5vw, 42px); text-align: left; }
  #sc-page .hero-stats-side {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 20px 0;
  }
  #sc-page .hero-stats-side > div {
    padding: 0 12px;
    border-right: 1px solid var(--c-line);
  }
  #sc-page .hero-stats-side > div:first-child { padding-left: 0; }
  #sc-page .hero-stats-side > div:last-child { padding-right: 0; border-right: none; }
  #sc-page .hero-stat-num { font-size: 24px; }
  #sc-page .hero-stat-label { font-size: 12px; }
  #sc-page .actions-grid { grid-template-columns: 1fr; }
  #sc-page .action-card { border-right: none; border-bottom: 1px solid var(--c-line); }
  #sc-page .action-card:last-child { border-bottom: none; }
  #sc-page .services-grid { grid-template-columns: 1fr; }
  #sc-page .process-grid { grid-template-columns: 1fr; }
  #sc-page .process-step:not(:last-child) { border-bottom: 1px solid var(--c-line); }
  #sc-page .form-row { grid-template-columns: 1fr; }
  #sc-page .form-field.full { grid-column: span 1; }
  #sc-page .form-block { padding: 28px 20px; }
  #sc-page .form-block h3 { font-size: 20px; letter-spacing: 0.02em; line-height: 1.2; }
  #sc-page .form-block .form-sub { font-size: 15px; margin-bottom: 24px; }
  #sc-page .form-submit { font-size: 14px; padding: 16px 12px; letter-spacing: 0.03em; gap: 8px; }
  #sc-page .form-privacy { font-size: 12px; }
  #sc-page .cta-left h2 { font-size: 32px; line-height: 1.05; margin-bottom: 20px; }
  #sc-page .cta-left-text { font-size: 16px; line-height: 1.5; margin-bottom: 24px; }
  #sc-page .cta-contact-item { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 15px; padding-bottom: 12px; border-bottom: 1px solid var(--c-line); }
  #sc-page .cta-contact-item:last-child { border-bottom: none; padding-bottom: 0; }
  #sc-page .cta-contact-item .label { min-width: 0; font-size: 13px; letter-spacing: 0.1em; }
  #sc-page .cta-contact-item strong { font-size: 20px; }
  /* Прайс: шапка категории в две колонки, счётчик работ убираем */
  #sc-page .price-group-head {
    grid-template-columns: 1fr auto 18px;
    gap: 12px;
    padding: 18px 2px;
  }
  #sc-page .price-group-count { display: none; }
  #sc-page .price-group-name { font-size: 20px; }
  #sc-page .price-group-from { font-size: 12px; }
  #sc-page .price-group-from strong { font-size: 16px; }
  #sc-page .price-group-inner { padding: 0 2px 8px; }
  /* Строка: название и время слева стопкой, цена справа по центру */
  #sc-page .price-row {
    grid-template-columns: 1fr auto;
    gap: 4px 14px;
    padding: 13px 0;
  }
  #sc-page .price-row-name { font-size: 14px; grid-column: 1; grid-row: 1; }
  #sc-page .price-row-time { grid-column: 1; grid-row: 2; text-align: left; font-size: 12px; }
  #sc-page .price-row-cost { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 12px; }
  #sc-page .price-row-cost strong { font-size: 16px; }
  /* Адрес в eyebrow неразрывный — при 26px он не влезает в 390px */
  #sc-page .hero .eyebrow { font-size: 16px; letter-spacing: 0.06em; padding: 12px 16px 12px 14px; }
}

/* Появление на скролле */
#sc-page .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
#sc-page .reveal.on { opacity: 1; transform: translateY(0); }
/* На мобилке контент показываем сразу — при быстром скролле анимация появления
   создаёт визуальные задержки и заставляет ждать IntersectionObserver */
@media (max-width: 900px) {
  #sc-page .reveal { opacity: 1; transform: none; transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  #sc-page .reveal { opacity: 1; transform: none; transition: none; }
  #sc-page .motion-stage.is-nudging { animation: none; }
}

/* ============================================================
   ТОПОГРАФИЧЕСКИЙ ФОНОВЫЙ ПАТТЕРН
============================================================ */
:root {
  --pattern-url-dark: url("../img/topo-pattern.svg");
  
  --pattern-opacity: 0.08;
}

/* Секции с паттерном — псевдоэлемент под контентом */
#sc-page #actions,
#sc-page #services,
#sc-page #process,
#sc-page #price,
#sc-page #why,
#sc-page #form {
  overflow: hidden;
}

/* Контейнеры внутри секций поверх фонового паттерна */
#sc-page #actions > *,
#sc-page #services > *,
#sc-page #process > *,
#sc-page #price > *,
#sc-page #why > *,
#sc-page #form > * {
  position: relative;
  z-index: 1;
}

/* ============================================================
   ПОЛИРОВКА ИНТЕРФЕЙСА
============================================================ */
/* Отклик на нажатие. translateY с hover сохраняем в той же записи,
   иначе :active его сбросит и кнопка «провалится» на 2px. */
#sc-page .btn:active { transform: scale(0.96); }
#sc-page .btn-primary:hover:active { transform: translateY(-2px) scale(0.96); }
#sc-page .process-btn:active { transform: scale(0.96); }

/* Фокус с клавиатуры — у кнопок его не было */
#sc-page .btn:focus-visible,
#sc-page .process-btn:focus-visible,
#sc-page .motion-arrow:focus-visible,
#sc-page .motion-cta:focus-visible {
  outline: 2px solid var(--c-orange);
  outline-offset: 3px;
}

/* Переносы: заголовки без висячих коротких строк, абзацы без вдов.
   h1 не трогаем — его кегль подобран под ширину вручную. */
#sc-page h2.display,
#sc-page h3.title { text-wrap: balance; }
#sc-page p { text-wrap: pretty; }

@media (prefers-reduced-motion: reduce) {
  #sc-page .btn,
  #sc-page .btn-arrow::after,
  #sc-page .process-btn,
  #sc-page .motion-arrow { transition: none; }
  #sc-page .btn-primary:hover,
  #sc-page .process-btn:hover { transform: none; }
}


/* ============================================================
   ШАПКА, МОБИЛЬНОЕ МЕНЮ И ФУТЕР ЛЕНДИНГА
============================================================ */
#sc-page .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-header-bg);
  border-bottom: 1px solid var(--c-line);
}

#sc-page .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  
  gap: clamp(20px, 2.78vw, 40px);
}

#sc-page .logo-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

#sc-page .logo-mark {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  background-image: url("../img/brand-1.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: filter 0.2s;
}

#sc-page .logo-text {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

#sc-page .logo-text small {
  font-family: var(--f-mono);
  font-size: 15px;
  color: var(--c-orange);
  letter-spacing: 0.15em;
  font-weight: 700;
  display: block;
  margin-top: 4px;
}

#sc-page .header-nav {
  display: flex;
  gap: clamp(18px, 2.78vw, 40px);
  font-family: var(--f-display);
  font-size: clamp(15px, 1.39vw, 20px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#sc-page .header-nav a {
  color: var(--c-text);
  transition: color 0.15s;
  white-space: nowrap;
}

#sc-page .header-nav a:hover { color: var(--c-orange); }

#sc-page .header-contact {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.39vw, 20px);
}

#sc-page .header-status {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: clamp(11px, 1.11vw, 16px);
  color: var(--c-green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1;
  transform: translateY(2px);
}

#sc-page .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 10px var(--c-green);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

#sc-page .header-phone {
  display: inline-flex;
  align-items: center;
  height: 40px;
  
  white-space: nowrap;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: clamp(15px, 1.39vw, 20px);
  color: var(--c-text);
  letter-spacing: 0.02em;
  line-height: 1;
}

#sc-page .header-phone:hover { color: var(--c-orange); }

#sc-page .shop-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  white-space: nowrap;
  box-sizing: border-box;
  border: 2px solid var(--c-text);
  font-family: var(--f-mono);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text);
  transition: all 0.2s;
  font-weight: 600;
  line-height: 1;
}

#sc-page .shop-link:hover {
  border-color: var(--c-orange);
  color: var(--c-orange);
}

#sc-page .shop-link svg { width: 16px; height: 16px; flex-shrink: 0; }

#sc-page .shop-link .shop-link-label { display: inline-block; min-width: 70px; text-align: left; }

#sc-page .burger {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--c-line);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  position: relative;
  z-index: 200;
  transition: border-color 0.15s;
}

#sc-page .burger:hover { border-color: var(--c-text); }

#sc-page .burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-text);
  transition: transform 0.25s ease, opacity 0.15s ease;
  transform-origin: center;
}

#sc-page .burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#sc-page .burger.is-open span:nth-child(2) {
  opacity: 0;
}

#sc-page .burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

#sc-page .mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--c-bg);
  z-index: 90;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  padding: 90px 24px 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

body.menu-open #sc-page .mobile-menu {
  visibility: visible;
  opacity: 1;
}

#sc-page .mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#sc-page .mobile-nav a {
  display: block;
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--c-text);
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
  transition: color 0.15s, padding-left 0.2s;
}

#sc-page .mobile-nav a:hover,
#sc-page .mobile-nav a:active { color: var(--c-orange); padding-left: 8px; }

#sc-page .mobile-nav a:last-child { border-bottom: none; }

#sc-page .mobile-menu-footer {
  margin-top: auto;
  padding-top: 30px;
  border-top: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#sc-page .mobile-menu-footer .header-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--c-green);
}

#sc-page .mobile-menu-footer .mobile-shop-link {
  padding: 14px 20px;
  border: 1px solid var(--c-line);
  background: transparent;
  color: var(--c-text);
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: border-color 0.15s;
}

#sc-page .mobile-menu-footer .mobile-shop-link:hover {
  border-color: var(--c-text);
}

#sc-page .mobile-menu-footer .mobile-shop-link svg {
  width: 18px;
  height: 18px;
}

#sc-page .price-group.is-open .price-group-chev {
  transform: rotate(-135deg) translate(-3px, -3px);
  border-color: var(--c-orange);
}

#sc-page .site-footer {
  background: var(--c-panel);
  padding: 70px 0 32px;
  border-top: 1px solid var(--c-line);
}

#sc-page .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

#sc-page .footer-col h4 {
  font-family: var(--f-mono);
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-orange);
  margin-bottom: 22px;
  font-weight: 700;
}

#sc-page .footer-col ul { list-style: none; }

#sc-page .footer-col ul li { margin-bottom: 14px; font-size: 17px; color: var(--c-text-dim); }

#sc-page .footer-col ul li a { transition: color 0.15s; }

#sc-page .footer-col ul li a:hover { color: var(--c-orange); }

#sc-page .footer-brand-logo {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 30px;
  text-transform: uppercase;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

#sc-page .footer-brand-desc {
  font-size: 17px;
  color: var(--c-text-dim);
  line-height: 1.6;
  max-width: 420px;
  margin-bottom: 22px;
}

#sc-page .footer-brand-socials { display: flex; gap: 12px; }

#sc-page .footer-brand-socials a {
  width: 42px;
  height: 42px;
  border: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text);
}

#sc-page .footer-brand-socials a:hover {
  border-color: var(--c-orange);
  color: var(--c-orange);
}

#sc-page .footer-bottom {
  padding-top: 26px;
  border-top: 1px solid var(--c-line);
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--c-text-dim);
  letter-spacing: 0.05em;
  font-weight: 600;
}

@media (max-width: 1600px) {
#sc-page .shop-link { width: 40px; padding: 0; gap: 0; }

#sc-page .shop-link .shop-link-label { display: none; }

}

@media (max-width: 1500px) {
#sc-page .header-status { display: none; }

}

@media (max-width: 1100px) {
#sc-page .burger { display: flex; }

}

@media (max-width: 1100px) {
#sc-page .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }

#sc-page .header-nav { display: none; }

}

@media (max-width: 720px) {
#sc-page .footer-grid > * { min-width: 0; }

#sc-page .header-inner { padding: 12px 12px; gap: 8px; flex-wrap: nowrap; }

#sc-page .header-status { display: none; }

#sc-page .logo-block { gap: 10px; min-width: 0; flex-shrink: 1; }

#sc-page .logo-mark { width: 44px; height: 44px; }

#sc-page .logo-text { font-size: 15px; }

#sc-page .logo-text small { font-size: 9px; letter-spacing: 0.08em; }

#sc-page .header-contact { gap: 10px; flex-shrink: 0; }

#sc-page .header-contact .shop-link { display: none; }

#sc-page .burger { display: flex; }

#sc-page .header-phone { font-size: 15px; white-space: nowrap; letter-spacing: 0; }

#sc-page .footer-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }

#sc-page .footer-bottom { flex-direction: column; gap: 12px; }

}

#sc-page .site-footer {
  overflow: hidden;
}

#sc-page .site-footer > * {
  position: relative;
  z-index: 1;
}

#sc-page .site-footer {
  position: relative;
}

#sc-page .footer-brand-with-mark {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

#sc-page .footer-brand-mark {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  transition: filter 0.2s;
}

#sc-page .footer-brand-with-mark .footer-brand-logo {
  margin-bottom: 0;
}

/* Кнопка «В магазин» на месте переключателя темы */
#sc-page .shop-link,
#sc-page .mobile-shop-link {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
#sc-page .shop-link .shop-link-label { min-width: 0; }
#sc-page .shop-link:focus-visible,
#sc-page .mobile-shop-link:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 3px; }
#sc-page .shop-link:active { transform: scale(0.96); }


/* Пометка «по предварительной записи» в часах работы */
#sc-page .cta-contact-item .hours-note {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 10px;
  background: #FDE6C4;
  color: var(--c-text);
  font-weight: 600;
  line-height: 1.35;
}
