/* ── Reset & Base ────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

:root {
  --bg: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-card: #ffffff;
  --accent: #1d1d1f;
  --accent-hover: #000000;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  /* Третьего уровня серого не осталось. #86868b давал 3.62:1 на белом
     и 3.33:1 на #f5f5f7 при норме 4.5 — а светлее #6e6e73 на сером
     фоне AA не проходит вообще ни один оттенок. Токен сохранён, чтобы
     не переписывать 34 места, но значение теперь то же, что у
     secondary: иерархию держим размером и насыщенностью, не цветом. */
  --text-muted: #6e6e73;
  --border: rgba(0, 0, 0, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  --font-heading: 'Unbounded', sans-serif;
  /* Единственный источник правды по горизонтальной сетке. До этого блоки
     страницы товара мерили ширину каждый по-своему — .container от 1280px,
     карточка покупки от min(1120px, 90%), дорожка шагов от 85% окна, — и
     левый край гулял: на 1280px шире оказывался нижний блок, на 1920px
     верхний, совпадали они ровно в одной точке около 1440px. Теперь поле и
     предел живут здесь, а блоки на них ссылаются. */
  --gutter: 24px;
  --page-max: 1280px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.main {
  flex: 1;
}

.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Header ─────────────────────────────────────────────── */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.875rem;
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

/* ── City Selector ────────────────────────────────────── */

.city-selector {
  position: relative;
}

.city-selector-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.city-selector-btn:hover {
  background: var(--border);
}

.city-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  min-width: 340px;
  z-index: 200;
  overflow: hidden;
  columns: 2;
  column-gap: 0;
  padding: 4px 0;
}

.city-dropdown.open {
  display: block;
}

.city-dropdown-item {
  display: block;
  padding: 10px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: background var(--transition), color var(--transition);
  break-inside: avoid;
}

.city-dropdown-item:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.city-dropdown-item.active {
  color: var(--text-primary);
  font-weight: 600;
}

.city-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-actions {
  display: none;
}

/* Город в шапке компьютера читается как ещё один пункт меню: тот же
   шрифт и цвет, без серой плашки. Булавка нужна только узкой шапке. */
.city-selector-desktop .city-selector-btn {
  gap: 5px;
  background: none;
  border: 0;
  padding: 0;
  min-height: 32px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.city-selector-desktop .city-selector-btn:hover {
  background: none;
  color: var(--text-primary);
}

.city-selector-pin {
  display: none;
}

.header-divider {
  width: 1px;
  height: 16px;
  background: rgba(0, 0, 0, 0.12);
}

.header-phone {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  white-space: nowrap;
  transition: color var(--transition);
}

.header-phone:hover {
  color: var(--text-primary);
}

.header-phone-icon {
  display: none;
}

/* Пункты меню не переносятся на вторую строку: когда тесно, уступает
   логотип — он сжимается, сохраняя пропорции (object-fit у .logo-img) */
@media (min-width: 961px) {
  .header .container {
    gap: 24px;
  }

  .logo {
    min-width: 0;
  }

  .nav-link {
    white-space: nowrap;
  }
}

/* Ноутбук поменьше: шести пунктам меню, логотипу и телефону тесно, город
   сжимается до булавки, а название остаётся в aria-label кнопки */
@media (min-width: 769px) and (max-width: 1279px) {
  .nav {
    gap: 16px;
  }

  .header-right {
    gap: 12px;
  }

  .city-selector-desktop .city-selector-btn {
    justify-content: center;
    min-width: 32px;
  }

  .city-selector-pin {
    display: block;
  }

  .city-selector-name,
  .city-selector-chevron,
  .header-divider {
    display: none;
  }
}

/* Ещё уже номер не помещается рядом с логотипом — остаётся трубка */
@media (min-width: 769px) and (max-width: 1100px) {
  .header-phone {
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
  }

  .header-phone-icon {
    display: block;
  }

  .header-phone-number {
    display: none;
  }
}

/* ── Burger / Mobile Nav ───────────────────────────────── */

/* Полоски остаются 22px, растёт только зона нажатия: было 34×28,
   минимум для пальца — 44×44. Отрицательный margin возвращает кнопку
   к краю контейнера, чтобы шапка не разъехалась. */
.burger {
  display: none;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-right: -10px;
  flex-direction: column;
  gap: 5px;
  z-index: 110;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Home Stacking Cards ───────────────────────────────── */

.hstack-section {
  padding: 64px 0 140px;
  background: #000;
}

.hstack-dots {
  display: none;
}

.hstack-item {
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: -60px;
  opacity: 0;
  margin-top: 40px;
  transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
              margin-top 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.hstack-item:last-child {
  margin-bottom: 0;
}

.hstack-item.visible {
  opacity: 1;
  margin-top: 0;
}

.hstack-card {
  background: var(--card-bg, #1d1d1f);
  color: var(--card-text, #fff);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  will-change: transform, opacity;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-transform-origin: center top;
  transform-origin: center top;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hstack-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 70vh;
  overflow: hidden;
}

.hstack-img {
  overflow: hidden;
}

.hstack-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hstack-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 40px 56px;
}

.hstack-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #fff;
}

.hstack-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #fff;
}

.hstack-desc p {
  margin: 0 0 10px;
}

.hstack-desc p:last-child {
  margin-bottom: 0;
}

.hstack-utp--next {
  margin-top: 20px;
}

@media (max-width: 768px) {
  .hstack-section {
    padding: 32px 0 48px;
    overflow: hidden;
  }

  .hstack-track {
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding: 0 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .hstack-track::-webkit-scrollbar {
    display: none;
  }

  .hstack-item {
    width: 85%;
    min-width: 85%;
    flex-shrink: 0;
    margin-bottom: 0;
    opacity: 1 !important;
    margin-top: 0 !important;
    scroll-snap-align: center;
  }

  .hstack-card {
    transform: none !important;
    opacity: 1 !important;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .hstack-img {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    flex-shrink: 0;
  }

  .hstack-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hstack-inner {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .hstack-text {
    padding: 28px 24px;
    flex: 1;
  }

  .hstack-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .hstack-desc {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .hstack-utp--next {
    margin-top: 14px;
  }

  .hstack-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
  }

  .hstack-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s;
  }

  .hstack-dot.active {
    background: #fff;
  }
}

/* ── About Duo (services page) ────────────────────────── */

/* ── About Steps (full-width) ─────────────────────────── */

.about-steps {
  background: #000;
}

.about-steps__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 56px;
}

.about-steps__heading {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 48px;
  color: #fff;
  text-align: center;
}

.about-steps__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  max-width: 900px;
}

.about-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #000;
  border: 1px solid #333;
  border-radius: var(--radius);
  padding: 32px 28px;
}

.about-step__num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.about-step__body {
  flex: 1;
  min-width: 0;
}

.about-step__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: #fff;
  letter-spacing: -0.01em;
}

.about-step__desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* ── Home FAQ Section ──────────────────────────────────── */

/* Полосы поменялись местами с блоком продуктов: там светлые карточки
   растворялись на белом фоне секции. Вопросы текстовые — им серая
   карточка на белом фоне читается ничуть не хуже, чем было наоборот. */
.home-faq-section {
  padding: 80px 10%;
  background: var(--bg);
}

.home-faq-header {
  text-align: center;
  margin-bottom: 48px;
}

.home-faq-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.home-faq-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.home-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.home-faq-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 32px;
}

.home-faq-question {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.home-faq-answer {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .home-faq-section {
    padding: 48px 20px;
  }

  .home-faq-header {
    margin-bottom: 32px;
  }

  .home-faq-title {
    font-size: 1.75rem;
  }

  .home-faq-subtitle {
    font-size: 1rem;
  }

  .home-faq-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-faq-card {
    padding: 24px;
  }

  .home-faq-question {
    font-size: 1rem;
  }

  .home-faq-answer {
    font-size: 0.875rem;
  }
}

/* ── Counter Section ──────────────────────────────────── */

.counter-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

.counter-inner {
  text-align: center;
  padding: 40px 24px;
}

.counter-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: inherit;
}

.counter-caption {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  margin: 16px 0 0;
  opacity: 0.7;
  color: inherit;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .counter-inner {
    padding: 32px 20px;
  }

  .counter-caption {
    font-size: 1rem;
  }
}

/* ── Portfolio Slider ───────────────────────────────────── */

.portfolio-slider-section {
  overflow: hidden;
  background: #000;
  padding: 0 0 80px;
}

.portfolio-slider-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px 40px;
  text-align: center;
}

.portfolio-slider-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.portfolio-slider-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.portfolio-slider-track {
  display: flex;
  gap: 12px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}

.portfolio-slider-track.dragging {
  cursor: grabbing;
}

.portfolio-slide {
  flex: 0 0 auto;
  width: 420px;
  height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
}

.portfolio-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.4s ease;
}

.portfolio-slide:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .portfolio-slider-header {
    padding: 48px 20px 28px;
  }

  .portfolio-slider-title {
    font-size: 1.75rem;
  }

  .portfolio-slider-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .pd-section-heading {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .portfolio-slide {
    width: 260px;
    height: 340px;
  }

  .portfolio-slider-section {
    padding: 0 0 48px;
  }

  /* About Steps responsive */
  .about-steps__content {
    padding: 48px 24px;
  }

  .about-steps__heading {
    font-size: 1.6rem;
    margin-bottom: 28px;
  }

  .about-steps__list {
    grid-template-columns: 1fr;
  }

  .about-step {
    padding: 24px 20px;
  }
}

/* ── Scroll Hero ────────────────────────────────────────── */

.scroll-hero {
  position: relative;
  height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
}

.scroll-hero__sticky {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}

.scroll-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.scroll-hero__loader {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: opacity 0.5s ease;
}

.scroll-hero__loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-hero__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: hero-spin 0.8s linear infinite;
}

@keyframes hero-spin {
  to { transform: rotate(360deg); }
}

.scroll-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

/* H1 главной — строка над слоганом: что делаем и где */
.scroll-hero__kicker {
  margin: 0 0 20px;
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: normal;
  color: rgba(255, 255, 255, 0.85);
}

/* «в Санкт-Петербурге» не рвётся по дефису на узком экране */
.scroll-hero__city {
  white-space: nowrap;
}

