/* ============================
   CSS Variables & Reset
   ============================ */
:root {
  --red: #d41919;
  --red-dark: #b51515;
  --red-light: #ff2d2d;
  --black: #0a0a0a;
  --dark: #1a1a2e;
  --dark-card: #242440;
  --gray-900: #1f1f1f;
  --gray-800: #2a2a2a;
  --gray-700: #3a3a3a;
  --gray-600: #4a4a4a;
  --gray-400: #8a8a8a;
  --gray-300: #b0b0b0;
  --gray-200: #d4d4d4;
  --gray-100: #f0f0f0;
  --gray-50: #f8f8f8;
  --white: #ffffff;
  --yellow: #ffd700;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Montserrat', 'Inter', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-red: 0 8px 30px rgba(212,25,25,0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-red { color: var(--red); }

/* ============================
   Lightbox
   ============================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  cursor: zoom-out;
}

.lightbox--open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  cursor: default;
  transition: transform 0.3s;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 1;
}

.lightbox__close:hover {
  opacity: 1;
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 2.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s;
  z-index: 1;
}

.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255,255,255,0.2);
}

[data-lightbox] img {
  cursor: zoom-in;
}

/* ============================
   Animations
   ============================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================
   Header
   ============================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-light), var(--red));
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 24px;
}

.header__logo {
  flex-shrink: 0;
}

.header__logo-img {
  height: 36px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 auto;
}

.header__link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-600);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: var(--transition);
}

.header__link:hover {
  color: var(--red);
}

.header__link:hover::after {
  width: 100%;
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-900);
}

.header__phone:hover {
  color: var(--red);
}

.header__mobile-contacts {
  display: none;
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gray-900);
  border-radius: 1px;
  transition: var(--transition);
}

.header__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================
   Hero
   ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../assets/img/gallery/1.jpg') center/cover no-repeat;
  opacity: 0.35;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.9) 0%, rgba(26,26,46,0.7) 50%, rgba(212,25,25,0.15) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: 140px 24px 100px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(212,25,25,0.15);
  border: 1px solid rgba(212,25,25,0.3);
  border-radius: 100px;
  color: var(--red-light);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero__accent {
  color: var(--red-light);
  position: relative;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--gray-300);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 640px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 32px 40px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  max-width: fit-content;
}

.hero__stat-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
}

.hero__stat-unit {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red-light);
  margin-left: 4px;
  text-transform: uppercase;
}

.hero__stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 4px;
}

.hero__stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.15);
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: float 2s ease-in-out infinite;
  color: var(--gray-400);
  z-index: 2;
}

/* ============================
   Section Common
   ============================ */
.section {
  padding: 72px 0;
}

.section--dark {
  background: var(--dark);
  color: var(--white);
}

.section--gray {
  background: var(--gray-50);
}

.section__header {
  text-align: center;
  margin-bottom: 40px;
}

.section__tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(212,25,25,0.08);
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section__tag--light {
  background: rgba(212,25,25,0.2);
  color: var(--red-light);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
}

.section__title--light {
  color: var(--white);
}

.section__desc {
  font-size: 1.1rem;
  color: var(--gray-400);
  margin-top: 16px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================
   About
   ============================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about__text p {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about__certs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cert-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.cert-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cert-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,25,25,0.08);
  border-radius: var(--radius-sm);
  color: var(--red);
}

.cert-card__title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.cert-card__desc {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* ============================
   Target Audience
   ============================ */
.target__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.target-card {
  padding: 32px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.target-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.target-card--featured {
  border-color: var(--red);
  background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
}

.target-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

.target-card__badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.target-card--featured .target-card__badge {
  background: rgba(196, 30, 58, 0.1);
  color: var(--red);
}

.target-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.target-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--gray-600);
}

.target-card__list svg {
  color: var(--red);
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .target__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

/* ============================
   Advantages
   ============================ */
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.advantage-card {
  display: block;
  padding: 36px 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.advantage-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(212,25,25,0.3);
  transform: translateY(-4px);
}

.advantage-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,25,25,0.12);
  border-radius: var(--radius-md);
  color: var(--red-light);
  margin-bottom: 20px;
}

.advantage-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.advantage-card__text {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.6;
}

/* ============================
   Formats
   ============================ */
.formats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.format-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.format-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.format-card--featured {
  border-color: var(--red);
  box-shadow: var(--shadow-red);
}

.format-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 20px;
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.format-card__header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 24px;
}

