/*=====Основные настройки страницы=====*/
*{
    box-sizing: border-box;
}

body{
    padding: 12px;
    margin: 24px;
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    padding-top: 100px;
}



/*=====Реализация блоков flexbox=====*/

/*   Реализация блока предзагрузки */

.preloader{
    position: fixed;
    inset: 0;

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

    background-color: #f5f8eb;

    z-index: 9999;

    opacity: 1;
    visibility: visible;

    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hide{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader img{
    width: 180px;
    height: auto;
    display: block;
}

.loader{
    width: 300px;
    height: 8px;
    margin-top: 30px;
    background-color: #fff7e6;
    border-radius: 10px;
    overflow: hidden;
}

.loader-progress{
    width: 0%;
    height: 100%;
    background-color: #8ecae6;
    transition: width 0.3s ease;
}

/*Основной блок container*/
.container{
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1600px;

}

.container.show{
    opacity: 1;
}



.content-3,
.content-4,
.content-7,
.content-8{
    display: flex;
    flex: 1 1 50%;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 25px 20px;
    background-color: #fff7e6;
    flex-direction: column;
}

/*=== Реализация навигации ===*/

/* Шапка сайта */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

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

    padding: 10px 5%;
    box-sizing: border-box;

    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Логотип */

.logo img {
    display: block;
    width: 120px;
    height: auto;
    object-fit: contain;
}

/* Кнопка бургера */

.burger {
    width: 50px;
    height: 45px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;

    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.burger span {
    width: 32px;
    height: 3px;
    background: #263b59;
    border-radius: 5px;

    transition: 0.3s ease;
}

/* Анимация бургера */

.burger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Выпадающее меню */

.nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 5%;

    width: 300px;
    padding: 25px;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;

    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);

    transition: 0.3s ease;
}

/* Открытое меню */

.nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Ссылки */

.nav-menu ul {
    display: flex;
    flex-direction: column;
    gap: 18px;

    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu ul a {
    color: #263b59;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;

    transition: 0.2s ease;
}

.nav-menu ul a:hover {
    color: #8299ba;
}

/* Кнопка проекта */

.link-button {
    display: block;
    padding: 12px 15px;

    text-align: center;
    text-decoration: none;

    color: white;
    background: #263b59;
    border-radius: 7px;

    transition: 0.3s ease;
}

.link-button:hover {
    background: #405b80;
}

/* Переключатель языков */

.language-switch {
    display: flex;
    align-items: center;
    gap: 5px;

    padding: 4px;
    background: #f1f3f6;
    border: 1px solid #dfe4eb;
    border-radius: 8px;
}

.language-switch a {
    padding: 7px 12px;
    border-radius: 5px;

    color: #596579;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.language-switch a.active {
    color: white;
    background: #263b59;
}


/*Блок content-1*/
.content-1 {
    display: flex;
    gap: 10px;
    padding: 25px 20px;
    box-sizing: border-box;
    width: 100%;
    background-color: #fff7e6;
    align-items: center;
}

.item {
    box-sizing: border-box;
    padding: 20px;
    min-width: 0;
}

.big {
    flex: 0 0 calc(50% - 5px);
}

.item:not(.big) {
    flex: 0 0 calc(25% - 5px);
}
/*Блок content-2*/
.content-2,
.content-5{
    display: flex;
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    padding: 25px 20px;
    background-color: #fff7e6;
}

.content-text-3{
    display: flex;
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    padding: 25px 20px;
    background-color: #fff7e6;
}

.content-text-3 h2{
    color: #2d4d68;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.3px;
}

.content-text-2{
    display: flex;
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 25px 20px;
    background-color: #fff7e6;
    flex-direction: column;
}

.content-text-2 h3{
    color: #2d4d68;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.3px;
    margin: 0 0 8px;
}

.content-text-2 p{
    color: gray;
    text-align: center;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: -0.3px;
    line-height: 1.8;
}

.content-text-2 span{
    font-size: 13px;
    display: block;
    margin: 0px;
    color: #8295A5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    line-height: 1.8;
    text-transform: uppercase;
}

.content-text-4{
    display: flex;
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    padding: 25px 20px;
    background-color: #2D3A47;
}

.content-text-4{
    color: #fff7e6;
}

.content-text-5{
    display: flex;
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    padding: 25px 20px;
    background-color: #fff7e6;
}

.content-text-5 h3{
    color: #2d4d68;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.3px;
}

.content-text-5 p{
    text-align: center;
    line-height: 1.9;
    
    color: #737F88;
    font-size: 15px;
}

.content-text-5 h3 span {
    color: #A9B7C6;
}
/*Реализация блока карточки 1*/
/*===== Реализация карточек 1=====*/

.content-block-1{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    justify-content: center;
    padding: 25px 40px;   
    background-color: #fff7e6;
}

.card-2{   
    display: flex;
    flex-direction: column;
    flex: 1 1 300px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-2:hover{
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/*Реализация блока карточки 2*/
/*===== Реализация карточек 2 (С контактами) =====*/

.content-block-2{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    justify-content: center;
    background-color: #fff7e6;
    padding: 25px 40px;
    box-sizing: border-box;
    align-items: center;

    align-self: flex-start;
    
}

.content-block-3{
    display: flex;
    flex: 1 1 50%;
    justify-content: center;
    padding: 25px 20px;
    align-items: center;
    background-color: #fff7e6;
    flex-wrap: wrap;
}

.content-block-3 img{
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.content-block-4{
    display: flex;
    flex: 1 1 50%;
    justify-content: center;
    align-items: center;
    padding: 25px 20px;
    background-color: #fff7e6;
    flex-direction: column;
}

.content-block-4 h3{
    color: #2d4d68;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.3px;
}

.content-block-4 p{
    color: gray;
    text-align: center;
    font-size: 15px;
    line-height: 1.9;
}
/*   Реализация блока контакты */

.card-3{
    height: 120px;
    display: flex;
    flex-direction: column;
    flex: 0 1 250px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 20px 20px 10px 20px;
}

.card-3 a{
    text-decoration: none;
    color: #2d4d68;
}

.card-3 img{
    width: 25%;
    height: 50px;
    object-fit: cover;
    display: block;
    
}

.card-3:hover{
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/*Реализация блока с фотографией плана участков*/

.content-10{
    display: flex;
    flex: 1 1 100%;
    justify-content: center;
    align-items: center;
    padding: 25px 20px;
    background-color: #fff7e6;

}

.content-10 img{
    border: 8px;
    height: auto;
    width: 1000px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/*Оформление таблици с описанием участков*/
/* КОНТЕЙНЕР ТАБЛИЦЫ */
.content-11 {
    display: flex;
    flex: 1 1 100%;
    justify-content: center;
    align-items: center;
    padding: 25px 20px;
    background-color: #FFF7E6;
    width: 100%;
    box-sizing: border-box;
}

/* ОСНОВНАЯ ТАБЛИЦА */
.custom-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #FFFFFF;
    text-align: left;
    border: 1px solid #E8EDEB;
    border-radius: 10px;
    overflow: hidden;
    color: #53616B;
    font-size: 14px;
    line-height: 1.6;
    box-sizing: border-box;
}

/* ЗАГОЛОВКИ */
.custom-table th {
    padding: 16px 18px;
    background-color: #F1F4EF;
    font-weight: 600;
    color: #53616B;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.7px;
    border-bottom: 1px solid #E5EAE5;
    overflow-wrap: break-word;
}

/* ЯЧЕЙКИ */
.custom-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #EDF0ED;
    vertical-align: top;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* ПЕРВАЯ КОЛОНКА */
.custom-table tbody td:first-child {
    color: #465A5A;
    font-weight: 600;
}

/* ЧЕРЕДОВАНИЕ СТРОК */
.custom-table tbody tr:nth-child(even) {
    background-color: #FAFBF9;
}

/* НАВЕДЕНИЕ */
.custom-table tbody tr:hover {
    background-color: #F3F7F1;
    transition: background-color 0.2s ease;
}

/* ПОСЛЕДНЯЯ СТРОКА */
.custom-table tbody tr:last-child td {
    border-bottom: none;
}

/* BADGE */
.badge {
    display: inline-block;
    padding: 4px 11px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    background-color: #EDF0EE;
    color: #65736C;
}

.badge.active {
    background-color: #E3EFE5;
    color: #52765B;
}

.badge.doactive {
    background-color: #f8a667;
    color: #ff0000;
}

/* АДАПТИВНОСТЬ */
@media screen and (max-width: 600px) {

    .content-11 {
        padding: 15px 10px;
    }

    .custom-table {
        font-size: 12px;
    }

    .custom-table th,
    .custom-table td {
        padding: 10px 8px;
        font-size: 12px;
    }

    .badge {
        font-size: 10px;
        padding: 3px 7px;
    }
}

/*===== Реализация переключения таблиц =====*/

/*
Логика простая: все блоки с классом .tab-pane по умолчанию имеют display: 
none. Но как только JS добавляет блоку класс .active, срабатывает правило 
display: block, и таблица появляется.
*/

.tabs-wrapper {
  width: 100%;
}

.tabs-buttons {
  display: flex;
  gap: 20px;
  padding: 25px 20px;
  flex-wrap: wrap;
  flex: 1 1 100%;
  background-color: #fff7e6;
  justify-content: center;
}

.tab-btn {
  padding: 12px 24px;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  color: #405b80;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px; /* Полностью округлые края */
  cursor: pointer;
  transition: all 0.25s ease;
}

.tab-btn:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
  transform: translateY(-1px);
}

.tab-btn.active {
  background: #405b80;
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 123, 255, 0.35);
  transform: translateY(-1px);
}





/* Скрываем все таблицы по умолчанию */
.tab-pane {
  display: none;
}

/* Показываем только ту таблицу, у которой есть класс active */
.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease; /* Плавное появление */
}

/* Анимация плавного проявления */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/*==========*/

/*Реализация красоты на блоке с описанием возможных построек*/


.content-12{
    display: flex;
    flex: 1 1 100%;
    justify-content: center;
    align-items: center;
    padding: 25px 20px;
    background-color: #fff7e6;
}


.content-13{
    display: flex;
    flex: 1 1 100%;
    justify-content: center;
    align-items: center;
    padding: 25px 20px;
    background-color: #fff7e6;
}

.content-13 img{
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/*=== Реализация блока с ценами за квадратный метр ===*/
/*Картинка*/
.content-21,
.content-20{
    display: flex;
    flex: 1 1 50%;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    background-color: #fff7e6;
    flex-direction: column;
}

.content-21 img{
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/*Текст*/
.content-20 h2{
    color: #2d4d68;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.3px;
}

.content-20 p{
    text-align: center;
    line-height: 1.9;
    color: #737F88;
    font-size: 15px;
}

.content-20 p span{
    font-size: 17px;
    color: #05386B;
}



/*Реализация на страницы красаты*/

.content-2 img{
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

.content-3 img{
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

.content-5 img{
    width: 1000px;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

.content-8 img{
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}
/*Реализация стиля кнопки*/
.link-button {
    display: inline-flex;
    align-items: start;
    justify-content: center;
    gap: 12px;

    padding: 14px 24px;
    background-color: #05386B;
    color: #EDF5E1;

    
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;

    
    border-radius: 12px;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.link-button:hover {
    background-color: #A9B7C6;
    color: #05386B;
    
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/*Реализация блока галереи*/
.gallery{
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    background-color: #fff7e6;

    padding: 15px 15px;
}

.gallery-item{
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item img{
    display: block;
    width: 180%;
    height: auto;
    object-fit: cover;
    
}

.gallery-viewer{
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.gallery-viewer.active{
    display: flex;
}

.gallery-viewer img{
    max-width: 90%;
    max-height: 90%;

    object-fit: contain;
}

/*   Реализация закрытия беблиотеки */

.gallery-close{
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

/*   Реализация вправо влево по галереи */

.gallery-prev,
.gallery-next{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    font-size: 30px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

.gallery-prev{
    left: 30px;
}

.gallery-next{
    right: 30px;
}

/*=====Реализация просмотра одной фотографии=====*/
/* Подсказка пользователю, что картинку можно увеличить */
.zoomable {
  cursor: zoom-in; /* Курсор превращается в лупу с плюсиком */
  transition: opacity 0.2s ease;
}

.zoomable:hover {
  opacity: 0.92;
}

/* Черный полупрозрачный фон на весь экран */
.photo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw; /* 100% ширины экрана */
  height: 100vh; /* 100% высоты экрана */
  background-color: rgba(15, 23, 42, 0.92); /* Глубокий темный фон */
  backdrop-filter: blur(5px); /* Легкое размытие сайта на фоне */
  z-index: 9999; /* Поверх абсолютно всех элементов сайта */
  
  /* Скрыто по умолчанию */
  display: none; 
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Когда JS добавит класс active, окно появится */
.photo-modal.active {
  display: flex;
  animation: modalFadeIn 0.25s ease;
}

/* Сама картинка внутри окна */
.photo-modal-img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  object-fit: contain; /* Гарантирует, что картинка не обрежется и не сплющится */
}

/* Аккуратный круглый крестик сверху справа */
.photo-modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.photo-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/*Реализация эфекта приближения*/
.photo-hover {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.photo-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}
/*Оформление заголовка и двух блоков рядом с ним*/
.content-1 .eyebrow {
    display: block;
    margin-bottom: 22px;
    color: #8295A5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    line-height: 1.8;
    text-transform: uppercase;
}

/* Главный контейнер с фоновой картинкой */
.content-1 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Ограничиваем ширину до 1600px и ставим по центру */
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  
  min-height: 85vh;
  padding: 80px 24px 60px 24px;
   /* С таким ограничением скругленные углы снова будут смотреться отлично */
  overflow: hidden;
  
  /* Фоновое фото + многослойное темное затемнение для идеальной читаемости текста */
  background-image: 
    linear-gradient(135deg, rgba(16, 28, 40, 0.88) 0%, rgba(45, 77, 104, 0.72) 55%, rgba(16, 28, 40, 0.85) 100%),
    url('Image/img-34.png'); /* <-- ЗАМЕНИ НА ПУТЬ К ТВОЕЙ КАРТИНКЕ */
  background-size: cover;
  background-position: center;
  color: #ffffff;
  box-sizing: border-box;
}

/* Внутренний Flexbox-контейнер (выстраивает верх и низ колонкой) */
.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
  max-width: 1140px;
  z-index: 2;
}

/* Основной текстовый блок */
.content-1 .item.big {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 900px;
}

/* Надзаголовок-бейдж */
.content-1 .eyebrow {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff8d9;
  background-color: rgba(255, 248, 217, 0.12);
  border: 1px solid rgba(255, 248, 217, 0.28);
  border-radius: 50px;
}

/* Главный заголовок H1 */
.content-1 h1 {
  margin: 0 0 20px 0;
  font-size: clamp(28px, 4.5vw, 48px); /* Адаптивный размер шрифта */
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

/* Расстояния до столиц (выстраиваем в гибкий ряд с переносом) */
.content-1 h3 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0 0 22px 0;
  font-size: clamp(14px, 1.8vw, 16px);
  font-weight: 500;
  color: #fff8d9;
}

/* Описание под расстояниями */
.content-1 .hero-desc {
  margin: 0 0 28px 0;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
}

/* Ограничиваем ширину твоей кнопки, чтобы она не растягивалась на 100% экрана */
.content-1 .hero-btn {
  max-width: 250px;
}

/* Нижний ряд с двумя карточками на Flexbox */
.hero-cards {
  display: flex;
  flex-wrap: wrap; /* На телефонах карточки встанут друг под другом */
  gap: 20px;
  width: 100%;
}

/* Стеклянные карточки 01 и 02 */
.card-glass {
  flex: 1 1 300px; /* Равная ширина на ПК, перенос если экран меньше 300px */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px); /* Эффект матового стекла */
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 24px 28px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.card-glass:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-3px);
}

.card-glass .item-number {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #fff8d9;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.card-glass h5 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.card-glass p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}



/* Контейнер-обертка (нужен только для ширины) */
.btn-1 {
  width: 100%;
  box-sizing: border-box;
}

/* Сама кнопка-ссылка (делаем кликабельной всю площадь) */
.btn-1 a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* На случай, если добавишь иконку или стрелочку */
  
  width: 100%;
  padding: 14px 24px; /* Делаем кнопку чуть выше и солиднее */
  box-sizing: border-box;
  
  /* Благородный градиент на основе твоего цвета #2d4d68 */
  background: linear-gradient(135deg, #365c7c 0%, #243f56 100%);
  color: #fff8d9;
  
  font-weight: 600; /* Исправили font-size на font-weight */
  font-size: 15px;
  letter-spacing: 0.4px; /* Легкая разрядка букв для премиального вида */
  text-decoration: none;
  
  border-radius: 12px;
  border: 1px solid rgba(255, 248, 217, 0.15); /* Тончайшая рамка в цвет текста */
  
  /* Мягкая внешняя тень + легкий блик по верхнему краю */
  box-shadow: 
    0 4px 12px rgba(45, 77, 104, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);

  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Эффект при наведении мыши */
.btn-1 a:hover {
  /* Вариант А: кнопка становится ярче и насыщеннее, текст остается светлым */
  background: linear-gradient(135deg, #3f6b90 0%, #2d4d68 100%);
  color: #ffffff;
  
  transform: translateY(-2px);
  box-shadow: 
    0 8px 20px rgba(45, 77, 104, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Эффект реального нажатия (кнопка слегка утапливается) */
.btn-1 a:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(45, 77, 104, 0.3);
}


.content-1 .item-number {
    display: inline-block;
    color: #8295A5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px; 
}
/*Оформление текста в блоке content-4*/
.content-4 h2{
    color: #2d4d68;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.3px;
}

.content-4 p{
    text-align: center;
    line-height: 1.9;
    
    color: #737F88;
    font-size: 15px;
}

.content-4 h2 span {
    color: #A9B7C6;
}


/*Оформление Карточек с преимуществами*/
.card-2 h5{
    color: #2d4d68;
    font-size: 15px;
    text-align: center;
}

.card-2 p{
    text-align: center;
    line-height: 1.9;
    color: #737F88;
    font-size: 13px;
}

.card-2{
    border-top: 4px solid #99B4AA;
}

/*Реализация блока content-7*/
.content-7 {
    color: #293A47;
}

.content-7 p {
    margin: 0 0 24px;
    color: #687782;
    font-size: 15px;
    line-height: 1.9;
    letter-spacing: 0.1px;
}

.content-7 p:first-child {
    color: #293A47;
    font-size: 18px;
    line-height: 1.8;
    font-weight: 500;
}

.content-7 ul {
    list-style: none;
    margin: 30px 0;
    padding: 0;
    border-top: 1px solid #E1E6EA;
}

.content-7 li {
    position: relative;
    padding: 18px 0 18px 26px;
    color: #687782;
    font-size: 14px;
    line-height: 1.9;
    border-bottom: 1px solid #E1E6EA;
}

.content-7 li::before {
    content: "";
    position: absolute;
    top: 27px;
    left: 2px;
    width: 6px;
    height: 6px;
    background: #A9B7C6;
    border-radius: 50%;
}

.content-7 p:last-child {
    margin-top: 30px;
    margin-bottom: 0;
    padding-left: 20px;
    border-left: 3px solid #A9B7C6;
    color: #293A47;
    font-size: 14px;
    line-height: 1.9;
}

/*Плавное проявление элемента*/
/* Начальное состояние элемента */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

/* Элемент появился в области просмотра */
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/*===== Реализация интерактивной карты =====*/

.map-container {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.map-image {
  display: block;
  width: 100%;
  height: auto;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Зоны на карте */
.zone {
  fill: rgba(0, 123, 255, 0.2);
  stroke: #007bff;
  stroke-width: 2;
  cursor: pointer;
  transition: fill 0.2s, stroke 0.2s;
}

.zone-2{
    fill: rgba(255, 94, 0, 0.253);
    stroke: #ff0000;
    stroke-width: 2;
    transition: fill 0.2s, stroke 0.2s;
}

.zone:hover {
  fill: rgba(255, 193, 7, 0.5);
  stroke: #ff9800;
}


/* Адаптивная белая карточка */
.tooltip {
  position: absolute;
  display: none;
  background: #ffffff;
  color: #333333;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  pointer-events: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 10;

  /* Гибкий размер под содержимое и экран */
  width: max-content;
  min-width: 160px;
  max-width: min(280px, 85vw); /* Не шире 280px и не шире 85% экрана */
  box-sizing: border-box;
  
  /* Сдвигаем карточку по центру и поднимаем выше точки координат */
  transform: translate(-50%, -100%);
  margin-top: -12px; /* Отступ от зоны вверх */
}

/* Треугольная стрелочка снизу карточки */
.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}

/* Элементы внутри карточки */
.tooltip-title {
  margin: 0 0 6px 0;
  font-size: clamp(14px, 2vw, 16px); /* Шрифт слегка уменьшается на узких экранах */
  font-weight: 700;
  color: #111111;
}

.tooltip-desc {
  margin: 0 0 8px 0;
  font-size: clamp(12px, 1.8vw, 13px);
  color: #555555;
  line-height: 1.4;
}

.tooltip-list {
  margin: 0 0 10px 0;
  padding-left: 18px;
  font-size: clamp(12px, 1.8vw, 13px);
  color: #333333;
}

.tooltip-list li {
  margin-bottom: 3px;
}

.tooltip-footer {
  padding-top: 8px;
  border-top: 1px solid #eeeeee;
  font-size: 12px;
  font-weight: 600;
  color: #007bff;
}

/*===============*/
/* Учитываем настройку уменьшения анимации */

/* ==========================================================================
   Адаптивность для средних экранов (Ноутбуки и ПК до 1600px)
   ========================================================================== */
@media (min-width: 768px) {
    .container-3 {
        padding: 25px 40px;
    }
    .card-3 {
        max-width: 600px;  /* Прежний стандартный размер карточки */
        aspect-ratio: 3 / 2; /* Возвращаем классическое соотношение сторон */
    }
}


/* ==========================================================================
   🔥 ТОТ САМЫЙ МЕДИАЗАПРОС: Для самых больших экранов (от 1600px и выше)
   ========================================================================== */
@media (min-width: 1600px) {
    .container-3 {
        max-width: 1600px; /* Фиксируем контейнер по границе вашего основного блока */
        margin: 0 auto;    /* Центрируем блок на экране */
    }

    .card-3 {
        max-width: 850px;  /* Карточка становится значительно больше */
        aspect-ratio: 3 / 2; /* Пропорции сохраняются, изображение масштабируется без искажений */
    }

    /* На большом экране можно увеличить шрифты внутри, чтобы они смотрелись гармонично */
    .card-back h3 {
        font-size: 2rem; 
        margin-bottom: 15px;
    }
    
    .card-back p {
        font-size: 1.2rem;
        line-height: 1.5;
        max-width: 80%; /* Ограничиваем ширину текста для удобства чтения */
    }
    .card-back img{
        height: auto;
        width: 900px;
    }
}

@media (max-width: 1200px){
    .content-7,
    .content-8,
    .content-20,
    .content-21{
        flex: 1 1 100%;
    }
    .content-8 img{
        width: auto;
        height: 400px;
    }
    .content-3,
    .content-4{
        flex: 1 1 100%;
    }
    .content-3 img{
        width: 100%;
        height: 350px;
    }

    .content-5 img{
        height: auto;
        width: 800px;
    }
}

@media (max-width: 1000px){
    .content-5 img{
        height: auto;
        width: 700px;
    }
    
}

@media (max-width: 800px){
    
    .content-2 img{
    width: 100%;
    height: 300px;
    }
    .content-5 img{
        height: auto;
        width: 450px;
    }
    .gallery{
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    .content-8 img{
        width: auto;
        height: 300px;
    }
    .gallery-item img{
        
        width: 180%;
        height: auto;
        
        
    }
    body{
        padding: 3px;
        margin: 8px;
        padding-top: 5rem;
    }
}

/* Адаптивность для планшетов и телефонов */
@media (max-width: 768px) {
    .content-1 {
        flex-wrap: wrap;
    }

    .big {
        flex: 0 0 100%;
    }

    .item:not(.big) {
        flex: 1 1 calc(50% - 10px);
    }
}

@media (max-width: 600px) {
    .content-1 h1 {
        font-size: 34px;
        line-height: 1.25;
        letter-spacing: -0.7px;
    }

    .content-1 h5 {
        font-size: 18px;
    }

    .content-1 p {
        font-size: 14px;
        line-height: 1.8;
    }
}
@media (max-width: 600px) {
    .content-7 p:first-child {
        font-size: 16px;
    }

    .content-7 p,
    .content-7 li,
    .content-7 p:last-child {
        font-size: 14px;
        line-height: 1.8;
    }

    .content-7 li {
        padding: 14px 0 14px 22px;
    }

    .content-7 li::before {
        top: 23px;
    }
}

@media (max-width: 480px) {
    .item,
    .big,
    .item:not(.big) {
        flex: 0 0 100%;
    }
}

@media (max-width: 480px) {
    .card h5 {
        padding: 18px 16px;
        font-size: 12px;
    }

    .card ul {
        padding: 8px 16px;
    }

    .card li {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 490px){
    .content-5 img{
        height: auto;
        width: 280px;
    }
    .content-8 img{
        width: auto;
        height: 200px;
    }
    .card {
        min-height: 80px;
        flex: 0 1 100px;
        
    }

    .card h5 {
        font-size: 5px;
        text-align: center;
    }

    .card li {
        font-size: 7px;      
    }

}
