/* ============================================================
   Площадка «Атриум» — изолированные стили
   Префикс: atr- (всё под .atr-root)
   Токены, ресет и шрифт заданы на .atr-root (НЕ глобально),
   чтобы безопасно встраивать рядом с прод-шапкой/футером.
   Блоки ограниченной ширины дают контент 1297px
   (.atr-container max-width 1327px − 2×15px padding).
   ============================================================ */

body { margin: 0; }

/* ₽ (U+20BD) живёт в latin-ext сабсете Inter, которого нет в базовой загрузке
   шрифта на странице → .notdef-квадрат вместо рубля. Дохостим официальный
   latin-ext Inter (файл уже в проекте, тот же, что для карточки площадки vd-);
   unicode-range включает U+20AD-20C0 → ₽ рендерится тем же Inter, что и цифры. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/inter/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.atr-root {
  --atr-accent: #FE5D26;
  --atr-accent-hover: #D95427;
  --atr-black: #312D2B;
  --atr-text: #272F3D;
  --atr-bg: #F6F6F6;

  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--atr-text);
  background-color: var(--atr-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.atr-root *,
.atr-root *::before,
.atr-root *::after {
  box-sizing: border-box;
}

.atr-root :where(h1, h2, h3, h4, p, ul) { margin: 0; }

.atr-root a { text-decoration: none; }
/* крошки .bc стилизуются глобально (add2024.css); не перебиваем их цвет
   page-scoped ресетом (равная специфичность, atrium.css грузится позже) */
.atr-root a:not([class]):not(.bc a) { color: inherit; }
.atr-root img { max-width: 100%; height: auto; display: block; }
.atr-root button { font-family: inherit; }

.atr-container {
  max-width: 1327px; /* контент 1297px (1327 − 2×15) */
  margin: 0 auto;
  padding: 0 15px;
}

/* Якорные секции (#plans, #contact из CTA) — отступ при скролле под фикс-шапку */
.atr-plans,
.atr-contact { scroll-margin-top: 100px; }

/* ---- Shared ---- */
.atr-section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--atr-black);
  letter-spacing: -0.02em;
}

.atr-section-sub {
  font-size: 15px;
  color: rgba(49, 45, 43, 0.5);
  margin-top: 6px;
}

/* ---- Hero ---- */
/* Hero встык к верху страницы: глобальный main{margin-top:91px} (и мобильный
   main:not(.main-page25){margin-top:91px!important}) отодвигал hero под шапку,
   оставляя белый зазор сверху. Зануляем — hero full-bleed, фикс-шапка плавает
   поверх (как на главной). atrium.css грузится после header-2025.css, поэтому
   !important здесь перебивает мобильное правило. Контент hero (align-items:flex-end)
   остаётся далеко ниже шапки, под неё не уходит. */
main:has(> .atr-hero) {
  margin-top: 0 !important;
}
.atr-hero {
  position: relative;
  height: 92vh;
  min-height: 600px;
  max-height: 920px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-radius: 0 0 32px 32px;
}

.atr-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 0 0 32px 32px;
  overflow: hidden;
}

.atr-hero-video {
  position: absolute;
  display: block;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 0 32px 32px;
}

.atr-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 50%, transparent 100%);
}

.atr-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1327px;
  margin: 0 auto;
  padding: 0 48px 80px;
  width: 100%;
}

.atr-hero-label {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #FE5D26;
  margin-bottom: 20px;
  line-height: 1.2;
}

.atr-hero-title {
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: #FFF;
  margin-bottom: 28px;
  max-width: 1000px;
}

.atr-hero-accent { color: #FE5D26; }

.atr-hero-desc {
  font-size: 18px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin-bottom: 40px;
}

.atr-hero-ctas { display: flex; gap: 16px; }

.atr-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 8px;
  background: #FE5D26;
  color: #FFF;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s;
  letter-spacing: -0.01em;
}