.format-card__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 4px;
}

.format-card__area {
  font-size: 1.1rem;
  color: var(--gray-600);
  font-weight: 500;
}

.format-card__body {
  flex: 1;
  margin-bottom: 24px;
}

.format-card__specs li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.format-card__specs li:last-child {
  border-bottom: none;
}

.format-card__specs svg {
  flex-shrink: 0;
  color: var(--red);
}

/* ============================
   Residents
   ============================ */
.residents__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.resident-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: var(--transition);
  min-height: 100px;
}

.resident-logo:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: scale(1.03);
}

.resident-logo img {
  max-height: 50px;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.resident-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ============================
   Location
   ============================ */
.location__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.location__text {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 20px 0 28px;
}

.location__features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.location__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--gray-700);
}

.location__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ============================
   Support
   ============================ */
.support__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.support-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.support-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(212,25,25,0.3);
  transform: translateY(-4px);
}

.support-card__badge {
  display: inline-block;
  width: fit-content;
  padding: 4px 14px;
  background: rgba(212,25,25,0.15);
  color: var(--red-light);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.support-card__badge--accent {
  background: rgba(255,215,0,0.15);
  color: var(--yellow);
}

.support-card__badge--region {
  background: rgba(100,200,100,0.15);
  color: #6dd06d;
}

.support-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.support-card__amount {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--red-light);
  margin-bottom: 20px;
}

.support-card__list {
  flex: 1;
  margin-bottom: 24px;
}

.support-card__list li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--gray-300);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-left: 20px;
  position: relative;
}

.support-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
}

/* ============================
   Contacts
   ============================ */
.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contacts__text {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 16px 0 32px;
}

.contacts__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contacts__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-700);
}

.contacts__detail:hover {
  color: var(--red);
}

.contacts__form-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 16px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--gray-900);
  background: var(--gray-50);
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(212,25,25,0.1);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-privacy {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: 12px;
}

.form-privacy a {
  color: var(--red);
  text-decoration: underline;
}

/* ============================
   Buttons
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  box-shadow: var(--shadow-red);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.btn--outline-dark {
  background: transparent;
  color: var(--gray-700);
  border-color: var(--gray-300);
}

.btn--outline-dark:hover {
  background: var(--gray-900);
  color: var(--white);
  border-color: var(--gray-900);
}

.btn--full {
  width: 100%;
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1rem;
}

/* ============================
   Footer
   ============================ */
/* Old footer styles removed — see expanded footer below */

/* ============================
   Page hero with image
   ============================ */
.page-hero--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: 80px 0 100px;
}

.page-hero--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(10,10,10,0.75) 100%);
  z-index: 0;
}

.page-hero--image .container {
  position: relative;
  z-index: 1;
}

.page-hero--image .page-hero__title {
  color: var(--white);
}

.page-hero--image .page-hero__subtitle,
.page-hero--image p {
  color: rgba(255,255,255,0.8);
}

.page-hero--image .section__tag {
  background: rgba(212,25,25,0.2);
  color: var(--red-light);
}

/* ============================
   About gallery (index)
   ============================ */
.about__gallery {
  margin-top: 40px;
}

.about__gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-lg);
}

.about__gallery-main img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.about__gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.about__gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.about__gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

/* ============================
   Formats photo (index)
   ============================ */
.formats__photo {
  max-width: 900px;
  margin: 0 auto 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.formats__photo img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

/* ============================
   Gallery grid (about page)
   ============================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.gallery__item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.gallery__item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery__item--wide {
  grid-column: span 3;
}

.gallery__item--wide img {
  height: 360px;
}

/* ============================
   Catalog photos
   ============================ */
.catalog__photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.catalog__photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background: var(--white);
}

.catalog__photo:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.catalog__photo img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.catalog__photo span {
  display: block;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  text-align: center;
}

/* ============================
   Schematics (catalog)
   ============================ */
.schematics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.schematic-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.schematic-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--red);
}

.schematic-card__header {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1rem;
  border-bottom: 1px solid var(--gray-100);
}

.schematic-card__plan {
  padding: 16px;
}

.schematic-card__plan svg {
  width: 100%;
  height: auto;
}

.schematic-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px 16px;
}

.schematic-card__specs span {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: var(--gray-50);
  border-radius: 20px;
  color: var(--gray-600);
}

