/* === Внутренние страницы: /cases/, /biznes-centry/, /contacts/ ===============
   Подключается через extraCss. Опирается на палитру и .container из style.css
   и на золотой градиент из office.css.
   Первая часть — общая шапка страницы, дальше блоки по разделам. */

/* --- Шапка страницы --------------------------------------------------------
   Тёмная, как первый экран статьи: сразу отделяет раздел от светлой главной. */
.page-hero {
  background: var(--bg-dark);
  color: var(--text-light);
  padding-top: 132px;
  padding-bottom: 72px;
}

/* Крошки повторяют стиль статьи — раздел и разбор объекта читаются как одно целое. */
.page-hero .breadcrumbs {
  font-size: 12px;
  color: rgba(245, 243, 239, 0.6);
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.page-hero .breadcrumbs a {
  color: rgba(245, 243, 239, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.page-hero .breadcrumbs a:hover { color: var(--accent-bright); }
.page-hero .breadcrumbs .sep { opacity: 0.4; }

.page-hero .section-tag { color: var(--accent-bright); }

.page-hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  max-width: 18ch;
}
.page-hero h1 em { font-style: normal; color: var(--accent-bright); }

.page-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-light-muted);
  max-width: 68ch;
}

.page-stats {
  list-style: none;
  margin: 42px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 56px;
}
.page-stats li { display: flex; flex-direction: column; gap: 6px; }
.page-stat-num {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-bright);
}
.page-stat-num sup {
  font-size: 14px;
  font-weight: 600;
  margin-left: 3px;
  vertical-align: super;
}
.page-stat-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}

/* --- Сетка карточек --------------------------------------------------------
   Две колонки на десктопе, одна на планшете и мобильном. */
.cases-list-section { background: var(--bg-cream); }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.case-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.case-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.case-card[id] { scroll-margin-top: 104px; }

.case-card-media { position: relative; aspect-ratio: 3 / 2; background: var(--bg-paper); }
.case-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Метраж поверх фото — главный признак, по которому объекты сравнивают. */
.case-card-area {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: var(--grad-y);
  color: #1a1a1a;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  padding: 10px 16px;
  border-radius: 100px;
}
.case-card-area sup { font-size: 12px; font-weight: 700; margin-left: 2px; }

.case-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 30px 24px;
  gap: 18px;
}

.case-card-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.case-card-name {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin: 0 0 8px;
}
.case-card-meta {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.case-card-lead {
  font-size: 15px;
  line-height: 1.62;
  color: var(--text-body);
  margin: 0;
}

.case-card-zones {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.case-card-zones li {
  font-size: 12.5px;
  color: var(--text-body);
  background: var(--bg-paper);
  border-radius: 100px;
  padding: 6px 14px;
}

/* Подвал карточки прижат к низу — у карточек разной высоты кнопки в одну линию. */
.case-card-foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.case-card-term {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.case-card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  background: var(--grad-y);
  padding: 11px 12px 11px 20px;
  border-radius: 100px;
  transition: box-shadow 0.25s ease;
}
.case-card-link:hover { box-shadow: 0 10px 26px rgba(240, 165, 0, 0.34); }
/* «Хочу такой же» — второстепенное действие у кейсов без своей страницы. */
.case-card-link--quiz {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-body);
}
.case-card-link--quiz:hover {
  border-color: var(--accent-soft);
  color: var(--text-dark);
  box-shadow: none;
}
.case-card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.1);
  font-size: 14px;
  transition: transform 0.2s ease;
}
.case-card-link:hover .case-card-arrow { transform: translateX(3px); }

/* --- Замыкающий призыв ----------------------------------------------------- */
.page-cta { background: var(--bg-cream); padding-top: 0; }
.page-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 44px 48px;
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: 4px;
}
.page-cta-text { min-width: 0; }
.page-cta h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 10px;
}
.page-cta p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-light-muted);
  max-width: 56ch;
}

@media (max-width: 1024px) {
  .page-hero { padding-top: 108px; }
  .page-hero h1 { font-size: 36px; }
  .cases-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
  /* Под шапкой на мобильном ещё строка контактов — крошкам нужен запас. */
  .page-hero { padding-top: 118px; padding-bottom: 52px; }
  .page-hero h1 { font-size: 30px; }
  .page-lead { font-size: 15px; }
  .page-stats { gap: 18px 32px; margin-top: 32px; }
  .page-stat-num { font-size: 30px; }
  .case-card-body { padding: 22px 20px 20px; gap: 14px; }
  .case-card-name { font-size: 21px; }
  .case-card-area { font-size: 22px; padding: 8px 14px; left: 14px; bottom: 14px; }
  .case-card-foot { flex-direction: column; align-items: flex-start; }
  .case-card-link { width: 100%; justify-content: space-between; }
  .page-cta-inner { padding: 28px 22px; }
  .page-cta h2 { font-size: 24px; }
}