.atr-btn-primary:hover { background: #D95427; }
.atr-btn-primary:active { transform: scale(0.97); }

.atr-btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  color: var(--atr-black);
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.25s;
  letter-spacing: -0.01em;
}

.atr-btn-glass:hover { background: #FFF; }

/* ---- Gallery Slider ---- */
.atr-gallery {
  padding: 96px 0;
  background: var(--atr-bg);
  overflow: hidden;
}

.atr-gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.atr-gallery-nav { display: flex; gap: 8px; }

.atr-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #E1E3E3;
  color: var(--atr-black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.atr-nav-btn:hover { background: #FE5D26; color: #FFF; }

.atr-nav-btn-disabled { opacity: 0.3; pointer-events: none; }

.atr-gallery-viewport {
  overflow-x: auto;
  scrollbar-width: none;
}
.atr-gallery-viewport::-webkit-scrollbar { display: none; }
.atr-gallery-viewport--drag { cursor: grabbing; user-select: none; }

.atr-gallery-track {
  display: flex;
  gap: 24px;
}

.atr-gallery-slide {
  flex: 0 0 auto;
  height: 450px;
  border-radius: 16px;
  overflow: hidden;
}

.atr-gallery-slide > a {
  display: block;
  height: 100%;
  cursor: pointer;
}

.atr-gallery-slide.atr-lb-item { cursor: pointer; }

.atr-gallery-slide img {
  height: 100%;
  width: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

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

.atr-gallery-scrollbar {
  margin-top: 24px;
  height: 4px;
  background: rgba(49, 45, 43, 0.08);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.atr-gallery-scrollbar-thumb {
  position: absolute;
  top: 0;
  height: 100%;
  background: #FE5D26;
  border-radius: 2px;
  transition: left 0.1s;
  cursor: grab;
}

.atr-gallery-scrollbar-thumb:active { cursor: grabbing; transition: none; }

/* ---- Floor Plans ---- */
.atr-plans {
  padding: 120px 0;
  background: #F0F1F1;
}

.atr-plans-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
}

.atr-plans-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #FE5D26;
  margin-bottom: 16px;
}

.atr-plans-title {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--atr-black);
  margin-bottom: 20px;
  line-height: 1.05;
}

.atr-plans-desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(49, 45, 43, 0.55);
  margin-bottom: 32px;
}

.atr-plans-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.atr-plans-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* селектор через `>`: `.atr-plans-list-item span` ниже иначе перебивает */
.atr-plans-list-item > .atr-plans-list-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #E1E3E3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--atr-accent);
}

.atr-plans-list-item span {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--atr-black);
}

.atr-plans-list-item p {
  font-size: 16px;
  color: rgba(49, 45, 43, 0.5);
  margin-top: 2px;
}

.atr-plans-viewer { display: flex; flex-direction: column; }

.atr-plans-screen {
  height: 500px;
  background: #FFF;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.atr-plans-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
}

.atr-plans-model { width: 100%; height: 100%; }

.atr-plans-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-radius: 0 0 20px 20px;
  padding: 12px;
  gap: 8px;
  flex-wrap: wrap;
}

.atr-plans-tab {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: var(--atr-black);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.atr-plans-tab:hover { background: rgba(49, 45, 43, 0.05); }
.atr-plans-tab-active,
.atr-plans-tab-active:hover { background: #FE5D26; color: #FFF; }

/* ---- Formats ---- */
.atr-formats {
  padding: 96px 0;
  background: var(--atr-bg);
}

.atr-formats-section-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--atr-black);
  text-align: center;
  margin-bottom: 48px;
}

.atr-formats-tabs {
  display: flex;
  justify-content: center;
  gap: 48px;
  border-bottom: 1px solid rgba(49, 45, 43, 0.08);
  margin-bottom: 48px;
}