a.schematic-card--link {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

a.schematic-card--link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.schematic-card--featured {
  border-color: var(--red);
  border-width: 2px;
}

.schematic-card__badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  vertical-align: middle;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Catalog two-column layout */
.catalog-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.catalog-layout__plans {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.catalog-layout__form {
  position: sticky;
  top: 96px;
}

@media (max-width: 1024px) {
  .schematics {
    grid-template-columns: 1fr 1fr;
  }
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .catalog-layout__form {
    position: static;
  }
}

@media (max-width: 640px) {
  .schematics {
    grid-template-columns: 1fr;
  }
}

/* ============================
   Premise Detail Page
   ============================ */
.premise-detail {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.premise-detail__plan {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.premise-detail__plan svg {
  width: 100%;
  height: auto;
}

.premise-detail__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.premise-detail__gallery img {
  border-radius: var(--radius-md);
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: zoom-in;
}

.premise-sidebar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 96px;
}

.premise-sidebar__format {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--red);
  margin-bottom: 4px;
}

.premise-sidebar__badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.premise-sidebar__area {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.premise-sidebar__price {
  font-size: 1rem;
  color: var(--gray-400);
  margin-bottom: 20px;
}

.premise-sidebar__specs {
  margin-bottom: 20px;
}

.premise-sidebar__spec {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.875rem;
}

.premise-sidebar__spec span:first-child {
  color: var(--gray-400);
}

.premise-sidebar__spec span:last-child {
  font-weight: 600;
}

.premise-sidebar__back {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--gray-400);
}

.premise-sidebar__back:hover {
  color: var(--red);
}

@media (max-width: 768px) {
  .premise-detail {
    grid-template-columns: 1fr;
  }

  .premise-detail__gallery {
    grid-template-columns: 1fr;
  }

  .premise-sidebar {
    position: static;
  }
}

/* ============================
   Animations
   ============================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

body {
  animation: fadeIn 0.4s ease;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 1024px) {
  .advantages__grid,
  .formats__grid,
  .support__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .hero__stat-divider {
    display: none;
  }
}

@media (max-width: 1024px) {
  .header__nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: var(--transition);
    z-index: 999;
    margin: 0;
  }

  .header__nav.active {
    transform: translateY(0);
  }

  .header__burger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .header__contacts {
    display: none;
  }

  .hero__inner {
    padding: 120px 24px 80px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__stats {
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .about__grid,
  .location__inner,
  .contacts__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__certs {
    grid-template-columns: 1fr;
  }

  .advantages__grid,
  .formats__grid,
  .support__grid,
  .residents__grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 40px 0;
  }

  .section__header {
    margin-bottom: 28px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer__socials {
    justify-content: center;
  }

  .footer__contact-list {
    align-items: center;
  }

  .about__gallery-grid {
    grid-template-columns: 1fr;
  }

  .about__gallery-main img {
    height: 220px;
  }

  .about__gallery-grid img {
    height: 180px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery__item--wide {
    grid-column: span 1;
  }

  .gallery__item--wide img,
  .gallery__item img {
    height: 200px;
  }

  .catalog__photos {
    grid-template-columns: 1fr;
  }

  .formats__photo img {
    height: 200px;
  }
}

/* ============================
   Active nav link
   ============================ */
.header__link--active {
  color: var(--red);
}

.header__link--active::after {
  width: 100%;
}

/* ============================
   Page Hero (small)
   ============================ */
.page-hero {
  padding: 130px 0 60px;
  background: var(--gray-50);
  text-align: center;
}

.page-hero .section__title {
  margin-bottom: 16px;
}

.page-hero .section__desc,
.page-hero p {
  font-size: 1.1rem;
  color: var(--gray-400);
  max-width: 600px;
  margin: 0 auto;
}

.page-hero--small {
  padding: 120px 0 40px;
}

/* ============================
   Scroll to top
   ============================ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 900;
  box-shadow: var(--shadow-red);
}

.scroll-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

/* ============================
   Timeline (about page)
   ============================ */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline__item {
  position: relative;
  padding-left: 64px;
  margin-bottom: 40px;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: 14px;
  top: 4px;
  width: 22px;
  height: 22px;
  background: var(--white);
  border: 3px solid var(--red);
  border-radius: 50%;
  z-index: 1;
}

.timeline__year {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 4px;
}

.timeline__text {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ============================
   Stats grid (about page)
   ============================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stats-grid__item {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
}

.stats-grid__value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}

.stats-grid__label {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-top: 8px;
}

/* ============================
   Management (about page)
   ============================ */
.management {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.management__card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.management__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.management__text {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.management__list {
  margin-top: 20px;
}

.management__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.management__list li:last-child {
  border-bottom: none;
}

.management__list svg {
  flex-shrink: 0;
  color: var(--red);
}

/* ============================
   CTA block
   ============================ */
.cta-block {
  text-align: center;
  padding: 60px 20px;
}

.cta-block__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.cta-block__text {
  color: var(--gray-300);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

/* ============================
   Infrastructure cards
   ============================ */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.infra-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: var(--transition);
}

.infra-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.infra-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,25,25,0.08);
  border-radius: var(--radius-md);
  color: var(--red);
  margin-bottom: 16px;
}

.infra-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.infra-card__list li {
  font-size: 0.9rem;
  color: var(--gray-600);
  padding: 6px 0;
  padding-left: 18px;
  position: relative;
}

.infra-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
}

/* ============================
   Genplan
   ============================ */
/* ============================
   Interactive Genplan
   ============================ */
.genplan-interactive {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.genplan-interactive__img {
  width: 100%;
  display: block;
}

.genplan-marker {
  position: absolute;
  z-index: 10;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.genplan-marker__dot {
  width: 20px;
  height: 20px;
  background: var(--red);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(212,25,25,0.4);
  position: relative;
  z-index: 2;
  transition: transform 0.3s;
}

.genplan-marker__dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid var(--red);
  border-radius: 50%;
  opacity: 0;
  animation: none;
}

.genplan-marker--active .genplan-marker__dot::after {
  animation: marker-ping 1.5s ease-out infinite;
  opacity: 1;
}

@keyframes marker-ping {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2); opacity: 0; }
}

