:root {
    --black: #000000;
    --green: #00AD44;
    --gray: #939393;
    --white: #FFFFFF;
    --back: #100e17;
}
html {
    scroll-behavior: smooth;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Roboto, sans-serif;
    background-color: #100e17;
}
.head {
    position: fixed;
    width: 100%;
    background: #100e17;
    z-index: 999;
    top: 0;
    padding: 7px 0px 7px 0px;
}
.head__container,.hero__container,.why,.aboutus__container,.aboutus__selectbuttom,.section-map,.agents,.card__company,.form {
    max-width: 1200px;
    margin-inline: auto;
}
.head__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.head__list {
    display: flex;
    list-style: none;
    gap: 20px;
}
.head__list-link {
font-weight: 500;
font-size: 15px;
color: var(--gray);
transition: color 0,3s;
padding: 7px 12px;
border: 2px solid var(--white);
border-radius: 100px;
}
.head__list-link.active {
color: var(--white);
border: 3px solid var(--green);
border-radius: 100px;
}
.head__list-link:hover {
color: var(--white);
}
.head__button {
    font-weight: 500;
    font-size: 15px;
    color: var(--black);
    padding: 10px 15px;
    background: var(--white);
    border-radius: 100px;
    transition: 0.3s; /* Исправлено: точка вместо запятой для корректной анимации */
    display: inline-block; /* Гарантирует правильный отклик анимации scale */
}
.head__button:hover {
    transform: scale(1.1);
}
.head__button.active {
    font-weight: 500;
    font-size: 15px;
    color: var(--white);
    padding: 10px 15px;
    background: var(--green);
    border-radius: 100px;  
}
a {
    text-decoration: none;
}

.hero {
    padding-block: 20px;
}
.head__button--mobile {
    display: none !important;
}
.hero__container {
    position: relative;
    overflow: hidden;
    align-items: center;
}
.hero__content {
    padding-block: 50px;
}
.hero__image {
    margin-top: 10px;
}
.hero__buttons {
    padding-bottom: 60px;
    max-width: 1200px;
    margin-inline: auto;
    margin-top: -190px;
    display: flex;
    gap: 30px;
}
.hero__button {
    font-weight: 300;
    font-size: 32px;
    color: var(--white);
    padding: 14px 10px 5px 50px;
    width: 300px;
    height: 70px;
    border: 2px solid var(--white);
    border-radius: 100px;
}
.hero__scroll-image {
    padding: 11px 22px;
    border: 2px solid var(--white);
    border-radius: 100px;
}
.hero__scroll {
    width: 50px;
    height: 50px;
}
.why {
font-weight: 500;
font-size: 15px;
color: var(--white);
list-style: none;
padding-top: 110px;
}

.aboutus {
     padding-block: 70px;
}
.aboutus__container {
  height: 300px;
  width: 600px;
  top: 1200px;
  left: calc(50% - 300px);
  display: flex;
}
.hero__buttons {
    padding-bottom: 60px;
    max-width: 1200px;
    margin-inline: auto;
    margin-top: -190px;
    display: flex;
    gap: 30px;
}
.card {
  display: flex;
  height: 380px;
  width: 250px;
  background-color: #17141d;
  border-radius: 30px;
  box-shadow: -1rem 0 3rem #040404;
/*   margin-left: -50px; */
  transition: 0.4s ease-out;
  position: relative;
  left: 0px;
}

.card:not(:first-child) {
    margin-left: -120px;
}

.card:hover {
  transform: translateY(-20px);
  transition: 0.4s ease-out;
}

.card:hover ~ .card {
  position: relative;
  left: 130px;
  transition: 0.4s ease-out;
}

.title {
  color: var(--white);
  font-weight: 400;
  font-size: 26px;
  position: absolute;
  left: 20px;
  top: 15px;
}
.title__p {
  color: var(--white);
  font-weight: 300;
  font-size: 24px;
  position: absolute;
  top: 60px;
  left: 20px;
  height: 5px;
  width: 150px;
}
.title__p-2 {
  color: var(--gray);
  font-weight: 300;
  font-size: 22px;
  position: absolute;
  top: 213px;
  left: 20px;
  height: 5px;
  width: 150px;
}
.bar {
  position: absolute;
  top: 350px;
  left: 20px;
  height: 5px;
  width: 150px;
}

.emptybar {
  background-color: #2e3033;
  width: 100%;
  height: 100%;
}

.filledbar {
  position: absolute;
  top: 0px;
  z-index: 3;
  width: 0px;
  height: 100%;
  background: rgb(0,154,217);
  background: linear-gradient(90deg, rgb(62, 171, 47) 0%, rgb(148, 249, 125) 65%, rgb(148, 249, 125) 100%);
  transition: 0.6s ease-out;
}

.card:hover .filledbar {
  width: 120px;
  transition: 0.4s ease-out;
}

.circle {
  position: absolute;
  top: 275px;
  left: calc(50% - 80px);
}

