/* ============================================================
   FAMILY: ARCADE — лейаут мини-сайта БЦ «Амероп»
   Работает на токенах скина (skin.css). Канонный main.css не трогаем.
   Конвенция фото семьи: кадр 0 (по priority) — hero, остальные — галерея.
   ============================================================ */

/* ── Общее ─────────────────────────────────────────────────── */
.arc-h2 {
  font-family: var(--sk-font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  color: var(--sk-dark);
  margin: 0 0 20px;
}
.arc-eyebrow {
  font-family: var(--sk-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sk-terra);
  margin: 0 0 10px;
}
.arc-link {
  font-family: var(--sk-font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--sk-terra);
  text-decoration: none;
  white-space: nowrap;
}
.arc-link:hover { color: var(--sk-terra-deep); text-decoration: underline; }

.arc-ico { width: 30px; height: 30px; flex: 0 0 30px; object-fit: contain; }
.arc-ico--sm { width: 22px; height: 22px; flex: 0 0 22px; }
.arc-ico--empty { display: inline-block; }

.arc-btn {
  display: inline-block;
  font-family: var(--sk-font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--border-radius);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.arc-btn--solid { background: var(--sk-terra); color: #fff; border-color: var(--sk-terra); }
.arc-btn--solid:hover { background: var(--sk-terra-deep); border-color: var(--sk-terra-deep); color: #fff; }
.arc-btn--ghost { background: transparent; color: var(--sk-terra); border-color: var(--sk-terra); }
.arc-btn--ghost:hover { background: rgba(165, 79, 44, .08); color: var(--sk-terra-deep); }

/* ── Hero ──────────────────────────────────────────────────── */
.arc-hero { background: var(--sk-ivory); padding: 34px 0 0; }
.arc-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: center;
}
.arc-hero__text { padding: 22px 0 46px; }
.arc-hero__title { margin: 0 0 22px; font-family: var(--sk-font-display); font-weight: 600; line-height: 1.06; }
.arc-hero__title-type,
.arc-hero__title-name { display: block; font-size: clamp(38px, 5.4vw, 66px); color: var(--sk-dark); }
.arc-hero__title-name { color: var(--sk-terra); }
.arc-hero__facts {
  font-family: var(--sk-font-display);
  font-size: clamp(18px, 1.9vw, 23px);
  line-height: 1.4;
  font-weight: 600;
  color: var(--sk-dark);
  margin: 0 0 16px;
}
.arc-hero__lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--sk-muted);
  margin: 0 0 26px;
  max-width: 34em;
}
.arc-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.arc-hero__phone { margin: 0; }
.arc-hero__phone a {
  font-family: var(--sk-font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--sk-dark);
  text-decoration: none;
}
.arc-hero__phone a:hover { color: var(--sk-terra); }

.arc-hero__media { position: relative; }
@media (min-width: 992px) {
  .arc-hero__media { margin-right: calc(50% - 50vw); }
}
.arc-hero__fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--sk-ivory) 0%, rgba(249, 245, 237, .82) 16%, rgba(249, 245, 237, 0) 52%);
}

/* ── Полоса характеристик ──────────────────────────────────── */
.arc-stats { background: var(--sk-ivory); padding: 8px 0 44px; }
.arc-stats__strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  background: var(--sk-panel);
  border: 1px solid var(--sk-line);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 14px rgba(54, 42, 28, .05);
  overflow: hidden;
}
.arc-stats__cell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  border-right: 1px solid var(--sk-line);
  min-width: 0;
}
.arc-stats__cell:last-child { border-right: 0; }
.arc-stats__body { flex: 1; min-width: 0; }
.arc-stats__label {
  font-size: 12px;
  line-height: 1.25;
  color: var(--sk-muted);
  margin: 0 0 3px;
  overflow-wrap: anywhere;
}
.arc-stats__value {
  font-family: var(--sk-font-display);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--sk-dark);
  margin: 0;
  overflow-wrap: anywhere;
}