.genplan-marker:hover .genplan-marker__dot {
  transform: scale(1.3);
}

.genplan-marker__popup {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  pointer-events: none;
  z-index: 20;
}

.genplan-marker__popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--white);
}

.genplan-marker:hover .genplan-marker__popup,
.genplan-marker--active .genplan-marker__popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.genplan-marker__year {
  display: inline-block;
  padding: 2px 10px;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 100px;
  margin-bottom: 6px;
}

.genplan-marker__name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
}

.genplan-marker__info {
  font-size: 0.75rem;
  color: var(--gray-400);
  white-space: nowrap;
}

/* Hidden state (before animation) */
.genplan-marker--hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  transition: opacity 0.5s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.genplan-marker--visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 768px) {
  .genplan-marker__dot {
    width: 14px;
    height: 14px;
    border-width: 2px;
  }

  .genplan-marker__popup {
    min-width: 160px;
    padding: 10px 14px;
  }

  .genplan-marker__name {
    font-size: 0.75rem;
  }

  .genplan-marker__info {
    font-size: 0.65rem;
  }
}

.genplan {
  max-width: 900px;
  margin: 0 auto;
}

.genplan__placeholder {
  background: var(--white);
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 60px 20px;
  text-align: center;
  color: var(--gray-400);
  font-size: 1rem;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.genplan__legend {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
}

.genplan__legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.genplan__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.genplan__dot--production { background: var(--red); }
.genplan__dot--office { background: #3b82f6; }
.genplan__dot--infra { background: #22c55e; }

/* ============================
   Calculator
   ============================ */
.calculator__body {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.calculator__controls {
  margin-bottom: 20px;
}

.calculator__group {
  margin-bottom: 24px;
}

.calculator__label,
.form-group__label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--gray-700);
}

.calculator__range {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--gray-200);
  border-radius: 4px;
  outline: none;
}

.calculator__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: var(--red);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(212,25,25,0.3);
}

.calculator__range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--red);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.calculator__value {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red);
  margin-top: 8px;
}

.calculator select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--gray-900);
  background: var(--gray-50);
  outline: none;
  cursor: pointer;
}

.calculator select:focus {
  border-color: var(--red);
}

.calculator__result {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 16px;
}

.calculator__range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 6px;
}

.calculator__result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}

.calculator__result-row:last-child {
  border-bottom: none;
}

.calculator__result-row--total {
  border-bottom: none;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 2px solid var(--gray-200);
}

.calculator__result-value {
  font-weight: 600;
  font-size: 1rem;
  color: var(--gray-900);
}

.calculator__result-row--total .calculator__result-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
}

.calculator__result-row--total .calculator__result-label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--gray-700);
}

.calculator__note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 12px;
}

/* ============================
   Investor advantages
   ============================ */
