/* ============================================================
   ТЕХНОПАРК «БИОТЕХ» — style.css
   Палитра: графит #15181d / жёлтый акцент #ffc82e / светлый фон
   Шрифт: Manrope (Google Fonts, кириллица)
   ============================================================ */

/* ---------- База ---------- */
:root {
  --c-dark: #15181d;
  --c-graphite: #1f242c;
  --c-graphite-2: #262c35;
  --c-accent: #ffc82e;
  --c-accent-deep: #f0b400;
  --c-bg: #ffffff;
  --c-muted: #f4f5f7;
  --c-text: #23272e;
  --c-gray: #6b7280;
  --c-line: #e5e7eb;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 45px -18px rgba(21, 24, 29, .25);
  --tr: .28s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', 'Segoe UI', Arial, sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 0;
  border-radius: 100px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform var(--tr), box-shadow var(--tr), background var(--tr), color var(--tr);
  white-space: nowrap;
}

.btn--accent {
  background: var(--c-accent);
  color: var(--c-dark);
  box-shadow: 0 10px 24px -10px rgba(240, 180, 0, .55);
}
.btn--accent:hover { background: var(--c-accent-deep); transform: translateY(-2px); }

.btn--dark { background: var(--c-dark); color: #fff; }
.btn--dark:hover { background: var(--c-graphite-2); transform: translateY(-2px); }

.btn--ghost {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .22); transform: translateY(-2px); }

.btn--sm { padding: 10px 20px; font-size: 13px; }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 24, 29, .92);
  backdrop-filter: blur(10px);
  color: #fff;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 74px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .02em;
  flex-shrink: 0;
}

.logo__mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--c-accent);
  color: var(--c-dark);
  border-radius: 10px;
  font-size: 22px;
  font-weight: 800;
}

.logo__text { display: flex; flex-direction: column; line-height: 1.15; font-size: 15px; text-transform: uppercase; }
.logo__accent { color: var(--c-accent); }

.main-nav { margin-left: auto; }

.main-nav__close { display: none; }

.main-nav__list {
  display: flex;
  gap: 4px;
}

.main-nav__list a {
  display: block;
  padding: 9px 14px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
  transition: background var(--tr), color var(--tr);
}

.main-nav__list a:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.main-nav__list a.is-active {
  background: var(--c-accent);
  color: var(--c-dark);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header__phone {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  transition: color var(--tr);
}
.site-header__phone:hover { color: var(--c-accent); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--tr), opacity var(--tr);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(21, 24, 29, .55);
  z-index: 90;
}
.nav-overlay.is-open { display: block; }

/* ---------- Hero-слайдер (главная) ---------- */
.hero {
  position: relative;
  background: var(--c-dark);
  color: #fff;
  overflow: hidden;
}

.hero__slides { position: relative; }

.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
}

.hero__slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(21, 24, 29, .92) 20%, rgba(21, 24, 29, .55) 55%, rgba(21, 24, 29, .25) 100%);
}

.hero__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: 120px 170px;
  max-width: 1240px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 18px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 200, 46, .45);
  border-radius: 100px;
}

.hero__title {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.08;
  font-weight: 800;
  max-width: 780px;
  margin-bottom: 22px;
}

.hero__title span { color: var(--c-accent); }

.hero__text {
  font-size: 17px;
  max-width: 560px;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 34px;
}

.hero__btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
}

.hero__arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  transition: background var(--tr), border-color var(--tr);
}
.hero__arrow:hover { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-dark); }

.hero__counter { font-size: 14px; letter-spacing: .1em; }
.hero__counter b { font-size: 19px; color: var(--c-accent); }
.hero__counter i { font-style: normal; opacity: .6; }

.hero__dots { display: flex; gap: 8px; margin-left: 10px; }

.hero__dot {
  width: 26px;
  height: 4px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, .3);
  cursor: pointer;
  transition: background var(--tr), width var(--tr);
}
.hero__dot.is-active { background: var(--c-accent); width: 40px; }

/* ---------- Секции: общее ---------- */
.section { padding: 88px 0; }

.section--muted { background: var(--c-muted); }