.scroll-hero__heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.scroll-hero__word {
  display: inline-block;
  min-width: 4ch;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.scroll-hero__word.changing {
  opacity: 0;
  transform: translateY(-16px);
}

.scroll-hero__rest {
  display: block;
  margin-top: 0.1em;
}


@media (max-width: 768px) {
  .scroll-hero {
    height: 80vh;
  }
  .scroll-hero__heading {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
  }
  .scroll-hero__kicker {
    margin-bottom: 14px;
    font-size: 0.9375rem;
  }
}

/* ── Cards Grid ─────────────────────────────────────────── */

.services-grid {
  padding: 48px 0 96px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ── Cards Slider ───────────────────────────────────────── */
.cards-slider {
  overflow-x: auto;
  overflow-y: clip;
  padding: 16px 0;
  margin: -16px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cards-slider::-webkit-scrollbar {
  display: none;
}

.cards-slider.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
  -webkit-user-select: none;
}

.cards {
  display: flex;
  gap: 20px;
  justify-content: safe center;
  padding: 0 24px;
}

.card {
  flex: 0 0 360px;
  width: 360px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  border: none;
  display: flex;
  flex-direction: column;
}

.cards-slider.dragging .card {
  pointer-events: none;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.card-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.card:hover .card-image img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-body {
  padding: 28px 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-body .card-description {
  flex: 1;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.card-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.card-price .price-value {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.card-duration {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.card-btn {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 14px 24px;
  text-align: center;
  text-decoration: none;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 980px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
  letter-spacing: -0.01em;
}

.card-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

/* ── Group Card Type Pills ─────────────────────────────── */

.card-type-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.card-type-pill {
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 980px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.card-type-pill:hover {
  border-color: rgba(0,0,0,0.25);
  color: var(--text-primary);
}

.card-type-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── Group Modal Type Tabs ────────────────────────────── */

.group-type-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.group-type-tab {
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 980px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.group-type-tab:hover {
  border-color: rgba(0,0,0,0.25);
  color: var(--text-primary);
}

.group-type-tab.active {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

/* ── Product Cards ─────────────────────────────────────── */

.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow var(--transition);
}

/* Цвет карточки задаёт админ, и он может оказаться любым — в том числе
   ровно фоном секции. Волосяная рамка держит границу при любом светлом
   значении; тёмным карточкам она не нужна, их и так видно.

   Рамку рисует ::after, а не inset box-shadow у самой карточки: тень
   ложится поверх фона, но ПОД содержимым, и фотография товара со своей
   белой подложкой закрашивала её на всю свою высоту — рамка обрывалась
   посередине карточки. Абсолютно спозиционированный ::after рисуется
   после потока и проходит поверх фотографии целиком. */
.product-card:not(.dark-bg)::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.product-card:hover {
  box-shadow: var(--shadow);
}

/* Верх карточки (текст + фото) — одна ссылка на страницу товара.
   Для товаров без детальной страницы рендерится как обычный div. */
.product-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  -webkit-user-drag: none;
}

a.product-card-link {
  cursor: pointer;
}

.product-card-text {
  padding: 32px 24px 16px;
  text-align: center;
}

.product-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.product-card-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.product-card.dark-bg .product-card-title {
  color: #fff;
}

.product-card.dark-bg .product-card-desc {
  color: rgba(255, 255, 255, 0.7);
}

.product-card.dark-bg .product-card-btn {
  background: #fff;
  color: var(--text-primary);
}

.product-card.dark-bg .product-card-btn:hover {
  background: rgba(255, 255, 255, 0.85);
}

.product-card-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.product-card:hover .product-card-image img {
  transform: scale(1.08);
}

.product-card-action {
  padding: 16px 24px 32px;
  text-align: center;
  margin-top: auto;
}

.product-card-btn {
  display: inline-block;
  width: 100%;
  padding: 14px 24px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 980px;
  text-decoration: none;
  transition: all var(--transition);
  font-family: var(--font);
  letter-spacing: -0.01em;
  border: 1.5px solid transparent;
}

.product-card-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.product-card-btn-detail {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  margin-top: 8px;
}

.product-card.dark-bg .product-card-btn-detail {
  background: #fff;
  color: var(--text-primary, #1d1d1f);
  border-color: transparent;
}

.product-buy-wrap {
  position: relative;
}

.product-buy-toggle {
  cursor: pointer;
  border: none;
}

.product-buy-links {
  display: none;
  flex-direction: row;
  gap: 6px;
  animation: buyLinksIn 0.25s ease;
}

@keyframes buyLinksIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-buy-wrap.open .product-buy-toggle {
  display: none;
}

.product-buy-wrap.open .product-buy-links {
  display: flex;
}

.product-buy-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  border-radius: 980px;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font);
  text-decoration: none;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
}

.product-buy-link:hover {
  background: rgba(0, 0, 0, 0.12);
}

.product-card.dark-bg .product-buy-link {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.product-card.dark-bg .product-buy-link:hover {
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 980px) {
  .product-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .product-cards {
    grid-template-columns: 1fr;
  }
}

/* Карточка-группа в каталоге: бейдж «3 вида» в углу. */
.product-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  background: var(--accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 980px;
  pointer-events: none;
}

.product-card.dark-bg .product-card-badge {
  background: #fff;
  color: var(--text-primary);
}

/* ── Product group page ───────────────────────────────────── */

/* Ссылка «← Все: Щётки» в герое страницы товара из группы */
.pd-hero-group {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: inherit;
  opacity: 0.75;
  text-decoration: none;
}

.pd-hero-group:hover {
  opacity: 1;
}

.pg-crumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.pg-crumbs a {
  color: inherit;
  text-decoration: none;
}

.pg-crumbs a:hover {
  color: var(--text-primary);
}

.pg-section {
  padding-top: 32px;
}

.pg-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Рамка поверх фото, как у .product-card: inset-тень самой карточки
   фотография перекрыла бы. */
.pg-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.pg-card__img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.pg-card__img img,
.pg-bundle__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pg-card__body {
  padding: 8px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.pg-card__body--top {
  padding-top: 24px;
}

.pg-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pg-card__desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: -6px;
}

.pg-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pg-tags li {
  font-size: 0.75rem;
  background: var(--bg-secondary);
  padding: 4px 10px;
  border-radius: 980px;
}

.pg-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.pg-price {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pg-old {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.pg-more {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
}

.pg-more:hover {
  color: var(--text-primary);
}

.pg-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
}

.pg-add:hover {
  background: var(--accent-hover);
}

.pg-add:disabled {
  cursor: default;
}

.pg-add--off {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: default;
}

.pg-mp {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.pg-mp a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}

.pg-mp a:hover {
  text-decoration: underline;
}

/* Характеристики товаров группы — колонками в одном разделе */
.pg-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.pg-spec {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.pg-spec__title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pg-spec .pd-spec {
  grid-template-columns: 1fr;
  flex: 1;
}

.pg-spec .pd-spec__col {
  padding: 28px 24px;
}

.pg-spec .pd-spec__col + .pd-spec__col {
  border-left: 0;
  border-top: 1px solid var(--border);
}

/* Набор — тёмный баннер под сеткой */
.pg-bundle {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: stretch;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}

.pg-bundle--text {
  grid-template-columns: 1fr;
}

.pg-bundle__img {
  min-height: 260px;
  max-height: 420px;
}

.pg-bundle__body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-width: 0;
}

.pg-bundle__title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pg-bundle__desc {
  color: #c7c7cc;
  line-height: 1.5;
}

.pg-bundle__price {
  justify-content: flex-start;
  margin-top: 0;
}

.pg-bundle .pg-old {
  color: #a1a1a6;
}

.pg-bundle__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pg-bundle .pg-add {
  width: auto;
  background: #fff;
  color: var(--text-primary);
}

.pg-bundle .pg-add:hover {
  background: rgba(255, 255, 255, 0.85);
}

.pg-bundle .pg-add--off {
  background: rgba(255, 255, 255, 0.12);
  color: #c7c7cc;
}

.pg-bundle .pg-more,
.pg-bundle .pg-mp {
  color: #c7c7cc;
}

.pg-bundle .pg-more:hover,
.pg-bundle .pg-mp a {
  color: #fff;
}

@media (max-width: 760px) {
  .pg-bundle {
    grid-template-columns: 1fr;
  }

  .pg-bundle__img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .pg-bundle__body {
    padding: 24px 20px;
  }
}

/* ── Home Products Slider ─────────────────────────────────── */

.home-products-section {
  padding: 80px 0 40px;
  background: var(--bg-secondary);
}

.home-products-section .product-card {
  flex: 0 0 360px;
  width: 360px;
}

@media (max-width: 980px) {
  .home-products-section .product-card {
    flex: 0 0 320px;
    width: 320px;
  }
}

@media (max-width: 600px) {
  .home-products-section {
    padding: 60px 0 24px;
  }

  .home-products-section .product-card {
    flex: 0 0 280px;
    width: 280px;
    scroll-snap-align: center;
  }
}

/* ── Product Detail Page ──────────────────────────────────── */

.pd-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* ── Фоновые фотографии: одна версия вместо двух ─────────────
   Десктопный адрес стоял прямо в background-image, мобильный подставлял
   скрипт после загрузки страницы — и телефон успевал начать качать обе
   картинки. Теперь версии лежат в --bg-d и --bg-m, а выбирает медиазапрос:
   браузер запрашивает ровно одну. Если мобильной версии нет, --bg-m не
   задан и запасным значением подставляется десктопная. */
.pd-hero-bg,
.pd-card__face,
.pd-desc-section,
.vacancies-hero-bg {
  background-image: var(--bg-d);
}
@media (max-width: 768px) {
  .pd-hero-bg,
  .pd-card__face,
  .pd-desc-section,
  .vacancies-hero-bg {
    background-image: var(--bg-m, var(--bg-d));
  }
}

.pd-hero-bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transform: scale(1.05);
  transition: transform 0.1s linear;
}

.pd-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.pd-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 20px;
}

.pd-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.pd-hero-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.5;
  opacity: 0.85;
  margin-bottom: 32px;
}

.pd-hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.pd-hero-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 980px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  font-family: var(--font);
  letter-spacing: -0.01em;
}

.pd-hero-btn {
  background: rgba(255,255,255,0.2);
  color: inherit;
  border: 1.5px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pd-hero-btn:hover {
  background: rgba(255,255,255,0.35);
  border-color: rgba(255,255,255,0.7);
  transform: scale(1.03);
}

.pd-section {
  padding: 80px 0;
}

.pd-cards-slider {
  overflow-x: auto;
  overflow-y: clip;
  padding: 16px 0;
  margin: -16px 0;
  /* -webkit-overflow-scrolling: touch здесь убрано намеренно. На iOS это
     свойство уводило прокрутку на отдельный слой WebKit, где события
     прокрутки во время инерционного броска приходят пачками, а не
     покадрово, — всё, что завязано на прокрутку, дёргалось. Инерция на живых версиях iOS
     работает и без него, свойство давно не нужно. */
  scrollbar-width: none;
  cursor: grab;
}

.pd-cards-slider::-webkit-scrollbar {
  display: none;
}

.pd-cards-slider.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
  -webkit-user-select: none;
}

.pd-cards-track {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 0 var(--gutter);
  max-width: var(--page-max);
  margin-left: auto;
  margin-right: auto;
}

/* Ряд из двух карточек не должен растягивать каждую на пол-экрана.
   Ограничение только для десктопной раскладки: на планшете и телефоне
   ширину задаёт карусель, и общий max-width там подрезал карточку с 736
   до 420 — это и была моя недосмотренная правка. */
@media (min-width: 769px) {
  .pd-card { max-width: 420px; }
}

.pd-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 85%;
  margin-left: auto;
  margin-right: auto;
}

/* Карточка — слот: задаёт размер, по нему лента считает прилипание. Всё
   видимое лежит в .pd-card__face. */
.pd-card {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 4 / 6;
  position: relative;
}

.pd-card__face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  overflow: hidden;
}

.pd-card-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.pd-card-title {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.pd-card-desc {
  position: relative;
  z-index: 1;
  font-size: 0.9375rem;
  line-height: 1.5;
  opacity: 0.8;
}

.pd-step-card {
  position: relative;
}

/* Номер шага над заголовком: «01 / 03». Оба числа приходят из шаблона,
   поэтому счётчик остаётся верным, если шаг добавить или убрать. Цифры
   моноширинные, чтобы номер не дёргался от шага к шагу. */
.pd-step-num {
  display: block;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  opacity: 0.7;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.pd-desc-section {
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.pd-desc-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.pd-desc-content {
  position: relative;
  z-index: 2;
  text-align: left;
  padding: 80px var(--gutter);
}

.pd-desc-title {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.pd-desc-text {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.pd-desc-text p {
  margin-bottom: 16px;
}

.pd-desc-text p:last-child {
  margin-bottom: 0;
}

.pd-rich-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.pd-rich-text h2, .pd-rich-text h3 {
  color: var(--text-primary);
  margin: 32px 0 12px;
}

.pd-rich-text p {
  margin-bottom: 16px;
}

.pd-rich-text ul, .pd-rich-text ol {
  margin: 16px 0;
  padding-left: 24px;
}

@media (max-width: 768px) {
  .pd-hero {
    min-height: 60vh;
  }

  .pd-hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .pd-hero-btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .pd-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 100%;
  }

  .pd-cards-slider {
    scroll-snap-type: x mandatory;
    /* Без этого прилипание тянет карточку к самому краю окна прокрутки и
       съедает поле дорожки: браузер сам подкручивал ленту на ширину поля,
       карточка вставала на 0, а логотип над ней — на 20. Отсюда и
       ощущение сбитой вёрстки. */
    scroll-padding-left: var(--gutter);
  }

  /* Соседние карточки выглядывают из полей, чтобы было видно, что это
     лента. Карточка стоит по линии логотипа, а зазор между карточками
     меньше поля — край соседки виден на «поле − зазор»: 12 px на
     телефоне, 16 на планшете. Там, где соседки нет, поле пустое. */
  .pd-cards-track {
    --pd-gap: 8px;
    justify-content: flex-start;
    gap: var(--pd-gap);
    padding-left: var(--gutter);
    padding-right: 0;
    max-width: 100%;
  }

  /* Концевая распорка: вместе с зазором перед ней даёт ровно поле, и
     последняя карточка встаёт на ту же линию, что и первая. */
  .pd-cards-track::after {
    content: '';
    flex: 0 0 calc(var(--gutter) - var(--pd-gap));
  }

  .pd-card {
    flex: 0 0 calc(100vw - var(--gutter) * 2);
    width: calc(100vw - var(--gutter) * 2);
    aspect-ratio: 4 / 6;
    min-height: auto;
    scroll-snap-align: start;
  }

  .pd-card__face { padding: 32px 24px; }

  .pd-section {
    padding: 48px 0;
  }

  .pd-desc-content {
    padding: 48px var(--gutter);
  }
}

/* ── Franchise Page ────────────────────────────────────── */

.fr-intro {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
}

.fr-intro-content {
  text-align: center;
  padding: 80px 20px;
}

.fr-intro-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.fr-intro-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.5;
  opacity: 0.85;
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.fr-geo-list {
  text-align: left;
  margin-top: 48px;
}

.fr-geo-country {
  margin-bottom: 32px;
}

.fr-geo-country:last-child {
  margin-bottom: 0;
}

.fr-geo-country-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  opacity: 0.9;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 8px;
}

.fr-geo-cities {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 32px;
}

.fr-geo-cities li {
  font-size: 0.9375rem;
  line-height: 1.8;
  opacity: 0.75;
}

.fr-geo-singles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.fr-geo-single {
  display: flex;
  gap: 8px;
  align-items: baseline;
  line-height: 1.8;
}

.fr-geo-single-country {
  font-size: 0.9375rem;
  font-weight: 600;
  opacity: 0.9;
  white-space: nowrap;
}

.fr-geo-single-city {
  font-size: 0.9375rem;
  opacity: 0.6;
}

.fr-desc-section {
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.fr-desc-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 20px;
}

.fr-desc-title {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.fr-desc-text {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.fr-desc-text p {
  margin-bottom: 16px;
}

.fr-desc-text p:last-child {
  margin-bottom: 0;
}

.fr-desc-usp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
  text-align: left;
}

.fr-desc-usp-item {
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
}

.fr-desc-usp-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.fr-desc-usp-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.fr-desc-usp-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  opacity: 0.8;
}

/* ── УТП список ── */

.fr-usp-section {
  background: #ffffff;
}

.fr-usp-subtitle {
  text-align: center;
  font-size: 1.0625rem;
  opacity: 0.65;
  margin-top: -28px;
  margin-bottom: 40px;
}

.fr-usp-list {
  max-width: 800px;
  margin: 0 auto;
}

.fr-usp-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.fr-usp-row:first-child {
  border-top: 1px solid rgba(0,0,0,0.08);
}

.fr-usp-num {
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.35;
  flex-shrink: 0;
  padding-top: 2px;
}

.fr-usp-body {
  flex: 1;
}

.fr-usp-row-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.fr-usp-row-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  opacity: 0.65;
  margin-top: 4px;
}

.fr-section {
  padding: 80px 0;
}

.fr-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 40px;
}

.fr-map-section {
  padding: 0;
}

.fr-map {
  width: 100%;
  height: 520px;
  overflow: hidden;
}

.fr-form-section {
  background: var(--bg-secondary, #f5f5f7);
}

.fr-apply-form {
  max-width: 600px;
  margin: 0 auto;
}

.fr-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Подпись живёт рядом с полем, а не только в placeholder: placeholder
   исчезает при вводе и не читается экранным диктором. */
.fr-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0 0 6px 2px;
}

.fr-apply-form input[type="text"],
.fr-apply-form input[type="email"],
.fr-apply-form input[type="tel"] {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  font-size: 0.9375rem;
  font-family: var(--font);
  background: #fff;
  transition: border-color var(--transition);
}

.fr-apply-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-franchise-submit {
  display: inline-block;
  padding: 16px 48px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 980px;
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--transition);
}

.btn-franchise-submit:hover {
  background: var(--accent-hover);
  transform: scale(1.03);
}

.fr-form-success {
  text-align: center;
  padding: 16px 24px;
  margin-bottom: 24px;
  border-radius: var(--radius-sm, 8px);
  background: #d4edda;
  color: #155724;
  font-size: 0.9375rem;
}

@media (max-width: 768px) {
  .fr-intro {
    min-height: 0 !important;
    height: auto !important;
    display: block;
    padding: 80px 0 60px;
  }

  .fr-intro-content {
    padding: 0 16px;
  }

  .fr-desc-section {
    min-height: 0 !important;
    height: auto !important;
    display: block;
    padding: 60px 0;
  }

  .fr-geo-cities {
    grid-template-columns: 1fr 1fr;
  }

  .fr-geo-singles {
    grid-template-columns: 1fr 1fr;
  }

  .fr-map {
    height: 320px;
  }

  .fr-desc-usp-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fr-section {
    padding: 48px 0;
  }

  .fr-form-grid {
    grid-template-columns: 1fr;
  }

  .fr-desc-content {
    padding: 0 16px;
  }
}

/* ── About Page ────────────────────────────────────────── */

.about-page {
  position: relative;
  padding-bottom: 15vh;
}

/* Hero block */
.about-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.about-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 20px;
}

.about-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.about-hero-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.5;
  opacity: 0.85;
  max-width: 1000px;
  margin: 0 auto;
}

/* Section overlay */
.about-section-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.about-section {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.about-section-inner {
  text-align: left;
  padding: 80px 20px;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Side layout (left / right) */
.about-layout-side {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.about-layout-side .about-section-text {
  flex: 1;
  min-width: 0;
}

.about-layout-side .about-section-image {
  flex: 0 0 45%;
  margin: 0;
}

.about-layout-left .about-section-text {
  order: 2;
}

.about-layout-left .about-section-image {
  order: 1;
}

.about-layout-left .about-ba-slider {
  order: 1;
}

.about-section-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 32px;
}

.about-section-title .word {
  display: inline-block;
}

.about-section-title .char {
  display: inline-block;
}

.about-section-image {
  margin: 32px 0;
}

.about-section-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
}

.about-section-content {
  font-size: 1.125rem;
  line-height: 1.5;
}

.about-section-content .word {
  display: inline-block;
}

.about-section-content p {
  margin-bottom: 20px;
}

.about-section-content p:last-child {
  margin-bottom: 0;
}

.about-section-content h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.about-section-content h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 14px;
}

.about-section-content ul,
.about-section-content ol {
  max-width: 800px;
  margin: 20px 0;
  padding-left: 28px;
}

.about-section-content li {
  margin-bottom: 10px;
}

/* ── About: glass bottom nav ─────────────────────────────── */

.about-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.about-nav-item {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  letter-spacing: -0.01em;
}

.about-nav-item:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
}

