/* ============================================================
   Лейаут блоков главной страницы
   ============================================================ */

/* ---------------- Header ---------------- */
.site-header {
  background: var(--color-bg);
  padding: 14px 0 10px;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base);
}
.site-header.scrolled {
  background: rgba(247,247,245,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom-color: var(--color-border);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-row .btn-primary { padding: 14px 20px; font-size: 14px; white-space: nowrap; flex-shrink: 0; gap: 8px; }
@media (max-width: 1280px) {
  .header-row .nav { display: none; }
}

/* Большая плашка лого */
.brand {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 14px 22px 14px 18px;
  text-decoration: none;
  flex-shrink: 0;
  width: auto;
  white-space: nowrap;
  line-height: 1;
}
.brand-logo {
  width: 44px !important; height: 44px !important;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  margin: 0;
}
.brand-logo--dark { filter: none; }

/* Старый brand-mark оставлен для совместимости, но в макете не используется */
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid var(--color-brand-mark);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-brand-mark);
  background: var(--color-surface);
  flex-shrink: 0;
}
.brand-mark .letter {
  /* Единственная антиква на сайте — буква П в логомарке */
  font-family: "PT Serif", "Times New Roman", Georgia, serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  color: var(--color-brand-mark);
}

/* В footer — такая же светлая плашка, как в шапке — лого не на чёрном */
.brand--dark {
  background: var(--color-surface);
  border-color: var(--color-border);
}
.brand--dark .name { color: var(--color-brand) !important; }
.brand--dark .sub  { color: var(--color-text) !important; }
.brand--dark .label { color: var(--color-text-3); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; gap: 1px; min-width: 0; flex: 0 0 auto; }
.brand-text .name {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--color-brand);
}
.brand-text .sub {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--color-text);
}
.brand-text .label {
  font-size: 10px;
  color: var(--color-text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 3px;
  white-space: nowrap;
  overflow: visible;
  display: block;
}
.brand-text .name, .brand-text .sub {
  white-space: nowrap;
  font-size: 14px;
}

/* Навигация в отдельной плашке */
.nav {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 18px 22px;
  overflow: hidden;
}
.nav ul {
  display: flex;
  gap: 22px;
  justify-content: center;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}
.nav a {
  color: var(--color-text);
  font-size: 14px;
  font-weight: var(--fw-medium);
  padding: 4px 2px;
  transition: color var(--t-base);
  text-decoration: none;
}
.nav a:hover { color: var(--color-brand); }

/* Круглая плашка-иконка телефона */
.phone-ico {
  width: 64px; height: 64px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-brand);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: background var(--t-base), color var(--t-base);
}
.phone-ico:hover { background: var(--color-brand-soft); }

/* Плашка с номером */
.header-phone {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 12px 22px;
  text-decoration: none;
  flex-shrink: 0;
}
.header-phone .num { font-weight: 700; font-size: 17px; color: var(--color-text); line-height: 1.1; white-space: nowrap; }
.header-phone .schedule { font-size: 13px; color: var(--color-text-3); white-space: nowrap; }