.investor-advantages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.investor-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.investor-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.investor-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,25,25,0.08);
  border-radius: var(--radius-md);
  color: var(--red);
  margin: 0 auto 16px;
}

.investor-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.investor-card__text {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.5;
}

/* ============================
   Steps timeline
   ============================ */
.steps-timeline {
  display: flex;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.steps-timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 40px;
  right: 40px;
  height: 3px;
  background: var(--gray-200);
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 12px;
}

.step__number {
  width: 56px;
  height: 56px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(212,25,25,0.3);
}

.step__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.step__text {
  font-size: 0.8rem;
  color: var(--gray-400);
  line-height: 1.5;
}

/* ============================
   Tax benefits
   ============================ */
.tax-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tax-benefits__card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.tax-benefits__card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
}

.tax-benefits__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,25,25,0.08);
  border-radius: var(--radius-md);
  color: var(--red);
  margin: 0 auto 16px;
}

.tax-benefits__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tax-benefits__text {
  font-size: 0.9rem;
  color: var(--gray-400);
}

/* ============================
   Logo Strip (index page)
   ============================ */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.logo-strip__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 80px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.logo-strip__item:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.logo-strip__item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(30%);
  transition: var(--transition);
}

.logo-strip__item:hover img {
  filter: grayscale(0%);
}

/* ============================
   Resident card (catalog)
   ============================ */
.residents-catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.resident-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.resident-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.resident-card__logo {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 8px;
}

.resident-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.resident-card__logo img[src]::after {
  content: attr(alt);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  background: var(--gray-50);
  color: var(--red);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  padding: 4px;
}

.resident-card__initial {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--red);
}

.resident-card__info {
  flex: 1;
  min-width: 0;
}

.resident-card__name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  line-height: 1.3;
}

.resident-card__industry {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 6px;
}

.resident-card__meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--gray-400);
}

.resident-card__area,
.resident-card__year {
  display: flex;
  align-items: center;
  gap: 4px;
}

.resident-card__arrow {
  display: none;
}

.resident-card:hover .resident-card__arrow {
  color: var(--red);
  transform: translateX(4px);
}

/* ============================
   Filter bar
   ============================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-bar__btn {
  padding: 8px 20px;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  background: var(--white);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
}

.filter-bar__btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.filter-bar__btn--active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ============================
   Residents stats bar
   ============================ */
.residents-stats .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 40px 24px;
}

.residents-stats__item {
  text-align: center;
}

.residents-stats__value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}

.residents-stats__label {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-top: 4px;
}

.residents-stats__divider {
  width: 1px;
  height: 50px;
  background: var(--gray-200);
}

/* ============================
   Resident hero (dark)
   ============================ */
.resident-hero {
  padding: 130px 0 60px;
  background: linear-gradient(135deg, var(--dark) 0%, #1a1028 50%, var(--gray-900) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.resident-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(212,25,25,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.resident-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,25,25,0.3), transparent);
}

.resident-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.resident-hero__logo {
  width: 140px;
  height: 140px;
  background: var(--white);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 4px rgba(212,25,25,0.15);
  transition: var(--transition);
}

.resident-hero__logo:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 4px rgba(212,25,25,0.3);
  transform: scale(1.03);
}

.resident-hero__logo img {
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
}

.resident-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin: 0;
}

.resident-hero__badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(212,25,25,0.15);
  color: var(--red-light);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 100px;
  border: 1px solid rgba(212,25,25,0.2);
}

.resident-hero__website {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-300);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
}

.resident-hero__website:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
}

.resident-hero__website svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.resident-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  margin-bottom: 8px;
}

.resident-hero__back:hover {
  color: var(--white);
}

/* ============================
   Resident facts grid
   ============================ */
.resident-facts {
  padding: 50px 0;
  background: var(--gray-50);
  position: relative;
}

.resident-facts::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

.resident-facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.resident-facts__item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--red);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.resident-facts__item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.resident-facts__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  background: rgba(212,25,25,0.08);
  border-radius: 50%;
}

.resident-facts__icon svg {
  width: 20px;
  height: 20px;
  fill: var(--red);
}

.resident-facts__label {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.resident-facts__value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
}

.resident-facts__value a {
  color: var(--red);
  text-decoration: none;
  transition: var(--transition);
}

.resident-facts__value a:hover {
  color: var(--red-dark);
}

/* ============================
   Resident about
   ============================ */
.resident-about {
  padding: 70px 0;
  position: relative;
}