.about-nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
  .about-hero {
    min-height: 0;
    height: auto;
    display: block;
    padding: 80px 0 60px;
  }

  .about-hero-content {
    padding: 0 16px;
  }

  .about-section-inner {
    padding: 56px 20px;
  }

  .about-layout-side {
    flex-direction: column;
  }

  .about-layout-side .about-section-image {
    flex: none;
    width: 100%;
  }

  .about-layout-left .about-section-text,
  .about-layout-left .about-section-image,
  .about-layout-left .about-ba-slider {
    order: 0;
  }

  .about-nav {
    display: none;
  }

  .about-section-title {
    font-size: 1.75rem;
  }

  .about-section-content {
    font-size: 1rem;
  }

  .about-nav-item {
    padding: 7px 12px;
    font-size: 0.75rem;
  }
}

/* ── About Partners Cards ──────────────────────────────── */

.about-partners-section {
  min-height: auto;
  overflow: hidden;
  flex-direction: column;
  align-items: stretch;
}

.about-partners-section .about-section-inner {
  padding-bottom: 24px;
}

.about-partners-list {
  display: flex;
  gap: 24px;
  justify-content: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 24px 80px;
}

.about-partners-list::-webkit-scrollbar {
  display: none;
}

.about-partner-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 28px;
  flex: 0 0 420px;
  scroll-snap-align: start;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.about-partner-card__logo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  padding: 10px;
}

.about-partner-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.about-partner-card__body {
  flex: 1;
  min-width: 0;
}

.about-partner-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: #fff;
  letter-spacing: -0.01em;
}

.about-partner-card__desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

@media (max-width: 768px) {
  .about-partner-card {
    flex: 0 0 300px;
    padding: 24px 20px;
  }
}

/* ── About: Before/After Slider ─────────────────────────── */

.about-ba-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 32px 0;
}

.about-ba-slider::-webkit-scrollbar {
  display: none;
}

.about-ba-card {
  flex: 0 0 320px;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
}

.about-ba-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-layout-side .about-ba-slider {
  flex: 0 0 45%;
  margin: 0;
  flex-direction: column;
}

.about-layout-side .about-ba-slider .about-ba-card {
  flex: none;
  width: 100%;
  aspect-ratio: 4 / 3;
}

@media (max-width: 768px) {
  .about-ba-card {
    flex: 0 0 260px;
  }

  .about-layout-side .about-ba-slider {
    flex: none;
    flex-direction: row;
  }

  .about-layout-side .about-ba-slider .about-ba-card {
    flex: 0 0 260px;
    width: auto;
    aspect-ratio: 1;
  }
}

/* ── Modal ──────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg);
  border-radius: var(--radius);
  width: 100%;
  max-width: 860px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  margin-bottom: 48px;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-secondary);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: #e8e8ed;
  color: var(--text-primary);
}

.modal-content {
  padding: 0;
}

/* Desktop: hide sticky header */
.modal-sticky-header {
  display: none;
}

/* ── Modal Hero Image ───────────────────────────────────── */

.modal-hero {
  width: 100%;
  height: 340px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Modal Body ─────────────────────────────────────────── */

.modal-body {
  padding: 48px 56px 56px;
}

.modal-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.modal-short-description {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ── Modal Pricing Row ──────────────────────────────────── */

.modal-pricing {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.modal-pricing > div {
  flex: 1;
  padding: 20px 24px;
  border-right: 1px solid var(--border);
}

.modal-pricing > div:last-child {
  border-right: none;
}

.modal-pricing .label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-bottom: 4px;
}

.modal-pricing .value {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.modal-express .value {
  color: #bf5af2;
}

/* ── Modal Sections ─────────────────────────────────────── */

.modal-section {
  margin-bottom: 24px;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-primary);
  padding-bottom: 0;
  border-bottom: none;
}

/* Includes List */
.includes-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.includes-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  padding: 8px 0;
}

.includes-list li:nth-child(odd) {
  padding-right: 24px;
}

.includes-list li:nth-child(even) {
  padding-left: 24px;
}

.includes-list li svg {
  flex-shrink: 0;
}

/* Examples Grid */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.example-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-secondary);
}

.example-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.example-caption {
  display: block;
  padding: 12px 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
}

/* Brands Marquee */
.brands-marquee {
  overflow: hidden;
  position: relative;
  padding: 8px 0;
}

.brands-marquee::before,
.brands-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.brands-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.brands-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.brands-track {
  display: flex;
  gap: 32px;
  animation: marquee 25s linear infinite;
  width: max-content;
  will-change: transform;
  pointer-events: none;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}

.brand-item {
  background: var(--bg-secondary);
  border-radius: var(--radius-xs);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}

.brand-item:hover {
  background: #e8e8ed;
}

.brand-item img {
  height: 44px;
  width: auto;
  opacity: 0.55;
  transition: opacity var(--transition);
  filter: brightness(0);
}

.brand-item:hover img {
  opacity: 0.85;
}

.brands-disclaimer {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .brands-marquee::before,
  .brands-marquee::after {
    width: 24px;
  }
}

/* Portfolio Gallery */
.portfolio-slider {
  position: relative;
}

.portfolio-gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  scrollbar-width: none;
}

.portfolio-gallery::-webkit-scrollbar {
  display: none;
}