.section--dark { background: var(--c-dark); color: #fff; }

.section__eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-accent-deep);
  margin-bottom: 12px;
}

.section--dark .section__eyebrow { color: var(--c-accent); }

.section__title {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 20px;
}

.section__sub { color: var(--c-gray); font-size: 16px; margin-bottom: 36px; }

/* ---------- Главная: О проекте ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.about__text p { color: var(--c-gray); margin-bottom: 18px; }
.about__text .btn { margin-top: 12px; }

.about__media { position: relative; }

.about__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10.5;
  object-fit: cover;
  width: 100%;
}

.about__badge {
  position: absolute;
  left: -22px;
  bottom: 28px;
  background: var(--c-accent);
  color: var(--c-dark);
  border-radius: var(--radius-sm);
  padding: 16px 22px;
  box-shadow: var(--shadow);
}
.about__badge b { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; }
.about__badge span { font-size: 13px; font-weight: 600; }

/* ---------- Цифры (счётчики) ---------- */
.stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.stats__item {
  background: var(--c-muted);
  border-radius: var(--radius);
  padding: 26px 22px;
  border-top: 4px solid var(--c-accent);
}

.section--muted .stats__item,
.section--dark .stats__item { background: #fff; }

.stats__num {
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: var(--c-dark);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stats__item span { font-size: 13px; color: var(--c-gray); font-weight: 600; }

/* ---------- Преимущества (карточки) ---------- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 14px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--c-accent);
}

.feature-card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--c-dark);
  border-radius: 14px;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--c-gray); }

/* ---------- Инфраструктура (полоса мощностей) ---------- */
.infra__head { max-width: 720px; margin-bottom: 40px; }
.infra__head .section__sub { margin-bottom: 0; }

.infra__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.infra__item {
  background: var(--c-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 22px;
  position: relative;
  overflow: hidden;
}

.infra__item::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--c-accent);
}

.infra__item b { display: block; font-size: 27px; font-weight: 800; color: var(--c-accent); margin-bottom: 6px; }
.infra__item span { font-size: 13px; color: rgba(255, 255, 255, .75); font-weight: 600; }

/* ---------- Резиденты ---------- */
.residents-preview__head,
.news-preview__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
  flex-wrap: wrap;
}

.residents-preview__head .section__title,
.news-preview__head .section__title { margin-bottom: 0; }

.residents-preview__grid,
.residents__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.resident-card {
  background: var(--c-graphite);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--tr), border-color var(--tr), background var(--tr);
}

.resident-card:hover { transform: translateY(-5px); border-color: var(--c-accent); }

.resident-card h3 { font-size: 17px; font-weight: 800; }

.resident-card p { font-size: 13.5px; color: rgba(255, 255, 255, .65); flex-grow: 1; }

.resident-card__area {
  align-self: flex-start;
  background: rgba(255, 200, 46, .14);
  color: var(--c-accent);
  font-weight: 800;
  font-size: 14px;
  padding: 7px 14px;
  border-radius: 100px;
}

/* Страница резидентов — светлые карточки */
.residents__grid .resident-card {
  background: #fff;
  border: 1px solid var(--c-line);
  box-shadow: 0 8px 24px -14px rgba(21, 24, 29, .18);
}
.residents__grid .resident-card:hover { border-color: var(--c-accent); }
.residents__grid .resident-card p { color: var(--c-gray); }

.residents__grid .resident-card--free {
  background: var(--c-muted);
  border-style: dashed;
  border-color: var(--c-accent-deep);
}

.resident-card__area--free { background: var(--c-accent); color: var(--c-dark); }

/* ---------- Свободные площади: CTA-блок на главной ---------- */
.spaces-cta__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.spaces-cta__text p { color: var(--c-gray); margin-bottom: 26px; }
.spaces-cta__btns { display: flex; gap: 14px; flex-wrap: wrap; }

.spaces-cta__plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.spaces-cta__plans img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-line);
  background: #fff;
  padding: 10px;
  box-shadow: var(--shadow);
}