/* ---------------- Tabs (пробы) ---------------- */
.tabs-strip {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 14px 0;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  white-space: nowrap;
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--color-text-2);
  padding: 4px 2px;
  transition: color var(--t-base);
}
.tabs a:hover { color: var(--color-text); }
.tabs a.active { color: var(--color-brand); font-weight: var(--fw-bold); }
/* Жёлтая круглая кнопка «Акция» справа от полосы */
.tabs-wrap {
  display: flex; align-items: center; gap: 12px;
}
.tabs-wrap .tabs { flex: 1 1 auto; min-width: 0; }
.action-circle {
  width: 40px; height: 40px;
  background: var(--color-accent);
  color: #1A1F1B;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: background var(--t-base);
}
.action-circle:hover { background: #E8B815; }

/* ---------------- Hero ---------------- */
.hero {
  padding: 32px 0 24px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: stretch;
}
.hero-left { display: flex; flex-direction: column; gap: 18px; height: 100%; }
.hero-h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero-h1 .sub {
  display: block;
  text-transform: none;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 600;
  color: var(--color-danger);
  margin-top: 8px;
  letter-spacing: 0;
}

.hero-pitch {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  font-size: 17px;
  color: var(--color-text);
  text-align: center;
}

.usp-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.usp-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.usp-card .icon-square { width: 40px; height: 40px; }
.usp-card .label { font-size: 13px; font-weight: 600; line-height: 1.3; }

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.actions .btn { width: 100%; }
.actions .btn-primary { grid-column: 1; }
.actions .btn-secondary { grid-column: 2; }
.actions-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.actions-row2 .btn { width: 100%; }

/* Hero media — блок-слайдер с фото */
.hero-media {
  position: relative;
  border-radius: var(--r-lg);
  background: #cfd7c8;
  width: 100%;
  /* высоту привязываем к левой колонке — см. .hero-grid stretch ниже */
  min-height: 460px;
  height: 100%;
  overflow: visible;
}
.hero-media__frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 460px;
}
.hero-slides {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 600ms ease;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
/* Для первого кадра — центр композиции весы/стол */
.hero-slide:first-child img { object-position: center 60%; }

/* Стрелки слайдера — заметные зелёные кружки, белая иконка */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--color-brand);
  border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.05);
  transition: background var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.slider-arrow svg { width: 22px; height: 22px; stroke: #fff; }
.slider-arrow:hover {
  background: #0F7A3C;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}
.slider-arrow:focus,
.slider-arrow:focus-visible,
.slider-arrow:active {
  outline: none;
  background: var(--color-brand);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25), 0 0 0 3px rgba(19,139,69,0.35);
}
.slider-arrow--prev { left: 14px; }
.slider-arrow--next { right: 14px; }

/* Хлебные крошки слайдера — на самом фото снизу по центру */
.slider-dots {
  position: absolute;
  left: 50%; bottom: 18px;
  transform: translateX(-50%);
  display: flex; gap: 10px;
  z-index: 4;
  padding: 8px 14px;
  margin: 0;
  background: rgba(20, 28, 22, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.slider-dots button,
.slider-dots span {
  width: 10px; height: 10px;
  padding: 0; margin: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background var(--t-base), width var(--t-base);
}
.slider-dots button:hover { background: rgba(255,255,255,0.92); }
.slider-dots button.active,
.slider-dots span.active {
  background: var(--color-accent);
  width: 28px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
}

/* Шильдик «Офис + метро» поверх фото */
.hero-place-pill {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 4;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 7px 14px 7px 11px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 18px rgba(20,30,15,0.18);
  transition: opacity 320ms ease, transform 320ms ease;
}
.hero-place-pill svg { color: var(--color-brand); flex-shrink: 0; }
.hero-place-pill__dot { color: var(--color-text-3); margin: 0 2px; }
.hero-place-pill__metro { color: var(--color-brand); font-weight: 700; }
.hero-place-pill.is-changing { opacity: 0; transform: translateY(-4px); }

/* Плашка цены 585 — выезжает из-под фото */
.price-now {
  position: absolute;
  left: 24px; right: 24px; bottom: -42px;
  z-index: 3;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  box-shadow: 0 16px 40px rgba(20,30,15,0.18), 0 2px 8px rgba(20,30,15,0.06);
}
.price-now__left h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.price-now__left .q {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-brand-soft);
  color: var(--color-brand);
  font-size: 12px;
  font-weight: 800;
  cursor: help;
  border: 1px solid rgba(19,139,69,0.18);
  transition: background var(--t-base), color var(--t-base), transform var(--t-base);
  outline: none;
}
.price-now__left .q:hover,
.price-now__left .q:focus-visible {
  background: var(--color-brand);
  color: #fff;
  transform: scale(1.08);
}
/* Тултип */
.price-now__left .q::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%; bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(4px);
  width: 280px;
  background: #1A2520;
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  letter-spacing: 0.01em;
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 30;
}
.price-now__left .q::before {
  content: "";
  position: absolute;
  left: 50%; bottom: calc(100% + 6px);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1A2520;
  opacity: 0;
  transition: opacity 200ms ease;
  z-index: 31;
}
.price-now__left .q:hover::after,
.price-now__left .q:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.price-now__left .q:hover::before,
.price-now__left .q:focus-visible::before {
  opacity: 1;
}
.price-now__left .updated {
  color: var(--color-text-3);
  font-size: 13px;
  display: flex; flex-direction: column; gap: 2px;
}
.price-now__left .updated__office {
  color: var(--color-text-2);
  font-weight: 600;
  font-size: 13px;
  transition: opacity 280ms ease;
}
.price-now__left .updated__time {
  color: var(--color-text-3);
  font-size: 12px;
}
.price-now__right {
  text-align: right;
  position: relative;
}
.price-now__right .pill-accent {
  position: absolute;
  top: -34px; right: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  padding: 5px 12px;
}
.price-now__right .value {
  font-size: clamp(34px, 3.6vw, 44px);
  font-weight: 800;
  color: var(--color-brand);
  letter-spacing: -0.02em;
  line-height: 1;
}
.price-now__right .value .unit {
  font-size: 0.65em;
  font-weight: 700;
  color: var(--color-brand);
}
.price-now__right .delta {
  margin-top: 4px;
  display: flex; align-items: baseline; justify-content: flex-end; gap: 6px;
  font-size: 13px;
}
.price-now__right .delta__num {
  color: var(--color-danger);
  font-weight: 700;
}
.price-now__right .delta .arrow { font-size: 11px; }
.price-now__right .delta__txt { color: var(--color-text-3); }

/* ---------------- Что мы покупаем ---------------- */
.section { padding: 48px 0; }

.buy-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}
.buy-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  padding: 16px 14px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  text-decoration: none;
  color: inherit;
}
.buy-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--color-border-strong);
}
.buy-card { padding: 18px 14px 16px; }
.buy-card .thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-sm);
  background: var(--color-surface-2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: 6px;
}
.buy-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.buy-card .title { font-weight: 700; font-size: 15px; }
.buy-card .meta { font-size: 12px; color: var(--color-text-3); line-height: 1.3; }

