/**
 * Лендинг «Московское Агентство Недвижимости»
 * Токены и глобальные стили по макету из Design/
 */

/* ========== Токены ========== */
:root {
  --font-size: 16px;
  --background: #fff;
  --foreground: #030213;
  --primary: #030213;
  --primary-foreground: #fff;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --border: rgba(0, 0, 0, 0.1);
  --input-bg: #f3f3f5;
  --radius: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --red: #dc2626;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --blue: #2563eb;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --green-600: #16a34a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
  --container: min(100% - 2rem, 80rem);
  --header-height: 5rem;
}

/* ========== Сброс и база ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: var(--font-size); -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: ui-sans-serif, system-ui, sans-serif, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.page { min-width: 0; max-width: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ========== Утилиты ========== */
.text-red { color: var(--red-600); }
.text-blue { color: var(--blue-600); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

/* ========== Секции ========== */
.section {
  padding-block: 6rem;
  position: relative;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}
.section--white { background: #fff; }
.section--gray { background: var(--gray-50); }
.section__head { text-align: center; margin-bottom: 4rem; }
.section__title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--gray-900);
  max-width: 56rem;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}
.section__lead { font-size: 1.25rem; color: var(--gray-600); max-width: 48rem; margin-inline: auto; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gray-100);
  border-radius: 9999px;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}
