
/* Дизайн-токены */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, Arial, 'Noto Sans', 'Helvetica Neue', sans-serif;
  --font-serif: 'Times New Roman', Times, Georgia, serif;
  --color-bg: #ffffff;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-primary: #2563eb;
  --color-primary-contrast: #ffffff;
  --color-logo-red: #BF3448;
  --color-active-link: #FF6B35;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 20px rgba(17,24,39,0.08);
  --container-max: 1146px;
}

/* База: mobile-first типографика и сетка */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

/* Заголовки и текст */
h1, h2, h3, h4 { margin: 0 0 var(--space-4); line-height: 1.25; }
p { margin: 0 0 var(--space-4); color: var(--color-text); }

/* Ссылки и кнопки базово */
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; }

/* Контейнер и утилиты */
.container { 
  width: 100%; 
  max-width: 1146px; 
  margin-inline: auto; 
  padding-inline: var(--space-4); 
}

@media (min-width: 1200px) {
  .container {
    padding-inline: 0;
  }
}
/* Skip-link для навигации с клавиатуры */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  padding: 12px 24px;
  text-decoration: none;
  z-index: 10001;
  border-radius: 0 0 4px 0;
  font-weight: 500;
  font-size: 16px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  outline: 3px solid var(--color-primary-contrast);
  outline-offset: -2px;
}

/* Утилитарные классы */
/* .sr-only - скрытие для скринридеров */
.sr-only { 
  position: absolute; 
  width: 1px; 
  height: 1px; 
  padding: 0; 
  margin: -1px; 
  overflow: hidden; 
  clip: rect(0,0,0,0); 
  white-space: nowrap; 
  border: 0; 
}

/* Фокус-видимость для доступности */
:focus-visible { 
  outline: 2px solid var(--color-primary); 
  outline-offset: 2px; 
  border-radius: 2px;
}

/* Улучшенные визуальные индикаторы фокуса для всех интерактивных элементов */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Специфичные стили для ссылок в навигации */
.header__link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Специфичные стили для кнопок */
button:focus-visible,
.header__cta:focus-visible,
.header__burger:focus-visible,
.hero__button:focus-visible,
.listing-card__button:focus-visible,
.cta__button:focus-visible,
.modal__submit:focus-visible,
.modal__close:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Специфичные стили для input полей */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Улучшенный фокус для radio и checkbox */
.modal__radio:focus-visible + .modal__radio-label,
.modal__checkbox:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========================================
   COMPONENTS
   ======================================== */

/* Header - Шапка сайта */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #ffffff;
  z-index: 1000;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-6);
}
.header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.header__nav { margin-left: auto; }
.header__menu {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  padding: 0;
  margin: 0 var(--space-6) 0 0;
}
.header__link {
  color: var(--color-text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: color 0.2s ease;
}
.header__link:hover {
  color: var(--color-active-link);
  text-decoration: none;
}
.header__link--active {
  color: var(--color-active-link);
}
.header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}
.header__cta:hover {
  background: #FFFFFF;
  color: #2E6EFF;
  border: 1px solid #2E6EFF;
  transform: scale(1.1);
  text-decoration: none;
}
.header__cta:active {
  transform: scale(1.05);
}

/* Бургер-меню */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
  transition: transform 0.3s ease;
}

.header__burger-line {
  width: 100%;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.header__burger[aria-expanded="true"] .header__burger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.header__burger[aria-expanded="true"] .header__burger-line:nth-child(2) {
  opacity: 0;
}

.header__burger[aria-expanded="true"] .header__burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.header__burger:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Адаптив: бургер-меню на мобильных */
@media (max-width: 767px) {
  .header__burger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    margin-left: 0;
    padding-top: 80px;
    overflow-y: auto;
  }

  .header__nav[aria-hidden="false"] {
    transform: translateX(0);
  }

  .header__menu {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
    margin: 0;
    padding: 0 var(--space-4);
  }

  .header__menu li {
    width: 100%;
  }

  .header__link {
    display: block;
    width: 100%;
    padding: var(--space-4) 0;
    font-size: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .header__cta {
    display: none;
  }
}

/* На десктопе меню всегда видимо */
@media (min-width: 768px) {
  .header__nav {
    position: static;
    transform: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding-top: 0;
    overflow-y: visible;
  }
}

/* Hero - Главный блок */
.hero {
  width: 100%;
  padding-block: var(--space-8);
  padding-top: 0; /* Убираем отступ, так как изображение теперь первое */
  background: var(--color-bg);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  align-items: center;
}

.hero__content {
  width: 100%;
  text-align: center;
  order: 2; /* Текст снизу на мобильных */
}

.hero__title {
  font-size: clamp(32px, 5vw, 61px);
  font-weight: 600;
  line-height: 1.2;
  color: #030A1B;
  margin-bottom: 30px;
  font-family: 'Poppins', var(--font-sans);
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  color: var(--color-muted);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  font-family: 'Poppins', var(--font-sans);
}

.hero__actions {
  display: flex;
  justify-content: center;
}

.hero__button {
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-primary-contrast);
  background: #2E6EFF;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  will-change: transform;
}