.portfolio-gallery .portfolio-item {
  flex: 0 0 calc(50% - 8px);
  scroll-snap-align: start;
}

.portfolio-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
  transition: background var(--transition), box-shadow var(--transition);
}

.portfolio-arrow:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.portfolio-arrow--left {
  left: -18px;
}

.portfolio-arrow--right {
  right: -18px;
}

.portfolio-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-secondary);
  transition: transform var(--transition), box-shadow var(--transition);
}

.portfolio-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.portfolio-item img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}

.portfolio-item-info {
  padding: 14px 16px;
}

.portfolio-item-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.portfolio-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.portfolio-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 980px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent);
  letter-spacing: 0.01em;
}

/* Options List */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.option-item:last-child {
  border-bottom: none;
}

.option-item:hover {
  background: var(--bg-secondary);
}

.option-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.option-title {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.option-desc {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.option-price {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  margin-left: 24px;
}

/* ── Options Tabs ──────────────────────────────────────── */

.options-tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.options-tab-btn {
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font);
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}

.options-tab-btn:hover {
  color: var(--text-primary);
}

.options-tab-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

.options-tab-panel {
  display: none;
}

.options-tab-panel.active {
  display: block;
}

/* ── Contacts Page ─────────────────────────────────────── */

.contacts-hero {
  padding: 40px 0 12px;
  text-align: center;
}

.contacts-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.contacts-subtitle {
  color: var(--text-secondary);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  max-width: 500px;
  margin: 0 auto;
}

/* View Toggle */
.view-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-secondary);
  border-radius: 980px;
  padding: 4px;
  width: fit-content;
  margin: 0 auto 36px;
}

.view-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  min-height: 44px;
  border: none;
  border-radius: 980px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
}

.view-toggle-btn.active {
  background: var(--bg);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.view-toggle-btn:hover:not(.active) {
  color: var(--text-secondary);
}

/* Location Cards */
.locations-section {
  padding: 0 0 64px;
}

.location-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  margin-bottom: 8px;
  /* Переход из подвала (#point-12) не прячет карточку под липкой шапкой */
  scroll-margin-top: 72px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.location-card:hover {
  box-shadow: var(--shadow-sm);
}

.location-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  cursor: pointer;
  user-select: none;
}

.location-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.location-name {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.location-address {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.location-type-mobile {
  display: none;
}

.location-card-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.location-type-badge {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 980px;
  letter-spacing: 0.01em;
}

.location-type-badge.type-pickup {
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent);
}

/* Фон-подложки не трогаем, темнеет только текст:
   #cc7f08 давал 2.92:1, #1da34a — 3.02:1 на сером фоне карточки. */
.location-type-badge.type-postamat {
  background: rgba(255, 159, 10, 0.1);
  color: #96590a;
}

.location-type-badge.type-lamoda {
  background: rgba(48, 209, 88, 0.1);
  color: #0f6b30;
}

.location-chevron {
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.location-card.open .location-chevron {
  transform: rotate(180deg);
}

/* Expandable body — тот же приём, что в FAQ: 0fr → 1fr вместо
   max-height с запасом. У карточек с фото и встроенной картой
   содержимое запросто перебирало прежний потолок в 1000px. */
.location-card-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.location-card-inner {
  min-height: 0;
  overflow: hidden;
}

.location-card.open .location-card-body {
  grid-template-rows: 1fr;
}

.location-details {
  padding: 0 28px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}

.location-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.location-detail svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

.location-route {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font);
  color: var(--accent);
  text-decoration: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 0 18px;
  min-height: 44px;
  cursor: pointer;
  transition: all 0.2s;
}

.location-route:hover {
  background: var(--bg-secondary);
}

.location-route svg {
  flex-shrink: 0;
}

.location-photos {
  padding: 0 28px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.location-photo-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}

.location-actions {
  padding: 0 28px 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.location-schema-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font);
  color: var(--accent);
  background: none;
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 0 18px;
  min-height: 44px;
  cursor: pointer;
  transition: all 0.2s;
}

.location-schema-btn:hover {
  background: var(--bg-secondary);
}

.location-inline-map {
  aspect-ratio: 4 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-secondary);
  margin: 12px 28px 24px;
}

.location-schema-btn svg {
  flex-shrink: 0;
}

/* Schema fullscreen popup */
.schema-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.schema-popup.open {
  display: flex;
}

.schema-popup-viewport {
  flex: 1;
  width: 100%;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
  padding: 16px;
}

.schema-popup-viewport img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.schema-popup-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1d1d1f;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  color: #fff;
  z-index: 10001;
  transition: background 0.2s;
}

.schema-popup-close:hover {
  background: #333;
}

.schema-popup-controls {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10001;
}

.schema-zoom-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1d1d1f;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  transition: background 0.2s;
}

.schema-zoom-btn:hover {
  background: #333;
}

/* Шапка с информацией о точке — слева сверху, только для HTML-схемы */
.schema-popup-info {
  display: none;
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 20px);
  left: 24px;
  right: 80px;
  max-width: 560px;
  z-index: 10001;
  pointer-events: none;
  color: #f2f3f5;
}
.schema-popup-eyebrow {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8d929b;
}
.schema-popup-name {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: inherit;
}
.schema-popup-address {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: #8d929b;
}
.schema-popup-address strong {
  font-weight: 700;
  color: #f2f3f5;
}

/* Режим интерактивной HTML-схемы: тёмный фон, iframe на весь экран */
.schema-popup-frame { display: none; }
.schema-popup.is-html { background: #18191c; }
.schema-popup.is-html .schema-popup-viewport,
.schema-popup.is-html .schema-popup-controls { display: none; }
.schema-popup.is-html .schema-popup-frame {
  display: block;
  position: absolute;
  inset: 0;
}
.schema-popup-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.schema-popup.is-html .schema-popup-info { display: block; }
.schema-popup.is-html .schema-popup-close { background: #f2f3f5; color: #111214; }

@media (max-width: 640px) {
  .schema-popup-info { left: 16px; right: 72px; top: calc(env(safe-area-inset-top, 0px) + 16px); }
  .schema-popup-eyebrow { font-size: 0.6875rem; }
  .schema-popup-address { font-size: 0.875rem; }
}

/* Пилюля остаётся мелкой — она подпись, а не кнопка. До 44px по
   высоте зону нажатия добирает прозрачная рамка ::after. */
a.location-type-badge {
  position: relative;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
a.location-type-badge::after {
  content: '';
  position: absolute;
  inset: -10px -4px;
}

a.location-type-badge:hover {
  opacity: 0.8;
}

/* ── Postamat page ──────────────────────────────────────── */

.postamat-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--accent);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.postamat-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.postamat-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 20px;
}

.postamat-hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.postamat-hero-intro {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.postamat-section {
  padding: 64px 0;
}

/* Duo-card layout (single card: text left + image right) */
.postamat-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
}

.postamat-duo-photo {
  padding: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.postamat-duo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-sm);
}

.postamat-duo-info {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  order: -1;
}

.postamat-duo-heading {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.postamat-duo-text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-line;
}

.postamat-info {
  position: relative;
  padding: 64px 0;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-secondary);
}

.postamat-info-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.postamat-info-content {
  position: relative;
  z-index: 1;
}

.postamat-info-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.postamat-info-intro {
  font-size: 1.125rem;
  margin-bottom: 24px;
  opacity: 0.85;
}

.postamat-info-text {
  font-size: 1rem;
  line-height: 1.8;
}

.postamat-info-text ul,
.postamat-info-text ol {
  padding-left: 1.25em;
  margin: 0.5em 0;
}

.postamat-info-text li {
  margin-bottom: 0.25em;
}

.postamat-info[style*="background-image"] .postamat-info-title,
.postamat-info[style*="background-image"] .postamat-info-intro,
.postamat-info[style*="background-image"] .postamat-info-text {
  color: #fff;
}

/* ── Postamat FAQ ──────────────────────────────────────── */

.postamat-faq {
  padding: 64px 0;
}

.postamat-faq-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.postamat-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-card:hover {
  box-shadow: var(--shadow-sm);
}

.faq-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
}

.faq-question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s var(--transition);
}

.faq-card.open .faq-chevron {
  transform: rotate(180deg);
}

/* Раскрытие через grid-template-rows: 0fr → 1fr.
   Раньше анимировался max-height с запасом в 500px: длинный ответ
   обрезался, а короткий открывался с паузой — браузер проезжал
   пустые пиксели за то же время. Здесь 1fr — это ровно высота
   содержимого, любой длины и без задержки. */
.faq-card-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Обёртка обязана быть без собственных отступов: min-height обнуляет
   только content-box, а padding остаётся в минимальном вкладе строки —
   с ним закрытая карточка не схлопывается до нуля. Поэтому отступы
   живут на .faq-answer внутри, а не здесь. */
.faq-card-inner {
  min-height: 0;
  overflow: hidden;
}

.faq-card.open .faq-card-body {
  grid-template-rows: 1fr;
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Map */
.ymap-container {
  width: 100%;
  height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-secondary);
}

/* Map Legend */
.map-legend {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

/* Courier Form */
.courier-form-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 48px;
}

.courier-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  text-align: center;
}

.courier-form-subtitle {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  text-align: center;
  margin-bottom: 32px;
}

.courier-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.courier-form-grid--4col {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-field input {
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 0.9375rem;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  transition: border-color var(--transition);
}

.form-field input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field input::placeholder {
  color: var(--text-muted);
}

/* DaData address suggestions */
.form-field--address {
  position: relative;
}

.dadata-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-xs) var(--radius-xs);
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.dadata-suggestion {
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1.4;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.dadata-suggestion:last-child {
  border-bottom: none;
}

.dadata-suggestion:hover,
.dadata-suggestion.active {
  background: var(--bg-secondary, #f5f5f7);
}

.courier-form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 0;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.courier-form-consent input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.courier-form-consent a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.courier-form-consent a:hover {
  text-decoration: none;
}

.courier-form-submit {
  width: 100%;
  padding: 14px 24px;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 980px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
  letter-spacing: -0.01em;
}

.courier-form-submit:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.courier-form-error {
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 59, 48, 0.08);
  color: #d70015;
  font-size: 0.875rem;
  line-height: 1.4;
}

.courier-form-success {
  text-align: center;
  padding: 32px 0;
}

.courier-form-success svg {
  margin-bottom: 16px;
}

.courier-form-success h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.courier-form-success p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Заявка ушла в WhatsApp: кнопка открывает чат ещё раз, если окно
   не открылось или его закрыли, не отправив. */
.courier-form-success .courier-form-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  margin-top: 24px;
  background: #15803d;
  text-decoration: none;
}

.courier-form-success .courier-form-whatsapp:hover {
  background: #116b33;
}

/* Contacts Block */
.contacts-block {
  padding: 64px 0 80px;
  border-top: 1px solid var(--border);
}

.contacts-block-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 32px;
}

.contacts-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 980px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: var(--font);
  text-decoration: none;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

/* Фирменный #0088cc под белым текстом давал 3.89:1. Взят следующий
   тон той же телеграмной шкалы — 4.9:1, на глаз тот же синий. */
.contact-btn-tg {
  background: #0077b3;
  color: #fff;
}

.contact-btn-tg:hover {
  background: #006294;
  transform: scale(1.02);
}

/* Фирменный зелёный WhatsApp #25d366 под белым текстом — 1.98:1.
   Темнее на той же зелёной шкале — 5.02:1. */
.contact-btn-wa {
  background: #15803d;
  color: #fff;
}

.contact-btn-wa:hover {
  background: #116b33;
  transform: scale(1.02);
}