.stroke {
  stroke: white;
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  transition: 0.6s ease-out;
}
.card:hover .stroke {
  stroke-dashoffset: 100;
  transition: 0.6s ease-out;
}
.aboutus__buttons {
    padding-bottom: 60px;
    max-width: 1200px;
    margin-inline: auto;
    margin-top: 60px;
    display: flex;
    gap: 30px;
}
.aboutus__button {
    font-weight: 300;
    font-size: 32px;
    color: var(--white);
    padding: 12px 30px 10px 55px;
    width: 290px;
    height: 70px;
    border: 2px solid var(--white);
    border-radius: 100px;
}
.aboutus__scroll-image {
    padding: 11px 22px;
    border: 2px solid var(--white);
    border-radius: 100px;
}
.aboutus__scroll {
    width: 50px;
    height: 50px;
}
.section-map {
    padding-top: 80px;
}
.youcan {
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 32px;
    color: var(--white);
}
.but {
    padding-bottom: 31px;
    font-weight: 300;
    font-size: 20px;
    color: var(--gray);
}
.agentsus__buttons {
    padding-bottom: 60px;
    max-width: 1200px;
    margin-inline: auto;
    margin-top: 30px;
    display: flex;
    gap: 30px;
}
.agentsus__button {
    font-weight: 300;
    font-size: 32px;
    color: var(--white);
    padding: 12px 30px 10px 55px;
    width: 290px;
    height: 70px;
    border: 2px solid var(--white);
    border-radius: 100px;
}
.agentsus__scroll-image {
    padding: 11px 22px;
    border: 2px solid var(--white);
    border-radius: 100px;
}
.agentsus__scroll {
    width: 50px;
    height: 50px;
}
.agents {
    padding-top: 130px;
    padding-bottom: 200px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 150px;
}
.card-agents {
  width: 300px;
  height: 450px;
  background: var(--black);
  border-radius: 32px;
  padding: 3px;
  position: relative;
  box-shadow: #00000030 0px 70px 30px -50px;
  transition: all 0.5s ease-in-out;
}

.card-agents .mail {
  position: absolute;
  right: 2rem;
  top: 1.4rem;
  background: transparent;
  border: none;
}

.card-agents .mail svg {
  stroke: #00AD44;
  stroke-width: 3px;
}

.card-agents .mail svg:hover {
  stroke: #017b32;
}

.card-agents .profile-pic {
  position: absolute;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  top: 3px;
  left: 3px;
  border-radius: 29px;
  z-index: 1;
  border: 0px solid #00AD44;
  overflow: hidden;
  transition: all 0.5s ease-in-out 0.2s, z-index 0.5s ease-in-out 0.2s;
}

.card-agents .profile-pic img {
  -o-object-fit: cover;
  object-fit: cover;
  width: 100%;
  height: 100%;
  -o-object-position: 0px 0px;
  object-position: 0px 0px;
  transition: all 0.5s ease-in-out 0s;
}

.card-agents .profile-pic svg {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: 0px 0px;
  object-position: 0px 0px;
  transform-origin: 45% 20%;
  transition: all 0.5s ease-in-out 0s;
}

.card-agents .bottom-agent {
  position: absolute;
  bottom: 3px;
  left: 3px;
  right: 3px;
  background: #00AD44;
  top: 80%;
  border-radius: 29px;
  z-index: 2;
  box-shadow: rgba(96, 75, 74, 0.1882352941) 0px 5px 5px 0px inset;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;
}

.card-agents .bottom-agent .content-agent {
  position: absolute;
  bottom: 165px;
  left: 1.5rem;
  right: 1.5rem;
  height: 160px;
}

.card-agents .bottom-agent .content-agent {
  display: block;
  font-weight: bold;
}
.name {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #FFFFFF;
}
.card-agents .bottom-agent .content-agent .about-me {
  display: block;
  font-size: 0.87rem;
  color: white;
  font-weight: 400;
  margin-top: 0.5rem;
}
.year {
  display: block;
  font-size: 0.80rem;
  font-weight: 400;
  color: white;
  margin-top: 0.3rem;
}
.card-agents .bottom-agent .bottom-bottom {
  position: absolute;
  bottom: 1rem;
  left: 0.5rem;
  right: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-agents .bottom-agent .bottom-bottom .social-links-container {
  display: flex;
  gap: 1rem;
}

.card-agents .bottom-agent .bottom-bottom .social-links-container svg {
  height: 20px;
  fill: white;
  filter: drop-shadow(0 5px 5px rgba(165, 132, 130, 0.1333333333));
}

.card-agents .bottom-agent .bottom-bottom .social-links-container svg:hover {
  fill: #000000;
  transform: scale(1.2);
}
.card-agents .bottom-agent .bottom-bottom .button-agent {
  background: white;
  color: #000000;
  border: none;
  border-radius: 20px;
  font-size: 1rem;
  padding: 0.5rem 0.9rem;
  box-shadow: rgba(165, 132, 130, 0.1333333333) 0px 5px 5px 0px;
}

.card-agents .bottom-agent .bottom-bottom .button-agent:hover {
  background: #000000;
  color: white;
}

.card-agents:hover {
  border-top-left-radius: 55px;
}

.card-agents:hover .bottom-agent {
  top: 20%;
  border-radius: 80px 29px 29px 29px;
  transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) 0.2s;
}