/* ── О бизнес-центре ───────────────────────────────────────── */
.arc-about {
  position: relative;
  background: var(--sk-cream);
  padding: 52px 0 56px;
  overflow: hidden;
}
.arc-about__arch {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 420px;
  background: url('/assets/img/arcade/arch-overlay.svg') left center / auto 100% no-repeat;
  pointer-events: none;
}
.arc-about__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: start;
}
.arc-about__text { padding-left: 6%; }
.arc-about__p { font-size: 15px; line-height: 1.65; color: var(--sk-dark); margin: 0 0 14px; }
.arc-about__panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--sk-panel);
  border: 1px solid var(--sk-line);
  border-radius: var(--border-radius);
}
.arc-feature {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 20px 18px;
  border-right: 1px solid var(--sk-line);
  border-bottom: 1px solid var(--sk-line);
  min-width: 0;
}
.arc-feature > div {
  flex: 1;
  min-width: 0;
}
.arc-feature:nth-child(3n) { border-right: 0; }
.arc-feature:nth-last-child(-n+3) { border-bottom: 0; }
.arc-feature__label { font-size: 12px; color: var(--sk-muted); margin: 0 0 3px; line-height: 1.25; overflow-wrap: anywhere; }
.arc-feature__value { font-size: 14px; font-weight: 500; color: var(--sk-dark); margin: 0; line-height: 1.3; overflow-wrap: anywhere; }

/* ── Витрина лотов ─────────────────────────────────────────── */
.arc-offices { padding: 54px 0 10px; }
.arc-offices__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.arc-offices__head .arc-h2 { margin: 0; }
.arc-offices__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 18px;
}
.arc-lot {
  display: flex;
  flex-direction: column;
  background: var(--sk-panel);
  border: 1px solid var(--sk-line);
  border-radius: var(--border-radius);
  padding: 18px 18px 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.arc-lot:hover {
  border-color: var(--sk-terra);
  box-shadow: 0 6px 20px rgba(54, 42, 28, .08);
  color: inherit;
  transform: translateY(-2px);
}
.arc-lot__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.arc-lot__area {
  font-family: var(--sk-font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  color: var(--sk-dark);
  margin: 0;
}
.arc-lot__area span { font-size: 16px; font-weight: 400; }
.arc-lot__floor { font-size: 13px; color: var(--sk-muted); margin: 0; white-space: nowrap; }
.arc-lot__rows { margin: 14px 0 12px; }
.arc-lot__rows p { font-size: 13px; line-height: 1.45; color: var(--sk-dark); margin: 0 0 3px; }
.arc-lot__rows span { color: var(--sk-muted); margin-right: 6px; }
.arc-lot__price {
  font-family: var(--sk-font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--sk-dark);
  margin: 0 0 12px;
}
.arc-lot__price--request { font-size: 16px; color: var(--sk-muted); }
.arc-lot__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.arc-chip {
  font-size: 11px;
  line-height: 1;
  padding: 6px 9px;
  border-radius: 2px;
  background: var(--sk-cream);
  color: var(--sk-muted);
}
.arc-lot__more {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--sk-line);
  font-size: 14px;
  font-weight: 500;
  color: var(--sk-terra);
}
.arc-lot:hover .arc-lot__more { color: var(--sk-terra-deep); }
.arc-offices__note { font-size: 13px; color: var(--sk-muted); margin: 20px 0 0; }
.arc-offices__note a { color: var(--sk-terra); text-decoration: none; }

/* ── Галерея ───────────────────────────────────────────────── */
.arc-gallery { padding: 46px 0 6px; }
.arc-gallery .office-slider img { -o-object-fit: cover; object-fit: cover; }

/* ── Аналитика (канонный about-rate) под макет ─────────────── */
.about#_description {
  background: var(--sk-cream);
  border: 1px solid var(--sk-line);
  border-radius: var(--border-radius);
  padding: 34px 10px 30px;
  margin-top: 46px !important;
}
.about#_description h2 { font-size: clamp(24px, 2.6vw, 32px); }