/* ---------------- Цены и Как проходит сделка (две колонки) ---------------- */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.45fr);
  gap: 20px;
  align-items: start;
}

.price-table {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.price-table h3 { font-size: 22px; margin-bottom: 4px; }
.price-table .upd { font-size: 13px; color: var(--color-text-3); margin-bottom: 16px; }
.price-table table { width: 100%; border-collapse: collapse; }
.price-table thead th {
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--color-text-3);
  padding: 10px 8px;
  border-bottom: 1px solid var(--color-border);
}
.price-table tbody td {
  padding: 14px 8px;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
}
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tr.hit td:first-child { white-space: nowrap; font-weight: 700; }
.price-table tr.hit .price-zol { color: var(--color-danger); font-weight: 700; }
.price-table tr.hit .price-ser { color: var(--color-danger); font-weight: 700; }
.price-table .all-link { display: inline-block; margin-top: 14px; color: var(--color-brand); font-weight: 600; }

/* Сделка — мини на главной */
.deal-mini {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.deal-mini h3 { font-size: 22px; margin-bottom: 18px; }
.deal-mini .steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.deal-mini .step {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  padding: 16px;
  position: relative;
}
.deal-mini .step .num {
  position: absolute;
  top: 12px; right: 12px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.deal-mini .step .icon-square { margin-bottom: 12px; }
.deal-mini .step .title { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.deal-mini .step .desc { font-size: 13px; color: var(--color-text-2); }

/* ---------------- Преимущества (мудборд-стиль, отдельные карточки) ---------------- */
.advantages {
  padding: 64px 0 32px;
  background: var(--color-bg);
}
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}
.adv-card {
  position: relative;
  background:
    linear-gradient(180deg, #FFFFFF 0%, #FBFBF8 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: 24px;
  min-height: 180px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
  overflow: hidden;
}
.adv-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3);
}
.adv-card::before {
  /* мягкий радиальный градиент внутри */
  content: "";
  position: absolute;
  bottom: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle at center, rgba(19,139,69,0.06), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.adv-card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  color: var(--color-text-2);
  letter-spacing: 0.04em;
}
.adv-card .icon-corner {
  position: absolute;
  top: 22px; right: 22px;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--color-brand-soft);
  color: var(--color-brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.adv-card .icon-corner svg { width: 22px; height: 22px; }
.adv-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 16px 0 8px;
  line-height: 1.25;
}
.adv-card p {
  font-size: 14px;
  color: var(--color-text-2);
  line-height: 1.5;
}
.adv-card.accent {
  background:
    linear-gradient(135deg, #FFE89C 0%, #F5C518 100%);
  border-color: #E6B606;
  box-shadow: var(--shadow-accent);
}
.adv-card.accent::before { display: none; }
.adv-card.accent .num {
  background: rgba(255,255,255,0.4);
  border-color: rgba(0,0,0,0.06);
  color: var(--color-text);
}
.adv-card.accent .icon-corner {
  background: rgba(255,255,255,0.55);
  color: var(--color-text);
}
.adv-card.accent h4, .adv-card.accent p { color: var(--color-text); }

/* ---------------- Как проходит сделка — полноширинный блок ---------------- */
.deal-full {
  background: var(--color-brand);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 48px;
  position: relative;
  margin-top: 32px;
  overflow: hidden;
}
.deal-full .deal-head {
  text-align: center;
  margin-bottom: 32px;
}
.deal-full .pill-accent {
  background: rgba(245, 197, 24, 0.95);
  margin-bottom: 14px;
}
.deal-full h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.deal-full .steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.deal-full .step {
  background: #fff;
  color: var(--color-text);
  border-radius: var(--r-md);
  padding: 22px;
  position: relative;
}
.deal-full .step .num {
  position: absolute;
  top: -12px; left: 22px;
  background: var(--color-text);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  letter-spacing: 0.04em;
}
.deal-full .step h4 { font-size: 18px; margin-bottom: 8px; margin-top: 4px; }
.deal-full .step p { font-size: 14px; color: var(--color-text-2); }

/* ---------------- Офисы — выровненные в линию (правка 3) ---------------- */
.offices {
  padding: 64px 0 32px;
}
.offices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.office-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.office-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
}
.office-card .photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, #d8ddc8 0%, #b8c0a4 100%);
  overflow: hidden;
}
.office-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.office-card .photo .metro-pill {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(255,255,255,0.95);
  color: var(--color-text);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
}
.office-card .body {
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 6px; flex: 1;
}
.office-card .body .name { font-weight: 700; font-size: 17px; }
.office-card .body .addr { color: var(--color-text-2); font-size: 14px; }
.office-card .body .hours { color: var(--color-text-3); font-size: 13px; }
.office-card .body .actions {
  display: flex; gap: 8px; margin-top: 10px;
  grid-template-columns: none;
}
.office-card .body .btn { flex: 1; }