.atr-formats-tab {
  padding-bottom: 20px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  font-size: 16px;
  font-weight: 500;
  color: rgba(49, 45, 43, 0.45);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.atr-formats-tab:hover { color: var(--atr-black); }

.atr-formats-tab-active {
  color: #FE5D26;
  border-bottom-color: #FE5D26;
  font-weight: 700;
}

.atr-formats-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.atr-formats-image {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.atr-formats-slider {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-y;
  cursor: grab;
}
.atr-formats-slider::-webkit-scrollbar { display: none; }
.atr-formats-slider--drag { cursor: grabbing; user-select: none; scroll-snap-type: none; }

.atr-formats-track { display: flex; }

.atr-formats-slide {
  flex: 0 0 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  scroll-snap-align: start;
}

.atr-formats-slide img,
.atr-formats-slide > a {
  width: 100%;
  height: 100%;
  display: block;
}

.atr-formats-slide img {
  object-fit: cover;
  cursor: pointer;
}

.atr-formats-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

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

.atr-formats-dot-active { background: #FFF; }

.atr-formats-body { display: flex; flex-direction: column; }

.atr-formats-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--atr-black);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.atr-formats-desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(49, 45, 43, 0.55);
  margin-bottom: 28px;
}

.atr-formats-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.atr-formats-stat {
  padding: 16px;
  background: #E7E8E8;
  border-radius: 16px;
}

.atr-formats-stat-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #FE5D26;
}

.atr-formats-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(49, 45, 43, 0.45);
}

.atr-formats-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #FE5D26;
  transition: gap 0.2s;
}

.atr-formats-link:hover { gap: 12px; }

/* ---- Promo Banner ---- */
.atr-promo { padding: 48px 0; }

.atr-promo-banner {
  background: linear-gradient(135deg, var(--atr-accent) 30%, #7B2FF2 120%);
  border-radius: 32px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.atr-promo-text { position: relative; z-index: 1; }

.atr-promo-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  color: #FFF;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.atr-promo-highlight {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.atr-promo-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  font-weight: 500;
  margin-top: 12px;
}

.atr-promo-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 20px 40px;
  border-radius: 999px;
  background: #FFF;
  color: #FE5D26;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s;
}

.atr-promo-btn:hover { transform: scale(1.05); }

.atr-promo-circle1 {
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: #FFF;
  opacity: 0.06;
}

.atr-promo-circle2 {
  position: absolute;
  left: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #FFF;
  opacity: 0.05;
}

/* ---- Cases ---- */
.atr-cases {
  padding: 96px 0;
  background: #F0F1F1;
}

.atr-cases-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.atr-cases-viewport {
  overflow-x: auto;
  padding: 16px 0;
  margin: -16px 0;
  scrollbar-width: none;
}
.atr-cases-viewport::-webkit-scrollbar { display: none; }
.atr-cases-viewport--drag { cursor: grabbing; user-select: none; }

.atr-cases-track {
  display: flex;
  gap: 24px;
}

.atr-case-slide {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 300px;
}

.atr-case-card {
  display: block;
  width: 100%;
  text-align: left;
  background: #FFF;
  border-radius: 20px;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s, transform 0.3s;
}

.atr-case-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.atr-case-img-wrap { height: 240px; overflow: hidden; }

.atr-case-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.atr-case-card:hover .atr-case-img { transform: scale(1.08); }

.atr-case-body { padding: 24px; }

.atr-case-type {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #FE5D26;
  margin-bottom: 8px;
}

.atr-case-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--atr-black);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.atr-case-desc {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(49, 45, 43, 0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Modal ---- */
.atr-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  padding: 24px;
  animation: atr-fade-in 0.2s ease;
}

.atr-modal[hidden] { display: none; }

@keyframes atr-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.atr-modal-content {
  background: #FFF;
  border-radius: 24px;
  overflow: hidden;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: atr-slide-up 0.3s ease;
}

@keyframes atr-slide-up {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.atr-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--atr-black);
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.atr-modal-nav:hover { background: #fff; }
.atr-modal-nav svg { width: 22px; height: 22px; }
.atr-modal-nav[hidden] { display: none; }

.atr-modal-nav-prev { left: calc(50% - 384px); }
.atr-modal-nav-next { right: calc(50% - 384px); }

.atr-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--atr-black);
  transition: background 0.2s;
}