.badge--white { background: #fff; box-shadow: var(--shadow-sm); }

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.2s, padding 0.2s, box-shadow 0.2s;
}
.header.is-scrolled,
.header--opaque {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  padding-block: 1rem;
}
.header--opaque .header__logo-img { filter: none; }
.header--opaque .header__link { color: var(--gray-700); }
.header--opaque .header__link:hover { color: var(--red-600); }
.header--opaque .header__phone { color: var(--gray-700); }
.header:not(.is-scrolled):not(.header--opaque) { padding-block: 1.5rem; }
.header__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 640px) { .header__inner { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .header__inner { padding-inline: 2rem; } }
.header__logo { display: flex; align-items: center; }
.header__logo-img {
  height: 3rem;
  width: auto;
  object-fit: contain;
  transition: filter 0.3s;
}
.header:not(.is-scrolled) .header__logo-img { filter: brightness(0) invert(1); }
.header.is-scrolled .header__logo-img { filter: none; }
.header__nav {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) { .header__nav { display: flex; } }
.header__link {
  font-weight: 500;
  transition: color 0.2s;
}
.header.is-scrolled .header__link { color: var(--gray-700); }
.header.is-scrolled .header__link:hover { color: var(--red-600); }
.header:not(.is-scrolled) .header__link { color: #fff; }
.header:not(.is-scrolled) .header__link:hover { color: #f87171; }
.header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.5rem;
  border-radius: var(--radius);
  color: #fff;
  transition: background 0.2s, color 0.2s;
}
.header.is-scrolled .header__burger { color: var(--gray-900); }
.header__burger:hover { background: rgba(0,0,0,0.08); }
.header.is-scrolled .header__burger:hover { background: var(--gray-100); }
.header__burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.header.is-open .header__burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.is-open .header__burger-line:nth-child(2) { opacity: 0; }
.header.is-open .header__burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 768px) {
  .header__burger { display: none; }
}
.header__mobile-menu {
  position: fixed;
  inset: 0;
  top: var(--header-height, 5rem);
  background: #fff;
  z-index: 40;
  padding: 1.5rem;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s, opacity 0.25s;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.header.is-open .header__mobile-menu {
  visibility: visible;
  opacity: 1;
}
.header__mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 20rem;
  margin: 0 auto;
}
.header__mobile-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.header__mobile-link:hover { background: var(--gray-100); color: var(--red-600); }
.header__mobile-phone {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-600);
  padding: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--gray-200);
}
.header__mobile-cta { margin-top: 1rem; }
@media (min-width: 768px) {
  .header__mobile-menu { display: none; }
}
.header__actions { display: flex; align-items: center; gap: 1rem; }
.header__phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: color 0.2s;
}
@media (min-width: 1024px) { .header__phone { display: flex; } }
.header.is-scrolled .header__phone { color: var(--gray-700); }
.header:not(.is-scrolled) .header__phone { color: #fff; }
.header__phone .icon { flex-shrink: 0; }

/* ========== Кнопки ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn--primary { background: var(--red-600); color: #fff; }
.btn--primary:hover { background: var(--red-700); }
.btn--primary:focus-visible { outline: 2px solid var(--red-600); outline-offset: 2px; }
.btn--green { background: var(--green-600); color: #fff; }
.btn--green:hover { background: #15803d; }
.btn--green:focus-visible { outline: 2px solid var(--green-600); outline-offset: 2px; }
.btn--pill { border-radius: 9999px; }
.btn--lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn--sm { padding: 0.375rem 1rem; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn--outline-white {
  border: 2px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.btn--outline-white:hover { background: #fff; color: var(--gray-900); }
.btn--white { background: #fff; color: var(--blue-600); }
.btn--white:hover { background: var(--gray-100); }
.icon--ml { margin-left: 0.25rem; }

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gray-900);
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg-img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(17,24,39,0.95), rgba(17,24,39,0.5), rgba(30,58,138,0.1));
}
.hero__content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 6rem 1rem 4rem;
}
@media (min-width: 640px) { .hero__content { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .hero__content { padding-inline: 2rem; } }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  margin-bottom: 2rem;
  font-weight: 600;
  color: #fff;
}
.hero__badge-dot { width: 0.5rem; height: 0.5rem; background: var(--red-600); border-radius: 50%; }
.hero__title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 2rem;
}
.hero__lead {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: rgba(255,255,255,0.9);
  max-width: 42rem;
  margin-bottom: 3rem;
  line-height: 1.6;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 4rem; }
.hero__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 48rem;
}
@media (min-width: 768px) { .hero__stats { grid-template-columns: repeat(3, 1fr); } }
.stat-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.stat-card:hover { background: rgba(255,255,255,0.18); }
.stat-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: #fff;
}
.stat-card__icon--red { background: var(--red-600); }
.stat-card__icon--blue { background: var(--blue-600); }
.stat-card__icon--green { background: var(--green-600); }
.stat-card__value { font-size: 2.25rem; font-weight: 900; color: #fff; }
.stat-card__label { color: rgba(255,255,255,0.8); font-weight: 500; }

/* ========== About ========== */
.about__grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (min-width: 1024px) { .about__grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; } }
.about__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  position: relative;
}
.about__img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); }
.about__img--large { grid-column: 1 / -1; }
.about__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease-out; }
.about__img img:hover { transform: scale(1.04); }
.about__img--large img { height: 29rem; }
.about__img:not(.about__img--large) img { height: 9rem; }
.about__floating-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 16.5rem;
  background: var(--red-600);
  color: #fff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2xl);
  z-index: 20;
}
.about__floating-value { font-size: 3rem; font-weight: 900; display: block; }
.about__floating-label { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; }
.about__text { }
.about__p { color: var(--gray-700); font-size: 1.125rem; line-height: 1.7; margin-bottom: 1rem; }
.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.feature-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover { border-color: var(--gray-200); box-shadow: var(--shadow-lg); }
.feature-card__icon { color: var(--gray-900); margin-bottom: 0.75rem; }
.feature-card__title { font-weight: 700; color: var(--gray-900); }
.feature-card__sub { font-size: 0.875rem; color: var(--gray-600); }
.quote-banner {
  background: var(--gray-900);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-2xl);
}
@media (min-width: 768px) { .quote-banner { padding: 4rem; } }
.quote-banner__icon {
  width: 4rem;
  height: 4rem;
  background: var(--red-600);
  border-radius: 0.75rem;
  margin: 0 auto 2rem;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M14.017 21v-7.391c0-5.704 3.731-9.57 8.983-10.609l.995 2.151c-2.432.917-3.995 3.638-3.995 5.849h4v10h-9.983zm-14.017 0v-7.391c0-5.704 3.748-9.57 9-10.609l.996 2.151c-2.433.917-3.996 3.638-3.996 5.849h3.983v10h-9.983z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M14.017 21v-7.391c0-5.704 3.731-9.57 8.983-10.609l.995 2.151c-2.432.917-3.995 3.638-3.995 5.849h4v10h-9.983zm-14.017 0v-7.391c0-5.704 3.748-9.57 9-10.609l.996 2.151c-2.433.917-3.996 3.638-3.996 5.849h3.983v10h-9.983z'/%3E%3C/svg%3E") center/contain no-repeat;
  background-color: var(--red-600);
}
.quote-banner__text {
  font-size: clamp(1.25rem, 2vw, 1.875rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.6;
  max-width: 56rem;
  margin-inline: auto;
}
.quote-banner--alt .quote-banner__icon { width: 5rem; height: 5rem; margin-bottom: 2rem; }
.quote-banner__author { color: rgba(255,255,255,0.8); font-weight: 600; font-size: 1.125rem; margin-top: 1rem; }

/* ========== Руководитель (после цитаты) ========== */
.about-leader {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
  align-items: start;
}
@media (min-width: 768px) {
  .about-leader { grid-template-columns: minmax(240px, 320px) 1fr; }
}
.about-leader__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.about-leader__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
  aspect-ratio: 4 / 5;
  max-width: 320px;
  width: 100%;
}
.about-leader__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-leader__greeting {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0;
  line-height: 1.4;
}
.about-leader__name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}
.about-leader__position {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}
.about-leader__info-text {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 2rem;
}
.about-leader__certs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 320px;
}
@media (min-width: 480px) {
  .about-leader__certs { grid-template-columns: repeat(5, 1fr); max-width: none; }
}
.leader-cert {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--gray-200);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.leader-cert:hover { border-color: var(--red-600); box-shadow: var(--shadow-lg); }
.leader-cert:focus-visible { outline: 2px solid var(--red-600); outline-offset: 2px; }
.leader-cert img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 80 / 110;
  object-fit: cover;
}
.about-leader__cert-main {
  margin-top: 1.5rem;
}
.leader-cert--main {
  max-width: 662px;
  width: 100%;
  max-height: 327px;
}
.leader-cert--main img {
  aspect-ratio: 3 / 2;
  width: 100%;
  object-fit: cover;
}