.resident-about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

.resident-about__inner {
  max-width: 800px;
  margin: 0 auto;
}

.resident-about .section__tag {
  margin-bottom: 16px;
}

.resident-about h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 28px;
  padding-left: 16px;
  border-left: 4px solid var(--red);
}

.resident-about p {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.9;
  margin-bottom: 16px;
}

.resident-about p:first-of-type {
  font-size: 1.1rem;
  color: var(--gray-700);
  font-weight: 500;
}

/* ============================
   Resident CTA
   ============================ */
.resident-cta {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, #c41919 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.resident-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.resident-cta__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
}

.resident-cta__text {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.resident-cta .btn--primary {
  background: var(--white);
  color: var(--red);
  position: relative;
}

.resident-cta .btn--primary:hover {
  background: var(--gray-50);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ============================
   Other residents
   ============================ */
.other-residents {
  padding: 60px 0;
  background: var(--gray-50);
}

.other-residents h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 28px;
  text-align: center;
}

.other-residents__more {
  text-align: center;
  margin-top: 28px;
}

.other-residents__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.other-residents__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.other-residents__card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.other-residents__card:hover .other-residents__logo {
  border-color: var(--red);
}

.other-residents__logo {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.other-residents__logo img {
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
}

.other-residents__name {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 2px;
  line-height: 1.3;
}

.other-residents__industry {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* ============================
   News cards
   ============================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.news-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.news-card__img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  overflow: hidden;
}

.news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.news-card:hover .news-card__img img {
  transform: scale(1.05);
}

.news-card__body {
  padding: 24px;
}

.news-card__date {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.news-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.news-card__text {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 12px;
}

.news-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
}

.news-card__link:hover {
  text-decoration: underline;
}

/* ============================
   Contacts page
   ============================ */
.contacts-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contacts__info-wrap {
  padding-top: 20px;
}

.contacts__info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}

.contacts__info-item:last-child {
  border-bottom: none;
}

.contacts__info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,25,25,0.08);
  border-radius: var(--radius-sm);
  color: var(--red);
}

.contacts__info-label {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.contacts__info-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
}

.contacts__info-value a {
  color: var(--gray-900);
}

.contacts__info-value a:hover {
  color: var(--red);
}

/* ============================
   Requisites
   ============================ */
.requisites {
  max-width: 700px;
  margin: 0 auto;
}

.requisites__card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.requisites__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.requisites__row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.95rem;
}

.requisites__row:last-child {
  border-bottom: none;
}

.requisites__row span:first-child {
  color: var(--gray-400);
}

.requisites__row span:last-child {
  font-weight: 600;
}

/* ============================
   Contacts map
   ============================ */
.contacts-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 20px;
}

.contacts-map iframe {
  display: block;
  border-radius: var(--radius-lg);
}

/* ============================
   Become resident block (index)
   ============================ */
.become-resident {
  text-align: center;
}

.become-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.become-step {
  position: relative;
}