/* ── Характеристики + расположение ─────────────────────────── */
.arc-specs { padding: 52px 0 8px; }
.arc-specs__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.arc-specs__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
}
.arc-specs__row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--sk-line);
  min-width: 0;
}
.arc-specs__label {
  font-size: 13px;
  color: var(--sk-muted);
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.arc-specs__value {
  font-size: 13px;
  color: var(--sk-dark);
  margin: 0;
  font-weight: 500;
  min-width: 0;
  overflow-wrap: anywhere;
}
.arc-specs__side { position: relative; }
.arc-map {
  background: var(--sk-cream);
  border: 1px solid var(--sk-line);
  border-radius: var(--border-radius);
  padding: 18px;
  min-height: 240px;
}
.arc-map iframe, .arc-map ymaps { width: 100% !important; border: 0; border-radius: var(--border-radius); }
.arc-map__plate {
  background: var(--sk-panel);
  border: 1px solid var(--sk-line);
  border-radius: var(--border-radius);
  padding: 16px 18px;
}
.arc-map__addr { font-family: var(--sk-font-display); font-size: 18px; font-weight: 600; color: var(--sk-dark); margin: 0 0 10px; }
.arc-map__metro { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sk-dark); margin: 0 0 6px; }
.arc-map__district { font-size: 13px; color: var(--sk-muted); margin: 0; }

/* ── Триптих окружения ─────────────────────────────────────── */
.arc-district { position: relative; padding: 50px 0 46px; overflow: hidden; }
.arc-district__arch {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 380px;
  transform: scaleX(-1);
  background: url('/assets/img/arcade/arch-overlay.svg') left center / auto 100% no-repeat;
  pointer-events: none;
}
.arc-district__grid { position: relative; display: grid; gap: 30px; }
.arc-district__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.arc-district__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.arc-district__grid--1 { grid-template-columns: minmax(0, 1fr); }
.arc-district__text { font-size: 15px; line-height: 1.65; color: var(--sk-dark); margin: 0; }

/* ── Финальный CTA ─────────────────────────────────────────── */
.arc-cta {
  background: var(--sk-cream) url('/assets/img/arcade/cta-arches.png') center / cover no-repeat;
  padding: 60px 0 64px;
  text-align: center;
  margin-top: 46px;
}
.arc-cta__title {
  font-family: var(--sk-font-display);
  font-weight: 600;
  font-size: clamp(27px, 3.2vw, 40px);
  line-height: 1.16;
  color: var(--sk-dark);
  margin: 0 0 16px;
}
.arc-cta__text { font-size: 16px; line-height: 1.6; color: var(--sk-muted); margin: 0 0 26px; }
.arc-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0; }

/* ── Шапка: текстовый логотип и кнопка ─────────────────────── */
.arc-logo { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.arc-logo__name {
  font-family: var(--sk-font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--sk-dark);
}
.arc-logo__sub {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sk-muted);
  margin-top: 4px;
}
.arc-logo:hover .arc-logo__name { color: var(--sk-terra); }
.arc-header-cta { display: none; }
@media (min-width: 992px) { .arc-header-cta { display: inline-block; padding: 11px 20px; font-size: 14px; } }

/* ── Канонные блоки под тон семьи ──────────────────────────── */
.office-slider img { -o-object-fit: cover; object-fit: cover; }
.contact { padding-top: 10px; }
.office-rent-table { padding-top: 8px; }