.atr-modal-close:hover { background: #FFF; }

.atr-modal-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

.atr-modal-body { padding: 32px; }

.atr-modal-type {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #FE5D26;
  margin-bottom: 8px;
}

.atr-modal-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--atr-black);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.atr-modal-desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(49, 45, 43, 0.6);
  margin-bottom: 24px;
}

.atr-modal-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.atr-modal-meta-item { display: flex; flex-direction: column; gap: 2px; }

.atr-modal-meta-value { font-size: 24px; font-weight: 700; color: #FE5D26; }

.atr-modal-meta-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(49, 45, 43, 0.45);
}

.atr-modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  background: #FE5D26;
  color: #FFF;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.atr-modal-btn:hover { background: #D95427; }

/* ---- Contact ---- */
.atr-contact {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--atr-bg);
}

.atr-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  position: relative;
  z-index: 1;
}

.atr-contact-title {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--atr-black);
  line-height: 1.1;
  margin-bottom: 20px;
}

.atr-contact-desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(49, 45, 43, 0.55);
  max-width: 420px;
  margin-bottom: 40px;
}

.atr-contact-info { display: flex; flex-direction: column; gap: 20px; }

.atr-contact-info-item { display: flex; gap: 16px; align-items: center; }

.atr-contact-info-item > div { display: flex; flex-direction: column; gap: 2px; }

.atr-contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #E1E3E3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FE5D26;
}

.atr-contact-info-link {
  font-size: 16px;
  font-weight: 700;
  color: var(--atr-black);
}

.atr-contact-info-link:hover { color: #FE5D26; }

.atr-contact-info-text { font-size: 15px; font-weight: 500; color: var(--atr-black); }

.atr-contact-info-note { font-size: 13px; color: rgba(49, 45, 43, 0.45); }

.atr-contact-form {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.06);
  border: 1px solid #FFF;
}

.atr-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.atr-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.atr-form-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(49, 45, 43, 0.5);
}

.atr-form-input,
.atr-form-textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #E7E8E8;
  font-family: inherit;
  font-size: 15px;
  color: var(--atr-black);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.atr-form-input:focus,
.atr-form-textarea:focus {
  border-color: #FE5D26;
  box-shadow: 0 0 0 2px rgba(254, 93, 38, 0.16);
}

.atr-form-textarea { resize: none; min-height: 100px; overflow: hidden; }

/* Custom dropdown */
.atr-dropdown { position: relative; }

.atr-dropdown-trigger {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #E7E8E8;
  font-family: inherit;
  font-size: 15px;
  color: var(--atr-black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.atr-dropdown-trigger:focus {
  border-color: #FE5D26;
  box-shadow: 0 0 0 2px rgba(254, 93, 38, 0.16);
  outline: none;
}

.atr-dropdown-chevron {
  transition: transform 0.2s;
  color: rgba(49, 45, 43, 0.4);
  display: flex;
}

.atr-dropdown-chevron-open { transform: rotate(180deg); }

.atr-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  z-index: 10;
  padding: 6px;
  display: flex;
  flex-direction: column;
}

.atr-dropdown-menu[hidden] { display: none; }

.atr-dropdown-option {
  padding: 12px 14px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--atr-black);
  cursor: pointer;
  text-align: left;
  border-radius: 8px;
  transition: background 0.15s;
}

.atr-dropdown-option:hover { background: rgba(49, 45, 43, 0.05); }

.atr-dropdown-option-active { color: #FE5D26; background: rgba(254, 93, 38, 0.06); }

.atr-form-submit {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: none;
  background: #FE5D26;
  color: #FFF;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s;
}

.atr-form-submit:hover { background: #D95427; }
.atr-form-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.atr-contact-success { text-align: center; padding: 40px 0; }

.atr-contact-success h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--atr-black);
  margin-bottom: 8px;
}