.card-agents:hover .profile-pic {
  width: 90px;
  height: 90px;
  aspect-ratio: 1;
  top: 10px;
  left: 10px;
  border-radius: 50%;
  z-index: 3;
  border: 4px solid #00AD44;
  box-shadow: rgba(96, 75, 74, 0.1882352941) 0px 5px 5px 0px;
  transition: all 0.5s ease-in-out, z-index 0.5s ease-in-out 0.1s;
}

.card-agents:hover .profile-pic:hover {
  transform: scale(1.3);
  border-radius: 0px;
}

.card-agents:hover .profile-pic img {
  transform: scale(1);
  -o-object-position: 0px 0px;
  object-position: 0px 0px;
  transition: all 0.5s ease-in-out 0.5s;
}

.card-agents:hover .profile-pic svg {
  transform: scale(1);
  transition: all 0.5s ease-in-out 0.5s;
}

.marquee {
  overflow: hidden;
  /* hide the scrolling overflow */
  width: 100%;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}
.marquee_header {
  padding-top: -20;
  font-size: 20px;
  font-weight: 300;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: -30px;
}
.marquee__inner {
  display: flex;
  width: max-content;
  animation: marquee 15s linear infinite;
}

.marquee__group {
  display: flex;
  align-items: center;
}

.marquee__group span {
  margin: 0 1.5rem;
  white-space: nowrap;
  font-size: 1.2rem;
  transition: 0,3s;
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* svaz */
.form {
  display: flex;
  margin-top: 200px;
  flex-direction: column;
  gap: 10px;
  max-width: 350px;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  position: relative;
}

.message {
  color: rgba(88, 87, 87, 0.822);
  font-size: 14px;
}

.flex {
  display: flex;
  width: 100%;
  gap: 6px;
}

.form label {
  position: relative;
}

.form label .input {
  width: 100%;
  padding: 10px 10px 20px 10px;
  outline: 0;
  border: 1px solid rgba(105, 105, 105, 0.397);
  border-radius: 5px;
}

.form label .input + span {
  position: absolute;
  left: 10px;
  top: 15px;
  color: grey;
  font-size: 0.9em;
  cursor: text;
  transition: 0.3s ease;
}

.form label .input:placeholder-shown + span {
  top: 15px;
  font-size: 0.9em;
}

.form label .input:focus + span,.form label .input:valid + span {
  top: 30px;
  font-size: 0.7em;
  font-weight: 600;
}

.form label .input:valid + span {
  color: green;
}

.input01 {
  width: 100%;
  padding: 13px;
  outline: 0;
  border: 1px solid rgba(105, 105, 105, 0.397);
  border-radius: 5px;
}

.form label .input01 + span {
  position: absolute;
  left: 10px;
  top: 50px;
  color: grey;
  font-size: 0.9em;
  cursor: text;
  transition: 0.3s ease;
}

.form label .input01:placeholder-shown + span {
  top: 40px;
  font-size: 0.9em;
}

.form label .input01:focus + span,.form label .input01:valid + span {
  top: 50px;
  font-size: 0.7em;
  font-weight: 600;
}

.form label .input01:valid + span {
  color: green;
}

.fancy {
  background-color: transparent;
  border: 2px solid #cacaca;
  border-radius: 0px;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-weight: 390;
  letter-spacing: 2px;
  margin: 0;
  outline: none;
  overflow: visible;
  padding: 8px 30px;
  position: relative;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  transition: all 0.3s ease-in-out;
  user-select: none;
  font-size: 13px;
}

.fancy::before {
  content: " ";
  width: 1.7rem;
  height: 2px;
  background: #cacaca;
  top: 50%;
  left: 1.5em;
  position: absolute;
  transform: translateY(-50%);
  transform: translateX(230%);
  transform-origin: center;
  transition: background 0.3s linear, width 0.3s linear;
}

.fancy .text {
  font-size: 1.125em;
  line-height: 1.33333em;
  padding-left: 2em;
  display: block;
  text-align: left;
  transition: all 0.3s ease-in-out;
  text-transform: lowercase;
  text-decoration: none;
  color: #818181;
  transform: translateX(30%);
}

.fancy .top-key {
  height: 2px;
  width: 1.5625rem;
  top: -2px;
  left: 0.625rem;
  position: absolute;
  background: white;
  transition: width 0.5s ease-out, left 0.3s ease-out;
}

.fancy .bottom-key-1 {
  height: 2px;
  width: 1.5625rem;
  right: 1.875rem;
  bottom: -2px;
  position: absolute;
  background: white;
  transition: width 0.5s ease-out, right 0.3s ease-out;
}

.fancy .bottom-key-2 {
  height: 2px;
  width: 0.625rem;
  right: 0.625rem;
  bottom: -2px;
  position: absolute;
  background: white;
  transition: width 0.5s ease-out, right 0.3s ease-out;
}

.fancy:hover {
  color: white;
  background: var(--green);
}

.fancy:hover::before {
  width: 1.5rem;
  background: white;
}

.fancy:hover .text {
  color: white;
  padding-left: 1.5em;
}

.fancy:hover .top-key {
  left: -2px;
  width: 0px;
}

.fancy:hover .bottom-key-1,
 .fancy:hover .bottom-key-2 {
  right: 0;
  width: 0;
}

/* building */
.cardsbuilding {
  padding-top: 130px;
  padding-bottom: 200px;
  max-width: 1400px;    /* Ограничиваем общую ширину каталога */
  margin: 0 auto;       /* Центрируем на странице */
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* Применяем сетку строго к тому блоку, в который JS генерирует карточки */
#catalog-container {
  display: grid !important;
  grid-template-columns: repeat(3, 350px) !important;
  gap: 60px !important; 
  justify-content: center;  
  width: 100%;
}

.cardbuilding {
  width: 100% !important;          /* Карточка занимает всю ширину своей колонки */
  padding: 12px;        
  background-color: var(--green);
  background-size: 200% 200%;
  border-radius: 16px;  
  box-sizing: border-box;
}

.cardbuilding-int {
  position: relative;
  height: 100%;
  overflow: hidden;
  font-size: 15px;      /* Немного увеличили шрифт для читаемости */
  border-radius: 10px;
  background-color: white;
  display: flex;
  flex-direction: column; /* Помогает внутренним элементам правильно растягиваться */
}

.cardbuildingimg {
  width: 100%;
  height: 160px;
  position: relative;
  overflow: hidden;
  background-color: #100e17; /* Базовый темный фон */
}

/* ДОБАВЛЕНО: Новый класс для цветного размытого заднего фона */
.cardbuildingimg .blur-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(12px) brightness(0.6); /* Интенсивность размытия и притемнения */
  transform: scale(1.15); /* Убираем белые полосы по краям */
  z-index: 1; /* Уходит на задний план */
}