.become-step__number {
  width: 48px;
  height: 48px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.become-step__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.become-step__text {
  font-size: 0.85rem;
  color: var(--gray-400);
  line-height: 1.5;
}

/* ============================
   Responsive: new pages
   ============================ */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .investor-advantages {
    grid-template-columns: repeat(2, 1fr);
  }

  .residents-catalog {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-timeline {
    flex-wrap: wrap;
    gap: 24px;
  }

  .steps-timeline::before {
    display: none;
  }

  .step {
    flex: 0 0 calc(33.333% - 16px);
  }

  .resident-facts__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tax-benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 100px 0 40px;
  }

  .stats-grid,
  .investor-advantages,
  .residents-catalog,
  .news-grid,
  .tax-benefits,
  .other-residents,
  .become-steps {
    grid-template-columns: 1fr;
  }

  .steps-timeline {
    flex-direction: column;
    align-items: center;
  }

  .step {
    flex: auto;
    width: 100%;
    max-width: 300px;
  }

  .contacts-page {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .management {
    grid-template-columns: 1fr;
  }

  .residents-stats .container {
    flex-direction: column;
    gap: 24px;
  }

  .residents-stats__divider {
    width: 60px;
    height: 1px;
  }

  .resident-hero {
    padding: 100px 0 40px;
  }

  .resident-hero h1 {
    font-size: 1.8rem;
  }

  .resident-hero__logo {
    width: 110px;
    height: 110px;
  }

  .resident-hero__logo img {
    max-width: 80px;
    max-height: 80px;
  }

  .resident-facts__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .resident-cta {
    padding: 50px 0;
  }

  .other-residents__grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    gap: 6px;
  }

  .filter-bar__btn {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .genplan__legend {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .requisites__row {
    flex-direction: column;
    gap: 4px;
  }

  .resident-card {
    flex-direction: column;
    text-align: center;
  }

  .resident-card__meta {
    justify-content: center;
  }

  .resident-card__arrow {
    display: none;
  }
}

/* ============================
   Header contacts area
   ============================ */
.header__contacts {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

/* ============================
   Expanded Footer
   ============================ */
.footer {
  background: var(--black);
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__col {}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer__logo img {
  height: 36px;
  opacity: 0.8;
}

.footer__desc {
  font-size: 0.85rem;
  color: var(--gray-300);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--gray-300);
  transition: var(--transition);
}

.footer__social-link:hover {
  background: var(--red);
  color: var(--white);
}

.footer__nav {
  list-style: none;
}

.footer__nav li {
  margin-bottom: 10px;
}

.footer__nav a {
  font-size: 0.85rem;
  color: var(--gray-300);
  transition: var(--transition);
}

.footer__nav a:hover {
  color: var(--red);
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--gray-300);
  transition: var(--transition);
}

a.footer__contact-item:hover {
  color: var(--red);
}

.footer__bottom {
  padding: 24px 0;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--gray-300);
  text-align: center;
}

/* ============================
   Modal
   ============================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 24px;
}

.modal-overlay--open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 440px;
  width: 100%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s;
  box-shadow: var(--shadow-xl);
}

.modal-overlay--open .modal {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--gray-400);
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.modal__close:hover {
  color: var(--red);
}

.modal__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal__desc {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ============================
   Cookie banner
   ============================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  background: var(--dark);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner--visible {
  transform: translateY(0);
}

.cookie-banner__text {
  font-size: 0.85rem;
  color: var(--gray-300);
  max-width: 600px;
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--red-light);
  text-decoration: underline;
}

/* ============================
   Share button
   ============================ */
.share-btn {
  position: fixed;
  bottom: 90px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--white);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 900;
  box-shadow: var(--shadow-sm);
}

.share-btn:hover {
  color: var(--red);
  border-color: var(--red);
  box-shadow: var(--shadow-md);
}

/* ============================
   Toast notification
   ============================ */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 3000;
  box-shadow: var(--shadow-lg);
}

.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================
   Responsive: new components
   ============================ */
@media (max-width: 1200px) {
  .header__inner {
    gap: 16px;
  }

  .header__nav {
    gap: 10px;
  }

  .header__link {
    font-size: 0.75rem;
  }
}

@media (max-width: 1024px) {
  .header__nav.active .header__mobile-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
  }

  .header__mobile-contacts a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
  }

  .header__mobile-contacts .btn {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .share-btn {
    bottom: 70px;
    right: 20px;
    width: 38px;
    height: 38px;
  }

  .modal {
    padding: 28px;
  }
}

/* ============================
   Modern Design Enhancements
   ============================ */

/* Smooth section transitions with gradient dividers */
.section + .section--dark,
.section--gray + .section--dark {
  border-top: 3px solid var(--red);
}

/* Card hover glow effect */
.advantage-card:hover,
.format-card:hover,
.support-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

/* Animated gradient accent line for section headers */
.section__header::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  border-radius: 2px;
  margin: 20px auto 0;
}

.section--dark .section__header::after {
  opacity: 0.6;
}

/* Smooth number counting animation */
.hero__stat-value {
  font-variant-numeric: tabular-nums;
}

/* Better resident card on index (compact grid) */
.residents-catalog .resident-card {
  position: relative;
}

.residents-catalog .resident-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(135deg, rgba(212,25,25,0.03), transparent);
  transition: var(--transition);
}

.residents-catalog .resident-card:hover::before {
  opacity: 1;
}

/* Pulse animation for CTA buttons */
@keyframes subtle-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,25,25,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(212,25,25,0); }
}

.btn--primary.btn--lg {
  animation: subtle-pulse 3s ease-in-out infinite;
}

.btn--primary.btn--lg:hover {
  animation: none;
}