.hero__button:hover {
  background: #FFFFFF;
  color: #2E6EFF;
  border: 1px solid #2E6EFF;
}

.hero__button:active {
  transform: scale(1.05);
}

.hero__button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

.hero__image-wrapper {
  width: 100%;
  max-width: 600px;
  transform: none !important;
  perspective: none !important;
  order: 1; /* Изображение сверху на мобильных */
  margin-top: 171px; /* Отступ сверху для фиксированной шапки */
}

.hero__image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Адаптив: две колонки на десктопе */
@media (min-width: 768px) {
  .hero {
    padding-top: 120px; /* Увеличенный отступ для фиксированной шапки */
  }

  .hero__inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-8);
  }

  .hero__content {
    flex: 1;
    text-align: left;
    max-width: 50%;
    order: 0; /* Возвращаем естественный порядок на десктопе */
  }

  .hero__subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .hero__image-wrapper {
    flex: 1;
    max-width: 50%;
    position: relative;
    z-index: 1;
    order: 0; /* Возвращаем естественный порядок на десктопе */
    margin-top: 0; /* Убираем отступ на десктопе */
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 171px;
    padding-bottom: calc(var(--space-8) * 2);
  }

  .hero__inner {
    gap: calc(var(--space-8) * 1.5);
  }
}

/* Partners - Партнёры */
.partners {
  width: 100%;
  padding-block: var(--space-8);
  background: var(--color-bg);
}

.partners__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.partners__title {
  font-size: 44px;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 65px;
  font-family: 'Poppins', var(--font-sans);
}

.partners__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.partners__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.partners__logo {
  max-width: 100%;
  height: 70px;
  width: auto;
  object-fit: contain;
}

.partners__logo:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