/* Основная четкая картинка дома на переднем плане */
.cardbuildingimg img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Картинка сжимается без искажений */
  z-index: 2; /* Встает поверх размытого фона */
}


/* Красивое размытие для самого контейнера */
.cardbuildingimg::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: inherit; /* Копирует картинку из родительского background-image */
  filter: blur(10px) brightness(0.6); /* Размываем и притемняем фон */
  transform: scale(1.1); /* Убираем белые края размытия */
  z-index: 1;
}


.cardbuildingtitle {
  font-weight: bold;
  font-size: 22px;      /* Увеличили размер цены, чтобы она выглядела солидно (было 16px) */
  margin-bottom: 12px;
  color: #111;
}

.adres {
  font-weight: 400;
  font-size: 13px;
  margin-top: 5px;
  margin-bottom: 10px;
}

.cardbuilding-data {
  padding: 25px;        /* Увеличили отступы вокруг текста до 25px */
  font-size: 15px;      /* Увеличили размер текста описания */
  flex-grow: 1;         /* Заставляет текстовый блок занимать всё оставшееся пространство */
}

.cardbuilding__span {
  font-size: 13px;
  position: absolute;
  color: #fff;
  top: 15px;
  left: 15px;
  background-color: #00AD44;
  padding: 6px 14px;
  border-radius: 20px;
  z-index: 3;           /* Подняли z-index, чтобы плашка города была над картинкой */
}

.cardbuildingbutton {
  width: 100%;
  margin-top: 15px;
  background-color: var(--green);
  border: none;
  padding: 8px 85px;
  color: white;
  font-size: 14px;
  font-weight: bold;
  border-radius: 5px;
  transition: 0.3s;
}

.cardbuildingbutton:hover {
    transform: scale(1.1);
}


/* houses */

.cardshouses {
  padding-top: 130px;
  padding-bottom: 200px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 114px !important;
}

.cardhouses {
  width: 300px;
  padding: 10px;
  background-color: var(--green);
  background-size: 200% 200%;
  border-radius: 12px;
}

.cardhouses-int {
  position: relative;
  height: 100%;
  overflow: hidden;
  font-size: 14px;
  border-radius: 6px;
  background-color: white;
}

.cardhousesimg img{
  width: 100%;
  height: 175px;
}

.cardhousestitle {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
}

.cardhouses-data {
  padding: 20px;
  font-size: 14px;
}

.cardhouses__span {
  font-size: 11px;
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: white;
  padding: 5px 10px;
  border-radius: 15px;
}

.cardhousesbutton {
  width: 100%;
  margin-top: 30px;
  background-color: var(--green);
  background-size: 200% 200%;
  border: none;
  padding: 8px 10px;
  border-radius: 5px;
  transition: 0,3s;
}
.cardbuildingbuttontext {
  list-style: none;
  color: white;
  font-size: 14px;
  font-weight: 400;

}
.cardhousesbutton:hover {
    transform: scale(1.1);
}
/* ПРЕМИАЛЬНАЯ КАРТОЧКА НОВОСТЕЙ (АДAПТИВНАЯ ПОД ДЛИНУ ТЕКСТА) */
.news-card-premium {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    height: 250px; /* Изначальное свернутое состояние (видна только медиазона) */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

.news-card-premium:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.07);
}

/* ИСПРАВЛЕНО: Вместо фиксированной высоты даем карточке расти в зависимости от текста */
.news-card-premium.expanded {
    height: auto; 
    min-height: 520px;
}

/* МЕДИА-ЗОНА С ПОДДЕРЖКОЙ ЦВЕТНОГО РАЗМЫТИЯ ФОНА */
.premium-media-zone {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #100e17;
    flex-shrink: 0;
}