.contact-btn-phone {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.contact-btn-phone:hover {
  background: #e8e8ed;
  transform: scale(1.02);
}

.contact-btn-address {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.contact-btn-address:hover {
  background: #e8e8ed;
  transform: scale(1.02);
}

.contacts-links {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.contacts-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.contacts-link-item:last-child {
  border-bottom: none;
}

.contacts-link-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.contacts-link-item a {
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.contacts-link-item a:hover {
  text-decoration: underline;
}

/* ── Contacts Page (standalone) — Apple duo layout ──────── */

/* Тот же ритм, что у .services-grid на «Продукции»: там такой же герой с
   подзаголовком, за ним сетка карточек. Отступ держим здесь, а не в
   .contacts-hero — тот же герой стоит в корзине, оформлении и статусах заказа,
   и у каждой из этих страниц верхний отступ секции свой. */
.contacts-duo {
  padding: 48px 0 96px;
}

/* На «Сдать обувь» блок идёт после списка точек с их собственными 64px снизу —
   там добавка не нужна. */
.locations-section + .contacts-duo {
  padding-top: 0;
}

.contacts-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.contacts-duo-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 480px;
}

.contacts-duo-photo {
  padding: 0;
}

.contacts-duo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contacts-duo-info {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
}

.contacts-duo-heading {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.contacts-duo-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 380px;
}

.contacts-duo-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.contacts-duo-btns .contact-btn {
  width: 100%;
  justify-content: center;
}

.contacts-duo-links {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.contacts-duo-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.contacts-duo-link:last-child {
  border-bottom: none;
}

.contacts-duo-link span {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.contacts-duo-link a {
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.contacts-duo-link a:hover {
  text-decoration: underline;
}

/* ── Before/After page: dark theme + stacking cards ────── */

.ba-page {
  background: #000000;
}

body:has(.ba-page) {
  background: #000000;
}

body:has(.ba-page) .header {
  background: #fff;
  border-bottom-color: var(--border);
}

.ba-hero {
  padding: 80px 0 24px;
  text-align: center;
}

.ba-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 12px;
  color: #f5f5f7;
}

.ba-hero-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  max-width: 540px;
  margin: 0 auto;
}

.ba-stack {
  padding: 48px 0 120px;
}

.ba-stack-item {
  /* sticky positioning set via JS for computed offsets */
  margin-bottom: -80px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.ba-stack-item:last-child {
  margin-bottom: 0;
}

.ba-stack-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.ba-stack-card {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  will-change: transform, opacity;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.ba-stack-inner {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-stack-img {
  height: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.ba-stack-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Fixed CTA ─────────────────────────────────────────── */

.mobile-cta {
  position: fixed;
  z-index: 500;
  text-decoration: none;
  font-family: var(--font);
  font-weight: 600;
  color: #fff;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 64px;
  border-radius: 980px;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  background: rgba(30, 30, 30, 0.65);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), inset 0 0.5px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.mobile-cta:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), inset 0 0.5px 0 rgba(255, 255, 255, 0.12);
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@media (max-width: 768px) {
  .mobile-cta {
    bottom: 32px;
    padding: 14px 48px;
    font-size: 0.9375rem;
    transition: bottom 0.15s ease;
  }

  .mobile-cta:hover {
    transform: translateX(-50%);
  }

  .footer {
    padding-bottom: 70px;
  }
}

/* ── Promo Banner ───────────────────────────────────────── */

.promo-banner {
  padding: 10px 0;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  position: relative;
  z-index: 101;
}

.promo-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.promo-banner-text {
  text-decoration: none;
  letter-spacing: -0.01em;
}

a.promo-banner-text:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.promo-banner-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0.6;
  padding: 0 4px;
  line-height: 1;
  transition: opacity 0.2s;
  position: absolute;
  right: 16px;
}

.promo-banner-close:hover {
  opacity: 1;
}

/* ── Footer ─────────────────────────────────────────────── */

.footer {
  background: #000;
  padding: 48px 0 32px;
  color: #999;
  font-size: 0.8125rem;
}

/* Top row: logo + nav */
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.footer-logo-img {
  height: 32px;
  width: auto;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #999;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #fff;
}

/* Пункты города: название белым, адрес серым, три колонки */
.footer-points {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Общий стиль h2 — Unbounded для заголовков разделов; в подвале весь текст Inter */
.footer-points-title {
  margin: 0;
  font-family: var(--font);
  letter-spacing: normal;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 20px;
  color: #fff;
}

.footer-points-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-points-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 320px));
  column-gap: 40px;
  row-gap: 16px;
}

.footer-point {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-size: 0.8125rem;
  line-height: 18px;
  color: #8a8a8a;
}

.footer-point-name {
  font-size: 0.875rem;
  line-height: 20px;
  color: #fff;
}

.footer-points-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 0.875rem;
  line-height: 20px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-points-more:hover,
.footer-point:hover .footer-point-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Пункт — ссылка на свою карточку на «Сдать обувь» */
a.footer-point {
  text-decoration: none;
}

.footer-points--many .footer-points-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 769px) and (max-width: 1100px) {
  .footer-points--many .footer-points-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Bottom row: legal + social */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* #666 на чёрном давало 3.66:1 при норме 4.5. #949494 — 6.92:1.
   padding поднимает зону нажатия до 44px по высоте, не двигая текст. */
.footer-legal a {
  color: #949494;
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-legal a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Кружок остаётся 36px, зона нажатия — 44 через прозрачную рамку. */
.footer-social-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #999;
  text-decoration: none;
  transition: all 0.2s;
}

.footer-social-link::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
}

.footer-social-link:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* #555 на чёрном — 2.82:1, самый слабый контраст на сайте. #8a8a8a — 6.08:1. */
.footer-copy {
  color: #8a8a8a;
  font-size: 0.8125rem;
  margin: 0;
}


/* ── Cookie Banner ──────────────────────────────────────── */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--text-primary);
  color: #fff;
  padding: 16px 24px;
  transition: opacity 0.3s ease;
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.cookie-banner-text {
  font-size: 0.8125rem;
  line-height: 1.5;
  flex: 1;
}

.cookie-banner-text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-btn {
  flex-shrink: 0;
  padding: 10px 28px;
  background: #fff;
  color: var(--text-primary);
  border: none;
  border-radius: var(--radius-xs);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.cookie-banner-btn:hover {
  opacity: 0.85;
}

@media (max-width: 600px) {
  .cookie-banner-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .cookie-banner-btn {
    width: 100%;
  }
}

/* ── Page (requisites, privacy) ─────────────────────────── */

.page-content {
  padding: 48px 0 64px;
  flex: 1;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.page-body {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.page-body h2 { font-size: 1.25rem; margin: 24px 0 12px; color: var(--text); }
.page-body h3 { font-size: 1.1rem; margin: 20px 0 8px; color: var(--text); }
.page-body p { margin: 0 0 12px; }
.page-body ul, .page-body ol { margin: 0 0 12px; padding-left: 24px; }
.page-body a { color: var(--accent); text-decoration: underline; }

/* ── Vacancies Page ─────────────────────────────────────── */

.vacancies-page {
  flex: 1;
}

/* Hero */

.vacancies-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 80px 0 48px;
  text-align: left;
  overflow: hidden;
}

.vacancies-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.vacancies-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.vacancies-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.vacancies-title {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 12px;
  color: inherit;
}

.vacancies-subtitle {
  color: inherit;
  opacity: 0.8;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 auto;
  line-height: 1.6;
}

.vacancies-subtitle p {
  margin: 0 0 8px;
}

.vacancies-subtitle p:last-child {
  margin-bottom: 0;
}

.vacancies-hero a,
.vacancies-hero a:visited {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vacancies-hero a:hover {
  opacity: 0.7;
}

/* Section title */

.vacancies-section-title {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 32px;
}

/* Card grid — dark background, 2 columns */

.vacancies-list-section {
  padding: 64px 0 72px;
  background: #1d1d1f;
}

.vacancies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Vacancy card tile */

.vacancy-card {
  background: #2c2c2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  padding: 0;
}

.vacancy-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.vacancy-position {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #ffffff;
  line-height: 1.25;
  padding: 28px 32px 0;
  margin: 0;
}

/* Spec rows */

.vacancy-specs {
  padding: 20px 32px 24px;
}

.vacancy-spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vacancy-spec-row:first-child {
  border-top: none;
}

.vacancy-spec-row:last-child {
  border-bottom: none;
}

.vacancy-spec-row--block {
  flex-direction: column;
  gap: 8px;
}

.vacancy-spec-label {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
  letter-spacing: -0.005em;
}

.vacancy-spec-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #ffffff;
  text-align: right;
  line-height: 1.5;
}

.vacancy-spec-row--block .vacancy-spec-value {
  text-align: left;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  white-space: pre-line;
  line-height: 1.65;
}

/* Apply button — white, centered below tiles */

.vacancies-apply-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.vacancy-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: var(--font);
  border-radius: 980px;
  text-decoration: none;
  transition: background var(--transition), transform 0.2s ease;
  border: none;
  cursor: pointer;
  letter-spacing: -0.005em;
}

.vacancy-apply-btn--white {
  background: #ffffff;
  color: #1d1d1f;
}

.vacancy-apply-btn--white:hover {
  background: #f0f0f0;
  transform: scale(1.03);
}

.vacancy-apply-btn:hover {
  transform: scale(1.03);
}

.vacancy-apply-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.vacancy-apply-btn:hover svg {
  transform: translateX(3px);
}

/* Empty state */

.vacancies-empty {
  padding: 64px 0 96px;
  text-align: center;
}

.vacancies-empty-text {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Full-width bottom image */

.vacancies-bottom-image {
  width: 100%;
  line-height: 0;
}

.vacancies-bottom-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive */

@media (max-width: 768px) {
  .vacancies-hero {
    padding: 56px 0 32px;
  }

  .vacancies-title {
    font-size: 2.5rem;
  }

  .vacancies-subtitle {
    font-size: 1rem;
  }

  .vacancies-section-title {
    font-size: 1.5rem;
  }

  .vacancies-list-section {
    padding: 40px 0 56px;
  }

  .vacancies-grid {
    grid-template-columns: 1fr;
  }

  .vacancy-position {
    font-size: 1.25rem;
    padding: 24px 20px 0;
  }

  .vacancy-specs {
    padding: 16px 20px 20px;
  }

  .vacancy-spec-row {
    flex-direction: column;
    gap: 2px;
    padding: 12px 0;
  }

  .vacancy-spec-value {
    text-align: left;
  }

  .vacancies-apply-wrapper {
    margin-top: 32px;
  }

  .vacancy-apply-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Scrollbar ──────────────────────────────────────────── */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* ── Responsive labels ─────────────────────────────────── */

.label-mobile { display: none; }

@media (max-width: 768px) {
  .label-desktop { display: none; }
  .label-mobile { display: inline; }
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 1560px) {
  .cards-slider {
    cursor: grab;
  }

  .cards {
    justify-content: flex-start;
    padding-left: 20px;
    padding-right: 0;
  }

  .cards::after {
    content: '';
    flex: 0 0 20px;
  }
}

@media (max-width: 980px) {
  .card {
    flex: 0 0 320px;
    width: 320px;
  }
}

@media (max-width: 600px) {
  .cards-slider {
    scroll-snap-type: x mandatory;
  }

  .cards {
    padding-left: calc(50vw - 140px);
    padding-right: 0;
  }

  .cards::after {
    content: '';
    flex: 0 0 calc(50vw - 140px);
  }

  .card {
    flex: 0 0 280px;
    width: 280px;
    scroll-snap-align: center;
  }
}

@media (max-width: 768px) {
  .header {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px 32px;
    z-index: 9999;
    opacity: 0;
    /* Прозрачности мало: невидимое меню оставалось в порядке табуляции, и
       с клавиатуры фокус уходил с логотипа в семь ссылок, которых на
       экране нет. visibility убирает их из обхода, а нулевая задержка при
       открытии и задержка на время затухания при закрытии сохраняют
       анимацию — она не схлопывается в мгновенное исчезновение. */
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.25, 0.1, 0.25, 1),
                visibility 0s linear 0.35s;
    border-top: 1px solid var(--border);
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.35s cubic-bezier(0.25, 0.1, 0.25, 1),
                visibility 0s;
  }

  .nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 18px 0;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
  }

  .nav-link:last-of-type {
    border-bottom: none;
  }

  .city-selector-desktop,
  .header-divider,
  .header-phone {
    display: none;
  }

  /* Плитки прижаты к низу экрана, под большой палец. На низком экране
     меню прокручивается, и плитки уходят под пункты, а не на них. */
  .nav {
    overflow-y: auto;
  }

  .nav-actions {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: auto;
    padding: 24px 0 calc(24px + env(safe-area-inset-bottom));
    position: relative;
  }

  .nav-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 72px;
    padding: 10px 6px;
    background: var(--bg-secondary);
    border: 0;
    border-radius: 12px;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-primary);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
  }

  .nav-action svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
  }

  /* «Санкт-Петербург» в треть экрана не влезает и переносится по дефису;
     слово без дефиса разрывается, но не вылезает за плитку */
  .nav-action-label {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  /* Список городов открывается над плитками во всю их ширину */
  .nav-actions .city-selector {
    display: flex;
    position: static;
  }

  .nav-actions .city-selector .nav-action {
    width: 100%;
  }

  .nav-actions .city-dropdown {
    position: absolute;
    bottom: calc(100% - 16px);
    left: 0;
    right: 0;
    top: auto;
    min-width: 0;
    max-height: 60vh;
    overflow-y: auto;
    columns: 1;
  }

  body.nav-open .mobile-cta {
    display: none;
  }

  .view-toggle {
    margin-bottom: 24px;
  }

  .view-toggle-btn {
    padding: 7px 14px;
    font-size: 0.8rem;
    gap: 5px;
  }

  .view-toggle-btn svg {
    width: 14px;
    height: 14px;
  }

  .contacts-title,
  .ba-hero-title {
    font-size: 1.25rem;
  }

  .contacts-subtitle,
  .ba-hero-subtitle {
    font-size: 1.1rem;
  }

  .ba-stack {
    padding: 32px 0 80px;
  }

  .ba-stack-item {
    margin-bottom: -60px;
  }

  .ba-stack-card {
    width: 100%;
    border-radius: 0;
  }

  .ba-stack-inner {
    aspect-ratio: auto;
  }

  .ba-stack-img {
    height: auto;
    width: 100%;
    aspect-ratio: auto;
  }

  .contacts-duo {
    padding-top: 0;
  }

  .contacts-duo-grid {
    grid-template-columns: 1fr;
  }

  .contacts-duo-card {
    min-height: auto;
  }

  .contacts-duo-photo {
    height: 320px;
  }

  .contacts-duo-info {
    padding: 32px 24px;
  }

  .contacts-duo-heading {
    font-size: 1.6rem;
  }

  .contacts-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .courier-form-card {
    padding: 32px 20px;
    overflow: hidden;
  }

  .courier-form {
    max-width: 100%;
    overflow: hidden;
  }

  .courier-form-grid {
    grid-template-columns: 1fr;
  }

  .courier-form-grid--4col {
    grid-template-columns: 1fr 1fr;
  }

  .courier-form .form-field input,
  .courier-form-submit {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .contact-btn {
    justify-content: center;
  }

  .location-card-header {
    padding: 16px 20px;
  }

  .location-details {
    padding: 0 20px 16px;
  }

  .location-photos {
    padding: 0 20px 12px;
  }

  .location-actions {
    padding: 0 20px 20px;
  }

  .location-type-badge {
    font-size: 0.6875rem;
    padding: 4px 10px;
  }

  .location-type-mobile {
    display: block;
    margin-top: 6px;
  }

  .location-card-right .location-type-badge {
    display: none;
  }

  .postamat-hero {
    min-height: 60vh;
  }

  .postamat-hero-title {
    font-size: 2rem;
  }

  .postamat-duo-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .postamat-duo-photo {
    height: 260px;
    padding: 5%;
    order: -1;
  }

  .postamat-duo-info {
    padding: 32px 24px;
    order: 0;
  }

  .postamat-duo-heading {
    font-size: 1.5rem;
  }

  .postamat-faq {
    padding: 40px 0;
  }

  .postamat-faq-title {
    font-size: 1.5rem;
  }

  .faq-card-header {
    padding: 16px 20px;
  }

  .faq-answer {
    padding: 0 20px 16px;
  }

  .ymap-container {
    height: 400px;
  }

  .modal-body {
    padding: 32px 28px 40px;
  }

  .modal-title {
    font-size: 1.75rem;
  }

  .modal-hero {
    height: 240px;
  }

  .modal-pricing {
    flex-direction: column;
  }

  .modal-pricing > div {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .modal-pricing > div:last-child {
    border-bottom: none;
  }

  .includes-list {
    grid-template-columns: 1fr;
  }

  .includes-list li:nth-child(even) {
    padding-left: 0;
  }

  .includes-list li:nth-child(odd) {
    padding-right: 0;
  }

  .portfolio-arrow {
    display: none;
  }

  .portfolio-gallery {
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 8px;
  }

  .portfolio-gallery .portfolio-item {
    flex: 0 0 70%;
  }

  .portfolio-item-title {
    font-size: 0.75rem;
  }

  .portfolio-tag {
    font-size: 0.625rem;
  }

  .examples-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer {
    padding: 32px 0 24px;
  }

  .footer-top {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 24px;
    padding-top: 20px;
  }

  /* Под пунктами отступ уже есть у самого списка */
  .footer-points + .footer-bottom {
    margin-top: 0;
  }

  .footer-legal {
    flex-wrap: wrap;
    column-gap: 24px;
    row-gap: 0;
  }

  /* Две строки ссылок по 44px разъезжались дальше, чем строки текста рядом.
     36px — с запасом выше минимума WCAG 2.2 (24px), и строки идут ровно. */
  .footer-legal a {
    min-height: 36px;
  }

  /* Сначала ссылки, © с юрлицом — последней строкой, как подпись */
  .footer-copy {
    order: 2;
    margin-top: 12px;
  }

  .footer-points {
    margin-top: 24px;
    padding: 16px 0;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .footer-points-title {
    font-size: 1rem;
    line-height: 24px;
  }

  .footer-points-list {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }

  .footer-point {
    justify-content: center;
    min-height: 48px;
    padding: 4px 0;
    box-sizing: border-box;
  }

  .footer-points-more {
    min-height: 44px;
  }

  .footer-points--many .footer-points-body {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .footer-points--many .footer-points-list {
    grid-template-columns: minmax(0, 1fr);
  }

}

/* Плитка меню на 320 уже 80px: в 14px «Позвонить» и «WhatsApp»
   разламывались посреди слова */
@media (max-width: 374px) {
  .nav-action {
    padding: 10px 4px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  /* Поле сужается один раз здесь — и его подхватывают все блоки сразу,
     а не каждый своим переопределением. */
  :root {
    --gutter: 20px;
  }

  .fluid-content {
    padding: 80px 0 60px;
  }

  .card-body {
    padding: 20px 20px 24px;
  }

  .modal-overlay {
    padding: 0;
  }

  .modal {
    border-radius: 0;
    min-height: 100vh;
  }

  .modal-hero {
    border-radius: 0;
    height: 260px;
  }

  .modal-close {
    display: none;
  }

  .modal-sticky-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .modal-sticky-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  .modal-sticky-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 12px;
  }

  .modal-title {
    display: none;
  }
}


/* ═══════════════════════════════════════════════════════════════
   CART & E-COMMERCE (Phase 1)
   ═══════════════════════════════════════════════════════════════ */

/* ── Cart icon in header ───────────────────────────────────── */
.cart-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
  transition: color var(--transition), background var(--transition),
              opacity var(--transition), transform var(--transition),
              width var(--transition);
}

.cart-icon-btn--hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.7);
  width: 0;
  overflow: hidden;
}

.cart-icon-btn:hover {
  background: var(--bg-secondary);
}

.cart-icon-btn svg {
  width: 22px;
  height: 22px;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--accent);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border-radius: 9px;
  pointer-events: none;
}

/* ── Product card: buy on site ─────────────────────────────── */
.product-buy-site {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.product-qty-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1.5px solid currentColor;
  border-radius: var(--radius-xs);
  background: transparent;
  color: inherit;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}

.product-qty-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

.product-qty-input {
  width: 48px;
  height: 32px;
  text-align: center;
  border: 1.5px solid currentColor;
  border-radius: var(--radius-xs);
  background: transparent;
  color: inherit;
  font-size: 0.9375rem;
  font-family: var(--font, inherit);
  -moz-appearance: textfield;
}

.product-qty-input::-webkit-outer-spin-button,
.product-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.product-out-of-stock {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-bottom: 8px;
}

/* ── Product detail: buy section (below hero) ───────────────── */
.pd-buy {
  padding: 72px var(--gutter) 56px;
  background: #0b0b0c;
  color: #fff;
}

.pd-buy-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  align-items: stretch;
  width: 100%;
  max-width: calc(var(--page-max) - var(--gutter) * 2);
  margin: 0 auto;
  background: #fff;
  color: #0b0b0c;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.5);
}

