/* ==========================================================================
   Family: atrium  ·  wall-street-center.ru
   Композиция: фото-доминанта. Первый экран — кадр фасада во всю ширину со
   скримом, поверх имя объекта и факт-строка на плашке камня внахлёст снизу.
   Дальше плотный светлый поток: бенто характеристик, фото-полоса, тёмный
   стейтмент, канонная витрина, триптих, чипы инфраструктуры, сплит района.

   Все цвета — токенами скина. Критичные для лейаута фото-правила продублированы
   инлайном внутри самих блоков (photo-rules §3): блок не должен зависеть от
   того, доехал ли этот файл до браузера.
   ========================================================================== */

.at-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.at-section { padding-top: 56px; padding-bottom: 56px; }

.at-eyebrow {
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--at-graphite-soft);
  margin: 0 0 14px;
}

h2.at-h2 {
  font-family: "Literata", Georgia, serif;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--at-graphite);
  text-align: left;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}
h2.at-h2::before, h2.at-h2::after { content: none; display: none; }

.at-num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ первый экран */

/* Высоту секции задаёт контент, кадр покрывает её целиком. Пропорциональная
   рамка здесь не годится: длина hero_text и имени объекта приходит из данных
   и на узком экране переполнила бы фиксированную по пропорции высоту. */
.at-hero {
  position: relative;
  background-color: var(--at-graphite);
  overflow: hidden;
}
.at-hero-media {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  opacity: 0.3;
}
.at-hero-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}
.at-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  min-height: 560px;          /* фолбэк для браузеров без dvh */
  min-height: 64dvh;
  padding-top: 96px;          /* резерв под фиксированную шапку канона */
  padding-bottom: 40px;
  box-sizing: border-box;
}
.at-hero-inner > .at-wrap { width: 100%; }

@media (min-width: 768px) {
  .at-hero-inner {
    margin-top: 15px;
    margin-bottom: 30px;
  }
}

.at-hero h1 {
  font-family: "Literata", Georgia, serif;
  font-size: clamp(31px, 6vw, var(--skin-h1-max));
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--at-paper);
  margin: 0 0 14px;
  max-width: 16ch;
}
.at-hero-type {
  display: block;
  font-size: 0.42em;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--at-sand-light);
  margin-bottom: 10px;
}
.at-hero-lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--at-paper);
  max-width: 62ch;
  margin: 0 0 22px;
}
.at-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.at-phone {
  font-family: "Literata", Georgia, serif;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--at-paper);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  padding: 10px 0;
  display: inline-block;
  min-height: 44px;
  box-sizing: border-box;
}
.at-phone:hover, .at-phone:focus { color: var(--at-sand-light); }

.at-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 22px;
  background-color: var(--at-steel);
  color: var(--at-paper);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 0;
  border-radius: var(--border-radius);
  transition: background-color 200ms ease;
}
.at-btn:hover, .at-btn:focus { background-color: var(--at-steel-ink); color: var(--at-paper); }

/* Плашка камня внахлёст: факт-строка объекта дисплейным кеглем */
.at-factbar-shell { background-color: var(--at-sand); }
.at-factbar {
  position: relative;
  margin-top: -34px;
  background-color: var(--at-paper);
  border: 1px solid var(--at-greige-line);
  padding: 22px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: baseline;
}
.at-factbar span {
  font-family: "Literata", Georgia, serif;
  font-size: clamp(17px, 1.9vw, 23px);
  font-weight: 600;
  color: var(--at-graphite);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.at-factbar .at-factbar-sep { color: var(--at-greige); font-weight: 400; }

/* --------------------------------------------------------- характеристики */

.at-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: var(--at-greige-line);
  border: 1px solid var(--at-greige-line);
}
.at-cell {
  background-color: var(--at-paper);
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 132px;
  box-sizing: border-box;
}
.at-cell--tone { background-color: var(--at-sand); }
.at-cell--wide { grid-column: span 2; }
.at-cell img.at-ico { width: 34px; height: 34px; display: block; }
.at-cell-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--at-graphite-soft);
  margin: 0;
}
.at-cell-value {
  font-family: "Literata", Georgia, serif;
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--at-graphite);
  font-variant-numeric: tabular-nums;
  margin: auto 0 0;
}
.at-cell-value small { display: block; font-size: 14px; font-weight: 400; color: var(--at-graphite-soft); }

/* ---------------------------------------------------------- фото-полоса */

.at-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.at-ph { position: relative; width: 100%; padding-top: 66.66%; overflow: hidden; background-color: var(--at-greige-line); }
.at-strip .at-ph:first-child { padding-top: 44.4%; }
.at-ph img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}

/* ------------------------------------------------------------ стейтменты */

.at-statement { background-color: var(--at-graphite); color: var(--at-paper); }
.at-statement .at-eyebrow { color: var(--at-greige); }
.at-statement-text {
  font-family: "Literata", Georgia, serif;
  font-size: clamp(21px, 2.8vw, 30px);
  font-weight: 400;
  line-height: 1.42;
  color: var(--at-paper);
  max-width: 34ch;
  margin: 0;
}

/* --------------------------------------------------------------- триптих */

.at-triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.at-col { display: flex; flex-direction: column; gap: 12px; }
.at-col img.at-ico { width: 40px; height: 40px; display: block; }
.at-col-label { font-size: 15px; font-weight: 700; color: var(--at-graphite); margin: 0; }
.at-col p { font-size: 16px; line-height: 1.6; color: var(--at-graphite-soft); margin: 0; }

/* ------------------------------------------------------------ инфраструктура */

.at-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
.at-chips li {
  border: 1px solid var(--at-greige);
  padding: 8px 16px;
  font-size: 15px;
  color: var(--at-graphite);
  background-color: var(--at-paper);
}
.at-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* --------------------------------------------------------------- район */

.at-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.at-split-text p { font-size: 17px; line-height: 1.6; color: var(--at-graphite); margin: 0; max-width: 60ch; }
.at-split .at-ph { padding-top: 75%; }

/* --------------------------------------------------------------- мобайл */

@media (max-width: 1023px) {
  .at-bento { grid-template-columns: repeat(2, 1fr); }
  .at-triptych { grid-template-columns: 1fr; gap: 22px; }
  .at-strip { grid-template-columns: 1fr 1fr; }
  .at-strip .at-ph:first-child { grid-column: span 2; padding-top: 56.25%; }
}

@media (max-width: 767px) {
  .at-section { padding-top: 40px; padding-bottom: 40px; }
  .at-wrap { padding-left: 16px; padding-right: 16px; }
  .at-hero-inner { min-height: 480px; min-height: 72dvh; padding-top: 88px; padding-bottom: 30px; }
  .at-hero h1 { max-width: 100%; }
  .at-hero-lead { font-size: 16px; }
  .at-factbar { margin-top: -20px; padding: 18px; gap: 8px 18px; }
  .at-factbar .at-factbar-sep { display: none; }
  .at-factbar span { white-space: normal; }
  .at-bento { grid-template-columns: 1fr; }
  .at-cell--wide { grid-column: span 1; }
  .at-cell { min-height: 0; }
  .at-strip, .at-pair, .at-split { grid-template-columns: 1fr; }
  .at-strip .at-ph:first-child { grid-column: span 1; }
  .at-split .at-ph { padding-top: 62.5%; }
}

/* ------------------------------------------------- перекрытия канона семьёй */

/* Канон летербоксит фото в слайдере площадей */
.office-slider img { -o-object-fit: cover; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  .at-btn { transition: none; }
}