.premium-media-zone .blur-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(14px) brightness(0.5);
    transform: scale(1.2);
    z-index: 1;
}

.premium-media-zone .news-slider-track {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
    scroll-behavior: smooth;
    z-index: 2;
}

.premium-media-zone .news-slider-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

/* ЗАТЕМНЯЮЩИЙ ГРАДИЕНТ ВНИЗУ ФОТО */
.premium-media-zone::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 65%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.5) 60%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

.premium-date-on-photo {
    position: absolute;
    top: 16px; right: 16px;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 12px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
}

/* ИНФОРМАЦИОННЫЙ БЛОК ПОВЕРХ ФОТО */
.premium-overlay-info {
    position: absolute;
    bottom: 16px;
    left: 20px;
    right: 120px; /* Безопасная зона от кнопки «Читать» */
    z-index: 10;
    color: #ffffff;
    pointer-events: none;
}

.premium-overlay-info .author-name {
    color: #00AD44;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    display: block;
}

/* ИСПРАВЛЕНО: Разрешаем длинному заголовку переноситься на несколько строк */
.premium-overlay-info h2 {
    color: #ffffff !important;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    white-space: normal; /* Разрешаем перенос строк */
    overflow: visible;
    text-overflow: clip;
}

/* КНОПКА «ЧИТАТЬ» */
.premium-read-btn {
    position: absolute;
    bottom: 16px; right: 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 24px;
    border-radius: 100px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
    cursor: pointer;
}

/* СТРЕЛОЧКИ СЛАЙДЕРА */
.premium-slider-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25);
    color: white; border-radius: 50%;
    cursor: pointer; font-size: 14px; z-index: 10;
}
.premium-slider-arrow.left-arr { left: 12px; }
.premium-slider-arrow.right-arr { right: 12px; }

/* ТЕКСТОВАЯ ЗОНА */
.premium-content-zone {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    box-sizing: border-box;
    background: #ffffff;
}

/* ИСПРАВЛЕНО: Убираем ограничение по высоте для текста, чтобы он входил целиком */
.premium-text-description {
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 15px;
    height: auto; /* Текст больше не обрезается */
    overflow-y: visible;
}

.premium-expand-arrow-btn {
    width: 100%;
    background: transparent;
    border: none;
    color: #00AD44;
    cursor: pointer;
    padding: 8px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    outline: none;
}

.news-card-premium.expanded .premium-expand-arrow-btn svg {
    transform: rotate(180deg);
}
.head__list--mobile {
    display: none !important;
}

/* ==========================================================================
   ПОЛНЫЙ БЛОК АДАПТИВНОЙ ВЕРСТКИ ДЛЯ ТЕЛЕФОНОВ (Экраны до 768px)
   ========================================================================== */