/* Лайтбокс сертификатов */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}
.lightbox__img {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-2xl);
}
.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.35); }
.lightbox__close::after { content: '×'; }

/* ========== Services ========== */
.services__grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}
@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    gap: 1.25rem;
  }
  .service-card--featured {
    grid-column: 2;
    grid-row: 1 / -1;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }
  /* Явное размещение: левая колонка 1,4,6; центр — Срочный выкуп; правая колонка 3,5,7 (Ипотека справа внизу) */
  .services__grid .service-card:nth-child(1) { grid-column: 1; grid-row: 1; }
  .services__grid .service-card:nth-child(3) { grid-column: 3; grid-row: 1; }
  .services__grid .service-card:nth-child(4) { grid-column: 1; grid-row: 2; }
  .services__grid .service-card:nth-child(5) { grid-column: 3; grid-row: 2; }
  .services__grid .service-card:nth-child(6) { grid-column: 1; grid-row: 3; }
  .services__grid .service-card:nth-child(7) { grid-column: 3; grid-row: 3; }
  .services__grid .service-card:nth-child(1),
  .services__grid .service-card:nth-child(4),
  .services__grid .service-card:nth-child(6) { border-color: rgba(37, 99, 235, 0.35); background: linear-gradient(to bottom, #eff6ff, #fff); }
  .services__grid .service-card:nth-child(1):hover,
  .services__grid .service-card:nth-child(4):hover,
  .services__grid .service-card:nth-child(6):hover { border-color: var(--blue-600); }
  .services__grid .service-card:nth-child(1) .service-card__icon,
  .services__grid .service-card:nth-child(4) .service-card__icon,
  .services__grid .service-card:nth-child(6) .service-card__icon { background: var(--blue-600); }
  .services__grid .service-card:nth-child(3),
  .services__grid .service-card:nth-child(5),
  .services__grid .service-card:nth-child(7) { border-color: rgba(22, 163, 74, 0.35); background: linear-gradient(to bottom, #f0fdf4, #fff); }
  .services__grid .service-card:nth-child(3):hover,
  .services__grid .service-card:nth-child(5):hover,
  .services__grid .service-card:nth-child(7):hover { border-color: var(--green-600); }
  .services__grid .service-card:nth-child(3) .service-card__icon,
  .services__grid .service-card:nth-child(5) .service-card__icon,
  .services__grid .service-card:nth-child(7) .service-card__icon { background: var(--green-600); }
}
.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: #fff;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
@media (min-width: 768px) {
  .service-card { padding: 1.5rem; }
}
.service-card:hover { border-color: var(--gray-200); box-shadow: var(--shadow-xl); }
.service-card--featured {
  position: relative;
  border-radius: 0;
  border-width: 3px;
  border-color: var(--red-600);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.service-card--featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(185, 28, 28, 0.9), rgba(185, 28, 28, 0.1));
  z-index: 0;
}
.service-card--featured .service-card__icon,
.service-card--featured .service-card__title,
.service-card--featured .service-card__desc { position: relative; z-index: 1; }
.service-card--featured .service-card__title,
.service-card--featured .service-card__desc { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.service-card--featured .service-card__desc { color: rgba(255,255,255,0.95); }
@media (min-width: 1024px) {
  .service-card--featured { padding: 2.5rem 2.25rem; }
}
.service-card--featured:hover {
  border-color: var(--red-700);
  box-shadow: var(--shadow-xl);
}
.service-card--featured .service-card__title { font-size: 1.5rem; }
@media (min-width: 768px) {
  .service-card--featured .service-card__title { font-size: 1.75rem; }
}
.service-card--featured .service-card__desc { font-size: 1rem; line-height: 1.65; }
.service-card:not(.service-card--featured) .service-card__title { font-size: 1.0625rem; }
.service-card:not(.service-card--featured) .service-card__desc { font-size: 0.9375rem; line-height: 1.5; }
.service-card__icon {
  width: 3.25rem;
  height: 3.25rem;
  background: var(--gray-900);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}
.service-card__icon svg { width: 20px; height: 20px; }
.service-card--featured .service-card__icon { margin-bottom: 1.25rem; }
.service-card__icon--featured {
  width: 4.5rem;
  height: 4.5rem;
  background: var(--red-600);
}
.service-card__icon--featured svg { width: 28px; height: 28px; }
.service-card:hover .service-card__icon { transform: scale(1.1); }
.service-card__title { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; }
.service-card__desc { color: var(--gray-600); line-height: 1.6; }

/* ========== Bank carousel ========== */
.bank-carousel {
  margin-top: 4rem;
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  padding: 3rem 0;
}
.bank-carousel__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.bank-carousel__icon-wrap {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gray-900);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bank-carousel__title { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); }
.bank-carousel__desc { text-align: center; color: var(--gray-600); margin-bottom: 1.5rem; padding-inline: 1rem; }
.bank-carousel__track-wrap { overflow: hidden; }
.bank-carousel__track {
  display: flex;
  gap: 1.5rem;
  padding-inline: 1rem;
  width: max-content;
  animation: bank-scroll 60s linear infinite;
  transform: translateZ(0);
}
@media (prefers-reduced-motion: reduce) {
  .bank-carousel__track { animation: none; }
}
.bank-carousel__list { display: flex; gap: 1.5rem; flex-shrink: 0; }
.bank-card {
  flex-shrink: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.bank-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.bank-card__img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.bank-card__name { font-weight: 700; color: var(--gray-900); font-size: 1.125rem; }
@keyframes bank-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== Gallery ========== */
.gallery { margin-bottom: 4rem; }
.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.gallery__grid--two {
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .gallery__grid--two { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .gallery__grid--two { grid-template-columns: repeat(2, 1fr); }
}

/* Две карточки «актуальных объектов»: по 640px, по центру */
.gallery--full-bleed {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 1rem;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .gallery--full-bleed { padding-inline: 1.5rem; }
}
@media (min-width: 1024px) {
  .gallery--full-bleed { padding-inline: 2rem; }
}
.gallery--full-bleed .gallery__grid--two {
  justify-content: center;
  grid-template-columns: repeat(2, minmax(min(100%, 320px), 640px));
  max-width: 1320px;
  margin-inline: auto;
}
@media (max-width: 639px) {
  .gallery--full-bleed .gallery__grid--two {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1360px) {
  .gallery--full-bleed .gallery__grid--two {
    grid-template-columns: 640px 640px;
  }
}

.gallery__item-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.gallery__item-link:hover { box-shadow: var(--shadow-xl); transform: translateY(-2px); }
.gallery__item-link:focus-visible { outline: 2px solid var(--red-600); outline-offset: 2px; }
.gallery__item-link--btn { cursor: pointer; border: none; background: none; width: 100%; text-align: left; }
.gallery__item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
  display: flex;
  flex-direction: column;
}
.gallery__item img {
  max-height: 355px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease-out;
}
.gallery__item:hover img { transform: scale(1.03); }
/* Текст внизу карточки — только подпись и описание, без кнопок */
.gallery__caption-wrap {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  margin: 0;
}
.gallery__caption {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}
.gallery__caption:empty { display: none; }
.gallery__text {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.45;
}
.gallery__text:empty { display: none; }

/* Модальное окно проектов */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
.modal__box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  max-width: 36rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
}
.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.modal__close:hover { background: var(--gray-200); }
.modal__close::after { content: '×'; }
.modal__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  padding-right: 2.5rem;
}
.modal__lead {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}
.modal__grid {
  display: grid;
  gap: 1rem;
  min-height: 60px;
}
@media (min-width: 480px) {
  .modal__grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* Модалка проектов: проекты ремонта (фото или До/После с переключателем) */
.modal__box--projects { max-width: 44rem; }
.projects-modal__remont { margin-top: 0.5rem; }
.projects-modal__remont-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 1rem;
}
.remont-projects__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .remont-projects__grid { grid-template-columns: repeat(2, 1fr); }
}
.remont-item { margin: 0; }
.remont-item__img-wrap,
.remont-item__switch-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-100);
  aspect-ratio: 4 / 3;
}
.remont-item__img-wrap img,
.remont-item__switch-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.remont-item__switch-wrap {
  position: relative;
}
.remont-item__switch-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.remont-item__switch-wrap .remont-item__switch-img--before { opacity: 1; }
.remont-item__switch-wrap.is-after .remont-item__switch-img--before { opacity: 0; }
.remont-item__switch-wrap.is-after .remont-item__switch-img--after { opacity: 1; }
.remont-item__switch-btns {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.5rem;
}
.remont-item__switch-btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--gray-300);
  background: #fff;
  color: var(--gray-700);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.remont-item__switch-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}