.pd-buy-card__photo {
  background: #f5f5f7;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.pd-buy-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pd-buy-card__body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* Header */
.pd-buy-card__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pd-buy-card__name {
  font-family: "Unbounded", var(--font);
  /* Один кегль на все экраны. Было два жёстких числа — 38px и 28px на
     телефоне, — и 38 не попадало ни в один шаг шкалы сайта (20 · 24 · 28 ·
     32 · 36 · 40 · 56), оставаясь единственным таким размером во всём
     файле. Теперь 2.25rem — это 36px, шаг шкалы.

     Отдельного мобильного размера больше нет: когда название не влезает,
     кегль подбирает public/js/pd-fit.js — ровно настолько, насколько не
     хватило, и только тому названию, которому не хватило. Короткие имена
     на телефоне остаются в полный рост. */
  font-size: 2.25rem;
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.03em;
  text-transform: uppercase;
  margin: 0;
}
.pd-buy-card__meta {
  color: #5a5d64;
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

/* Строка цены */
.pd-buy-card__price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pd-buy-card__price {
  font-family: "Unbounded", var(--font);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.01em;
  color: #0b0b0c;
}
.pd-buy-card__stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f5ef;
  color: #0a6e3c;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.pd-buy-card__stock .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #11b274;
  display: inline-block;
}
.pd-buy-card__article {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: -8px;
}

/* Действия */
.pd-buy-card__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pd-buy-card .product-qty-row {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 0;
}
.pd-buy-card .product-qty-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #0b0b0c;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-buy-card .product-qty-btn:hover { background: rgba(0,0,0,.05); }
.pd-buy-card .product-qty-input {
  width: 40px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #0b0b0c;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  font-family: var(--font);
  -moz-appearance: textfield;
}
.pd-buy-card .product-qty-input::-webkit-inner-spin-button,
.pd-buy-card .product-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.pd-buy-card .product-add-to-cart {
  flex: 0 0 auto;
  background: #0b0b0c;
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0 28px;
  min-height: 44px;
  /* Надпись не переносим. На мобилке кнопка получает flex: 1, а её
     минимальная ширина считается по самому длинному слову — стрелка
     уезжала на вторую строку внутрь кнопки. С nowrap минимум считается
     по всей надписи, и флексу есть от чего отталкиваться. */
  white-space: nowrap;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  letter-spacing: -.01em;
  transition: transform var(--transition), background var(--transition);
}
.pd-buy-card .product-add-to-cart:hover { background: #1c1c1f; transform: scale(1.01); }
.pd-buy-card .product-add-to-cart:disabled { opacity: .5; cursor: not-allowed; }

/* Нижняя планка прижата ко дну колонки — пустота больше не провисает */
.pd-buy-card__footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}
.pd-buy-card .pd-buy-card__footer .pd-marketplaces { margin: 0; border-top: 0; padding-top: 0; }

.pd-buy-card__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
}
.pd-buy-card__hint svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Базовая версия — внутри белой карточки */
.pd-buy-card .pd-marketplaces {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #ececee;
}
.pd-buy-card .pd-marketplaces__label {
  color: var(--text-secondary);
  font-size: 12px;
  width: 100%;
}
/* Пилюля остаётся мелкой — она вторична. До 44px зону нажатия
   добирает прозрачная рамка ::after, а не воздух вокруг текста. */
.pd-buy-card .pd-marketplaces__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid #e5e7eb;
  color: #0b0b0c;
  border-radius: var(--radius-xs);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition);
}
.pd-buy-card .pd-marketplaces__link::after {
  content: '';
  position: absolute;
  inset: -5px;
}
.pd-buy-card .pd-marketplaces__link:hover {
  border-color: #0b0b0c;
  transform: scale(1.03);
}