/* ---------------- Скоро откроем — карточки по станциям (правка 2) ---------------- */
.soon {
  padding: 16px 0 64px;
}
.soon-band {
  background: var(--color-brand);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 16px;
  border-radius: var(--r-md);
  margin-bottom: 18px;
}
.soon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.soon-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  padding: 20px 18px;
  text-align: center;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.soon-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--color-border-strong);
}
.soon-card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-brand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.soon-card .station { font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.soon-card .offer-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-brand);
  font-weight: 600;
}
.soon-card .offer-link:hover { color: var(--color-brand-dark); }

/* ---------------- Рейтинг + карта ---------------- */
.rating-map {
  padding: 32px 0 80px;
}
.rating-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.6fr);
  gap: 20px;
  align-items: stretch;
}
.rating-map-grid .rating-card,
.rating-map-grid .map-card { display: flex; flex-direction: column; height: 100%; }
.rating-map-grid .map-frame { flex: 1; min-height: 420px; }
.rating-map-grid .map-frame iframe { height: 100% !important; }
.rating-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: 28px;
}
.rating-card .lab { font-size: 12px; font-weight: 700; color: var(--color-brand); letter-spacing: 0.08em; text-transform: uppercase; }
.rating-card .big { font-size: 72px; font-weight: 800; color: var(--color-text); margin: 8px 0; line-height: 1; letter-spacing: -0.02em; }
.rating-card .badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}
.rating-card .badge .star { color: var(--color-accent); }
.rating-card p { margin-top: 14px; color: var(--color-text-2); font-size: 14px; }

