/* Подключение шрифтов */
@font-face {
  font-family: "BebasNeue";
  src: url("./fonts/BebasNeueBold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geologica";
  src: url("./fonts/Geologica-ExtraLight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geologica";
  src: url("./fonts/Geologica-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geologica";
  src: url("./fonts/Geologica-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geologica";
  src: url("./fonts/Geologica-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geologica";
  src: url("./fonts/Geologica-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ========== CSS ПЕРЕМЕННЫЕ ========== */
:root {
  /* Основные цвета */
  --color-primary: #016b5b;
  --color-primary-hover: #015a4c;
  --color-secondary: #0c3332;
  --color-dark: #0f3f36;
  --color-white: #ffffff;
  --color-light-bg: #f0f6f5;
  --color-gold: #b79e86;
  --color-gray-light: #eef2ef;

  /* Цвета для текста */
  --text-dark: #0c3332;
  --text-light: #ffffff;
  --text-muted: #7a8b88;

  /* Шрифты */
  --font-primary: "Geologica", sans-serif;
  --font-secondary: "BebasNeue", sans-serif;

  /* Размеры шрифтов */
  --font-size-title: 55px;
  --font-size-subtitle: 38px;
  --font-size-section-title: 36px;
  --font-size-large: 24px;
  --font-size-medium: 18px;
  --font-size-base: 16px;

  /* Тени */
  --shadow-default: 0 6px 12px 0 rgba(1, 107, 91, 0.4);
  --shadow-hover: 0 8px 16px 0 rgba(1, 107, 91, 0.5);
  --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.08);

  /* Радиусы */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 40px;
  --radius-full: 50%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol {
  margin: 0;
}
a {
  text-decoration: none;
}

/* Базовые стили */
body {
  font-family: var(--font-primary);
  font-weight: 400;
  color: var(--text-dark);
  min-height: 100vh;
  background-image: url("/img-png/bg-all.webp");
  background-size: cover;
  background-repeat: no-repeat;
}
.main {
  padding-bottom: 120px;
  display: flex;
  justify-content: space-between;
}

.container {
  max-width: 1848px;
  margin: 0 auto;
}
/* хедер */

.header {
  position: fixed; /* Фиксируем хедер поверх контента */
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(
    255,
    255,
    255,
    0.5
  ); /* Белый полупрозрачный фон (50%) */
  backdrop-filter: blur(5px); /* Добавляем размытие для лучшей читаемости */
  z-index: 1000; /* Высокий z-index, чтобы хедер был поверх всего */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Легкая тень для отделения от фона */
  margin: 0 auto;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav span {
  font-weight: 200;
  line-height: 21px;
}
.header {
  padding: 23px 15px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.contact-item--phone {
  border: 1px solid var(--text-dark);
  border-radius: var(--radius-lg);
  padding: 12px 27px;
  color: var(--text-dark);
}
.desc {
  position: relative;
  padding-left: 30px;
}

.desc::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background-image: url("/img/svg+.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.title {
  font-size: var(--font-size-title);
  font-weight: 600;
  line-height: 60px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.subtitle {
  font-size: var(--font-size-subtitle);
  font-weight: 600;
  margin-bottom: 44px;
  text-transform: uppercase;
}
.span-br {
  border: 2px solid var(--text-dark);
  font-size: 22px;
  font-weight: 400;
  padding: 5px 10px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  display: inline-block;
}

.desc {
  font-size: var(--font-size-large);
  font-weight: 300;
}

.desc:not(:last-child) {
  margin-bottom: 21px;
}

.span-br:not(:last-child) {
  margin-right: 13px;
}

.btn-block {
  margin-top: 67px;
}

.main {
  padding-left: 171px;
  gap: 60px;
}
.text-content {
  padding-top: 160px;
}
.btn {
  font-size: 19px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 20px 58px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  border: none;
  margin-bottom: 25px;
  box-shadow: var(--shadow-default);
  cursor: pointer;
}
.btn-block-span {
  display: block;
  color: var(--text-dark);
  opacity: 54%;
  margin-bottom: 101px;
}

.contact-banner {
  display: flex;
  align-items: center;
  border-radius: 50px;
  overflow: hidden;
  background: var(--color-white);

  max-width: 1577px;
  position: absolute;
  z-index: 2;
}

/* Левая часть */
.banner-left {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 30px;
  background: var(--color-gold);
  color: var(--color-white);
  height: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 50px;
}
.banner-left span {
  font-size: var(--font-size-medium);
  font-weight: 300;
}
.escrow {
  font-size: var(--font-size-medium);
  font-weight: 300;
}

.banner-text {
  font-size: 14px;
  opacity: 0.9;
}

.icons {
  display: flex;
  gap: 20px;
}

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Правая часть */
.banner-right {
  display: flex;
  align-items: center;
  gap: 65px;
  padding: 0 25px;
}

.bank {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.divider {
  width: 1px;
  height: 28px;
  background: #ddd;
}

.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--color-primary-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  cursor: pointer;
}
.promo__button {
  transition: all 0.3s ease;
}
.promo__button:hover {
  background-color: var(--color-primary-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  cursor: pointer;
}
.guarantees__button {
  transition: all 0.3s ease;
}
.guarantees__button:hover {
  background-color: var(--color-primary-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  cursor: pointer;
}
.btn-next {
  transition: all 0.3s ease;
}
.btn-next:hover {
  background-color: var(--color-primary-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  cursor: pointer;
}
.modal__submit {
  transition: all 0.3s ease;
}
.modal__submit:hover {
  background-color: var(--color-primary-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  cursor: pointer;
}

/* Анимация popup header */

.right-group {
  position: relative;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 44px;
  height: 44px;
  background: var(--color-dark);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* POPUP */

.messenger-popup {
  position: absolute;
  top: 60px;
  right: 0;
  width: 260px;
  background: #dce7e3;
  border-radius: var(--radius-md);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.3s;
  z-index: 10;
}

/* стрелка */
.messenger-popup::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 40px;
  width: 20px;
  height: 20px;
  background: #dce7e3;
  transform: rotate(45deg);
}

.popup-inner p {
  font-size: 14px;
  text-align: center;
  margin-bottom: 15px;
  color: #1e3d35;
}

.qr {
  background: var(--color-white);
  padding: 10px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.qr img {
  width: 120px;
  height: 120px;
}

.popup-link {
  display: block;
  text-align: center;
  font-size: 16px;
  color: #1e3d35;
  text-decoration: none;
}

/* hover */
.right-group:hover .messenger-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Анимация первой секции */

/* Основной контейнер для контента слева (для демонстрации) */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--color-white);
  padding: 2rem;
  text-align: center;
}

.content p {
  font-size: 1.2rem;
  max-width: 500px;
  opacity: 0.9;
}

/* Галерея - правая часть */
.auth-page__gallery {
  width: 1056px;
  /* height: 100vh; */
  max-height: 955px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  gap: 1rem;
  padding: 1rem;
  overflow: hidden;
  position: relative;
}

/* Колонка галереи */
.gallery-column {
  flex: 1;
  height: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 1rem;
}

/* Трек с изображениями */
.gallery-track {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  will-change: transform;
}

/* Изображения */
.gallery-track img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  transition: transform 0.3s ease;
  pointer-events: none; /* чтобы не мешали кликам на странице */
  display: block;
}

/* При наведении на колонку можно приостанавливать анимацию для удобства */
.gallery-column:hover .gallery-track {
  animation-play-state: paused;
}

/* Классы для разных направлений */
.column--up .gallery-track {
  animation: scrollUp linear infinite;
}

.column--down .gallery-track {
  animation: scrollDown linear infinite;
}

/* Ключевые кадры анимации */
@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

@keyframes scrollDown {
  0% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(0);
  }
}

/* Адаптация под мобильные устройства */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  .auth-page__gallery {
    width: 100%;
    height: 50vh;
  }

  .content {
    padding: 1rem;
  }

  .content h1 {
    font-size: 2rem;
  }
}

.auth-page__gallery {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

/* секция 2 */

.promo {
  padding: 80px 0;
}
.promo-wrapper {
  background-color: var(--color-light-bg);
  padding: 66px 163px 85px 134px;
  max-width: 1848px;
  margin: 0 auto;
  border-radius: var(--radius-sm);
}
.promo__container {
  max-width: 1577px;
  margin: auto;
  display: flex;
  justify-content: space-between;
}

/* левая часть */

.promo__block-timer {
  display: flex;
  justify-content: space-between;
}
.promo__card-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 10px;
}
.promo__content {
  max-width: 964px;
  width: 100%;
}
.promo__card-subtitle {
  font-size: 15px;
  font-weight: 300;
  margin-bottom: 8px;
}

.promo__badge {
  border: 1px solid #214c47;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  display: inline-block;
  margin-bottom: 20px;
}

.promo__title {
  font-size: var(--font-size-section-title);
  line-height: 1.3;
  margin-bottom: 20px;
  max-width: 550px;
  width: 100%;
  font-weight: 500;
}
.block-timer {
  display: flex;
  gap: 15px;
  margin-top: 5px;
  justify-content: center;
}
.promo__subtitle {
  margin-bottom: 10px;
  max-width: 409px;
  font-weight: 300;
  font-size: var(--font-size-medium);
}

.promo__tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.promo__tab {
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: #e5e0da;
  cursor: pointer;
  font-size: var(--font-size-medium);
}

.promo__tab--active {
  background: var(--color-gold);
  color: var(--color-white);
}

/* карточка цены */

.promo__price-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 25px;
  max-width: 409px;
  text-align: center;
}

.promo__price {
  font-size: 39px;
  font-weight: 500;
}

.promo__old-price {
  text-decoration: line-through;
  color: #999;
  margin-left: 10px;
}

.promo__discount {
  color: red;
  margin-left: 10px;
}

/* кнопка */

.promo__button {
  background: var(--color-primary);
  font-size: 19px;
  color: var(--color-white);
  border: none;
  padding: 20px 67px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  font-weight: 600;
  text-transform: uppercase;
}

.promo__note {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 25px;
}

/* таймер */

.promo__timer {
  padding: 11px 15px;
  background: linear-gradient(
    90deg,
    rgba(210, 235, 232, 1) 0%,
    rgba(228, 240, 239, 1) 98%
  );

  border-radius: 5px;
  height: 114px;
  max-width: 241px;
  width: 100%;
}

.promo__time {
  background-color: var(--color-white);
  padding: 5px;
  border-radius: 5px;
  text-align: center;
  height: 65px;
}
.promo__timer span {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
}
.promo__time span {
  display: block;
}

#days,
#hours,
#minutes {
  font-size: 48px;
  font-family: var(--font-secondary);
  font-weight: 700;
  height: 40px;
}
.promo__time small {
  font-size: 12px;
  opacity: 0.7;
}

.promo__includes-title {
  font-size: 19px;
  font-weight: 500;
  background-color: #d2ebe8;
  padding: 5px 10px;
  border-radius: 50px;

  display: inline-block;
  width: auto;
  margin-bottom: 12px;
}

.promo__includes-list {
  list-style: disc;
  padding-left: 10px;
}

.promo__includes-list li {
  font-size: var(--font-size-medium);
  font-weight: 300;
  margin-bottom: 7px;
}

.promo__includes-bonus {
  font-size: var(--font-size-medium);
  font-weight: 300;
  background-color: var(--color-white);
  border-radius: 600px;
  padding: 7px;

  display: inline-block;
  width: auto;
}

.promo__includes-bonus {
  font-size: var(--font-size-medium);
  line-height: 20px;
  font-weight: 300;
  background-color: var(--color-white);
  border-radius: 600px;
  padding: 7px 10px;
  margin-bottom: 36px;
  display: inline-block;
  width: auto;
  display: inline-flex;
  align-items: center;
  margin-top: 7px;
}
.promo__includes-bonus img {
  margin-right: 12px;
}
.promo-block-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.promo-content-img img {
  width: 100%;
  max-width: 620px;
}

/* секция гарантии */

.guarantees {
  position: relative;
  padding: 178px 0;
  /* overflow: hidden; */ /* <-- УБИРАЕМ это свойство */
  padding-left: 171px;
}

.guarantees__container {
  margin: auto;
  position: relative;
}

.guarantees__content {
  max-width: 990px;
  z-index: 2; /* Текст будет ПОВЕРХ картинки */
  position: relative;
}

.wrapper-promo-guarantees {
  /* overflow-x: hidden; */
  overflow: hidden;
}

/* заголовки */

.guarantees__title {
  font-size: var(--font-size-section-title);
  line-height: 1.3;
  font-weight: 500;
  margin-bottom: 20px;
}

.guarantees__subtitle {
  font-size: var(--font-size-md);
  margin-bottom: 48px;
  font-weight: 300;
}

/* таблица */

.guarantees__table {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #cdd8d5;
  background: var(--color-white);
}

/* строка */
.guarantees__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

/* ячейки */
.guarantees__row > div {
  padding: 18px 20px;
  border-bottom: 1px solid #dce5e2;
  font-size: var(--font-size-medium);
  font-weight: 300;
}

/* вертикальные линии */
.guarantees__row > div:not(:last-child) {
  border-right: 1px solid #bfddd9;
}

/* шапка */
.guarantees__row--head {
  background: #0f5e4e;
  color: var(--color-white);
  font-weight: 500;
  font-size: 21px;
  height: 65px;
}
.guarantees__table img {
  height: 32px;
}

.guarantees__row--head > div {
  border-color: rgba(255, 255, 255, 0.2);
}
.table-color {
  background-color: var(--color-light-bg);
}

/* колонка "ГАРДЕН" (средняя) */
.guarantees__row > div:nth-child(2) {
  font-weight: 500;
}

/* итог */
.guarantees__row--total {
  font-weight: 700;
  background: #f8fbfa;
}
/* нижний блок */

.guarantees__bottom {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

.guarantees__note {
  font-size: var(--font-size-large);
  font-weight: 400;
}

.guarantees__button {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 20px 62px;
  border-radius: var(--radius-xl);
  font-weight: 400;
  cursor: pointer;
  font-size: 19px;
}

/* картинка */

.guarantees__image {
  position: absolute;

  right: -445px;
  bottom: -265px;

  z-index: 1;
}

.guarantees__image img {
  width: 1384px;
  display: block;
}

/* секция проекты */

.project__container {
  max-width: 1900px;
  margin: auto;
}

.project__title {
  font-size: var(--font-size-section-title);
  margin-bottom: 40px;
  font-weight: 500;
  padding-left: 170px;
}

/* строки */

.project__row {
  display: grid;
  gap: 6px;
  margin-bottom: 6px;
}

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

.project__row--bottom {
  grid-template-columns: repeat(4, 1fr);
}

/* карточка */

.project__card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #ddd;
}

/* картинка */

.project__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: 0.4s;
}

/* hover эффект */

.project__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: 0.3s;
  padding: 50px 38px;
}

.project__card:hover .project__overlay {
  opacity: 1;
}

.project__card:hover .project__img {
  transform: scale(1.05);
}

/* текст */

.project__info {
  color: var(--color-white);
  font-size: var(--font-size-medium);
  line-height: 1.6;
  font-weight: 300;
}

/* бейдж */

.project__badge {
  position: absolute;
  bottom: 37px;
  left: 37px;
  background: var(--color-white);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.project__name {
  font-size: var(--font-size-md);
  font-weight: 300;
}
.project__name span {
  font-weight: 500;
  font-size: 32px;
}

/* м² */

.project__area {
  position: absolute;
  top: -35px;
  left: 118px;

  width: 60px;
  height: 60px;

  background: #0f6d5b;
  color: var(--color-white);

  border-radius: var(--radius-full);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 16px;
  text-align: center;
}
/* тег */

.project__tag {
  display: inline-block;
  margin-top: 5px;
  background: #f4a261;
  color: var(--color-white);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
}

/* CTA */

.project__card--cta {
  display: flex;
  padding-top: 39px;

  justify-content: center;
  background-image: url("/img-catalog/catalog-button.webp");
  background-size: cover;
  color: var(--color-white);
}

.project__cta {
  padding-left: 70px;
}
.project__cta p {
  font-size: 44px;
  font-weight: 200;
  line-height: 45px;
  margin-bottom: 20px;
}
.project__cta button {
  margin-top: 15px;
  padding: 20px 107px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  color: var(--color-white);
  cursor: pointer;
  font-size: 19px;
  text-transform: uppercase;
}
.project__info {
  list-style: none;
}

/* секция сертификаты */

.certificate {
  padding: 157px 0 156px;
}

.certificate__container {
  max-width: 1848px;

  margin: auto;
  background-image: url("/img/img-svg-banner/bg-container-bank.webp");
  background-size: cover;

  border-radius: var(--radius-md);
  padding: 60px 400px 60px 135px;
  display: flex;
  gap: 16px;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

/* левая часть */

.certificate__content {
  max-width: 785px;
}

.certificate__title {
  font-size: var(--font-size-section-title);
  margin-bottom: 27px;
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 40px;
}

/* карточки */

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

.certificate__card {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 8px;
}

.certificate__card h3 {
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 10px;
}
.certificate__logos span {
  font-size: 22px;
  font-weight: 200;
  opacity: 50%;
}
.certificate__card p {
  font-size: 22px;
  font-weight: 200;
  opacity: 50%;
}

/* логотипы */

.certificate__card--logos {
  display: flex;
  align-items: center;
}

/* примечание */

.certificate__note {
  margin-top: 20px;
  font-size: 12px;
  opacity: 40%;
}

/* правая часть */

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

/* документ */

.certificate__doc {
  background: var(--color-white);
  padding: 10px;
  border-radius: 4px;
}

.certificate__doc img {
  max-width: 280px;
  display: block;
}

/* партнеры */

.certificate__partners {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px 27px 27px 27px;
  border-radius: 8px;
  text-align: center;
}

.certificate__partners p {
  font-size: 15px;
  opacity: 40%;
  margin-bottom: 20px;
  font-weight: 200;
}
.certificate__note, .text-white {
  color: white;
}
.certificate__bank {
  margin-bottom: 10px;
}

.certificate__bank img {
  width: 100px;
}
.custom-hr {
  width: 164px;
  height: 1px;
  border: none;
  background-color: var(--color-white);
  margin: 20px 0;
  opacity: 15%;
}
.certificate__doc,
.certificate__partners,
.certificate__card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); /* Более темная тень */
}

/* секция галеря фото  */
.portfolio {
  padding-bottom: 81px;
}

.portfolio__container {
  max-width: 1900px;
  margin: auto;
}

.portfolio__title {
  font-size: var(--font-size-section-title);
  margin-bottom: 30px;
  padding-left: 171px;
  margin-bottom: 70px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* сетка 5 колонок */
.portfolio__grid {
  display: grid;
  grid-template-columns: 355px 409px 409px 409px 286px;
  gap: 8px;
  justify-content: center;
}

/* колонка */
.portfolio__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* карточка */
.portfolio__item {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

/* картинка */
.portfolio__item img {
  width: 100%;
  display: block;
  transition: 0.4s;
}

/* hover */
.portfolio__item:hover img {
  transform: scale(1.05);
}

/* ===== МОДАЛКА ===== */

.portfolio__modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.portfolio__modal.active {
  opacity: 1;
  pointer-events: auto;
}

.portfolio__modal-content {
  max-width: 700px;
  width: 90%;
  border-radius: var(--radius-md);
  overflow: hidden;
  transform: scale(0.8);
  transition: 0.3s;
}

.portfolio__modal.active .portfolio__modal-content {
  transform: scale(1);
}

.portfolio__modal img {
  width: 100%;
  display: block;
}

/* смещение колонок */
/* 2 колонка */
.portfolio__col:nth-child(2) {
  margin-top: -30px;
}

/* 3 колонка */
.portfolio__col:nth-child(3) {
  margin-top: -50px;
}

/* 4 колонка */
.portfolio__col:nth-child(4) {
  margin-top: -70px;
}

/* 5 колонка (вровень с 1) */
.portfolio__col:nth-child(5) {
  margin-top: 0;
}

/* секция с картой */

.map {
  position: relative;
  padding-bottom: 80px;

  overflow: visible;
}

/* контейнер */
.map__container {
  max-width: 1848px;
  margin: auto;
  position: relative;
}

/* левая картинка */
.map__visual {
  position: absolute;
  left: -530px; /* уходит за край */
  top: -300px; /* заезжает вверх */
  max-width: 1210px;

  z-index: 2;
}

.map__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* текст поверх картинки */
.map__info {
  position: absolute;
  right: 150px;
  bottom: 550px;
  color: var(--color-white);
}

.map__info h3 {
  font-size: var(--font-size-section-title);
  margin-bottom: 10px;
  font-weight: normal;
}

.map__info p {
  font-size: var(--font-size-large);
  font-weight: lighter;
}

.map__canvas iframe {
  border-radius: var(--radius-md);
  /* Убираем возможные белые углы */
  border: none;
  outline: none;
}

/*  section cost */

.cost {
  max-width: 1848px;
  max-height: 936px;

  margin: auto;
  position: relative;
  z-index: 3;
  border-radius: var(--radius-sm);
}

/*  секция квиз  */

.cost__container {
  margin: 0 auto;
}

.cost__step {
  display: none;
  justify-content: space-between;
  align-items: center;
  max-width: 1848px;
  padding: 116px 135px 117px;
  border-radius: var(--radius-sm);
}

.cost__step.active {
  display: block;
}

.cost__left h2 {
  font-size: var(--font-size-section-title);
  font-weight: 500;
  margin-bottom: 21px;
}
.cost__left p {
  font-size: var(--font-size-large);
  font-weight: lighter;
  max-width: 655px;
  margin-bottom: 57px;
}
.card p {
  font-size: var(--font-size-large);
  font-weight: 500;
}

.cost__right {
  width: 35%;
}

.cost__right img {
  width: 100%;
}

.cost__grid {
  display: flex;
  gap: 30px;
  margin: 30px 0;
}

.card {
  background: var(--color-gray-light);
  padding: 40px 56px;
  border-radius: var(--radius-sm);
  width: 100%;
}

.card label {
  display: block;
  margin-bottom: 28px;
  font-size: var(--font-size-md);
  font-weight: lighter;
}

input[type="text"],
input[type="tel"] {
  display: block;
  width: 100%;
  padding: 16px 16px 21px 25px;
  margin: 10px 0;
  border-radius: 60px;
  border: 1px solid #9ac0ba;
}
.cost__grid p {
  margin-bottom: 47px;
}
.btn-next {
  font-size: 19px;
  font-weight: 600;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 20px 80px;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: var(--shadow-default);
}

.nav {
  display: flex;
  gap: 10px;
}

/* SUCCESS */

.success {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
}

.success.active {
  display: flex;
}

.success__box {
  max-width: 614px;
  width: 100%;
  height: 312px;
  background-image: url("/img-png/bg-form-succ.png");
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.success__box p {
  font-size: var(--font-size-medium);
}

.close {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  font-size: 22px;
}

.cost__step[data-step="1"] {
  background-image: url("/img-png/bg-kviz-01.webp");
  background-size: cover;
}
.cost__step[data-step="2"] {
  background-image: url("/img-png/bg-kviz-002.webp");
  background-size: cover;
  background-position: center;
}
.cost__step[data-step="3"] {
  background-image: url("/img-png/bg-kviz-03.webp");
  background-size: cover;
}

.cost__left {
  text-align: center;
}

.cost__left .cost__grid {
  text-align: left; /* возвращаем карточкам выравнивание влево */
}
.cost__left p {
  text-align: left;
}
.cost__left h2 {
  text-align: left;
}

.cost__step[data-step="2"] .card {
  max-width: 506px;
}
.cost__step[data-step="2"] .cost__grid {
  justify-content: center;
}

.cost__step[data-step="2"] .nav {
  justify-content: center;
  gap: 30px;
}
.cost__tex {
  margin-bottom: 65px;
}
.text__phone {
  font-size: 28px;
  font-weight: 600;
}
.cost__step[data-step="3"] span {
  text-align: left;
  display: block;
  margin-bottom: 41px;
  max-width: 501px;
}

/* Стили для 3-го экрана */
.cost__step[data-step="3"] .cost__left {
  width: 100%;
}

/* Ряд с инпутами */
.cost__step[data-step="3"] .inputs-row {
  display: flex;
  gap: 20px;
  margin-bottom: 31px;
}

.cost__step[data-step="3"] .inputs-row input {
  width: 323px;
  max-width: 100%;
  margin: 0; /* убираем старые отступы */
  font-size: 22px;
  font-weight: lighter;
  color: var(--text-dark);
}
.cost__step[data-step="3"] .inputs-row input::placeholder {
  color: var(--text-dark);
}

/* Ряд с согласием и кнопкой */
.cost__step[data-step="3"] .agreement-row {
  display: flex;
  align-items: center;

  gap: 18px;
  margin-bottom: 20px;
  align-items: flex-start;
}

/* Блок согласия */
.cost__step[data-step="3"] .agreement {
  flex: 1;
  max-width: 334px;
}

.cost__step[data-step="3"] .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.cost__step[data-step="3"] .checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.cost__step[data-step="3"] .checkbox-text {
  font-size: 13px;
  font-weight: lighter;
  color: #333;
  opacity: 45%;
}

/* Кнопка */
.cost__step[data-step="3"] .submit {
  flex-shrink: 0;
  margin: 0; /* убираем старые margin */
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .cost__step[data-step="3"] .inputs-row {
    flex-direction: column;
  }

  .cost__step[data-step="3"] .inputs-row input {
    width: 100%;
  }

  .cost__step[data-step="3"] .agreement-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cost__step[data-step="3"] .submit {
    width: 100%;
  }
}

/* Стили для кастомного чекбокса - кружок серый с белой галочкой */

/* Скрываем стандартный чекбокс */
.cost__step[data-step="3"] .checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Настройка лейбла */
.cost__step[data-step="3"] .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  position: relative;
  max-width: 349px;
}

/* Кастомный кружок */
.cost__step[data-step="3"] .checkbox-label .custom-checkbox {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: #bdcecb;
  border: 2px solid #bdcecb;
  border-radius: var(--radius-full); /* круглый */
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
}

/* Белая галочка (скрыта по умолчанию) */
.cost__step[data-step="3"] .checkbox-label .custom-checkbox:after {
  content: "";
  position: absolute;
  top: 6px;
  left: 9px;
  width: 4px;
  height: 8px;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Состояние checked - меняем цвет на темно-серый */
.cost__step[data-step="3"]
  .checkbox-label
  input[type="checkbox"]:checked
  + .custom-checkbox {
  background: #bdcecb;
  background: #bdcecb;
}

/* Показываем галочку */
.cost__step[data-step="3"]
  .checkbox-label
  input[type="checkbox"]:checked
  + .custom-checkbox:after {
  opacity: 1;
}

/* Hover эффект */
.cost__step[data-step="3"] .checkbox-label:hover .custom-checkbox {
  border-color: #6c6c6c;
  background: #d0d0d0;
}
.cost__step[data-step="3"] .back {
  display: none;
}

/* Для всех радио-кнопок на всех шагах */
.cost__step input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 32px;
  height: 32px;
  border: 3px solid #b6d4d0;
  border-radius: var(--radius-full);
  margin-right: 8px;
  position: relative;
  top: 2px;
  cursor: pointer;
  background-color: transparent;
  transition: all 0.2s ease;
}

.cost__step input[type="radio"]:checked {
  border: 8px solid var(--color-primary);
  /* border-color: #016B5B; */
}

.cost__step input[type="radio"]:checked::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  /* background-color: #016B5B; */
  border-radius: var(--radius-full);
  margin: 5px auto 0;
}

/* Выравниваем все radio-кнопки в карточке по горизонтали */
.cost__step .card label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agreement-row .submit {
  font-weight: 500;
}

.success__box p {
  font-size: 33px;
  font-weight: 500;
  padding-top: 145px;
}
.success__box span {
  font-size: 20px;
  font-weight: lighter;
}
.success__box {
  /* или более насыщенная тень: */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  /* или с размытием: */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.3s ease; /* анимация появления */
}

/* Секция Дома информация */

.technology {
  padding: 140px 0 122px;
}

.technology__container {
  max-width: 1578px;
  margin: auto;
}

/* строка */
.technology__row {
  display: flex;
  /* grid-template-columns: 1fr 935px 1fr; */
  justify-content: space-between;

  margin-bottom: 65px;
  position: relative;
}

/* центр */

.technology__center {
  position: absolute;
  top: 55px;
    left: 350px;
}
.technology__center img {
  max-width: 840px;
}

/* стороны */
.technology__side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* заголовок */
.technology__title {
  font-size: var(--font-size-section-title);
  font-weight: 500;
  line-height: 47px;
  margin-bottom: 26px;
}

/* карточки */
.technology__card {
  background: var(--color-white);
  padding: 24px 68px 23px 31px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  max-width: 402px;
}

/* разные фоны как на макете */
.technology__side--left .technology__card:nth-child(2) {
  background: #eef3f2;
}

.technology__side--left .technology__card:nth-child(3) {
  background: #e8f1ee;
}

.technology__side--right .technology__card:nth-child(1) {
  background: #eef3f2;
}

.technology__side--right .technology__card:nth-child(2) {
  background: #f1f1f1;
}

.technology__side--right .technology__card:nth-child(3) {
  background: #f5e9e2;
}

.technology__card h4 {
  font-size: var(--font-size-md);
  font-weight: 400;
  margin-bottom: 5px;
}
.technology__card p {
  font-size: 16px;
  font-weight: 200;
}

.technology__side--right {
  padding-top: 20px;
}

.technology__center .img-house-02 {
  max-width: 810px;
}
.technology__center-home-02 {
  position: absolute;
  top: 117px;
    left: 379px;
}

.technology__side--right-home-02 {
  padding-top: 96px;
}

/* секция дополнительные работы */

.additional {
  padding: 56px 0 83px;
  background: linear-gradient(135deg, #1c3c37, #3a625c);
  border-radius: var(--radius-sm);
  margin: 40px;
  max-height: 689px;
}

.additional__container {
  max-width: 1578px;
  margin: auto;
}
.additional__block-flex {
  display: flex;
  gap: 21px;
}

.additional__title {
  color: var(--color-white);
  font-size: var(--font-size-section-title);
  margin-bottom: 29px;
  line-height: 47px;
  font-weight: 400;
}

/* GRID */
.additional__bclock-left {
  max-width: 536px;
}
.additional__bclock-left img {
  max-width: 536px;
}
.additional__bclock-center,
.additional__bclock-center img {
  max-width: 385px;
}
.additional__img-right img {
  max-width: 539px;
}
.additional__card-right-bottom {
  max-width: 286px;
}
.additional__img-308 img {
  max-width: 308px;
}
.additional__bclock-right-bottom {
  display: flex;
  gap: 21px;
}
.additional__block-flex li {
  font-size: 22px;
  font-weight: 200;
  line-height: 38px;
  color: var(--color-white);
  font-family: var(--font-primary);
}
.additional__card,
.additional__card-center,
.additional__card-right-bottom {
  background-color: #345b55;
  padding: 31px 38px 31px 48px;
  border-radius: 6px;
  margin-bottom: 21px;
}
.additional__img-right {
  margin-bottom: 21px;
}
.additional__bclock-center {
  margin-top: -30px;
}
.additional__bclock-right-top {
  margin-top: -93px;
}

.bg-wrapper-additional {
  position: relative;
  overflow: hidden;
  height: 1390px;
}
.bg-img-additional-bottom img {
  max-width: 2500px;
  position: absolute;

  top: 100px;
  left: -300px;
}
.additional {
  position: relative;
  z-index: 2;
}

.deal-text h3 {
  font-size: var(--font-size-section-title);
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 123px;
  margin-bottom: 21px;
}
.deal-text p {
  font-size: var(--font-size-large);
  font-weight: lighter;
  max-width: 514px;
  margin-bottom: 44px;
}

/* секция о нас */

/* .about {
  padding-bottom: 80px;
} */

.about__container {
  margin: auto;
}

.cont-prov {
  max-width: 700px;
}

/* ===== TOP ===== */

.about__top {
  display: flex;
  gap: 91px;
  align-items: center;
  margin-bottom: 12px;
}

/* левый текст */

.about__info {
  padding-left: 171px;
}

.about__title {
  font-size: var(--font-size-section-title);
  margin-bottom: 20px;
  line-height: 47px;
  font-weight: 500;
}

.about__text {
  font-size: var(--font-size-large);
  font-weight: lighter;
}

/* ===== timeline ===== */

.about__timeline {
  flex: 1;
  display: flex;

  justify-content: space-between;
  background: #0f6d5b;
  color: var(--color-white);
  padding: 35px 131px 36px 54px;
  border-top-left-radius: 600px;
  border-bottom-left-radius: 600px;
  position: relative;
}

/* линия */

/* item */

.about__item {
  position: relative;
  z-index: 2;
  text-align: left;
}

.about__year {
  display: inline-block;
  background: #0a5748;
  padding: 1px 7px;
  border-radius: var(--radius-md);
  font-weight: bold;
  margin-bottom: 10px;
  font-size: var(--font-size-large);
}

/* последний (акцент) */

.about__item--accent .about__year {
  background: var(--color-white);
  color: #0f6d5b;
  position: relative;
}

.about__link {
  display: inline-block;
  margin-top: 10px;
  color: #fdb441;
  text-decoration: none;
  font-weight: 200;
}

/* ===== bottom ===== */

.about__bottom {
  background: var(--color-white);
  padding: 20px 30px 20px 0;
  border-top-right-radius: 600px;
  border-bottom-right-radius: 600px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1426px;
}

.about__banks-text {
  font-size: 16px;
  font-weight: 300;
  padding-left: 171px;
}

.about__banks {
  display: flex;
  gap: 100px;
  align-items: center;
}

.about__banks img {
  height: 30px;
  object-fit: contain;
}

.block-svg-2026 {
  margin-top: -4px;
}

.about__timeline p {
  font-size: var(--font-size-md);
  font-weight: 100;
}
.about__banks img {
  max-width: 190px;
}
.img-svg-big {
  display: flex;
  justify-content: flex-end;
  margin-top: -100px;
  margin-bottom: -55px;
}

/* --- СТИЛИ ДЛЯ ВТОРОГО (ЛИПКОГО) ХЕДЕРА --- */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
}

.sticky-header.visible {
  transform: translateY(0);
}

.sticky-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 27px 0;
  gap: 15px;
}

.sticky-logo img {
  height: 45px;
  display: block;
}

/* Меню (список ссылок) */
.menu-list {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-list li a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: all 0.3s ease;
  padding-bottom: 37px;
  border-bottom: 4px solid transparent;
  text-transform: uppercase;
  color: var(--text-dark);
}

/* Ховер эффект: зеленый текст + зеленая полоска снизу */
.menu-list li a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Правая группа: телефон + соцсети */
.right-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Стиль кнопки телефона (как в первом хедере) */
.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: bold;
  color: #2c5e2e;
  font-size: 15px;
  transition: color 0.3s;
}

.phone-link img {
  width: 18px;
  height: 18px;
}

.phone-link:hover {
  color: #1e3a1e;
}

/* Иконки мессенджеров */
.social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.social-icon img {
  width: 32px;
  height: 32px;
  display: block;
}

.social-icon:hover {
  opacity: 0.7;
}

/* Адаптивность: на маленьких экранах меню может переноситься */
@media (max-width: 1100px) {
  .sticky-nav {
    flex-direction: column;
    align-items: stretch;
    padding: 15px 0;
  }
  .menu-list {
    flex-wrap: wrap;
    justify-content: center;
  }
  .right-group {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .menu-list {
    gap: 12px;
  }
  .menu-list li a {
    font-size: 13px;
  }
  .right-group {
    gap: 15px;
  }
}

/* модалки окна popup */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

/* окно */
.modal__content {
  position: relative;
  background: var(--color-white);
  padding: 53px 80px 68px 80px;
  border-radius: var(--radius-sm);
  max-width: 834px;
  width: 100%;
  z-index: 1000;
  text-align: center;
}

.modal__title {
  font-size: 44px;
  margin-bottom: 18px;
  font-weight: 500;
}

.modal__subtitle {
  margin-bottom: 30px;
  font-size: var(--font-size-medium);
  font-weight: 200;
}

/* inputs */
.modal__inputs {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
}

.modal__inputs input {
  flex: 1;
  padding: 16px 25px 21px;
  border-radius: var(--radius-xl);
  border: 1px solid #9ac0ba;
  background: #eff8f7;
  font-size: 22px;
  font-weight: 300;
  color: var(--text-dark);
  max-width: 323px;
}

.modal__inputs input::placeholder {
  color: var(--text-dark);
}

/* bottom */
.modal__bottom {
  display: flex;
  gap: 18px;
  align-items: center;
}

/* кнопка */
.modal__submit {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 20px 55px;
  border-radius: var(--radius-xl);
  cursor: pointer;
  font-size: 19px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  max-width: 323px;
  width: 100%;
}

/* checkbox */
.modal__checkbox {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  max-width: 334px;
}

.modal__checkbox input {
  display: none;
}

.modal__checkbox span {
  width: 45px;
  height: 20px;
  border-radius: var(--radius-full);
  background: #cfd7d5;
  position: relative;
}

.modal__checkbox input:checked + span::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-white);
  font-size: 12px;
}

/* close */
.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* SUCCESS */

.success {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.success.active {
  opacity: 1;
  pointer-events: auto;
}

.success__close {
  position: absolute;
  right: 20px;
  top: 20px;
  cursor: pointer;
}

/* Модальное окно */
.portfolio__modal,
.modal {
  /* если используете оба класса */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* Очень высокий z-index */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.portfolio__modal.active,
.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal__content {
  position: relative;
  background: var(--color-white);
  padding: 53px 80px 68px 80px;
  border-radius: var(--radius-sm);
  max-width: 834px;
  width: 100%;
  z-index: 10000; /* Ещё выше, чем у оверлея */
  text-align: center;
}

/* секция отзывы */

.reviews {
  padding: 80px 0;
}

.container {
  margin: 0 auto;
}

/* TOP */

.reviews__top {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
}

/* TITLE */

.reviews__title {
  position: relative;
  width: 200px;
  display: none;
}

.reviews__title span {
  font-size: 48px;
  font-weight: bold;
}

/* STAR */

.star {
  position: absolute;
  width: 200px;
  height: 200px;
  background: #e7d8c8;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  z-index: -1;
  top: -40px;
  left: -40px;
}

/* VIDEO */

.reviews__videos {
  display: flex;
  gap: 30px;
}

.video-card {
  position: relative;
  max-width: 333px;
  height: 529px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background-color: #acd9d1;
}

.video-card--down {
  margin-top: 60px;
}

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

.play-btn {
  position: absolute;
  bottom: 38%;
  padding: 0 15px 0 0;

  left: 16%;
  background: #ffffff91;
  opacity: 74%;
  color: var(--text-dark);
  border: none;
  border-radius: 59px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.play-btn img {
  margin-right: 7px;
}
/* hide btn when playing */

.video-card.playing .play-btn {
  opacity: 0;
}

/* SLIDER */

/* НА ВЕСЬ ЭКРАН */
.reviews__slider-wrapper {
  position: relative;
  width: 100%;
  padding: 0 10px; /* отступ под кнопки */
  overflow: hidden;
}

/* SWIPER */

.reviewsSwiper {
  overflow: visible;
}

.swiper-slide {
  width: auto !important;
}

/* КАРТОЧКА */

.review-card {
  width: 281px;
  height: 431px;
  background: var(--color-white);
  border-radius: 5px;
  padding: 30px 24px 37px 28px;
  display: flex;
  flex-direction: column;
}

/* HEAD */

.review-head {
  display: flex;
  gap: 11px;
  align-items: center;
}

.avatar {
  width: 55px;
  height: 55px;
  background: #ddd;
  border-radius: var(--radius-full);
}

.stars {
  color: #f5a623;
  margin-bottom: 3px;
}

/* TEXT */

.review-card p {
  margin-top: 18px;
  margin-bottom: 33px;
  font-size: 15px;
  font-weight: 200;
  line-height: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 12;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 215px;
}

/* КНОПКИ */

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: #1f6f5b;
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}
.reviews__bottom {
  margin-top: 80px;
  text-align: center;
  margin-bottom: 113px;
}
.link-btn {
  padding: 20px 79px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.review-head strong {
  font-size: 17px;
  font-weight: 600;
}
.review-card a {
  color: var(--color-primary-hover);
}

/* MAP  и ФУТЕР */

/* MAP BLOCK */

.contacts__map {
  position: relative;
  max-width: 1848px;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* LEFT CARD */

.contacts__card {
  position: absolute;
  text-align: center;
  max-width: 492px;
  width: 100%;
  height: 100%;
  background: var(--color-white);
  padding: 59px 20px 54px;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.contacts__card h2 {
  margin-bottom: 31px;
  font-size: var(--font-size-section-title);
  font-weight: 500;
}

.phone {
  display: block;
  font-size: var(--font-size-large);
  font-weight: 400;
  margin-bottom: 28px;
  text-decoration: none;
  color: var(--text-dark);
}

.info {
  margin-bottom: 15px;
}
.contacts__card p {
  font-size: var(--font-size-medium);
  font-weight: 200;
  margin-top: 7px;
}

.info a {
  color: var(--text-dark);
  text-decoration: underline;

  font-size: var(--font-size-medium);
  font-weight: 200;
}

/* SOCIAL */

.socials {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  justify-content: center;
}

.socials a {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.socials img {
  width: 46px;
}

/* MAP */

.map-placeholder {
  height: 540px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder span {
  font-size: var(--font-size-large);
  color: #555;
}

/* FOOTER */

.footer-bottom {
  padding: 20px 0;
  background: transparent;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}

.footer-left strong {
  display: block;
  margin-bottom: 5px;
}

.footer-phone {
  border: 1px solid #1f6f5b;
  padding: 10px 20px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: #1f3f38;
}

.footer-right {
  font-size: 12px;
  text-align: right;
}

/* SCROLL TOP */

.scroll-top {
  /* position: fixed;
  bottom: 30px;
  left: 30px; */
  width: 45px;
  height: 45px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--color-white);
  cursor: pointer;
}
.footer-left p {
  font-size: 16px;
  font-weight: 200;
}
.footer-right p {
  font-size: 11px;
  font-weight: 200;
  opacity: 55%;
}
.footer-phone {
  display: flex;
  gap: 5px;
}












        /* ========== МОБИЛЬНЫЕ ЭЛЕМЕНТЫ ========== */
        .mobile-header {
            display: none;
            background: #fff;
            padding: 15px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .mobile-header__container {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .mobile-logo img {
            height: 40px;
        }

        .mobile-icons {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .mobile-icon {
            width: 32px;
            height: 32px;
            border-radius: 50%;
 
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
        }

        .mobile-icon img {
            width: 32px;
            height: 32px;
        }

        .mobile-icon.phone-icon {
            position: relative;
        }

        .phone-tooltip {
            position: absolute;
            bottom: -40px;
            left: 50%;
            transform: translateX(-50%);
            background: #333;
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 12px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
            pointer-events: none;
            z-index: 10;
        }

        .mobile-icon.phone-icon:hover .phone-tooltip {
            opacity: 1;
            visibility: visible;
            bottom: -35px;
        }

        .burger-btn {
            background: #B49D8B;
        }

        

        /* ========== МОБИЛЬНОЕ МЕНЮ (БУРГЕР) ========== */
        .mobile-menu {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: white;
            z-index: 1000;
            transform: translateX(100%);
            transition: transform 0.3s ease;
            overflow-y: auto;
        }

        .mobile-menu.active {
            transform: translateX(0);
        }

        .mobile-menu__header {
            display: flex;
            justify-content: flex-end;
            padding: 20px;
            border-bottom: 1px solid #eee;
        }

        .close-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: #f5f5f5;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .close-btn img {
            width: 20px;
            height: 20px;
        }

        .mobile-menu__nav {
            padding: 30px 20px;
        }

        .mobile-menu__list {
            list-style: none;
        }

        .mobile-menu__list li {
            border-bottom: 1px solid #eee;
        }

        .mobile-menu__list a {
            display: block;
            padding: 15px 0;
            font-size: 18px;
            color: #333;
            text-decoration: none;
            font-weight: 500;
        }

        .mobile-menu__contacts {
            margin-top: 40px;
            padding-top: 20px;
           
        }

        .mobile-menu__contacts .contact-item {
            padding: 10px 0;
        }

        .mobile-menu__social {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }



         #map {
            width: 100%;
            height: 540px;  
        }
        .map__info-none {
          display: none;
        }

        .promo__tab {
    position: relative; /* нужно для псевдоэлемента */
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    background: #e5e0da;
    cursor: pointer;
    font-size: var(--font-size-medium);
}

/* активная кнопка (как на макете) */
.promo__tab--active {
    background: #b79f8a;
    color: #fff;
}

/* хвостик только у активной */
.promo__tab--active::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #b79f8a; /* тот же цвет что у активной */
}
.title-reviews-left .about__title {
  padding-left: 171px;
    margin-bottom: 35px;
}
.span-text-rev {
  font-size: 47px;
    font-weight: 600;
    color: #fdb544;
}


/* CТИЛИ страницы ПолитикаК */
.container__pc {
  margin: 0 20px;
}
.link-pc {
  color: black;
}







.gallery-column {
  overflow: hidden;
  position: relative;
}

.gallery-track {
  display: flex;
  gap: 20px; /* Регулируйте отступ между карточками */
  will-change: transform;
}

/* Анимация для движения вверх */
@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* Анимация для движения вниз */
@keyframes scrollDown {
  0% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(0);
  }
}

.gallery-track {
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.column--up .gallery-track {
  animation-name: scrollUp;
}

.column--down .gallery-track {
  animation-name: scrollDown;
}








.gallery-track {
  display: flex;
  flex-direction: column;
  gap: 18px;
  will-change: transform;
  /* Аппаратное ускорение */
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000;
}

/* Оптимизация для мобилок */
@media (max-width: 768px) {
  .gallery-track {
    gap: 12px; /* Уменьшаем отступы */
  }
  
  .gallery-track img {
    width: 100%;
    height: auto;
    /* Оптимизация рендеринга */
    contain: content;
    /* Убираем ленивую загрузку на мобилках для плавности */
    loading: eager;
  }
}

/* Отключаем hover эффекты на мобилках */
@media (hover: hover) {
  .gallery-track img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
  }
}




/* Попап для контакт-блока (появляется сверху) */
.contact-popup {
  margin-bottom: 10px;
  position: fixed;
  background: #dce7e3;
  border-radius: var(--radius-md);
  padding: 20px;
  width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px); /* меняем направление анимации */
  transition: 0.3s;
  z-index: 1000;
  pointer-events: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.contact-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-popup .popup-inner {
  text-align: center;
  color: white;
}

.contact-popup .popup-inner p {
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 15px 0;
}

.contact-popup .qr img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: white;
  padding: 10px;
  border-radius: 8px;
}

.contact-popup .popup-link {
  display: inline-block;
  color: #0c3332;
  text-decoration: none;
  font-size: 12px;
  word-break: break-all;
  padding: 5px 10px;
  border-radius: 6px;
  margin-top: 10px;
}

.contact-popup .popup-link:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Треугольник СНИЗУ (смотрит вниз на иконку) */
.contact-popup::before {
  content: "";
  position: absolute;
  bottom: -10px;  /* треугольник снизу */
  right: 40px;    /* позиция справа, регулируйте под свои иконки */
  width: 20px;
  height: 20px;
  background: #dce7e3;
  transform: rotate(45deg);
  z-index: -1;
}