/* Gradient text for hero accent on hover */
.hero__accent {
  background: linear-gradient(135deg, var(--red-light), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Residents catalog responsive - 2 columns on tablet */
@media (max-width: 1024px) {
  .residents-catalog {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .residents-catalog {
    grid-template-columns: 1fr;
  }
}

/* ============================
   About page — description
   ============================ */
.about-desc {
  max-width: 900px;
}

.about-desc__text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.about-desc__text:last-child {
  margin-bottom: 0;
}

/* ============================
   About page — history + stats side-by-side
   ============================ */
.about-top {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* Timeline — bold years */
.tl {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tl__item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}

.tl__item:last-child {
  border-bottom: none;
}

.tl__item:hover {
  padding-left: 8px;
}

.tl__year {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--gray-200);
  line-height: 1;
  min-width: 72px;
  transition: var(--transition);
}

.tl__item:hover .tl__year,
.tl__item--accent .tl__year {
  color: var(--red);
}

.tl__body {
  flex: 1;
  min-width: 0;
}

.tl__title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.tl__text {
  font-size: 0.85rem;
  color: var(--gray-400);
}

.stats-compact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stats-compact__item {
  padding: 20px 24px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--red);
}

.stats-compact__value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 2px;
}

.stats-compact__label {
  font-size: 0.85rem;
  color: var(--gray-600);
}

@media (max-width: 1024px) {
  .about-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .stats-compact__item {
    padding: 16px 20px;
  }
  .stats-compact__value {
    font-size: 1.3rem;
  }
}

/* ============================
   Investor page — compact layout
   ============================ */
.investor-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.investor-layout__info {
  min-width: 0;
}

.investor-layout__form {
  position: sticky;
  top: 96px;
}

/* Investor features (icon list) */
.investor-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.investor-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--red);
  transition: var(--transition);
}

.investor-feature:hover {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.investor-feature svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.investor-feature div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.investor-feature strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-900);
}

.investor-feature span {
  font-size: 0.85rem;
  color: var(--gray-400);
}

/* Support compact cards */
.support-compact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-compact__card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: var(--transition);
}

.support-compact__card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-sm);
}

.support-compact__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(212,25,25,0.08);
  color: var(--red);
  margin-bottom: 6px;
}

.support-compact__badge--accent {
  background: rgba(37,99,235,0.08);
  color: #2563eb;
}

.support-compact__badge--region {
  background: rgba(22,163,74,0.08);
  color: #16a34a;
}

.support-compact__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.support-compact__amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 4px;
}

.support-compact__detail {
  font-size: 0.85rem;
  color: var(--gray-400);
  line-height: 1.4;
}

/* Steps inline */
.steps-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.step-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.step-inline__num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-inline__arrow {
  color: var(--gray-300);
  display: flex;
  align-items: center;
}

/* Investor responsive */
@media (max-width: 1024px) {
  .investor-layout {
    grid-template-columns: 1fr;
  }
  .investor-layout__form {
    position: static;
  }
}

@media (max-width: 640px) {
  .steps-inline {
    flex-direction: column;
    align-items: stretch;
  }
  .step-inline__arrow {
    justify-content: center;
    transform: rotate(90deg);
  }
}

/* ============================
   Infrastructure page — tiles
   ============================ */
.infra-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.infra-tile {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
}

.infra-tile:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.infra-tile__icon {
  color: var(--red);
  margin-bottom: 12px;
}

.infra-tile__value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1.1;
  margin-bottom: 4px;
}

.infra-tile__label {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.infra-tile__sub {
  font-size: 0.8rem;
  color: var(--gray-400);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .infra-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .infra-tiles {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}

/* ============================
   Transport & Security
   ============================ */
.transport-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.transport-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition);
}

.transport-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.transport-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 30, 58, 0.1);
  border-radius: var(--radius-md);
  color: var(--red);
  margin: 0 auto 16px;
}

.transport-card__title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.transport-card__text {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.5;
}

@media (max-width: 1200px) {
  .transport-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .transport-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .transport-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ============================
   Services Grid
   ============================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 30, 58, 0.1);
  border-radius: var(--radius-md);
  color: var(--red);
  margin-bottom: 16px;
}

.service-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.service-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card__list li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-100);
}

.service-card__list li:last-child {
  border-bottom: none;
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ============================
   Team section
   ============================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-card {
  text-align: center;
}

.team-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid var(--gray-200);
  transition: var(--transition);
}

.team-card:hover .team-card__photo {
  border-color: var(--red);
}

.team-card__photo svg {
  color: var(--gray-300);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 500;
  margin-bottom: 6px;
}

.team-card__desc {
  font-size: 0.85rem;
  color: var(--gray-400);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
}