.remont-item__switch-btn.is-active {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
}
.remont-item__caption {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0.35rem 0 0;
  line-height: 1.4;
}

/* Карточка проекта в списке (клик открывает модалку детали) */
.remont-projects__grid--cards { margin-top: 0.5rem; }
.remont-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.remont-card:hover {
  border-color: var(--blue-500);
  box-shadow: var(--shadow-md);
}
.remont-card:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}
.remont-card__thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-100);
}
.remont-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.remont-card__caption {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-800);
}
.project-content-source { display: none !important; }
.modal__box--project-detail { max-width: 44rem; }
.project-detail__body { margin-top: 0.5rem; }
.project-detail__pairs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.project-detail__pairs .remont-item { margin: 0; }

/* Модалка новости: дата, заголовок, тело */
.modal__date {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}
.modal__body {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.6;
  margin-top: 0.5rem;
}
.modal--news .modal__box { max-width: 42rem; }

/* ========== Новости ========== */
.news__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .news__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .news__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.news-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: #fff;
}
.news-card__date {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
  display: block;
}
.news-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
.news-card__excerpt {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.45;
  margin: 0;
}
.news__actions {
  text-align: center;
  margin: 2rem 0 0;
}
.news__body-sources {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.news__body-source { display: none; }

/* Модалка «Все новости»: список, сортировка по дате */
.modal--all-news .modal__box {
  max-width: 42rem;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.all-news-modal__list {
  overflow-y: auto;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.all-news-modal__item {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-200);
}
.all-news-modal__item:last-child { padding-bottom: 0; border-bottom: none; }
.all-news-modal__item-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 14rem;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.all-news-modal__date {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0 0 0.35rem;
}
.all-news-modal__item-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
.all-news-modal__item-body {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.6;
  margin: 0;
}

/* Подписи под фото в блоке «О нас» */
.about__img-caption {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.4;
}

/* ========== CTA banner ========== */
.cta-banner {
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-2xl);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .cta-banner { padding: 4rem; } }
.cta-banner--blue { background: var(--blue-600); }
.cta-banner__title { font-size: clamp(1.75rem, 3vw, 3rem); font-weight: 900; color: #fff; margin-bottom: 1.5rem; }
.cta-banner__text { color: rgba(255,255,255,0.9); font-size: 1.25rem; margin-bottom: 2rem; max-width: 42rem; margin-inline: auto; }
.cta-banner .btn { margin-top: 0.5rem; }

/* ========== Advantages ========== */
.badge--outline {
  background: #fff;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-weight: 600;
}
.advantages__grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) { .advantages__grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; } }
@media (min-width: 1024px) { .advantages__grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.advantage-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.advantage-card:hover { border-color: var(--gray-200); box-shadow: var(--shadow-lg); }
.advantage-card__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.advantage-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  color: #fff;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.advantage-card__icon svg { width: 24px; height: 24px; }
.advantage-card--red .advantage-card__icon { background: var(--red-600); }
.advantage-card--blue .advantage-card__icon { background: var(--blue-600); }
.advantage-card--green .advantage-card__icon { background: var(--green-600); }
.advantage-card__pill {
  display: inline-block;
  padding: 0.35rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
}
.advantage-card--red .advantage-card__pill { background: var(--red-600); }
.advantage-card--blue .advantage-card__pill { background: var(--blue-600); }
.advantage-card--green .advantage-card__pill { background: var(--green-600); }
.advantage-card:hover .advantage-card__icon { transform: scale(1.05); }
.advantage-card__title { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; }
.advantage-card__desc { color: var(--gray-600); line-height: 1.6; font-size: 0.9375rem; }

/* ========== Contact ========== */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .contact-cards { grid-template-columns: repeat(4, 1fr); } }
.contact-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.contact-card:hover { box-shadow: var(--shadow-lg); }
.contact-card__icon {
  width: 3rem;
  height: 3rem;
  background: var(--gray-900);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.contact-card__title { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-900); margin-bottom: 0.5rem; }