.atr-contact-success p { font-size: 15px; color: rgba(49, 45, 43, 0.55); }

/* ---- Map ---- */
.atr-map { padding: 0 0 80px; }

.atr-map-wrap {
  border-radius: 20px;
  overflow: hidden;
  min-height: 400px;
  background: #E1E3E3;
}

.atr-map-wrap iframe { display: block; border: 0; border-radius: 20px; }

/* ---- Lightbox (ваниль, замена Fancybox) ---- */
.atr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: atr-fade-in 0.2s ease;
}
.atr-lightbox[hidden] { display: none; }

.atr-lightbox-img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
}

.atr-lightbox-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.atr-lightbox-btn:hover { background: rgba(255, 255, 255, 0.25); }
.atr-lightbox-btn[hidden] { display: none; }

.atr-lightbox-close { top: 24px; right: 24px; }
.atr-lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.atr-lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

.atr-lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  text-align: center;
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 991px) {
  .atr-hero-content { padding: 0 32px 60px; }
  .atr-hero-title { font-size: clamp(36px, 6vw, 64px); }
  .atr-gallery-slide { height: 400px; }
  .atr-plans-grid { grid-template-columns: 1fr; gap: 40px; }
  .atr-plans-screen { height: 400px; }
  .atr-formats-content { grid-template-columns: 1fr; gap: 32px; }
  .atr-promo-banner { flex-direction: column; text-align: center; padding: 40px 32px; }
  .atr-case-slide { flex: 0 0 calc(50% - 12px); min-width: 280px; }
  .atr-contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .atr-modal-nav-prev { left: 12px; }
  .atr-modal-nav-next { right: 12px; }
}

@media (max-width: 768px) {
  /* перебиваем глобальное style.css: section{margin-bottom:60px} на мобилке */
  .atr-root section { margin-bottom: 0; }
  .atr-hero { height: 80vh; min-height: 500px; }
  .atr-hero-content { padding: 0 20px 48px; }
  .atr-hero-title { font-size: 37px; }
  .atr-hero-desc { font-size: 16px; }
  .atr-hero-ctas { flex-direction: column; gap: 5px; }
  .atr-btn-primary, .atr-btn-glass { justify-content: center; }
  .atr-section-title { font-size: 28px; }
  .atr-gallery, .atr-formats, .atr-cases, .atr-contact { padding: 40px 0; }
  .atr-plans { padding: 40px 0; }
  .atr-gallery-slide { height: 300px; border-radius: 0; }
  .atr-gallery-track { gap: 8px; }
  .atr-gallery-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .atr-gallery-nav { display: none; }
  .atr-plans-title { font-size: 32px; }
  .atr-plans-screen { height: 300px; }
  .atr-plans-tabs { gap: 4px; padding: 8px; }
  .atr-plans-tab { font-size: 12px; padding: 8px 12px; }
  .atr-formats-section-title { font-size: 28px; margin-bottom: 32px; }
  .atr-formats-tabs { gap: 24px; margin-bottom: 32px; }
  .atr-formats-tab { font-size: 14px; }
  .atr-formats-title { font-size: 24px; }
  .atr-promo-title { font-size: 28px; }
  .atr-cases-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .atr-case-slide { flex: 0 0 85%; min-width: 260px; }
  .atr-contact-title { font-size: 32px; }
  .atr-form-row { grid-template-columns: 1fr; }
  .atr-contact-form { padding: 24px; }
}

@media (max-width: 480px) {
  .atr-hero-title { font-size: 37px; }
  .atr-gallery-slide { height: 220px; }
  .atr-promo-banner { padding: 32px 20px; }
  .atr-promo-btn { padding: 16px 28px; font-size: 14px; }
  .atr-plans-screen { height: 240px; }
}