/* ---------- Новости ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-grid--list { grid-template-columns: repeat(2, 1fr); }

.news-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--tr), box-shadow var(--tr);
}

.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.news-card__date {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-accent-deep);
}

.news-card h3 { font-size: 17px; font-weight: 800; line-height: 1.3; }
.news-card p { font-size: 14px; color: var(--c-gray); flex-grow: 1; }

.news-card__link { font-weight: 800; font-size: 14px; color: var(--c-dark); }
.news-card__link:hover { color: var(--c-accent-deep); }

/* ---------- CTA / форма ---------- */
.cta__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.cta__text p { color: rgba(255, 255, 255, .75); margin-bottom: 22px; }

.cta__list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 15px;
}

.cta__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--c-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.2 12.2 2.3 8.3l1.4-1.4 2.5 2.5 5.7-5.7 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.2 12.2 2.3 8.3l1.4-1.4 2.5 2.5 5.7-5.7 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.cta__list--dark li { color: var(--c-text); }

.cta--simple { text-align: center; }
.cta__center { max-width: 640px; }
.cta__center p { color: rgba(255, 255, 255, .75); margin-bottom: 28px; }

.lead-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 32px;
  box-shadow: var(--shadow);
}

.lead-form__title { font-size: 20px; font-weight: 800; margin-bottom: 18px; color: var(--c-text); }

.lead-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lead-form__field { display: block; margin-bottom: 14px; }

.lead-form__field span {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c-gray);
  margin-bottom: 6px;
}

.lead-form__field input,
.lead-form__field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 14.5px;
  color: var(--c-text);
  background: var(--c-muted);
  transition: border-color var(--tr), background var(--tr);
  resize: vertical;
}

.lead-form__field input:focus,
.lead-form__field textarea:focus {
  outline: none;
  border-color: var(--c-accent-deep);
  background: #fff;
}

.lead-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--c-gray);
  margin: 6px 0 18px;
  cursor: pointer;
}

.lead-form__consent input { width: 17px; height: 17px; accent-color: var(--c-accent-deep); margin-top: 2px; }

.lead-form__success {
  margin-top: 14px;
  padding: 12px 16px;
  background: #e9f9ee;
  border: 1px solid #9adcb0;
  color: #1c7a38;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
}

/* ---------- Модальное окно с формой ---------- */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lead-modal.is-open { display: flex; }

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 24, 29, .65);
  backdrop-filter: blur(3px);
}

.lead-modal__dialog {
  position: relative;
  width: min(560px, 100%);
  background: #fff;
  border-radius: var(--radius);
  padding: 38px 36px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  animation: modalIn .3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.lead-modal__dialog .lead-form { padding: 0; box-shadow: none; }

.lead-modal__close {
  position: absolute;
  top: 14px; right: 16px;
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--c-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--c-text);
  transition: background var(--tr);
}
.lead-modal__close:hover { background: var(--c-accent); }

.lead-modal__eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-accent-deep);
  margin-bottom: 8px;
}

.lead-modal__title { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.lead-modal__sub { font-size: 14px; color: var(--c-gray); margin-bottom: 22px; }

/* ---------- Внутренние страницы: page-hero ---------- */
.page-hero {
  background: var(--c-dark);
  color: #fff;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -140px;
  top: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 46, .22), transparent 65%);
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 18px;
}
.breadcrumbs a:hover { color: var(--c-accent); }
.breadcrumbs b { color: var(--c-accent); font-weight: 700; }

.page-hero__title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.page-hero__sub {
  max-width: 720px;
  color: rgba(255, 255, 255, .75);
  font-size: 16px;
  position: relative;
  z-index: 1;
}

/* ---------- Страница «Услуги и льготы» ---------- */
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.benefit-card {
  background: var(--c-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform var(--tr);
}
.benefit-card:hover { transform: translateY(-5px); }

.benefit-card b {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  height: 58px;
  padding-inline: 12px;
  background: var(--c-accent);
  color: var(--c-dark);
  border-radius: 14px;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
}

.benefit-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.benefit-card p { font-size: 14px; color: rgba(255, 255, 255, .7); }

.digital__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 14px;
}

.digital-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 32px 30px;
  border-top: 4px solid var(--c-accent);
}

.digital-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.digital-card p { font-size: 14.5px; color: var(--c-gray); margin-bottom: 14px; }