.map-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: 20px;
}
.map-card .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.map-card .head h3 { font-size: 22px; }
.map-card .head .link { color: var(--color-brand); font-weight: 600; font-size: 14px; }
.map-frame {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #e6ebd9;
  min-height: 420px;
}
.map-frame iframe, .map-frame img { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.map-route-btn {
  position: absolute;
  bottom: 16px; right: 16px;
  background: var(--color-accent);
  color: var(--color-text);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  z-index: 2;
  box-shadow: var(--shadow-2);
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: #131614;
  color: #c8cbc4;
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h5 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-grid a { color: #c8cbc4; font-size: 14px; padding: 4px 0; display: inline-block; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #2a2e2a;
  padding-top: 20px;
  font-size: 12px;
  color: #8a8e87;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.footer-bottom__copy { justify-self: start; }
.footer-bottom__links { justify-self: end; }

/* ---------------- Подпись разработчика ---------------- */
.footer-dev {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #2a2e2a;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 12px;
  flex-wrap: wrap;
}
/* Инлайн-вариант: внутри footer-bottom, по центру, без верхней линии */
.footer-dev--inline {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  justify-self: center;
  justify-content: center;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-bottom__copy,
  .footer-bottom__links { justify-self: center; }
  .footer-dev--inline { white-space: normal; }
}
.footer-dev__txt {
  color: #6f7370;
  letter-spacing: 0.01em;
}
.footer-dev__brand {
  position: relative;
  display: inline-block;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  /* Базовый золотой градиент + бегущая белая блёстка */
  background: linear-gradient(
    100deg,
    #c79a2c 0%,
    #f5c518 30%,
    #fff7c4 48%,
    #ffffff 50%,
    #fff7c4 52%,
    #f5c518 70%,
    #c79a2c 100%
  );
  background-size: 220% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  animation: wnder-shine 3.2s linear infinite;
  transition: filter 0.25s ease, transform 0.25s ease;
}
.footer-dev__brand::after {
  /* Подчёркивание при ховере */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f5c518 50%, transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.footer-dev__brand:hover {
  filter: drop-shadow(0 0 6px rgba(245,197,24,0.45));
  transform: translateY(-1px);
}
.footer-dev__brand:hover::after { opacity: 1; }

@keyframes wnder-shine {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-dev__brand { animation: none; background-position: 50% 0; }
}

@media (max-width: 700px) {
  .footer-dev { justify-content: center; text-align: center; }
}

/* ---------------- Адаптив ---------------- */
@media (max-width: 1100px) {
  .header-row { grid-template-columns: auto 1fr auto; }
  .header-row .nav { grid-column: 1 / -1; order: 5; }
  .buy-grid { grid-template-columns: repeat(4, 1fr); }
  .adv-grid { grid-template-columns: repeat(3, 1fr); }
  .offices-grid, .soon-grid { grid-template-columns: repeat(2, 1fr); }
  .deal-full .steps, .deal-mini .steps { grid-template-columns: repeat(2, 1fr); }
  .two-col, .rating-map-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .container { padding: 0 16px; }
  .section, .advantages, .offices, .rating-map { padding: 36px 0; }
  .buy-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: 1fr 1fr; }
  .offices-grid, .soon-grid { grid-template-columns: 1fr; }
  .deal-full { padding: 28px 20px; }
  .deal-full .steps, .deal-mini .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .actions-row2 { grid-template-columns: 1fr 1fr; }
  .header-phone .schedule { display: none; }
  .header-phone .num { font-size: 14px; }
  .brand-text .label { display: none; }
}

/* ===== Mobile fix 2026-06-13 — fix 237px overflow ===== */
@media (max-width: 560px) {
  .header-row {
    grid-template-columns: auto 1fr auto auto !important;
    gap: 8px !important;
    padding: 10px 12px !important;
  }
  .header-row .nav { display: none !important; }
  .header-row .brand img,
  .header-row .brand .brand-img { max-height: 36px !important; width: auto !important; }
  .header-row .brand-text { display: none !important; }
  .header-phone { gap: 4px !important; }
  .header-phone .schedule { display: none !important; }
  .header-phone .num { font-size: 13px !important; }
  .header-phone .icon-circle,
  .header-phone svg { display: none !important; }
  .header-row .btn-primary {
    padding: 10px !important;
    font-size: 0 !important;
    min-width: 40px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    justify-content: center !important;
  }
  .header-row .btn-primary svg { margin: 0 !important; }
  /* prevent any global overflow */
  html, body { overflow-x: hidden !important; }
  /* today-banner shine не должен вылазить */
  .today-banner { overflow: hidden !important; }
  .today-banner__shine { max-width: 100% !important; }
  /* широкие таблицы — скролл */
  .price-table-full { display: block !important; overflow-x: auto !important; max-width: 100% !important; }
  /* compare card them column */
  .compare-card { overflow-x: auto !important; }
}

@media (max-width: 768px) {
  html, body { overflow-x: hidden !important; }
}

/* ===== Mobile fix v2 — header + tabs ===== */
@media (max-width: 560px) {
  /* лого меньше */
  .header-row .brand .logo-mark,
  .header-row .brand img { max-height: 32px !important; max-width: 50px !important; }
  /* телефон-обёртка — только цифры */
  .header-phone { padding: 8px 10px !important; }
  .header-phone .num { font-size: 12px !important; letter-spacing: -0.2px !important; }
  /* tabs-strip — горизонтальный скролл */
  .tabs-strip .tabs-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .tabs-strip .tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  .tabs-strip .tabs::-webkit-scrollbar { display: none !important; }
  .tabs-strip .tabs a {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    padding: 8px 12px !important;
  }
  .tabs-strip .action-circle { flex: 0 0 auto !important; }
}