.contact-card__link { color: var(--gray-700); font-weight: 600; }
.contact-card__link:hover { color: var(--blue-600); }
.contact-card__text { color: var(--gray-700); font-weight: 500; }
.contact__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 1024px) { .contact__grid { grid-template-columns: 1fr 1fr; } }
.contact-form-wrap {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem;
  border: 1px solid var(--gray-100);
}
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-form__label { display: block; font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-900); margin-bottom: 0.5rem; }
.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.75rem;
  background: var(--input-bg);
  transition: border-color 0.2s;
}
.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--blue-600);
}
.contact-form__textarea { resize: vertical; min-height: 8rem; }
.contact-form__submit { margin-top: 0.5rem; height: 3.5rem; border-radius: 0.75rem; font-weight: 700; box-shadow: var(--shadow-lg); }
.contact-form__hint { font-size: 0.75rem; color: var(--gray-500); text-align: center; }
.contact__aside { display: flex; flex-direction: column; gap: 1.5rem; }

/* Обёртка блока конгресса: сине-белый фон */
.congress-section {
  background: linear-gradient(180deg, #d4e8f7 0%, #e8f2fa 35%, #f5f9fc 70%, #fff 100%);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin: -0.25rem 0;
}

.congress-promo {
  background: #fff;
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-md);
}