.digital-card ul li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--c-text);
  margin-bottom: 10px;
  font-weight: 600;
}

.digital-card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--c-accent);
}

.transport__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.transport__text p { color: var(--c-gray); margin-bottom: 24px; }

.transport__routes li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 14.5px;
}
.transport__routes b { font-weight: 800; }
.transport__routes span { color: var(--c-gray); text-align: right; }

.transport__media img {
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow);
}

/* ---------- Страница «Свободные площади» ---------- */
.floor-tabs {
  display: inline-flex;
  gap: 6px;
  background: var(--c-muted);
  border-radius: 100px;
  padding: 6px;
  margin-bottom: 30px;
}

.floor-tabs__btn {
  border: 0;
  background: transparent;
  padding: 11px 30px;
  border-radius: 100px;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  color: var(--c-gray);
  cursor: pointer;
  transition: background var(--tr), color var(--tr);
}

.floor-tabs__btn.is-active { background: var(--c-dark); color: var(--c-accent); }

.floor-plan { display: none; }
.floor-plan.is-active { display: block; animation: fadeIn .4s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.floor-plan img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow);
}

.floor-plan figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--c-gray);
  font-weight: 600;
}

.spaces-table__wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  margin-bottom: 26px;
}

.spaces-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.spaces-table th {
  text-align: left;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-gray);
  padding: 18px 22px;
  background: var(--c-muted);
}

.spaces-table td {
  padding: 18px 22px;
  border-top: 1px solid var(--c-line);
  font-size: 14.5px;
  font-weight: 600;
}

.status {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 800;
}

.status--free { background: #e9f9ee; color: #1c7a38; }

.spaces-note { color: var(--c-gray); font-size: 14.5px; margin-bottom: 18px; }

/* ---------- Страница «Контакты» ---------- */
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contacts__block { margin-bottom: 34px; }

.contacts__heading {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent-deep);
  margin-bottom: 12px;
}

.contacts__block p { font-size: 15px; margin-bottom: 10px; }

.contacts__requisites { color: var(--c-gray); font-size: 13.5px; }

.contacts__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 15px;
}

.contacts__list span { color: var(--c-gray); font-size: 13.5px; }
.contacts__list a { font-weight: 800; }
.contacts__list a:hover { color: var(--c-accent-deep); }

.contacts__map img {
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

/* ---------- Футер ---------- */
.site-footer {
  background: var(--c-dark);
  color: #fff;
  padding: 64px 0 30px;
  border-top: 4px solid var(--c-accent);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr .8fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 44px;
}

.logo--footer { margin-bottom: 18px; }

.site-footer__uk { font-weight: 700; font-size: 14.5px; margin-bottom: 10px; }
.site-footer__addr { color: rgba(255, 255, 255, .6); font-size: 13.5px; }

.site-footer__title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 16px;
}

.site-footer__nav li,
.site-footer__contacts li { margin-bottom: 10px; font-size: 14px; }

.site-footer__nav a { color: rgba(255, 255, 255, .75); transition: color var(--tr); }
.site-footer__nav a:hover { color: var(--c-accent); }

.site-footer__contacts a { font-weight: 700; }
.site-footer__contacts a:hover { color: var(--c-accent); }
.site-footer__site { color: rgba(255, 255, 255, .6); font-size: 13px; }

.site-footer__note { color: rgba(255, 255, 255, .6); font-size: 13.5px; margin-bottom: 18px; }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}

.site-footer__bottom a { color: var(--c-accent); }