/* Фолбэк — когда карточки нет (is_orderable=0), пиллы на тёмной секции */
.pd-buy > .container > .pd-marketplaces {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.pd-buy > .container > .pd-marketplaces .pd-marketplaces__label {
  color: rgba(255,255,255,.7);
  font-size: 13px;
  width: 100%;
  text-align: center;
  margin-bottom: 2px;
}
.pd-buy > .container > .pd-marketplaces .pd-marketplaces__link {
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  border-radius: var(--radius-xs);
  padding: 8px 14px;
  font-size: 13px;
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition);
}
.pd-buy > .container > .pd-marketplaces .pd-marketplaces__link:hover {
  border-color: #fff;
  transform: scale(1.03);
}

@media (max-width: 640px) {
  .pd-buy { padding: 48px var(--gutter) 40px; }
  .pd-buy-card {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .pd-buy-card__photo { aspect-ratio: 1 / 1; }
  /* Всё содержимое карточки — по левому краю, одной вертикалью.
     Раньше шапка и цена центрировались, а артикул, кнопки и нижняя
     планка оставались слева: получалось три разных выключки в одной
     колонке. */
  .pd-buy-card__body { padding: 22px; gap: 14px; }
  .pd-buy-card .product-add-to-cart { flex: 1; }
}

/* ── Product detail: состав и габариты + важно знать ────────── */
/* Заголовок секции страницы товара — тот же стиль, что .section-title
   на главной: страница не должна звучать «тише» остального сайта. */
.pd-section-heading {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 32px;
  letter-spacing: -0.02em;
}

/* Спецификация */
.pd-spec {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.pd-spec--single { grid-template-columns: 1fr; }
.pd-spec__col { padding: 44px; min-width: 0; }
/* Обе колонки от верха: «Состав» и «Габариты» — заголовки одного уровня,
   и на разной высоте читаются как сбитая вёрстка, а не как приём.
   Раньше левая колонка центрировалась по вертикали и уезжала вниз тем
   сильнее, чем длиннее таблица характеристик справа. */
.pd-spec__col + .pd-spec__col {
  border-left: 1px solid var(--border);
  background: var(--bg-secondary);
}
.pd-spec__h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 26px;
}
.pd-spec__composition {
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--text-primary);
  max-width: 44ch;
}
.pd-spec__note {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.pd-spec__rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.pd-spec__rows li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.pd-spec__k { color: var(--text-muted); }
.pd-spec__v {
  font-weight: 600;
  text-align: right;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

/* Размерный чертёж */
.dims-draw {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto 24px;
}

/* Таблица под составом (левая колонка) */
.pd-spec__rows--comp { margin-top: 28px; }

/* Важно знать */
/* Серая полоса отделяет «Важно знать» от белой секции состава —
   тот же приём, что у FAQ на главной: тонированная секция, белая карточка. */
.pd-section--tint {
  background: var(--bg-secondary);
}

.pd-notice {
  background: #fff;
  border-radius: var(--radius);
  padding: 44px;
}
.pd-notice__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 44px; }
.pd-notice__item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.pd-notice__item:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.pd-notice__ic {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: color-mix(in oklab, var(--pd-accent, #1d1d1f) 70%, #0b0b0c);
}
.pd-notice__t {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 4px;
}
.pd-notice__d { font-size: 0.875rem; line-height: 1.5; color: var(--text-secondary); }

@media (max-width: 900px) {
  .pd-spec { grid-template-columns: 1fr; }
  .pd-spec__col + .pd-spec__col { border-left: 0; border-top: 1px solid var(--border); }
  .pd-spec__col { padding: 32px 24px; }
}

@media (max-width: 640px) {
  .pd-section-heading { margin-bottom: 24px; }
  .pd-notice { padding: 28px 22px; }
  .pd-notice__grid { grid-template-columns: 1fr; }
  .pd-notice__item:nth-child(2) { border-top: 1px solid var(--border); padding-top: 18px; }
  .pd-spec__composition { font-size: 1rem; }
}

/* ── Cart page ─────────────────────────────────────────────── */
.cart-section {
  padding: 40px 0 80px;
}

.cart-empty {
  text-align: center;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cart-empty-text {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.cart-layout {
  display: grid;
  /* minmax(0, …): колонка не растёт по самому длинному слову в карточке
     товара — иначе на узком экране и карточка, и «Итого» уезжают за край */
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 860px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  align-items: stretch;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.cart-item-img {
  flex-shrink: 0;
  width: 100px;
}
.cart-item-img-wrap {
  width: 100%;
  height: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cart-item-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cart-item-body {
  flex: 1;
  padding: 14px 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.cart-item-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-total {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.cart-item-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 4px;
  /* Одно длинное слово («Формодержатели») рядом с «1 180 ₽» в узкую
     колонку не влезает — переносим по слогам */
  overflow-wrap: break-word;
  hyphens: auto;
}

.cart-item-price-unit {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-qty-num {
  min-width: 24px;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
}

.cart-item-total {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.cart-item-remove {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  transition: color var(--transition), background var(--transition);
  flex-shrink: 0;
}

.cart-item-remove:hover {
  color: var(--text-primary);
  background: var(--border);
}

/* На телефоне названию рядом с суммой и крестиком тесно: сумма строки
   уезжает вниз, в ряд с количеством, а названию остаётся вся ширина */
@media (max-width: 480px) {
  .cart-item-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "info remove" "qty total";
    align-items: center;
    column-gap: 8px;
  }
  .cart-item-top { display: contents; }
  .cart-item-info { grid-area: info; align-self: start; }
  .cart-item-remove { grid-area: remove; align-self: start; }
  .cart-item-qty { grid-area: qty; }
  .cart-item-total { grid-area: total; }
}
@media (max-width: 360px) {
  .cart-item-img { width: 76px; }
}

/* ── Cart summary ──────────────────────────────────────────── */
.cart-summary {
  position: sticky;
  top: 80px;
}

.cart-summary-inner {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-summary-title {
  font-size: 1.125rem;
  font-weight: 700;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.cart-summary-row--total {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.cart-checkout-btn {
  width: 100%;
  text-align: center;
  padding: 14px 24px;
  font-size: 1rem;
}

.cart-continue-link {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.cart-continue-link:hover {
  color: var(--text-primary);
}

/* ── Error toast ──────────────────────────────────────────── */
/* Свой класс, а не .cart-toast: тот ниже — плашка «добавлен в корзину»,
   и раньше её padding и nowrap доставались ей отсюда (тёмная полоса слева
   от картинки, обрезанное название), а ошибка от её opacity: 0 не была
   видна вовсе */
.cart-toast-error {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 9999;
  pointer-events: none;
  background: #fee2e2;
  color: #991b1b;
}

/* ═══════════════════════════════════════════════════════════
   CHECKOUT PAGE  (Phase 2)
   ═══════════════════════════════════════════════════════════ */

/* ── Error banner ──────────────────────────────────────────── */
.checkout-error-banner {
  padding: 12px 0;
}
.checkout-error-inner {
  background: #fee2e2;
  color: #991b1b;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

/* ── Layout ──────────────────────────────────────────────── */
.checkout-section {
  padding: 20px 0 40px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .checkout-right { order: 2; }
}

/* ── Blocks ───────────────────────────────────────────────── */
.checkout-block {
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
}

.checkout-block-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

/* ── Items list ───────────────────────────────────────────── */
.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-item {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: 12px;
  align-items: center;
}

.checkout-item-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.checkout-item-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.checkout-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.checkout-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-item-article {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.checkout-item-qty {
  font-size: 0.875rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.checkout-item-price {
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ── Form fields ──────────────────────────────────────────── */
.checkout-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.req {
  color: #c00;
}

.checkout-fields .form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.checkout-fields .form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text, #1d1d1f);
}
.checkout-fields .form-group input,
.checkout-fields .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border, #e0e0e0);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text, #1d1d1f);
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.checkout-fields .form-group input:focus,
.checkout-fields .form-group textarea:focus {
  border-color: var(--primary, #1d1d1f);
}
.checkout-fields .form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* ── Delivery radios ──────────────────────────────────────── */
.checkout-delivery-radios {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.checkout-radio-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s;
}
.checkout-radio-label.active,
.checkout-radio-label:has(input:checked) {
  border-color: var(--primary, #1d1d1f);
}
.checkout-radio-label input[type="radio"] {
  display: none;
}
.checkout-radio-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.15s;
}
.checkout-radio-label.active .checkout-radio-mark {
  border-color: var(--primary, #1d1d1f);
}
.checkout-radio-label.active .checkout-radio-mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--primary, #1d1d1f);
}
.checkout-radio-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.checkout-radio-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Delivery blocks ──────────────────────────────────────── */
.checkout-delivery-block {
  margin-top: 8px;
}

/* ── PVZ city search ──────────────────────────────────────── */
.checkout-pvz-city {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.checkout-pvz-city-label {
  font-size: 0.8125rem;
  color: var(--text-muted, #6e6e73);
  white-space: nowrap;
  flex-shrink: 0;
}

.checkout-pvz-city input {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--surface, #fff);
  color: var(--text, #1d1d1f);
  outline: none;
  transition: border-color 0.15s;
}

.checkout-pvz-city input:focus {
  border-color: var(--primary, #1d1d1f);
}

.checkout-pvz-city-btn {
  padding: 7px 12px;
  background: transparent;
  color: var(--primary, #1d1d1f);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}

.checkout-pvz-city-btn:hover { border-color: var(--primary, #1d1d1f); background: var(--surface-2, #f5f5f7); }
.checkout-pvz-city-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── PVZ map ──────────────────────────────────────────────── */
.checkout-pvz-map {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-top: 8px;
  background: #f0f0f0;
}

.checkout-pvz-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.checkout-pvz-selected {
  font-size: 0.875rem;
  margin-bottom: 8px;
  padding: 8px 12px;
  background: #e8f5e9;
  border-radius: var(--radius-xs);
  color: #2e7d32;
}

.checkout-pvz-info {
  margin-top: 8px;
  font-size: 0.875rem;
  padding: 8px 12px;
  background: var(--surface, #f9f9f9);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
}

/* ── Summary sidebar ──────────────────────────────────────── */
.checkout-summary {
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 100px;
}

.checkout-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9375rem;
}

.checkout-summary-row--total {
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  font-weight: 700;
  font-size: 1.0625rem;
}

.checkout-delivery-days {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.checkout-delivery-note {
  margin-bottom: 16px;
}

.checkout-submit-btn {
  width: 100%;
  padding: 14px 20px;
  background: var(--primary, #1d1d1f);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-bottom: 12px;
}
.checkout-submit-btn:hover {
  opacity: 0.85;
}
.checkout-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.checkout-legal-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}
.checkout-legal-hint a {
  color: inherit;
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   PAY STUB PAGE  (Phase 2)
   ═══════════════════════════════════════════════════════════ */

.pay-stub-card {
  max-width: 560px;
  margin: 40px auto 80px;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.pay-stub-icon {
  margin-bottom: 20px;
}

.pay-stub-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pay-stub-code {
  font-family: monospace;
  color: var(--primary, #1d1d1f);
}

.pay-stub-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.pay-stub-summary {
  background: var(--surface, #f9f9f9);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
  text-align: left;
}

.pay-stub-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}
.pay-stub-row:last-child {
  border-bottom: none;
}
.pay-stub-row--total {
  padding-top: 10px;
  font-weight: 700;
  font-size: 1rem;
}
.pay-stub-row strong {
  text-align: right;
  max-width: 60%;
}

.pay-stub-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.pay-stub-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   ORDER STATUS PAGE  (Phase 3)
   ═══════════════════════════════════════════════════════════ */

/* ── Layout ──────────────────────────────────────────────── */
.order-status-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .order-status-layout {
    grid-template-columns: 1fr;
  }
  .order-status-right {
    order: -1;
  }
}

/* ── Status banner ──────────────────────────────────────── */
.order-status-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9375rem;
}
.order-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.order-status-meta {
  font-size: 0.8125rem;
  margin-left: auto;
  color: inherit;
  opacity: 0.75;
}

.status--gray  { background: #f5f5f7; color: #1d1d1f; }
.status--gray  .order-status-dot { background: #999; }

.status--yellow { background: #fffde7; color: #795700; }
.status--yellow .order-status-dot { background: #f9a825; }

.status--green { background: #e8f5e9; color: #1b5e20; }
.status--green  .order-status-dot { background: #2e7d32; }

.status--blue  { background: #e3f2fd; color: #0d47a1; }
.status--blue  .order-status-dot { background: #1565c0; }

.status--red   { background: #fee2e2; color: #7f1d1d; }
.status--red   .order-status-dot { background: #991b1b; }

/* ── Stale payment notice ────────────────────────────────── */
.order-stale-payment {
  background: #fff3e0;
  border: 1px solid #ffe082;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.order-stale-payment p {
  flex: 1;
  font-size: 0.9375rem;
  color: #e65100;
  margin: 0;
}

/* ── Order info grid ─────────────────────────────────────── */
.order-info-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 16px;
  font-size: 0.9375rem;
}
.order-info-label {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ── Contact help ────────────────────────────────────────── */
.order-contact-help {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}
.order-contact-help p {
  margin: 0 0 8px;
}
.order-contact-link {
  display: inline-block;
  margin-right: 12px;
  color: var(--primary, #1d1d1f);
  font-weight: 600;
  text-decoration: none;
}
.order-contact-link:hover {
  text-decoration: underline;
}

/* ── Generic button (used in cart, etc.) ──────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 20px;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  border: none;
  border-radius: 980px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  background: #f0f0f0;
  color: #111;
}
.btn-primary {
  background: #111;
  color: #fff;
}
.btn-primary:hover {
  background: #333;
  color: #fff;
}

/* ── Checkout map: full-width on mobile, no double border ─── */
@media (max-width: 600px) {
  .checkout-pvz-map {
    margin-left: -24px;
    margin-right: -24px;
    width: calc(100% + 48px);
    border: none;
    border-radius: 0;
  }
}

/* ── Cart toast notification ─────────────────────────────── */
.cart-toast {
  position: fixed;
  /* Под липкой шапкой (52px), а не поверх неё: иначе плашка закрывает
     корзину ровно тогда, когда на ней появляется новое число */
  top: 64px;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: 9000;
  display: flex;
  align-items: center;
  background: #1d1d1f;
  color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  min-width: 280px;
  max-width: 360px;
  width: calc(100vw - 48px);
  height: 72px;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s;
  opacity: 0;
  pointer-events: none;
}
.cart-toast.cart-toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cart-toast-img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  background: #2c2c2e;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-toast-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-toast-body {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  min-width: 0;
}
.cart-toast-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}
.cart-toast-name {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* ── Фокус с клавиатуры ─────────────────────────────────── */
/* До этого во всём файле не было ни одного :focus-visible: пройти
   сайт с клавиатуры можно было только вслепую. Кольцо рисуем самой
   фирменной чернотой, а не системным синим — браузерные поверхности
   тоже часть дизайна. :focus-visible срабатывает только на клавиатуре,
   поэтому мышь и палец кольца не увидят. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* На тёмных поверхностях чёрное кольцо не читается — там оно белое. */
:where(.footer, .cart-toast, .product-card.dark-bg, .pd-buy)
  :where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline-color: #fff;
}

/* ── Отклик на нажатие ──────────────────────────────────── */
/* Правил :active во всём файле не было ни одного, при том что
   cursor: pointer стоит у 36 селекторов. На десктопе выручало
   наведение; на телефоне наведения нет, и тап не подтверждался ничем.

   Про !important. В файле 21 правило вида .card-btn:hover { transform:
   scale(1.02) }. На десктопе нажатие всегда происходит поверх наведения,
   и без !important сжатие проигрывает увеличению: специфичность у
   :hover-правил выше, а у части из них ещё и вложенный селектор
   (.pd-buy-card .product-add-to-cart:hover). Догонять их специфичностью
   пришлось бы для каждого отдельно. Нажатие обязано быть сильнее
   наведения по смыслу, а не по случайности порядка в файле.

   Тайминг: вход 60мс, выход 110мс. Общий токен сайта --transition: .3s
   для нажатия не годится — палец отпускает кнопку раньше, чем она
   договорит анимацию, и отклик читается как тормоза интерфейса. */
/* Переход даём с нулевой специфичностью и без !important: там, где
   у элемента уже есть свой transition, он и остаётся хозяином, а там,
   где перехода не было вовсе, кнопка перестаёт щёлкать рывком. */
:where(button, .btn, .card-btn, .contact-btn, .product-card-btn,
       .product-buy-toggle, .product-buy-link, .product-qty-btn,
       .location-route, .location-schema-btn, .view-toggle-btn,
       .city-selector-btn, .btn-franchise-submit, .courier-form-submit,
       .checkout-submit-btn, .cookie-banner-btn, .vacancy-apply-btn,
       .pd-marketplaces__link, .footer-social-link, .burger,
       .modal-close, .schema-zoom-btn, .cart-item-remove,
       .card-type-pill, .group-type-tab, .location-card-header,
       .faq-card-header, .checkout-radio-label,
       .dadata-suggestion, .options-tab-btn) {
  transition: transform 0.11s cubic-bezier(0.2, 0, 0, 1),
              filter 0.11s cubic-bezier(0.2, 0, 0, 1);
}

:where(button, .btn, .card-btn, .contact-btn, .product-card-btn,
       .product-buy-toggle, .product-buy-link, .product-qty-btn,
       .location-route, .location-schema-btn, .view-toggle-btn,
       .city-selector-btn, .btn-franchise-submit, .courier-form-submit,
       .checkout-submit-btn, .cookie-banner-btn, .vacancy-apply-btn,
       .pd-marketplaces__link, .footer-social-link, .burger,
       .modal-close, .schema-zoom-btn, .cart-item-remove):active {
  transform: scale(0.965) !important;
  filter: brightness(0.92) !important;
  transition-duration: 0.06s;
}

/* Крупные поверхности: масштаб на всю карточку читается как рывок,
   поэтому им только затемнение.

   .card в списке нет намеренно: home-cards.js пишет на стопку карточек
   главной инлайновый transform: scale3d(...) при прокрутке, а инлайн
   всегда сильнее таблицы стилей. Отдельная карточка услуги получает
   отклик через .card-btn. */
:where(.card-type-pill, .group-type-tab, .location-card-header,
       .faq-card-header, .checkout-radio-label,
       .dadata-suggestion, .options-tab-btn):active {
  filter: brightness(0.96) !important;
  transition-duration: 0.06s;
}

/* ── Уважение к prefers-reduced-motion ──────────────────── */
/* Не глушим всё в 0.01ms: это убивает обратную связь — пропадает
   раскрытие гармошек, подсветка наведения, появление всплывашки.
   Убираем то, что действительно укачивает: перемещения, масштаб,
   параллакс и бесконечные циклы. Смена цвета и прозрачности живёт. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
    scroll-behavior: auto !important;
  }
  /* Никаких «подъездов» и «подпрыгиваний» — элемент сразу на месте.
     filter в списке ради отклика на нажатие: сжатие уходит, затемнение
     остаётся, и кнопка не перестаёт отвечать на палец совсем. */
  *, *::before, *::after {
    transition-property: color, background-color, border-color, outline-color,
                         box-shadow, opacity, filter, fill, stroke, grid-template-rows;
  }
  /* Ховер-увеличения и сдвиги отменяем в состоянии покоя, при наведении
     и при нажатии. Кроме элементов открытой карты, которые MapLibre ставит
     на место через transform: точки, подсказки и рамки приближения (Shift +
     мышь) — без transform они прыгали бы в угол карты прямо под указателем.
     Части SVG внутри значка точки (белая точка и тень стоят на месте
     атрибутом transform) помечает классом public/js/open-map.js.
     Только простые :not() подряд: :where() и списки в :not() старые браузеры
     не понимают и выбросили бы правило целиком — и на российских страницах.
     Вес у правила выше прежнего, но спорит оно лишь с нажатием кнопок
     (:where(...):active выше по файлу), а того и прежнее перебивало. */
  *:not(.maplibregl-marker):not(.maplibregl-popup):not(.maplibregl-boxzoom):not(.openmap-keep-transform):hover,
  *:not(.maplibregl-marker):not(.maplibregl-popup):not(.maplibregl-boxzoom):not(.openmap-keep-transform):active {
    transform: none !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   SERVICE PAGE — та же карточка, что в попапе на главной, но
   отдельной страницей со своим адресом
   ═══════════════════════════════════════════════════════════════ */
.service-page {
  background: var(--bg-secondary);
  padding: 32px 0 72px;
}

.service-page__container {
  max-width: 908px;
}

.service-page__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.service-page__crumbs a {
  color: var(--text-secondary);
  text-decoration: none;
}

.service-page__crumbs a:hover {
  color: var(--text-primary);
}

.service-page__card {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.service-page__card .modal-hero {
  border-radius: 0;
}

/* В попапе на телефоне заголовок прячется за липкую шапку; здесь это h1 */
.service-page .modal-title {
  display: block;
}

.service-page__group {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.service-page .group-type-tabs {
  margin-top: 16px;
}

.service-page .group-type-tab {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.service-page .modal-description p {
  margin-bottom: 0.75em;
}

.service-page__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: -16px 0 40px;
}

.service-page__back {
  margin-top: 24px;
  font-size: 0.9375rem;
}

.service-page__back a {
  color: var(--text-secondary);
  text-decoration: none;
}

.service-page__back a:hover {
  color: var(--text-primary);
}

.service-faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.service-faq__item {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}

.service-faq__q {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.service-faq__a {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (max-width: 720px) {
  .service-faq {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .service-page {
    padding: 16px 0 48px;
  }

  .service-page__cta .btn {
    flex: 1 1 100%;
  }
}

/* ── Цены на химчистку (/services) ────────────────────── */
/* Карточки — те же, что на главной (partials/service-cards) */

.services-hub__hero {
  padding-top: 48px;
}

.services-hub__cards {
  padding: 24px 0 8px;
}

.hub-tasks {
  margin-top: 40px;
}

.hub-tasks__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-tasks__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 980px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background var(--transition);
}

.hub-tasks__link:hover {
  background: #e8e8ed;
}

.services-hub__container {
  max-width: 908px;
  padding-bottom: 96px;
}

.services-hub__section {
  margin-top: 56px;
}

.services-hub__h2 {
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.services-hub__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.services-hub__options .option-item {
  padding: 16px 24px;
}

.services-hub__options .option-item:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.services-hub__options .option-item:nth-last-child(-n+2):nth-child(odd),
.services-hub__options .option-item:last-child {
  border-bottom: none;
}

/* Нечётное число опций: у одинокой последней ячейки нет разделителя справа */
.services-hub__options .option-item:nth-child(odd):last-child {
  border-right: none;
}

.hub-includes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px 24px;
}

.hub-includes__name {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.hub-includes__name a {
  color: var(--text-primary);
  text-decoration: none;
}

.hub-includes__price {
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.hub-includes .includes-list {
  grid-template-columns: 1fr;
}

.hub-includes .includes-list li {
  font-size: 0.875rem;
  align-items: flex-start;
  padding: 6px 0;
}

.services-hub__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

@media (max-width: 720px) {
  .services-hub__hero {
    padding-top: 24px;
  }

  .services-hub__section {
    margin-top: 40px;
  }

  .services-hub__container {
    padding-bottom: 48px;
  }

  .services-hub__options {
    grid-template-columns: 1fr;
  }

  .services-hub__options .option-item:nth-child(odd) {
    border-right: none;
  }

  /* Предпоследняя ячейка в одну колонку снова с линией снизу; последняя — без,
     её низ — рамка списка */
  .services-hub__options .option-item:nth-last-child(2):nth-child(odd) {
    border-bottom: 1px solid var(--border);
  }

  .services-hub__options .option-item:last-child {
    border-bottom: none;
  }

  .services-hub__options .option-item {
    padding: 14px 16px;
  }

  .services-hub__cta .btn {
    flex: 1 1 100%;
  }
}