@media (max-width: 768px) {
    
        .head__container,
    .hero__container, 
    .why, 
    .aboutus__container, 
    .aboutus__selectbuttom, 
    .section-map, 
    .agents, 
    .card__company, 
    .form, 
    .cardsbuilding,
    .cardshouses {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        left: auto !important;
        top: auto !important;
    }
    .hero__images {
        max-width: 100% !important;
    }

    .hero__image img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-height: 250px !important; /* Убираем растяжение фото вниз */
        border-radius: 24px !important; 
        object-fit: cover !important;
    }

    /* ==========================================================================
       2. МОНОЛИТНАЯ ФИКСАЦИЯ ВСЕЙ ШАПКИ (Логотип, Меню и Кнопка всегда на виду)
       ========================================================================== */
    .head {
        position: fixed !important; /* Намертво приклеиваем всю плашку шапки к экрану */
        top: 0 !important;
        left: 0 !important;
        right: 0 !important; /* Жесткая горизонтальная растяжка */
        width: 100% !important;
        max-width: 100vw !important; 
        background: #100e17 !important; /* Непрозрачный темный фон, чтобы контент не просвечивал */
        padding: 12px 16px !important; 
        
        /* Выносим шапку на абсолютный верхний слой над всеми картами, картинками и текстами */
        z-index: 999999 !important; 
        box-sizing: border-box !important;
        
        /* Жесткая защита от системного скрытия и мерцания при скролле на iOS/Android */
        transform: translateZ(0) !important; 
        -webkit-transform: translateZ(0) !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
    }

    /* Сетка шапки: Логотип и Кнопка сверху, Вкладки под ними */
    .head__nav {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important; /* Разрешаем двухстрочное расположение */
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        gap: 12px 10px !important; 
    }

    /* Логотип (Первая строка, слева) */
    .head__nav > img {
        order: 1 !important;
        height: 20px !important;
        width: auto !important;
        flex-shrink: 0 !important;
        display: block !important;
    }

    /* Мобильная кнопка "Связаться" (Первая строка, справа) */
    .head__nav .head__button--mobile {
        display: inline-block !important;
        order: 2 !important; 
        flex-shrink: 0 !important;
        font-weight: 500 !important;
        font-size: 13px !important;
        color: var(--black) !important;
        padding: 6px 16px !important;
        background: var(--white) !important;
        border-radius: 100px !important;
        text-decoration: none !important;
        margin: 0 !important;
    }

    /* МОБИЛЬНОЕ МЕНЮ ВКЛАДОК (Вторая строка шапки) */
    .head__list.head__list--mobile {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important; 
        order: 3 !important; /* Падает строго на строчку ниже */
        width: 100% !important; 
        list-style: none !important;
        gap: 6px !important;
        margin: 4px 0 0 0 !important; 
        padding: 0 !important;
        overflow: visible !important; 
        white-space: normal !important; 
        position: static !important; /* Отключаем обособленное fixed, меню держится за общую шапку .head */
    }

    .head__list.head__list--mobile .head__list-item {
        display: inline-block !important;
        flex-grow: 1 !important; 
        text-align: center !important;
    }

    /* ОБВОДКА И СТИЛЬ КНОПОК НАВИГАЦИИ */
    .head__list.head__list--mobile .head__list-item .head__list-link {
        -webkit-appearance: none !important;
        appearance: none !important;
        font-weight: 500 !important;
        font-size: 12px !important; 
        color: var(--gray) !important;
        padding: 6px 0px !important; 
        width: 100% !important; 
        border: 1.5px solid var(--white) !important; 
        border-radius: 100px !important; 
        display: block !important;
        box-sizing: border-box !important;
        transition: all 0.2s ease-in-out !important;
    }

    /* Активное и обычные состояния */
    .head__list.head__list--mobile .head__list-item .head__list-link.active {
        border: 1.5px solid var(--green) !important;
        color: var(--white) !important;
        background: transparent !important;
    }
    
    .head__list.head__list--mobile .head__list-item .head__list-link:not(.active):hover {
        color: var(--gray) !important;
        border: 1.5px solid var(--white) !important;
    }

    /* ==========================================================================
       3. СТАБИЛЬНЫЙ ОТСТУП И СБРОС ЦЕНТРИРОВАНИЯ ЭКРАНА (HERO)
       ========================================================================== */
    .hero {
        padding-top: 140px !important; /* Безопасный зазор под новую двухстрочную монолитную шапку */
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero__container {
        display: block !important; /* Разрушаем флекс ПК-версии, прижимая контент влево */
        text-align: left !important; 
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        position: relative !important; 
        overflow: visible !important; 
    }

.hero__image {
    margin-top: 40px;
}
    .hero__image img {
        width: 100% !important;
        height: auto !important;
        border-radius: 24px !important; /* Красивое закругление фото дома */
        object-fit: cover !important;
    }



.hero__buttons {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: 0 !important;
    right: auto !important;
    
    /* 2. СБРОС И ОБНУЛЕНИЕ АВТОМАТИЧЕСКИХ МАРГИНОВ ПК */
    margin-top: 20px !important; /* Безопасный отступ вниз от картинки */
    margin-bottom: 20px !important;
    margin-right: 0 !important;
    margin-inline: 0 !important; /* Убираем авто-выравнивание по центру */
    

        /* Графический сдвиг: поднимает на 70px вверх И принудительно сдвигает влево к краю экрана */
    transform: translate(0px, -20px) !important; 
    
    /* Если кнопки всё ещё не у края, мы можем «выдавить» их влево отрицательным маргином, компенсируя центрирование ПК: */
    margin-left: -60px !important; 

    
    /* 4. ГАРАНТИРОВАННАЯ СЕТКА С ОРИЕНТАЦИЕЙ НАЛЕВО */
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important; /* Флекс-принуждение: начать строку слева */
    align-items: center !important;
    
    /* 5. ШИРИНА КОНТЕЙНЕРА */
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    
    /* Внутренний отступ слева, чтобы кнопка стояла по одной вертикальной оси с логотипом */
    padding-left: 16px !important; 
    padding-right: 16px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    
    gap: 12px !important; 
    box-sizing: border-box !important;
    z-index: 9999 !important; /* Сохраняем статус верхнего кликабельного слоя */
}

/* ==========================================================================
   ЖЕСТКИЙ СБРОС ЦЕНТРИРОВАНИЯ РОДИТЕЛЬСКОГО КОНТЕЙНЕРА НА ТЕЛЕФОНЕ
   ========================================================================== */
.hero__container {
    display: block !important;        /* Полностью отключаем флекс-центрирование ПК версии */
    text-align: left !important;      /* Принудительно прижимаем весь текст и инлайн-элементы влево */
    
    /* Сбрасываем любые жесткие десктопные ограничения и маргины */
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    
    position: relative !important;   /* Сохраняем координатную сетку */
    overflow: visible !important;     /* Разрешаем кнопкам накладываться поверх картинки */
}






/* Овальная кнопка "Больше о нас" — ПОЛНЫЙ СБРОС И УМЕНЬШЕНИЕ */
a.hero__button,
.hero__buttons .hero__button {
  
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
    flex: none !important;
    margin: 0 !important;
    text-indent: 0 !important;
    
    /* Жестко аннулируем старые размеры 300px и 70px на телефонах */
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    
    font-weight: 400 !important;
    font-size: 14px !important; /* Компактный аккуратный шрифт */
    color: var(--white) !important;
    
    /* Новые мобильные паддинги, которые создадут аккуратную рамку */
    padding: 10px 22px !important; 
    
    border: 1.5px solid var(--white) !important;
    border-radius: 100px !important; /* Идеальный овальный контур */
    text-align: center !important;
    box-sizing: border-box !important;
}

/* Ссылка-контейнер круглой стрелки — ЗДЕСЬ ОСТАВЛЯЕМ ОДНУ РАМКУ */
a.hero__scroll,
.hero__buttons .hero__scroll {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    flex: none !important;
    margin: 0 !important;
    
    /* Жесткие размеры компактного мобильного круга */
    width: 38px !important;
    height: 38px !important;
    
    /* Единственная внешняя рамка */
    border: 1.5px solid var(--white) !important; 
    border-radius: 50% !important; /* Идеальный круг */
    background: transparent !important;
    box-sizing: border-box !important;
}

/* Сама картинка внутри ссылки — ЗДЕСЬ ПОЛНОСТЬЮ УБИРАЕМ ВТОРУЮ ОБВОДКУ */
img.hero__scroll-image,
.hero__buttons .hero__scroll-image {
    /* ЖЕСТКИЙ СБРОС: убираем десктопную рамку и паддинги, которые двоились */
    border: none !important; 
    border-radius: 0 !important;
    padding: 0 !important; 
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    
    /* Уменьшаем саму иконку стрелочки, чтобы она аккуратно сидела внутри круга */
    width: 16px !important;
    height: 16px !important;
    display: block !important;
    object-fit: contain !important;
}







    /* 4. БЛОК "ПОЧЕМУ НАМ ДОВЕРЯЮТ" (Горизонтальная карусель) */
    .why {
        padding-top: 30px !important;
    }

    .why h1, .why h2, .why h3 {
        font-size: 22px !important;
    }

    .aboutus__container {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important; /* Листание карточек пальцем влево/вправо */
        padding-block: 25px !important;
        gap: 0px !important; /* Управляется через margin-left */
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .aboutus__container::-webkit-scrollbar {
        display: none !important;
    }
    /* НА ТЕЛЕФОНЕ: Полностью и жестко выключаем ПК-меню и ПК-кнопку (и по классу, и по ID) */
    .head__list.head__list--desktop,
    .head__button,
    #header-action-btn:not(.head__button--mobile) {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .card {
        flex-shrink: 0 !important; /* Защита от деформации ширины */
        width: 230px !important;
        height: 330px !important;
        border-radius: 24px !important;
    }

    /* Создаем красивый каскадный нахлест карточек на тач-экранах */
    .card:not(:first-child) {
        margin-left: -70px !important; 
    }

    /* Оптимизируем размеры текстов внутри карточек */
    .title { font-size: 20px !important; }
    .title__p { font-size: 16px !important; top: 50px !important; }
    .title__p-2 { font-size: 15px !important; top: 180px !important; }
    .bar { top: 300px !important; }
    .circle { top: 235px !important; }

    /* Ослабляем ховер-эффекты для мобильных (чтобы не прыгал скролл) */
    .card:hover {
        transform: translateY(-8px) !important;
    }
    .card:hover ~ .card {
        left: 40px !important;
    }

    /* Кнопка "Локации" */
    .aboutus__buttons {
        margin-top: 15px !important;
        padding-bottom: 30px !important;
        gap: 12px !important;
    }

    .aboutus__button {
        font-size: 16px !important;
        width: auto !important;
        height: auto !important;
        padding: 10px 20px !important;
        flex-grow: 1 !important;
        text-align: center !important;
    }
    
    .aboutus__scroll-image {
        padding: 8px 14px !important;
    }
    
    .aboutus__scroll {
        width: 32px !important;
        height: 32px !important;
    }

    /* Заголовки секций */
    .youcan {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }
    
    .but {
        font-size: 13px !important;
        padding-bottom: 12px !important;
    }

    /* Карта */
    .section-map iframe, 
    .section-map div {
        width: 100% !important;
        height: 280px !important; /* Оптимальная высота карты на телефоне */
        border-radius: 16px !important;
    }

    /* 5. БЛОК "СОТРУДНИКИ" (Сетка 2х2 как на скриншоте-макете) */
    .agentsus__buttons {
        margin-top: 15px !important;
        gap: 12px !important;
    }
    
    .agentsus__button {
        font-size: 16px !important;
        width: auto !important;
        height: auto !important;
        padding: 10px 20px !important;
        flex-grow: 1 !important;
        text-align: center !important;
    }
    
    .agentsus__scroll-image {
        padding: 8px 14px !important;
    }
    
    .agentsus__scroll {
        width: 32px !important;
        height: 32px !important;
    }

    .agents {
        padding-top: 30px !important;
        padding-bottom: 40px !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* Ровно 2 колонки на строку */
        gap: 12px !important; /* Убираем гигантский отступ 150px */
    }

    .card-agents {
        width: 100% !important;
        height: 250px !important; /* Адаптивная высота под карточку */
        border-radius: 20px !important;
    }

    .card-agents .profile-pic {
        border-radius: 17px !important;
    }

    .card-agents .bottom-agent {
        top: 80% !important;
        border-radius: 17px !important;
        padding: 5px !important;
    }

    .card-agents .bottom-agent .content-agent {
        bottom: auto !important;
        top: 10px !important;
        left: 10px !important;
        right: 10px !important;
        height: auto !important;
    }

    .name {
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    /* Отключаем десктопное раскрытие при наведении пальца, фиксируем плашку снизу */
    .card-agents:hover {
        border-top-left-radius: 20px !important;
    }

    .card-agents:hover .bottom-agent {
        top: 80% !important;
        border-radius: 17px !important;
    }

    .card-agents:hover .profile-pic {
        width: calc(100% - 6px) !important;
        height: calc(100% - 6px) !important;
        top: 3px !important;
        left: 3px !important;
        border-radius: 17px !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .card-agents:hover .profile-pic img {
        transform: none !important;
    }

    /* 6. КАТАЛОГ СТРОИТЕЛЬСТВА И ДОМОВ (В одну колонку на смартфонах) */
    #catalog-container,
    .cardshouses {
    display: grid !important;
grid-template-columns: 1fr !important; /* Все карточки выстраиваются вертикально */
gap: 20px !important;
width: 100% !important;
}
.cardbuilding,
.cardhouses {
width: 100% !important;
margin-left: 0 !important;
}
/* 7. ФОРМА ОБРАТНОЙ СВЯЗИ */
.form {
margin-top: 50px !important;
max-width: 100% !important;
width: 100% !important;
    /* Принудительно разрешаем стандартный мобильный скролл без блокировок */
    html, body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100% !important;
    }

}
}
/* Кнопка Подробнее — только на телефонах */
.agent-details-toggle {
    display: none !important;
}

@media (max-width: 768px) {
    .agent-details-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 8px 10px;
        border: 1px solid white;
        border-radius: 30px;
        background: transparent;
        color: white;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
    }
}
/* PRO.DOM — adaptive layout and browser zoom, 2026-11-01 */
@media (min-width:769px) {
  .head__container {width:min(100% - 36px,1200px);min-width:0}
  .head__nav {gap:clamp(8px,1.4vw,20px);min-width:0}
  .head__nav > img {max-width:clamp(120px,14vw,180px);height:auto;flex-shrink:1}
  .head__list--desktop {gap:clamp(5px,1vw,20px);min-width:0;flex-wrap:wrap;justify-content:center}
  .head__list-link {font-size:clamp(12px,1.05vw,15px);padding:7px clamp(7px,.8vw,12px);white-space:nowrap}
  .head__button {white-space:nowrap;flex-shrink:0}
  body[data-catalog-type] main {display:flow-root;min-width:0}
  body[data-catalog-type] .prodom-filter-wrap {width:min(100% - 32px,1240px);margin:95px auto 0!important;padding:0!important;min-width:0}
  body[data-catalog-type] .cardsbuilding {padding:16px 16px 90px!important;margin:0 auto!important;max-width:1240px!important;min-height:0!important;width:100%!important}
  body[data-catalog-type] .catalog-center-wrapper {width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;min-width:0}
  body[data-catalog-type] #catalog-container {display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr))!important;gap:clamp(16px,2.5vw,30px)!important;justify-content:stretch!important;align-items:stretch;min-width:0;max-width:100%;width:100%}
  body[data-catalog-type] #catalog-container>.cardbuilding {min-width:0!important;max-width:none!important}
  body[data-catalog-type] .prodom-filter-top {min-width:0}
  body[data-catalog-type] .prodom-search-form {min-width:0}
  body[data-catalog-type] .prodom-filter-fields {grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr))!important}
}
@media (min-width:769px) and (max-width:1050px){
  .head__nav {flex-wrap:wrap;justify-content:center;row-gap:9px}
  .head__list--desktop {order:3;flex-basis:100%;justify-content:center}
  .head__button {margin-left:auto}
  body[data-catalog-type] .prodom-filter-wrap {margin-top:120px!important}
}
@media (max-width:768px){
  body[data-catalog-type] main {display:flow-root!important;min-width:0!important;padding-top:120px!important}
  body[data-catalog-type] main>.prodom-filter-wrap {margin:0 auto 12px!important;width:100%!important;max-width:100%!important;padding:0 12px!important;box-sizing:border-box!important}
  body[data-catalog-type] main>.cardsbuilding {padding:8px 12px 65px!important;margin:0 auto!important;min-height:0!important;max-width:100%!important;width:100%!important}
  body[data-catalog-type] .catalog-center-wrapper {width:100%!important;max-width:100%!important;margin:0!important;padding:0!important}
  body[data-catalog-type] #catalog-container {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important}
  body[data-catalog-type] .prodom-filter-top {display:flex!important;min-width:0!important;flex-wrap:wrap!important}
  body[data-catalog-type] .prodom-search-form {flex:1 1 190px!important;min-width:0!important}
  body[data-catalog-type] .prodom-filter-toggle {flex:0 0 auto!important}
  body[data-catalog-type] .prodom-filter-fields {grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:390px){
 body[data-catalog-type] .prodom-search-form {flex-basis:100%!important}
 body[data-catalog-type] .prodom-filter-toggle {height:42px!important}
}