/* ---------- Reveal-анимации ---------- */
/* Прячем блоки только когда есть JS (html.js ставится инлайн-скриптом в <head>).
   Без JS весь контент виден сразу. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 1100px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .infra__grid { grid-template-columns: repeat(3, 1fr); }
  .residents-preview__grid,
  .residents__grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .site-header__phone { display: none; }
  .main-nav__list a { padding: 9px 10px; font-size: 13px; }
}

@media (max-width: 920px) {
  .about__grid,
  .spaces-cta__grid,
  .transport__grid,
  .cta__grid,
  .contacts__grid { grid-template-columns: 1fr; gap: 40px; }
  .digital__grid { grid-template-columns: 1fr; }
  .benefits__grid { grid-template-columns: 1fr; }
  .about__badge { left: 12px; }

  /* Мобильное меню */
  .burger { display: inline-flex; }
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(340px, 86vw);
    background: var(--c-dark);
    z-index: 120;
    transform: translateX(105%);
    transition: transform .35s ease;
    padding: 26px 24px;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: none; box-shadow: -20px 0 60px rgba(0, 0, 0, .4); }
  .main-nav__list { flex-direction: column; gap: 6px; margin-top: 20px; }
  .main-nav__list a { font-size: 16px; padding: 13px 16px; }
  .main-nav__close {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    margin-left: auto;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
  }
  .site-header__actions .btn { display: none; }

  .hero__content { padding-block: 90px 150px; }
  .section { padding: 64px 0; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 36px); }

  .features__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .infra__grid { grid-template-columns: repeat(2, 1fr); }
  .residents-preview__grid,
  .residents__grid { grid-template-columns: 1fr; }
  .news-grid,
  .news-grid--list { grid-template-columns: 1fr; }
  .spaces-cta__plans { grid-template-columns: 1fr; }
  .lead-form__row { grid-template-columns: 1fr; }
  .lead-form { padding: 26px 22px; }
  .lead-modal__dialog { padding: 30px 22px; }

  .hero__title { font-size: 30px; }
  .hero__text { font-size: 15px; }
  .hero__controls { gap: 10px; bottom: 26px; }
  .hero__dots { display: none; }

  .stats__num { font-size: 26px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; gap: 8px; }
  .floor-tabs { width: 100%; }
  .floor-tabs__btn { flex: 1; padding: 11px 10px; }
}

/* ============================================================
   CMS «Артлекс»: служебные компоненты
   (согласие в формах, успешная отправка, cookie, «наверх»)
   ============================================================ */

/* Honeypot-поле от ботов (скрыто от людей) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Ошибки валидации полей формы */
.lead-form input.is-error,
.lead-form textarea.is-error { border-color: #e05555 !important; box-shadow: 0 0 0 3px rgba(224, 85, 85, .15); }

/* Галочка согласия, которую CMS добавляет во все формы .js-form */
.checkbox--consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; line-height: 1.5; color: var(--c-gray); margin: 0 0 16px; cursor: pointer; }
.checkbox--consent input { width: 17px; height: 17px; accent-color: var(--c-accent-deep); margin-top: 1px; flex: none; }
.checkbox--consent a { color: inherit; text-decoration: underline; }
.checkbox--consent.is-error { color: #e05555; }
.section--dark .checkbox--consent { color: rgba(255, 255, 255, .75); }

/* Блок успешной отправки (подменяет форму) */
.form-success { text-align: center; padding: 26px 10px; }
.form-success__icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--c-accent); display: flex; align-items: center; justify-content: center; }
.form-success__icon svg { width: 32px; height: 32px; }
.form-success__icon svg path { stroke: var(--c-dark) !important; }
.form-success h4 { font-size: 21px; font-weight: 800; margin: 0 0 8px; color: inherit; }
.form-success p { font-size: 14.5px; opacity: .8; max-width: 380px; margin: 0 auto; }

/* Cookie-уведомление (всплывающая плашка) */
.cookie-pop.hidden { display: none; }
.cookie-pop { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900; margin: 0 auto; max-width: 720px; background: var(--c-graphite); color: #fff; border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.cookie-pop p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.cookie-pop .btn { flex: none; }

/* Cookie-полоса в подвале */
.footer__cookie { background: rgba(255, 255, 255, .06); padding: 12px 0; font-size: 12.5px; color: rgba(255, 255, 255, .65); }

/* Кнопка «Наверх» */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 800; width: 46px; height: 46px; border: none; border-radius: 12px; background: var(--c-accent); color: var(--c-dark); cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s, background .2s; box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--c-accent-deep); }
.to-top svg { width: 20px; height: 20px; }

@media (max-width: 640px) {
  .cookie-pop { flex-direction: column; align-items: stretch; text-align: center; }
  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}