/* ── Адаптив ───────────────────────────────────────────────── */
@media (max-width: 1399px) {
  .arc-stats__strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .arc-stats__cell:nth-child(3n) { border-right: 0; }
  .arc-stats__cell:nth-child(-n+3) { border-bottom: 1px solid var(--sk-line); }
  .arc-stats__cell:last-child { border-right: 0; }
}
@media (max-width: 1199px) {
  .arc-offices__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 992px) and (max-width: 1399px) {
  /* двухколоночный about + 3-col panel ≈ 195px на ячейку — длинные specs не помещаются */
  .arc-about__panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arc-feature:nth-child(3n) { border-right: 1px solid var(--sk-line); }
  .arc-feature:nth-child(2n) { border-right: 0; }
  .arc-feature:nth-last-child(-n+3) { border-bottom: 1px solid var(--sk-line); }
  .arc-feature:nth-last-child(-n+2) { border-bottom: 0; }
  /* specs: 2-col list ≈ 290px на строку — длинные названия характеристик не помещаются */
  .arc-specs__list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 991px) {
  .arc-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .arc-hero__media { order: -1; }
  .arc-hero__fade { background: linear-gradient(0deg, var(--sk-ivory) 0%, rgba(249, 245, 237, 0) 42%); }
  .arc-hero__text { padding: 0 0 34px; }
  .arc-about__grid, .arc-specs__grid { grid-template-columns: minmax(0, 1fr); }
  .arc-about__text { padding-left: 0; }
  .arc-about__arch, .arc-district__arch { width: 260px; opacity: .7; }
  .arc-offices__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arc-district__grid--3, .arc-district__grid--2 { grid-template-columns: minmax(0, 1fr); }
  .arc-specs__list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575px) {
  .arc-stats__strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arc-stats__cell:nth-child(2n) { border-right: 0; }
  .arc-stats__cell { border-bottom: 1px solid var(--sk-line); }
  .arc-offices__grid { grid-template-columns: minmax(0, 1fr); }
  .arc-about__panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arc-feature:nth-child(3n) { border-right: 1px solid var(--sk-line); }
  .arc-feature:nth-child(2n) { border-right: 0; }
  .arc-offices__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .arc-hero__actions .arc-btn { flex: 1 1 100%; text-align: center; }
}

/* дубль критичного лейаута hero-фото (основной — инлайном в блоке) */
.arc-hero-photo { position: relative; width: 100%; padding-top: 60%; overflow: hidden; background-color: #EFE7DA; }
.arc-hero-photo img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
@media (max-width: 991px) { .arc-hero-photo { padding-top: 62.5%; } }


/* ── Страница лота (канонные rent.php / sale-detail.php) ───── */
.arc-lot-page { padding-top: 26px; }
.arc-lot-page__title {
  font-family: var(--sk-font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.12;
  color: var(--sk-dark);
  text-align: left;
}
.area_info {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.area_info > div:first-child { min-width: 0; }

/* канонная плашка спеков лота: на главной лежит поверх фото (тёмная, blur),
   на странице лота — сама по себе, поэтому переводим её в светлую панель */
.about-describtion-wrap {
  background: var(--sk-panel);
  width: 100%;
  max-width: none;
  margin: 0;
  border: 1px solid var(--sk-line);
  border-radius: var(--border-radius);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  text-align: left;
  overflow: hidden;
}
.about-describtion-wrap p { color: var(--sk-dark); }
.about-describtion-wrap .color-grey { color: var(--sk-muted) !important; }
.about-describtion-wrap .d-flex {
  gap: 10px;
  justify-content: space-between !important;
  align-items: baseline;
  padding-top: 7px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--sk-line);
}
.about-describtion-wrap .d-flex:last-child { border-bottom: 0; }
.about-describtion-wrap .d-flex .text-small:last-child { text-align: right; font-weight: 500; }
.about-describtion-title {
  background: var(--sk-cream);
  border-bottom: 1px solid var(--sk-line);
  padding-bottom: 12px;
}
.about-describtion-title .text-small { color: var(--sk-muted); }
.about-describtion-title .text-large {
  font-family: var(--sk-font-display);
  font-weight: 600;
  color: var(--sk-dark);
}

/* SEO-абзац страницы лота — той же тёплой полосой, что и аналитика */
.about#_description p { color: var(--sk-dark); line-height: 1.6; }

@media (max-width: 991px) {
  .area_info { grid-template-columns: minmax(0, 1fr); }
}