/* Адаптив для партнеров */
@media (max-width: 640px) {
  .partners__list {
    gap: var(--space-4);
  }

  .partners__item {
    flex: 0 0 calc(50% - var(--space-2));
    max-width: calc(50% - var(--space-2));
  }

  .partners__logo {
    width: auto;
    max-width: 100px;
    height: 70px;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .partners__list {
    gap: var(--space-6);
  }

  .partners__item {
    flex: 0 0 calc(33.333% - var(--space-4));
    max-width: calc(33.333% - var(--space-4));
  }

  .partners__logo {
    width: auto;
    max-width: 120px;
    height: 70px;
  }
}

@media (min-width: 1024px) {
  .partners {
    padding-block: calc(var(--space-8) * 1.5);
  }

  .partners__list {
    gap: 103px;
    flex-wrap: nowrap;
    justify-content: center;
  }

  .partners__item {
    flex: 0 0 auto;
  }

  .partners__logo {
    max-width: 140px;
    height: 70px;
    width: auto;
  }
}

/* Listings - Популярные объекты недвижимости */
.listings {
  width: 100%;
  padding-block: var(--space-8);
  background: var(--color-bg);
}

.listings__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.listings__title {
  font-size: 44px;
  font-weight: 600;
  font-family: 'Poppins', var(--font-sans);
  color: #030A1B;
  text-align: center;
  margin: 0 0 70px 0;
  line-height: 1.2;
}

.listings__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.listing-card {
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.listing-card__image-wrapper {
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.listing-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  transform-origin: center center;
}

.listing-card:hover .listing-card__image {
  transform: scale(1.1);
}

.listing-card__content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.listing-card__title {
  font-size: 22px;
  font-weight: 600;
  font-family: 'Poppins', var(--font-sans);
  color: #030A1B;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.listing-card__address {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.listing-card__pin-icon {
  flex-shrink: 0;
}

.listing-card__address-text {
  font-size: 16px;
  font-weight: 400;
  font-family: 'Poppins', var(--font-sans);
  color: #4B5563;
  line-height: 1.5;
}

.listing-card__features {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.listing-card__feature {
  display: flex;
  align-items: center;
  gap: 8px;
}

.listing-card__feature-icon {
  flex-shrink: 0;
}

.listing-card__feature-value {
  font-size: 16px;
  font-weight: 400;
  font-family: 'Poppins', var(--font-sans);
  color: #030A1B;
  line-height: 1.5;
}

.listing-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.listing-card__price {
  font-size: 22px;
  font-weight: 600;
  font-family: 'Poppins', var(--font-sans);
  color: #FE753F;
  line-height: 1.2;
}

.listing-card__button {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Poppins', var(--font-sans);
  color: #FFFFFF;
  background: #2E6EFF;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.listing-card__button:hover {
  background: #FFFFFF;
  color: #2E6EFF;
  border: 1px solid #2E6EFF;
  transform: scale(1.1);
}

.listing-card__button:active {
  transform: scale(1.05);
}

.listing-card__button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Адаптив для списка объектов */
@media (max-width: 350px) {
  .listings {
    padding-block: var(--space-6);
  }

  .listings__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .listings__title {
    font-size: clamp(24px, 6vw, 44px);
    margin-bottom: 40px;
    text-align: center;
  }

  .listings__grid {
    gap: 20px;
    justify-items: center;
    width: 100%;
    max-width: 100%;
  }

  .listing-card {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .listing-card__image-wrapper {
    height: 240px;
  }

  .listing-card__content {
    padding: 20px 16px;
    text-align: center;
  }

  .listing-card__title {
    font-size: 18px;
    margin-bottom: 8px;
    text-align: center;
  }

  .listing-card__address {
    justify-content: center;
    margin-bottom: 16px;
  }

  .listing-card__address-text {
    font-size: 14px;
  }

  .listing-card__features {
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }

  .listing-card__feature-value {
    font-size: 14px;
  }

  .listing-card__footer {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .listing-card__price {
    font-size: 20px;
    text-align: center;
  }

  .listing-card__button {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  .listings__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .listings {
    padding-block: calc(var(--space-8) * 1.5);
  }

  .listings__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Benefits - Преимущества */
.benefits {
  width: 100%;
  padding-block: var(--space-8);
  background: #F8F8F8;
}

.benefits__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.benefits__title {
  font-size: 44px;
  font-weight: 600;
  font-family: 'Poppins', var(--font-sans);
  color: #030A1B;
  text-align: center;
  margin: 0 0 30px 0;
  line-height: 1.5;
}

.benefits__subtitle {
  font-size: 16px;
  font-weight: 400;
  font-family: 'Poppins', var(--font-sans);
  color: #4B5563;
  text-align: center;
  line-height: 1.5;
  margin: 0 0 70px 0;
  max-width: 728px;
}

.benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  width: 100%;
  align-items: start;
}

.benefits__column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.benefits__image-wrapper {
  width: 100%;
  max-width: 362px;
  margin: 0 auto;
  order: 2;
  overflow: hidden;
  border-radius: 10px;
}

.benefits__image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.benefit-card {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 25px;
  width: 100%;
  max-width: 362px;
  margin: 0 auto;
  min-height: 202px;
}

.benefit-card__icon-wrapper {
  width: 46px;
  height: 46px;
  background: #FFF0EC;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.benefit-card__icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.benefit-card__title {
  font-size: 22px;
  font-weight: 600;
  font-family: 'Poppins', var(--font-sans);
  color: #030A1B;
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.benefit-card__desc {
  font-size: 16px;
  font-weight: 400;
  font-family: 'Poppins', var(--font-sans);
  color: #4B5563;
  line-height: 1.5;
  margin: 0;
}

/* Адаптив для Benefits */
@media (min-width: 768px) {
  .benefits__grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .benefits__column {
    gap: 30px;
  }

  .benefits__image-wrapper {
    order: 1;
    grid-column: 1 / -1;
    max-width: 362px;
  }

  .benefits__column--left,
  .benefits__column--right {
    max-width: 362px;
    margin: 0;
  }
}

@media (min-width: 1024px) {
  .benefits {
    padding-block: calc(var(--space-8) * 1.5);
  }

  .benefits__grid {
    grid-template-columns: 362px 362px 362px;
    gap: 30px;
    justify-content: center;
    margin: 0 auto;
  }

  .benefits__image-wrapper {
    order: 0;
    grid-column: auto;
    max-width: 362px;
    align-self: center;
  }

  .benefits__column {
    max-width: 362px;
  }

  .benefit-card {
    max-width: 362px;
    width: 362px;
    height: 202px;
  }
}

@media (min-width: 1280px) {
  .benefits__grid {
    gap: 30px;
  }
}

/* Reviews - Отзывы клиентов */
.reviews {
  width: 100%;
  padding-block: var(--space-8);
  background: var(--color-bg);
}

.reviews__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reviews__label {
  font-size: 16px;
  font-weight: 600;
  font-family: 'Poppins', var(--font-sans);
  color: #FE753F;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.reviews__title {
  font-size: 44px;
  font-weight: 600;
  font-family: 'Poppins', var(--font-sans);
  color: #030A1B;
  text-align: center;
  margin: 0 0 70px 0;
  line-height: 1.5;
}

.reviews__slider {
  width: 100%;
  padding-bottom: 0;
  position: relative;
}

.reviews__wrapper {
  display: flex;
  align-items: stretch;
}

.reviews__slide {
  height: auto;
  display: flex;
  justify-content: center;
}

.review-card {
  background: #FFFFFF;
  border: 2px solid rgba(254, 117, 63, 0.1);
  border-radius: 10px;
  padding: 30px;
  width: 100%;
  max-width: 558px;
  height: 260px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.review-card__quote-icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 64px;
  height: 64px;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
  flex-shrink: 0;
}

.review-card__header {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.review-card__avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.review-card__info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.review-card__name {
  font-size: 22px;
  font-weight: 600;
  font-family: 'Poppins', var(--font-sans);
  color: #030A1B;
  margin: 0;
  line-height: 1.5;
}

.review-card__name strong {
  font-weight: 600;
}

.review-card__position {
  font-size: 16px;
  font-weight: 400;
  font-family: 'Poppins', var(--font-sans);
  color: #4B5563;
  margin: 0;
  line-height: 1.5;
}

.review-card__text {
  font-size: 16px;
  font-weight: 400;
  font-family: 'Poppins', var(--font-sans);
  color: #4B5563;
  margin: 0;
  line-height: 1.5;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

/* Swiper pagination customization */
.reviews__pagination {
  position: static !important;
  margin-top: 40px;
  bottom: auto !important;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  margin-right: auto;
  transform: none !important;
}

.reviews__pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #EDEDED;
  opacity: 1;
  border-radius: 50%;
  margin: 0;
  transition: background-color 0.3s ease;
}

.reviews__pagination .swiper-pagination-bullet-active {
  background: #3B82F6;
}

/* Адаптив для Reviews */
@media (max-width: 767px) {
  .reviews__title {
    font-size: clamp(28px, 5vw, 44px);
    margin-bottom: 40px;
  }

  .review-card {
    max-width: 100%;
    height: auto;
    min-height: 260px;
    padding: 20px;
  }

  .review-card__header {
    gap: 20px;
    margin-bottom: 20px;
  }

  .review-card__avatar {
    width: 60px;
    height: 60px;
  }

  .review-card__quote-icon {
    width: 48px;
    height: 48px;
    top: 0;
    right: 0;
  }

  .reviews__pagination {
    margin-top: 40px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .reviews__slider {
    padding-bottom: 0;
  }

  .review-card {
    max-width: 100%;
  }
}

@media (min-width: 1024px) {
  .reviews {
    padding-block: calc(var(--space-8) * 1.5);
  }

  .reviews__slider {
    padding-bottom: 0;
  }
}

/* CTA - Призыв к действию (подписка на рассылку) */
.cta {
  width: 100%;
  padding-block: var(--space-8);
  background: var(--color-bg);
  position: relative;
}

.cta__inner {
  position: relative;
  width: 100%;
  max-width: 1146px;
  margin: 0 auto;
  padding-inline: var(--space-4);
}

@media (min-width: 1200px) {
  .cta__inner {
    padding-inline: 0;
  }
}

@media (max-width: 767px) {
  .cta__inner {
    padding-inline: var(--space-4);
  }
}

@media (max-width: 480px) {
  .cta__inner {
    padding-inline: var(--space-3);
  }
}

@media (max-width: 375px) {
  .cta__inner {
    padding-inline: var(--space-2);
  }
}

.cta__bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - var(--space-4) * 2);
  max-width: 1146px;
  height: 403px;
  z-index: 0;
  overflow: hidden;
  border-radius: 16px;
}

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

.cta__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 120px;
  text-align: center;
}

.cta__title {
  position: relative;
  z-index: 2;
  font-size: 44px;
  font-weight: 500;
  font-family: 'Poppins', var(--font-sans);
  color: #FFFFFF;
  margin: 0 0 24px 0;
  line-height: 1.36;
  max-width: 730px;
}

.cta__desc {
  position: relative;
  z-index: 2;
  font-size: 16px;
  font-weight: 400;
  font-family: 'Poppins', var(--font-sans);
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 48px 0;
  line-height: 1.5;
  max-width: 635px;
}

.cta__form {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 743px;
}

.cta__input-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  height: 70px;
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
}

.cta__input {
  flex: 1;
  padding: 23px 30px;
  font-size: 16px;
  font-weight: 400;
  font-family: 'Poppins', var(--font-sans);
  color: #030A1B;
  background: #FFFFFF;
  border: none;
  border-radius: 12px 0 0 12px;
  outline: none;
  min-width: 0;
}

.cta__input::placeholder {
  color: #030A1B;
  opacity: 0.5;
}

.cta__input:focus {
  outline: none;
}

.cta__input:focus-visible {
  outline: 2px solid #2E6EFF;
  outline-offset: -2px;
}

.cta__input.cta__input--error {
  border: 2px solid #FF4444;
  border-right: none;
}

.cta__error {
  position: absolute;
  bottom: -24px;
  left: 30px;
  font-size: 14px;
  font-weight: 400;
  font-family: 'Poppins', var(--font-sans);
  color: #FF4444;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.cta__error.cta__error--visible {
  visibility: visible;
  opacity: 1;
}

.cta__button {
  flex-shrink: 0;
  display: block;
  width: 162px;
  height: 56px;
  margin: 7px;
  padding: 16px 41px;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Poppins', var(--font-sans);
  color: #FFFFFF;
  background: #2E6EFF;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.cta__button:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: -2px;
}

.cta__button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Адаптив для CTA */
@media (max-width: 1023px) {
  .cta__content {
    padding: 60px 40px;
  }

  .cta__title {
    font-size: clamp(28px, 5vw, 44px);
    margin-bottom: 20px;
  }

  .cta__desc {
    font-size: 14px;
    margin-bottom: 40px;
  }

  .cta__input-wrapper {
    height: auto;
    min-height: 64px;
    flex-direction: column;
    align-items: stretch;
    border-radius: 12px;
  }

  .cta__input {
    border-radius: 12px 12px 0 0;
    padding: 20px 24px;
    height: 56px;
  }

  .cta__input.cta__input--error {
    border-right: 2px solid #FF4444;
    border-radius: 12px 12px 0 0;
  }

  .cta__button {
    display: block;
    width: 100%;
    height: 56px;
    margin: 0;
    border-radius: 0 0 12px 12px;
  }

  .cta__error {
    bottom: -20px;
    left: 24px;
  }
}

@media (max-width: 768px) {
  .cta__desc {
    margin-bottom: 24px;
  }

  .cta__form {
    margin-top: 16px;
  }
}

@media (max-width: 767px) {
  .cta {
    padding-block: var(--space-6);
    overflow: visible;
  }

  .cta__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: visible;
    position: relative;
  }

  .cta__bg {
    height: auto;
    min-height: 280px;
    width: calc(100% - var(--space-4) * 2);
    border-radius: 16px 16px 0 0;
    position: relative;
    margin-bottom: 0;
    overflow: visible;
    z-index: 0;
  }

  .cta__content {
    padding: 32px 20px 20px;
    position: relative;
    margin-top: -280px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    overflow: visible;
    min-height: 280px;
  }

  .cta__title {
    position: relative;
    z-index: 2;
    font-size: clamp(20px, 5vw, 28px);
    margin-bottom: 12px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #FFFFFF !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .cta__desc {
    position: relative;
    z-index: 2;
    font-size: clamp(12px, 3vw, 14px);
    margin-bottom: 24px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #FFFFFF !important;
    opacity: 0.9 !important;
    visibility: visible !important;
  }

  .cta__form {
    position: relative;
    z-index: 3;
    width: calc(100% - var(--space-4) * 2);
    max-width: calc(100% - var(--space-4) * 2);
    margin-top: 16px;
    padding: 0 var(--space-4);
    overflow: visible;
  }

  .cta__input-wrapper {
    height: auto;
    width: 100%;
    margin: 0;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
  }

  .cta__input {
    height: 56px;
    padding: 16px 20px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px 12px 0 0;
  }

  .cta__input.cta__input--error {
    border-right: 2px solid #FF4444;
    border-radius: 12px 12px 0 0;
  }

  .cta__button {
    height: 56px;
    padding: 16px 20px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0 0 12px 12px;
  }

  .cta__error {
    left: 20px;
    bottom: -20px;
  }
}

@media (max-width: 480px) {
  .cta {
    padding-block: var(--space-4);
  }

  .cta__bg {
    width: calc(100% - var(--space-3) * 2);
    min-height: 260px;
    border-radius: 12px 12px 0 0;
  }

  .cta__content {
    padding: 28px 16px 16px;
    margin-top: -260px;
    min-height: 260px;
  }

  .cta__title {
    font-size: clamp(18px, 5vw, 24px);
    margin-bottom: 10px;
    line-height: 1.25;
    padding: 0;
    color: #FFFFFF !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .cta__desc {
    font-size: clamp(11px, 3vw, 13px);
    margin-bottom: 20px;
    line-height: 1.4;
    padding: 0;
    color: #FFFFFF !important;
    opacity: 0.9 !important;
    visibility: visible !important;
  }

  .cta__form {
    width: calc(100% - var(--space-3) * 2);
    max-width: calc(100% - var(--space-3) * 2);
    margin-top: 12px;
    padding: 0 var(--space-3);
  }

  .cta__input {
    padding: 14px 16px;
    font-size: 14px;
    height: 52px;
  }

  .cta__button {
    padding: 14px 16px;
    font-size: 14px;
    height: 52px;
  }

  .cta__error {
    font-size: 12px;
    left: 16px;
    bottom: -18px;
  }
}

@media (max-width: 425px) {
  .cta {
    padding-block: var(--space-4);
  }

  .cta__bg {
    width: calc(100% - var(--space-3) * 2);
    min-height: 240px;
    border-radius: 12px 12px 0 0;
  }

  .cta__content {
    padding: 24px 14px 14px;
    margin-top: -240px;
    min-height: 240px;
  }

  .cta__title {
    font-size: clamp(18px, 5vw, 22px);
    margin-bottom: 10px;
    line-height: 1.25;
    padding: 0 4px;
    color: #FFFFFF !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .cta__desc {
    font-size: clamp(11px, 3vw, 12px);
    margin-bottom: 18px;
    line-height: 1.4;
    padding: 0 4px;
    color: #FFFFFF !important;
    opacity: 0.9 !important;
    visibility: visible !important;
  }

  .cta__form {
    width: calc(100% - var(--space-3) * 2);
    max-width: calc(100% - var(--space-3) * 2);
    margin-top: 10px;
    padding: 0 var(--space-3);
  }

  .cta__input-wrapper {
    margin-top: 0;
  }

  .cta__input {
    padding: 12px 14px;
    font-size: 13px;
    height: 50px;
  }

  .cta__button {
    padding: 12px 14px;
    font-size: 13px;
    height: 50px;
  }

  .cta__error {
    font-size: 11px;
    left: 14px;
    bottom: -16px;
  }
}

@media (max-width: 375px) {
  .cta {
    padding-block: var(--space-3);
  }

  .cta__bg {
    width: calc(100% - var(--space-2) * 2);
    min-height: 220px;
    border-radius: 10px 10px 0 0;
  }

  .cta__content {
    padding: 20px 12px 12px;
    margin-top: -220px;
    min-height: 220px;
  }

  .cta__title {
    font-size: clamp(17px, 5vw, 20px);
    margin-bottom: 8px;
    line-height: 1.2;
    padding: 0 2px;
    color: #FFFFFF !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .cta__desc {
    font-size: clamp(10px, 3vw, 11px);
    margin-bottom: 16px;
    line-height: 1.35;
    padding: 0 2px;
    color: #FFFFFF !important;
    opacity: 0.9 !important;
    visibility: visible !important;
  }

  .cta__form {
    width: calc(100% - var(--space-2) * 2);
    max-width: calc(100% - var(--space-2) * 2);
    margin-top: 8px;
    padding: 0 var(--space-2);
  }

  .cta__input-wrapper {
    margin-top: 0;
    border-radius: 10px;
  }

  .cta__input {
    padding: 12px 12px;
    font-size: 13px;
    height: 48px;
    border-radius: 10px 10px 0 0;
  }

  .cta__input.cta__input--error {
    border-radius: 10px 10px 0 0;
  }

  .cta__button {
    padding: 12px 12px;
    font-size: 13px;
    height: 48px;
    border-radius: 0 0 10px 10px;
  }

  .cta__error {
    font-size: 10px;
    left: 12px;
    bottom: -14px;
  }
}

@media (max-width: 320px) {
  .cta {
    padding-block: var(--space-2);
  }

  .cta__bg {
    width: calc(100% - var(--space-2) * 2);
    min-height: 200px;
    border-radius: 8px 8px 0 0;
  }

  .cta__content {
    padding: 16px 10px 10px;
    margin-top: -200px;
    min-height: 200px;
  }

  .cta__title {
    font-size: clamp(16px, 5vw, 18px);
    margin-bottom: 6px;
    line-height: 1.2;
    padding: 0;
    color: #FFFFFF !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .cta__desc {
    font-size: clamp(9px, 3vw, 10px);
    margin-bottom: 14px;
    line-height: 1.3;
    padding: 0;
    color: #FFFFFF !important;
    opacity: 0.9 !important;
    visibility: visible !important;
  }

  .cta__form {
    width: calc(100% - var(--space-2) * 2);
    max-width: calc(100% - var(--space-2) * 2);
    margin-top: 6px;
    padding: 0 var(--space-2);
  }

  .cta__input-wrapper {
    margin-top: 0;
    border-radius: 8px;
  }

  .cta__input {
    padding: 10px 12px;
    font-size: 12px;
    height: 44px;
    border-radius: 8px 8px 0 0;
  }

  .cta__input.cta__input--error {
    border-radius: 8px 8px 0 0;
  }

  .cta__button {
    padding: 10px 12px;
    font-size: 12px;
    height: 44px;
    border-radius: 0 0 8px 8px;
  }

  .cta__error {
    font-size: 9px;
    left: 10px;
    bottom: -12px;
  }
}

/* Footer - Подвал сайта */
.footer {
  width: 100%;
  background: var(--color-bg);
  padding-block: var(--space-8);
}

.footer__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 164px;
}

.footer__text {
  font-size: 16px;
  font-weight: 400;
  font-family: 'Poppins', var(--font-sans);
  color: #4B5563;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

/* Адаптив для Footer */
@media (max-width: 767px) {
  .footer {
    padding-block: var(--space-6);
  }

  .footer__inner {
    min-height: 120px;
  }

  .footer__text {
    font-size: 14px;
  }
}

/* Modal - Модальное окно для заявки */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal__dialog {
  position: relative;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  z-index: 1;
}

.modal[aria-hidden="false"] .modal__dialog {
  transform: scale(1) translateY(0);
}

.modal__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
  transition: opacity 0.2s ease;
}

.modal__close:hover {
  opacity: 0.8; /* Улучшенная контрастность для hover */
}
.modal__close:active {
  opacity: 0.6;
}

.modal__close:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
  border-radius: var(--radius-sm);
}

.modal__close img {
  width: 24px;
  height: 24px;
  display: block;
}

.modal__content {
  width: 100%;
}

.modal__title {
  font-size: 28px;
  font-weight: 600;
  font-family: 'Poppins', var(--font-sans);
  color: #030A1B;
  text-align: center;
  margin: 0 0 32px 0;
  line-height: 1.4;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal__field fieldset,
fieldset.modal__field {
  border: none !important;
  padding: 0;
  margin: 0;
  outline: none;
  min-width: 0;
  box-shadow: none;
}

.modal__field fieldset:focus,
fieldset.modal__field:focus,
.modal__field fieldset:focus-within,
fieldset.modal__field:focus-within {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.modal__field legend {
  font-size: 16px;
  font-weight: 400;
  font-family: 'Poppins', var(--font-sans);
  color: #030A1B;
  line-height: 1.5;
  margin-bottom: 8px;
  padding: 0;
  border: none;
  outline: none;
  box-shadow: none;
}

.modal__label {
  font-size: 16px;
  font-weight: 400;
  font-family: 'Poppins', var(--font-sans);
  color: #030A1B;
  line-height: 1.5;
}

.modal__input {
  padding: 24px 16px;
  font-size: 16px;
  font-weight: 400;
  font-family: 'Poppins', var(--font-sans);
  color: #030A1B;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}

.modal__input::placeholder {
  color: #030A1B;
  opacity: 0.5;
}

.modal__input:focus {
  border-color: var(--color-primary);
}

.modal__input:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.modal__input.modal__input--error {
  border-color: #FF4444;
}

.modal__error {
  font-size: 14px;
  font-weight: 400;
  font-family: 'Poppins', var(--font-sans);
  color: #FF4444;
  min-height: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal__error.modal__error--visible {
  visibility: visible;
  opacity: 1;
}

.modal__radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.modal__radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.modal__radio-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 400;
  font-family: 'Poppins', var(--font-sans);
  color: #030A1B;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.modal__radio:checked + .modal__radio-label {
  background: #2E6EFF;
  color: #FFFFFF;
  border-color: #2E6EFF;
}

.modal__radio:focus-visible + .modal__radio-label {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.modal__checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal__checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.modal__checkbox:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.modal__checkbox-label {
  font-size: 16px;
  font-weight: 400;
  font-family: 'Poppins', var(--font-sans);
  color: #030A1B;
  cursor: pointer;
  line-height: 1.5;
}

.modal__link {
  color: #2E6EFF;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.modal__link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.modal__submit {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Poppins', var(--font-sans);
  color: #FFFFFF;
  background: #2E6EFF;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.modal__submit:hover {
  background: #FFFFFF;
  color: #2E6EFF;
  border: 1px solid #2E6EFF;
  transform: scale(1.1);
}

.modal__submit:active {
  transform: scale(1.05);
}

.modal__submit:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}

.modal__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal__success {
  display: none;
  text-align: center;
  padding: 48px;
}

.modal__success[aria-hidden="false"] {
  display: block;
}

.modal__success-text {
  font-size: 20px;
  font-weight: 500;
  font-family: 'Poppins', var(--font-sans);
  color: #030A1B;
  margin: 0;
  line-height: 1.5;
}

.modal__content {
  display: block;
}

.modal__content[aria-hidden="true"] {
  display: none;
}

/* Адаптив для Modal */
@media (max-width: 767px) {
  .modal__dialog {
    width: 95%;
    padding: 32px 24px;
    max-height: 95vh;
  }

  .modal__title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .modal__form {
    gap: 12px;
  }

  .modal__input {
    padding: 20px 16px;
  }

  .modal__radio-group {
    gap: 8px;
  }

  .modal__radio-label {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* Privacy Page - Страница политики конфиденциальности */
.privacy {
  width: 100%;
  padding-block: var(--space-8);
  padding-top: 120px; /* Отступ сверху для фиксированной шапки */
  background: var(--color-bg);
}

.privacy__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 800px;
  margin-inline: auto;
}

.privacy__title {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 600;
  font-family: 'Poppins', var(--font-sans);
  color: #030A1B;
  margin: 0 0 40px 0;
  line-height: 1.2;
}

.privacy__content {
  width: 100%;
}

.privacy__text {
  font-size: 18px;
  font-weight: 500;
  font-family: 'Poppins', var(--font-sans);
  color: #374151; /* Улучшенная контрастность вместо opacity: 0.7 */
  line-height: 1.6;
  margin: 0 0 140px 0;
}

/* Адаптив для Privacy */
@media (max-width: 767px) {
  .privacy {
    padding-top: 100px;
  }

  .privacy__title {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .privacy__text {
    font-size: 16px;
    margin-bottom: 80px;
  }
}