.congress-promo__title {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.congress-promo__lead {
  font-size: 1.0625rem;
  color: var(--gray-700);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.congress-promo__btn {
  margin-bottom: 1.25rem;
  padding: 1rem 1.5rem;
  font-size: 1.0625rem;
}

.congress-promo__date {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.35rem;
}

.congress-promo__place {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 1.25rem;
}

.congress-promo__support {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin: 0;
}

.partner-badge {
  background: var(--green-600);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
}
.partner-badge__icon {
  width: 4rem;
  height: 4rem;
  background: rgba(255,255,255,0.25);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.partner-badge__title { font-size: 1.875rem; font-weight: 900; margin-bottom: 1rem; }
.partner-badge__text { color: rgba(255,255,255,0.9); line-height: 1.6; font-size: 1.125rem; }
.benefits-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.benefits-mini__item {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.benefits-mini__value { font-size: 2.25rem; font-weight: 900; color: var(--blue-600); display: block; margin-bottom: 0.5rem; }
.benefits-mini__label { font-size: 0.875rem; font-weight: 600; color: var(--gray-700); }
.contact__map { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-2xl); border: 4px solid #fff; }
.contact__map iframe { display: block; }

/* ========== Footer ========== */
.footer {
  background: linear-gradient(to bottom right, var(--gray-900), var(--gray-800), var(--gray-900));
  color: #fff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.footer--minimal .footer__bg { display: none; }
.footer--minimal { background: var(--gray-900); }
.footer__bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(32px);
  opacity: 0.25;
}
.footer__bg--blue { width: 24rem; height: 24rem; background: var(--blue-600); top: 0; right: 0; }
.footer__bg--red { width: 18rem; height: 18rem; background: var(--red-600); bottom: 0; left: 0; }
.footer__inner { position: relative; z-index: 10; }
.footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }
.footer__logo-img {
  height: 3.5rem;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.footer__about { color: var(--gray-400); line-height: 1.6; margin: 1.5rem 0; }
.footer__social { display: flex; gap: 0.75rem; }
.footer__social-link {
  width: 2.75rem;
  height: 2.75rem;
  background: var(--gray-800);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  color: #fff;
}
.footer__social-link:hover { transform: scale(1.1); }
.footer__social-link:nth-child(1):hover { background: linear-gradient(to bottom right, var(--blue-600), var(--blue-700)); }
.footer__social-link:nth-child(2):hover { background: linear-gradient(to bottom right, #db2777, #9333ea); }
.footer__social-link:nth-child(3):hover { background: linear-gradient(to bottom right, var(--green-600), #15803d); }
.footer__heading { font-size: 1.125rem; font-weight: 700; margin-bottom: 1.5rem; }
.footer__links a,
.footer__legal a {
  color: var(--gray-400);
  transition: color 0.2s;
}
.footer__links a:hover,
.footer__legal a:hover { color: #fff; }
.footer__links li { margin-bottom: 0.75rem; }
.footer__list { color: var(--gray-400); }
.footer__list li { margin-bottom: 0.75rem; }
.footer__contacts li { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; color: var(--gray-400); }
.footer__contacts svg { flex-shrink: 0; margin-top: 0.125rem; }
.footer__contacts li:first-child svg { color: var(--red-500); }
.footer__contacts li:nth-child(2) svg { color: var(--blue-600); }
.footer__contacts li:nth-child(3) svg { color: var(--green-600); }
.footer__contacts a { color: #fff; font-weight: 600; }
.footer__contacts a:hover { color: #f87171; }
.footer__bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) { .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer__copy { font-size: 0.875rem; color: var(--gray-400); }
.footer__legal-wrap { display: flex; flex-direction: column; gap: 0.75rem; align-items: center; }
@media (min-width: 768px) { .footer__legal-wrap { flex-direction: row; align-items: center; gap: 1.5rem; } }
.footer__legal { display: flex; gap: 1.5rem; font-size: 0.875rem; }
.footer__dev { font-size: 0.875rem; color: var(--gray-400); margin: 0; }
.footer__dev a { color: var(--gray-400); transition: color 0.2s; }
.footer__dev a:hover { color: #fff; }

/* ========== Плашка cookie (выезжает снизу экрана) ========== */
.cookie-plashka {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1e293b;
  color: #fff;
  padding: 1rem 1.5rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(100%);
  transition: transform 0.4s ease-out;
  will-change: transform;
}
.cookie-plashka.is-visible {
  transform: translateY(0);
}
.cookie-plashka__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-plashka__text {
  flex: 1;
  min-width: 200px;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--gray-300);
}
.cookie-plashka__text a {
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-plashka__text a:hover { color: var(--blue-500, #3b82f6); }
.cookie-plashka__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}
.cookie-plashka__link {
  color: var(--gray-400);
  font-size: 0.9375rem;
  text-decoration: none;
}
.cookie-plashka__link:hover { color: #fff; }
.cookie-plashka__btn {
  padding: 0.625rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  background: var(--blue-600);
  color: #fff;
  transition: background 0.2s;
}
.cookie-plashka__btn:hover { background: var(--blue-700); }
.cookie-plashka__btn:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }
@media (max-width: 479px) {
  .cookie-plashka__inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-plashka__actions { flex-direction: column; width: 100%; }
  .cookie-plashka__btn { width: 100%; }
}

/* ========== Toast ========== */
.toast {
  position: fixed;
  bottom: max(2rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--gray-900);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-2xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 100;
  transition: transform 0.3s ease;
}
.toast.is-visible { transform: translateX(-50%) translateY(0); }
.toast__icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.toast--success .toast__icon { color: var(--green-600); }
.toast--error .toast__message { color: #fff; }
.toast--error { background: var(--red-700); }

/* ========== Ноутбуки 1280px ========== */
@media (max-width: 1280px) {
  :root { --container: min(100% - 2rem, 72rem); }
  .container { padding-inline: 1.25rem; }
  .section { padding-block: 4.5rem; }
  .section__head { margin-bottom: 3rem; }
  .section__title { font-size: clamp(1.75rem, 4vw, 3rem); }
  .section__lead { font-size: 1.125rem; }
  .header__inner { padding-inline: 1.25rem; }
  .hero__content { padding-inline: 1.25rem; }
  .hero__title { font-size: clamp(2rem, 4.5vw, 3.25rem); }
  .hero__lead { font-size: 1.125rem; }
  .hero__stats { gap: 1.25rem; }
  .stat-card { padding: 1.25rem; }
  .about__grid { gap: 2.5rem; }
  .about__floating-badge { right: 0.5rem; bottom: 0.5rem; }
  .services__grid { gap: 1.25rem; }
  .service-card { padding: 1.5rem; }
  .service-card__title { font-size: 1.25rem; }
  .gallery__grid { gap: 1rem; }
  .advantages__grid { gap: 1.5rem; }
  .advantage-card { padding: 1.5rem; }
  .contact-cards { gap: 1rem; }
  .contact-card { padding: 1.25rem; }
  .cta-banner { padding: 3rem 1.5rem; }
  .cta-banner__title { font-size: 1.75rem; }
  .footer__grid { gap: 2rem; }
}

/* ========== Мобильные правки ========== */
@media (max-width: 767px) {
  .section { padding-block: 3rem; }
  .section__head { margin-bottom: 2.5rem; }
  .section__lead { font-size: 1rem; }
  .hero__content { padding: 5rem 1rem 3rem; }
  .hero__cta { margin-bottom: 2.5rem; }
  .hero__stats { gap: 1rem; }
  .stat-card { padding: 1rem; }
  .stat-card__value { font-size: 1.75rem; }
  .about__floating-badge {
    right: 1rem;
    bottom: 0rem;
    padding: 0.6rem;
  }
  .about__floating-value { font-size: 2.25rem; }
  .about__img--large img { height: 14rem; min-height: 12rem; }
  .about__img:not(.about__img--large) img { height: 7rem; min-height: 6rem; }
  .about__features { gap: 0.75rem; margin-top: 1.5rem; }
  .feature-card { padding: 1rem; }
  .quote-banner { padding: 2rem 1rem; }
  .quote-banner__text { font-size: 1.125rem; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1.5rem; }
  .contact-form__input,
  .contact-form__textarea { min-height: 2.75rem; padding: 0.875rem 1rem; }
  .contact-form__textarea { min-height: 6rem; }
  .contact-form__submit { min-height: 3rem; }
  .benefits-mini { grid-template-columns: 1fr; }
  .bank-carousel { padding: 2rem 0; margin-top: 2rem; }
  .bank-card { min-width: 200px; }
  .footer__legal { flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
}

@media (max-width: 479px) {
  .container { padding-inline: 0.75rem; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; min-height: 2.75rem; }
  .about__features { grid-template-columns: 1fr; }
  .header__actions .btn--pill { padding: 0.5rem 0.75rem; font-size: 0.875rem; min-height: 2.75rem; }
}