/* === /biznes-centry/ — список площадок ===================================== */
.bclist-section { background: var(--bg-cream); }

.bclist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.bclist-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 34px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.bclist-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.bclist-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.bclist-card-logo img { height: 30px; width: auto; display: block; }
.bclist-card-status {
  flex: none;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-bg);
  border-radius: 100px;
  padding: 6px 12px;
}

.bclist-card-name {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-dark);
  margin: 0;
}
.bclist-card-lead {
  font-size: 15px;
  line-height: 1.62;
  color: var(--text-body);
  margin: 0;
}

/* Площадки девелопера: у STONE их несколько под одним брендом. */
.bclist-card-objects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bclist-card-objects li {
  font-size: 12.5px;
  color: var(--text-body);
  background: var(--bg-paper);
  border-radius: 100px;
  padding: 6px 14px;
}

.bclist-card-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
  color: var(--text-muted);
}
.bclist-card-facts li { display: flex; align-items: center; gap: 8px; }
.bclist-card-facts li + li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.bclist-card-link {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
}
.bclist-card-arrow {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad-y);
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: transform 0.2s ease;
}
.bclist-card-link:hover { color: var(--accent); }
.bclist-card-link:hover .bclist-card-arrow { transform: translateX(3px); }

.bclist-note {
  margin: 32px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 76ch;
}

/* === /contacts/ ============================================================ */
.contacts-section { background: var(--bg-cream); }

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
}

.contacts-info { display: flex; flex-direction: column; gap: 26px; }
.contacts-block { display: flex; flex-direction: column; gap: 6px; }
.contacts-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}
.contacts-value {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
}
a.contacts-value:hover { color: var(--accent); }
.contacts-value--lg { font-family: var(--serif); font-size: 30px; font-weight: 700; }
.contacts-note { font-size: 14px; line-height: 1.55; color: var(--text-muted); }

.contacts-messengers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.contacts-messengers a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 15px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.contacts-messengers a:hover { border-color: var(--accent-soft); color: var(--text-dark); }

.contacts-map-link {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.contacts-map-link:hover { text-decoration: underline; }

.contacts-cta { align-self: flex-start; margin-top: 6px; }

/* Карту подгружает main.js по data-map-src — до этого работает фон-плейсхолдер. */
.contacts-map {
  min-height: 520px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.contacts-map iframe { width: 100%; height: 100%; min-height: 520px; border: 0; display: block; }

.contacts-requisites-section { background: var(--bg-cream); padding-top: 0; }
.contacts-requisites-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 22px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
}
.contacts-requisites {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 32px;
  margin: 0;
}
.contacts-requisite { display: flex; flex-direction: column; gap: 4px; }
.contacts-requisite dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contacts-requisite dd { margin: 0; font-size: 15px; color: var(--text-dark); }
.contacts-requisite--wide { grid-column: span 3; }

@media (max-width: 1024px) {
  .bclist-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .contacts-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .contacts-map, .contacts-map iframe { min-height: 380px; }
  .contacts-requisites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts-requisite--wide { grid-column: span 2; }
}

@media (max-width: 768px) {
  .bclist-card { padding: 24px 20px; }
  .bclist-card-name { font-size: 23px; }
  .bclist-card-top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .bclist-card-link { font-size: 14px; }
  .contacts-value--lg { font-size: 26px; }
  .contacts-map, .contacts-map iframe { min-height: 300px; }
  .contacts-requisites { grid-template-columns: minmax(0, 1fr); }
  .contacts-requisite--wide { grid-column: span 1; }
  .contacts-requisites-title { font-size: 21px; padding-top: 32px; }
}

/* === Текстовый блок внутренних страниц ======================================
   Читаемая колонка под списком: объясняет услугу словами, которыми её ищут. */
.page-text { background: var(--bg-cream); padding-top: 0; }
.page-text-inner {
  max-width: 74ch;
  padding-top: 44px;
  border-top: 1px solid var(--border);
}
.page-text h2 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin: 0 0 16px;
}
.page-text h2 + p { margin-top: 0; }
.page-text h2:not(:first-child) { margin-top: 36px; }
.page-text p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.68;
  color: var(--text-body);
}
.page-text p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .page-text-inner { padding-top: 32px; }
  .page-text h2 { font-size: 22px; }
  .page-text h2:not(:first-child) { margin-top: 28px; }
  .page-text p { font-size: 15px; }
}
