* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {scroll-behavior: smooth;}
body {
    font-family: Oswald, sans-serif;
    font-style: normal;
    background-color: #fafafa
}
p{font-size:1.1rem;
}
.container {
    width: 1190px;
    margin-left: auto;
    margin-right: auto
}
.cookie-consent {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    background-color: #5c5c5c;
    color: #fff;
    padding: 15px 20px;
    font-size: 12px;
    z-index: 999;
    display: none;
    animation: .5s ease-out forwards slideUp
}

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

.cookie-content a {
    color: #98ebb3
}

.cookie-content p {
    margin: 0 15px 0 0;
}
@media (max-width: 800px) {
	.cookie-content p {
    margin: 0 15px 0 0;
	font-size: .7rem;
}
}

.btn-accept {
    background-color: #01c8cb;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 700;
    border-radius: 4px
}
header
 {
    background: #fff;
    box-shadow: 0 0 5px #0000000d;
	position: fixed;
    top: 0;
    z-index: 9;
    width: 100%;
    height: 90px;
}
.popup-fullscreen-content header
 {
	position: relative;
	box-shadow: none;
}
.popup-fullscreen-content .hero-after
 {
    margin: auto;
    text-align: center;
    max-width: 1190px;
}
.top {
    width: 1190px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
}
.logo
 {
    display: flex;
}
.logo img {
    height: 55px;
}
.top-nav {
    display: flex;
    justify-content: end;
    align-items: center;
}
.top-coll {
    font-size: 1rem;
    color: #333;
    padding-left: 3rem;
	font-weight:300;
	display: flex;
    align-items: center;
}
.top-coll span
 {
    padding-left: 8px;
    line-height: 1.3;
}
.top-coll i {
    font-size: 1.2rem;
    color: #5a7ca3;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    background: #f5f5f5;
}
section.hero {
    height: 90vh;
	display: flex;
    flex-direction: column;
    justify-content: space-between;
}



.hero-content:before{
	position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    background: #ffffffad;
}
.hero-content
 {
	background:url(../img/at2.webp) no-repeat center;
	background-size:cover;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
	position:relative;
	margin-top:90px;
}

.hero-cols
 {
    display: flex;
	position:relative;
	z-index:1;
	align-items: center;
    /*background: #ffffff73;
    border-radius: 10px;*/
    padding: 20px;
    /*box-shadow: 0 2px 3px #0000000d;*/
}
.hero-col_left {
    width: 50%;
	padding-right: 2rem;
}
.hero-col_right
 {
    width: 50%;
	padding: 10px!important;
    border-radius: 15px;
    background: #ffffff4f;
    box-shadow: 0 1px 3px #00000042;
	position:relative;
	display:flex;
}
.hero-img {
    max-height: 450px;
    overflow: hidden;
    border-radius: 15px;
    width: 70%;
    height: 450px;
}
.hero-img img
 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.hero-gallery {
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow: hidden;
    width: 30%;
}
.hero-gallery div {
    width: 86%;
    text-align: center;
}
.hero-gallery img
 {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 1;
    border-radius: 15px;
}
.hero-menu
 {
    display: flex;
	justify-content: center;
	//padding-bottom: 3rem;	
}
.hero-icon
 {
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
    color: #074b98;
	transition: all .3s ease;
}
.hero-icon:hover
 {
    transform: translateY(-5px);
}
.hero-icon i
 {
    display: block;
    width: 100%;
    font-size: 2rem;
    color: #95c3a6;
	padding-bottom: 12px;
	position: relative;
    margin-bottom: 15px;	
}
.hero-icon i::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
	background: url(../img/eco.png) no-repeat center;
	left: 5px;
    bottom: -8px;
    background-size: contain;
    filter: contrast(0.3);
	opacity: 0.3;
    z-index: -1;
}
button {
    background: #074b98;
    padding: .7rem 3rem;
    border-radius: 40px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    color: #fff;
    display: block;
    cursor: pointer;
    box-shadow: 0 3px 6px #00000026;
    letter-spacing: .01rem;
    transition: all .3s ease;
	font-weight: 600;
	
}
button:hover{
    background: #0074a0;
	transform: translateY(-5px);
}
.btn {
    background: #008532;
    color: #fff;
    border: 0;
    transition: all .3s;
    box-shadow: 0 2px 0 0;
    position: relative;
    text-decoration: none;
    overflow: hidden;
}
.btn:hover {
    transition: all .3s
}

@keyframes css16_moving {
    30% {
        left: 100%;
        transform: skewX(-45deg) translateX(50%)
    }

    100% {
        left: 100%;
        transform: skewX(-45deg) translateX(50%)
    }
}

.btn:before {
    content: '';
    background-color: rgba(255, 255, 255, .4);
    background: linear-gradient(90deg, rgba(255, 255, 255, .15) 0%, rgba(255, 255, 255, .6) 50%, rgba(255, 255, 255, .15) 100%);
    background-origin: content-box;
    height: 100%;
    width: 50px;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transform: skewX(-45deg) translateX(-150%);
    animation: css16_moving 4s ease-in-out infinite;
    z-index: 100
}
.top-coll a
 {
    color: #074b98;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
	transition: all .3s ease;
}
.top-coll a:hover{
	color:#000;
	text-decoration:underline
}
.screen-bg{
	background: url(../img/49824834-min.webp) no-repeat bottom right;
	background-size:cover;
	position:relative;
}
.screen-bg::before
 {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background: #031b24d9;
}
.screen-bg .container{
	position:relative;
}
.screen-bg p{
	padding:1rem 0;
	color:#b4cfd9;
}
.after-gallery b
 {
    color: #92d368;
    font-size: 1.4rem;
    font-weight: 500;
}
.after-gallery span
 {
    font-size: 1.2rem;
    color: #acbda0;
}
.gallery {
    display: flex;
    gap: 10px;
    padding: 2rem 0;
}
.gallery-item {
    width: 20%;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}
h1
 {
    font-size: 1.7rem;
    line-height: 1.5;
	//color: #074b98;
}
h2 {
    font-size: 1.4rem;
    line-height: 1.4;
	color: #074b98;
	margin: 1rem 0 0;
}
h3 {
    padding: 1rem 0;
    font-size: 1.4rem;
    color: #222;
}
.screen-bg h2{
	color:#fff
}
.hero-header p
 {
    margin: 1rem 0;
    font-size: 1.2rem;
}
.hero-text
 {
    padding: 2rem 0;
    text-align: center;
}
.hero-text i,
.screen2-img i
 {
    display: block;
    color: #4e4e4e;
    font-style: normal;
    font-size: .9rem;
    padding: 1rem 0;
}
.screen{
	padding: 4rem 0;
	display:flex;
	flex-direction:column;
	justify-content: center;
}
.screen2-main
 {
    display: flex;
	position:relative;
}

.screen2-text {
    width: 65%;
    padding: 3rem 3rem 0 0;
}
.screen2-img {
    width: 45%;
    text-align: center;
    position: absolute;
    right: 0;
}
.screen2-img img
 {
    height: auto;
    width: 100%;
    object-fit: cover;
	border-radius:45%;
}
.screen2-text p {
    color: #333;
    font-size: 1.3rem;
    padding-top: 1rem;
}
.screen2-text ul {
    padding: 1rem 0;
}
.screen2-text ul li {
    list-style: none;
    color: #444;
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.8;
}
.screen2-text ul li i {color: #3dcd70;}
.btn-box
 {
     margin-top: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.btn-box i
 {
    font-style: normal;
    display: block;
    padding-top: 1rem;
    font-size: .9rem;
    color: #797979;
    text-align: center;
}
.aligncenter{text-align:center}
.str{
	color:#444;
	font-size:1.3rem;
	margin:1rem 0 0
}
.banner
 {
    background: linear-gradient(352deg, #00519b, #0d99e7);
    border-radius: 20px;
	position:relative;
}
.banner::before{
	position:absolute;
	content:"";
	bottom:0;
	left:3rem;
	width:25%;
	height:98%;
	background: url(../img/bn-min.webp) no-repeat;
	background-size:contain;
}
.banner-out {
    padding: 3rem;
    width: 75%;
	margin-left:25%;
}
.banner-text__title
 {
    font-size: 1.7rem;
    color: #fff;
    font-weight: 500;
}
.banner-text__content ul
 {
    display: grid;
    grid-template-columns: 50% 50%;
    width: 100%;
    gap: 10px;
    padding: 2rem 0;
}
.banner-text__content li {
    margin: 0 0 0 20px;
    list-style: square;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.5;
}
.banner-text__content p
 {
    margin-bottom: 1rem;
    color: #9ccae1;
}
.banner-text__end .btn {
    border: 0;
    outline: none;
    box-shadow: none;
}
.hero-img{position:relative}
.hero-img span
 {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
    text-align: center;
    width: 100%;
    background: #ffffffd1;
    padding: 5px 0;
    color: #222;
}
/* SLIDER */
.content-aslider {
    max-width: 1400px;
    margin: auto;
    /* Добавлено для лучшего отображения на мобильных */
    padding: 0 15px;
}

.aslider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Уменьшенный отступ для мобильных */
    padding: 40px 0;
    position: relative;
}

.aslider-container .nav-button {
    width: 45px; /* Уменьшенные кнопки */
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, background-color 0.3s;
    color: #333;
    background: #f5f0e1;
    z-index: 10;
    flex-shrink: 0; /* Чтобы кнопки не сжимались */
	transform: scale(1.1);
}

.aslider-container .nav-button:hover {
    transform: scale(1.1);
}

.aslider-container .nav-button.next, .nav-button.prev {
    background: #9cbfa7;
}

.aslider-container .nav-button.next:hover, .nav-button.prev:hover {
    background: #009688;
}

.aslider-container .nav-button.disabled {
    background: #e0e0e0; /* Более заметный цвет для неактивной кнопки */
    cursor: not-allowed;
    opacity: 0.6;
    transform: scale(1);
}

.aslider-wrapper {
    overflow: hidden;
    width: 100%; /* Убрана фиксированная ширина */
}

.aslider-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px; /* Постоянный отступ */
}

.aslides {
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    flex-shrink: 0;
    aspect-ratio: 1 / 1; /* Гарантирует, что слайд всегда будет квадратом (и кругом после border-radius) */
    /* Ширина и высота убраны, будут заданы в JS */
}

.aslides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.aslide-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fffffff5;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 1rem; /* Адаптивный размер шрифта */
    text-align: center;
    text-transform: uppercase;
    color: #2c5a4d;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap; /* Предотвращает перенос текста */
}

/* Медиа-запрос для больших экранов */
@media (min-width: 768px) {
    .aslider-container {
        gap: 30px;
    }
    .aslider-container .nav-button {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    .aslide-label {
       font-size: 1.3rem;
       bottom: 40px;
    }
    .aslider-track {
        gap: 28px;
    }
}

.statline {
    background: #edece8;
	margin: 30px 0 0;
}
.sl-box,.sl-rate {
    display: flex
}
.sl-out {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0
}

.sl-in {
    width: 50%;
    display: flex;
    justify-content: start
}

.sl-in:first-child {
    justify-content: end
}

.sl-box>div {
    margin: 0 1.5rem;
    color: #343434;
    font-size: 3rem;
    font-weight: 700;
    text-align: center
}

.rw-img span,.sl-box span {
    font-weight: 400;
    display: block
}

.sl-box span {
    font-size: 1rem
}

.sl-rate>div {
    margin: 0 .5rem
}
.aslide h3
 {
    font-size: 1.5rem;
    padding: 2rem 0;
    color: #000;
}
.ctr-flex {
    display: grid;
    grid-template-columns: auto auto auto auto;
    gap: 30px;
    text-align: center;
    color: #333;
}
.ctr-flex p:hover{
	transform: translateY(-10px);
}
.ctr-flex p {
    background: #f0f0f0;
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 45px!important;
	transition:all .3s ease;
}
.ctr-flex i
 {
    display: block;
    font-size: 40px;
    color: #27bf37;
}
.gl-flex
 {
    display: flex;
    justify-content: center;
}
.gl-flex p {
    text-align: center;
    padding: 30px;
    width: 33.3333%;
}
.gl-flex i {
    display: block;
    font-size: 40px;
    color: #fff;
}
span.after-btn {
    display: block;
    font-size: 18px;
    color: #fff;
	padding:15px 0 0;
	font-weight:500;
	font-style:italic
}
p.afl {
    display: flex;
    align-items: center;
    background: #00000036;
    clip-path: polygon(80% 0, 100% 50%, 80% 100%, 0% 100%, 0 54%, 0% 0%);
}
p.afl span{
	text-transform:uppercase;
	font-size: 1.5rem;
    color: #cbcbcb;
}
.hero-img cite
 {
    display: block;
    background: #fff;
    width: 90%;
    margin: 5px auto;
    border-radius: 5px;
    box-shadow: 0 2px 3px #0000001a;
    color: #999;
}
   .video-gallery-local {
      padding: 3rem 0;
      background-color: #fafafa;
    }

    .video-gallery-local h2 {
      color: #0a4e1e;
      text-align: center;
      font-size: 2rem;
    }

    .video-grid-local {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
      padding: 0 1rem;
    }

    .video-card {
      background: white;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
      position: relative;
      cursor: pointer;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .video-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    }

    .video-wrapper {
      position: relative;
      width: 100%;
      padding-top: 56.25%; /* 16:9 */
      overflow: hidden;
      background-color: #000;
    }

    .video-wrapper video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .play-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: rgba(0, 0, 0, 0.3);
      opacity: 1;
      transition: opacity 0.3s ease;
      pointer-events: none;
      z-index: 10;
    }

    .play-overlay.hidden {
      opacity: 0;
    }

    .play-icon {
      font-size: 60px;
      color: rgba(255, 255, 255, 0.9);
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
      transition: transform 0.3s ease;
    }

    .video-card:hover .play-icon {
      transform: scale(1.1);
    }

    @media (max-width: 768px) {
      .video-grid-local {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
      }

      .video-gallery-local h2 {
        font-size: 1.5rem;
      }

      .play-icon {
        font-size: 50px;
      }
    }

    @media (max-width: 480px) {
      .video-grid-local {
        grid-template-columns: 1fr;
      }

      .play-icon {
        font-size: 45px;
      }
    }

@media (max-width: 1580px) {
	section.hero {
    min-height: 100vh;
    height: 100%;
	position:relative;
}
.hero-content
 {
    min-height: auto;
    height: auto;
 }
 .hero-menu
 {
    padding-bottom: 0;
 }
 
}
/* Оверлей (темный фон) */
        .popup-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
        }

        /* Сам попап */
        .popup {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            width: 90%;
            max-width: 400px;
        }

        /* Заголовок */
        .popup h2 {
            margin-top: 0;
            margin-bottom: 20px;
            font-size: 24px;
            color: #333;
        }

        /* Поля формы */
        .form-group {
            margin-bottom: 15px;
        }

        .form-group label {
            display: block;
            margin-bottom: 5px;
            color: #555;
            font-size: 14px;
        }

        .form-group input {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 16px;
            box-sizing: border-box;
        }

        .form-group input:focus {
            outline: none;
            border-color: #007bff;
        }

        /* Кнопки */
        .popup-buttons {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }

        .popup-buttons button {
            flex: 1;
            cursor: pointer;
        }

        .submit-btn {
            background: #28a745;
            color: white;
        }

        .submit-btn:hover {
            background: #218838;
        }

        .close-btn {
            background: #dc3545;
            color: white;
        }

        .close-btn:hover {
            background: #c82333;
        }

        /* Крестик закрытия */
        .popup-close {
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 30px;
            cursor: pointer;
            color: #999;
            line-height: 1;
        }

        .popup-close:hover {
            color: #333;
        }
.popup-policy-link {
            margin: 15px 0;
            font-size: 13px;
            color: #666;
            text-align: center;
        }

        .popup-policy-link a {
            color: #007bff;
            text-decoration: none;
            cursor: pointer;
        }

        .popup-policy-link a:hover {
            text-decoration: underline;
        }		
#policyBlock {
            display: none;
			margin: auto;
            margin-top: 50px;
            padding: 30px;
            background: #fff;
            border-radius: 8px;
            max-width: 800px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        #policyBlock h3 {
            color: #333;
            margin-top: 0;
            margin-bottom: 20px;
        }

        #policyBlock p {
            line-height: 1.7;
            color: #555;
            margin-bottom: 15px;
        }

        #policyBlock strong {
            color: #222;
        }		

.aslide {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.aslide p {
    margin-bottom: 1rem;
}
.slider-container {
  width: 100%;
  max-width: 1200px;
  position: relative;
  overflow: hidden;
}

.slider {
  display: flex;
  gap: 20px; /* ➕ ОТСТУПЫ МЕЖДУ СЛАЙДАМИ */
  transition: transform 0.5s ease;
  will-change: transform;
}

.slide {
  /* ➕ УМЕНЬШАЕМ ШИРИНУ, ЧТОБЫ УЧЕСТЬ ОТСТУПЫ */
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: calc((100% - 40px) / 3);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center;
  background-size: cover;
  position: relative;
  border-radius:15px;
}

/* Выделение центрального слайда */
.slide.center {
  z-index: 10;
}

.slide h2 {
  color: white;
  font-size: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  cursor: pointer;
  font-size: 2rem;
  color: #333;
  padding: 10px 15px;
  border-radius: 5px;
  transition: all 0.3s;
  z-index: 20;
}

.prev:hover, .next:hover {
  background: white;
}

.prev { left: 20px; }
.next { right: 20px; }

.pagination {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 20;
}

.pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.pagination-dot.active {
  background-color: white;
  transform: scale(1.2);
}

/* Адаптивность */
@media (max-width: 768px) {
  .slide {
    flex: 0 0 100%;
    min-width: 100%;
  }
  .slider {
    gap: 0; /* Убираем отступы на мобильном */
  }
  .slide.center {
    transform: none;
  }
  .prev, .next {
    font-size: 1.5rem;
    padding: 8px 12px;
  }
}
footer {
    padding: 2rem 0;
    border-top: 5px solid #074b98;
    background: #f5f5f5;
}
.page-footer
 {
    display: flex;
    align-items: center;
}
.footer-logo
 {
    width: 18%;
}
.footer-logo img
 {
    width: 82%;
}
.footer-main {
    width: 85%;
    display: flex;
}
.footer-col {
    color: #111;
    width: 50%;
    padding: 0 2rem 0 0;
}
.footer-col span {
    display: block;
    font-weight: 300;
    font-size: .9rem;
    padding: 2px 0;
}
.footer-col a
 {
    color: #0070bf;
}
.footer-col a:hover{color:red}
.popup-fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.popup-fullscreen {
    display: none;
    position: fixed;
    top: 25px;
    left: 25px;
    right: 25px;
    bottom: 25px;
    background: #ffffff;
    border-radius: 12px;
    z-index: 2001;
    overflow: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.popup-fullscreen-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 40px;
    cursor: pointer;
    color: #074b98;
    line-height: 1;
    z-index: 2002;
    transition: all 0.3s ease;
    font-weight: 300;
}

.popup-fullscreen-close:hover {
    color: #f69300;
    transform: rotate(90deg);
}

.popup-fullscreen-content {
    width: 100%;
    height: 100%;
    padding: 20px;
    border-radius: 10px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
.place {
    position: absolute;
    right: -1rem;
    top: -1rem;
    z-index: 2;
}
/* Мобильная адаптация */
@media (max-width: 768px) {
    .popup-fullscreen {
        top: 20px;
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
    
    .popup-fullscreen-close {
        top: 10px;
        right: 20px;
        font-size: 32px;
    }
	.place {
    position: absolute;
    left: 1rem;
    bottom: auto;
    z-index: 2;
	top:7rem;
	right:auto;
}	
}

/* Предотвращение прокрутки страницы под попапом */
body.popup-open {
    overflow: hidden;
}
@media (max-width: 1023px) {
	.top
 {
    width: 100%;
    flex-direction: column;
	padding:1rem;
}
header
 {
    box-shadow: 0 0 5px #0000000d;
    position: relative;
 }
 .top-coll a
 {
    font-size: 1.2rem;
 }
.top-nav {
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: end;
}
.top-coll:first-child,
.top-coll:last-child
 {
    display: none;
}

.hero-content
 {
	background:url(../img/one-min.webp) no-repeat;
	//background-size:contain;
	margin-top: 30px;
	
background-attachment: fixed
}
   .hero-content h2 {
        font-size: 20px;
        line-height: 1.4;
    }
.video-gallery-local {
    padding: 3rem 0 0;
}
button.btn {
    font-size: 1.1rem;
    padding: .7rem 1rem;
    width: 100%;
}
.sl-out
 {
    display: block;
 }
 .sl-in
 {
    display: block;
    width: 100%;
 }
 .sl-box>div {
    margin: 0 1rem;
 }
 .sl-rate {
    display: flex;
    align-items: center;
    justify-content: center;	 
 padding: 10px 0;
}
.sl-rate div:last-child
 {
    display: none;
}
.gl-flex
 {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
}
.gl-flex p {
    width: 46%;
}
.aslides {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    flex-shrink: 0;
    margin: 0 25px;
}
.ctr-flex {
    display: flex;
    grid-template-columns: auto auto auto auto;
    gap: 0;
    flex-wrap: wrap;
    text-align: center;
    color: #333;
}
.ctr-flex p {
    width: 100%;
    background: #f0f0f0;
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 5px !important;
    transition: all .3s ease;
}
.place {
        position: absolute;
        left: 1rem;
        bottom: 0;
        z-index: 2;
        top: auto;
        right: auto;
    }
.logo {
    justify-content: center;
}
.hero-img {
    height: 350px;
}
.hero-img cite {display:none; }
.top-coll:nth-child(2) {
    top: 1.2rem;
	justify-content: center;
	display:flex;
	        width: 100%;
        padding: 0;
}
.top-coll i
 {
    font-size: 1rem;
    width: 30px;
    height: 30px;
    line-height: 30px;
 }

.top-coll button{
	width:100%;
	text-align:center;
}
.container
 {
    width: 90%;
 }
 
section.hero,
.hero-content
 {
    height: 100%;
	position: relative;
 }
 .hero-cols
 {
    display: block;
    margin-top: 20px;
 }
 .hero-col_left {
    width: 100%;
    padding-right: 0;
}
h1 {
    font-size: 25px;
    line-height: 1.5;
}
h2 {
    font-size: 22px;
    line-height: 1.4;
}
h3 {
    font-size: 19px;
}
.hero-header p {
    margin: 1rem 0;
    font-size: 1rem;
}
.hero-text {
    padding: 0;
}
.hero-col_right {
    width: 100%;
    padding-left: 0;
}
.hero-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.hero-icon {
    text-align: center;
    width: 46%;
    background: #ffffff30;
    border-radius: 10px;
    margin: 2%;
}
.screen2-main {
    flex-direction: column;
    display: flex;
    position: relative;
}
.screen2-text {
    width: 100%;
    padding: 0;
}
.screen2-text p {
    color: #333;
    font-size: 16px;
}
.screen2-text ul li {
    font-size: 16px;
}
.screen2-img {
    width: 100%;
    text-align: center;
    position: relative;
}
.screen {
    padding: 2rem 0 0;
}
.banner {
    background: url(../img/banner.jpg) no-repeat left top;
	background-size: cover;
}
.banner-out {
    padding: 2rem;
    width: 100%;
	margin:0;
}
.banner-text__title {
    font-size: 25px;
}
.banner-text__content ul {
    display: block;
}
.banner-text__content li {
    margin: 25px 0 25px 20px;
}
footer {
    margin-top: 0;
}
.page-footer {
    display: block;
}
.footer-logo {
    display: none;
}
.footer-main {
    width: 100%;
    display: block;
}
.footer-col {
    color: #111;
    width: 100%;
    padding: 0 0 25px;
}
.popup-fullscreen-content header,.popup-fullscreen-content .hero-after{display:none}
.banner::before{display:none;}
  .gallery {
    display: block;
    flex-wrap: wrap;
    overflow-x: auto;
    padding: 10px 0;
    gap: 10px;
	align-items:center;
	justify-content:center;
  }

  .gallery-item {
    max-width: 100%;
  width: 100%;
}
.gallery-item:last-child{display:none}

  /* Скрываем стандартный скроллбар (опционально) */
  .gallery::-webkit-scrollbar {
    display: none;
  }
}
.rest-formats {
  padding: 72px 20px;
  background: #f5f2ec;
  text-align: center;
  font-family: inherit;
}

.rest-formats__inner {
  max-width: 1140px;
  margin: 0 auto;
}

.rest-formats__title {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 700;
  color: #1a2a1a;
  margin: 0 0 44px;
  line-height: 1.25;
}

/* Сетка карточек */
.rest-formats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Карточка */
.rf-card {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 22px rgba(0,0,0,0.08);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
  display: flex;
  flex-direction: column;
}

.rf-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.13);
}

/* Фото */
.rf-card__img-wrap {
  position: relative;
  height: 220px;
  flex-shrink: 0;
}

.rf-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.rf-card:hover .rf-card__img {
  transform: scale(1.04);
}

/* Иконка поверх фото */
.rf-card__icon i {
  color: #7aaa5c;
  font-size: 20px;
}

.rf-card__icon {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.14);
  z-index: 2;
}

/* Тело карточки */
.rf-card__body {
  padding: 34px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.rf-card__heading {
  font-size: 25px;
  font-weight: 700;
  color: #1a2a1a;
  margin: 0 0 10px;
  line-height: 1.3;
}

.rf-card__text {
  font-size: 18px;
  color: #5a6a5a;
  line-height: 1.6;
  margin: 0;
}

/* Кнопка */
.rest-formats__btn-wrap {
  margin-top: 44px;
}

.rest-formats__btn {
  display: inline-block;
  background: #7aaa5c;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(122,170,92,0.35);
  transition: background 0.22s ease, transform 0.18s ease;
}

.rest-formats__btn:hover {
  background: #5f8f45;
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   АДАПТИВ: мобильные
   ============================================================ */
@media (max-width: 860px) {
  .rest-formats__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .rf-card__img-wrap {
    height: 200px;
  }
}
/* ——— Сброс box-sizing внутри блока ——— */
.av-journey-section *,
.av-journey-section *::before,
.av-journey-section *::after {
  box-sizing: border-box !important;
}

/* ——— Секция — фон и отступы ——— */
.av-journey-section {
  padding: 5rem 0 !important;
  background: #fbf9f4 !important;
  font-family: Oswald, sans-serif !important;
  width: 100% !important;
}

/* ——— Контейнер — 1640px ——— */
.av-journey-section .av-jc {
  max-width: 1640px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  width: 100% !important;
}

/* ——— Заголовок ——— */
.av-journey-section .av-jh {
  text-align: center !important;
  margin-bottom: 3rem !important;
  padding: 0 !important;
}
.av-journey-section .av-jh h2 {
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  color: #2e604f !important;
  text-transform: uppercase !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  line-height: 1.25 !important;
}
.av-journey-section .av-jh p {
  font-size: 1.1rem !important;
  color: #595e59 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
}

/* ——— Лента карточек — flex горизонтально ——— */
.av-journey-section .av-js {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: 100% !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ——— Карточка ——— */
.av-journey-section .av-jcard {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  background: rgba(255,255,255,.98) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 5px 20px rgba(0,0,0,.3) !important;
  transition: transform .3s, box-shadow .3s !important;
  position: relative !important;
}
.av-journey-section .av-jcard:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 15px 20px rgba(0,0,0,.4) !important;
}

/* ——— Фото-зона ——— */
.av-journey-section .av-jphoto {
  position: relative !important;
  width: 100% !important;
  height: 200px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  background-size: cover;
}
.av-journey-section .av-jphoto img {
  position: absolute !important;
  top: 0 !important; left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform .5s !important;
}
.av-journey-section .av-jcard:hover .av-jphoto img {
  transform: scale(1.06) !important;
}

/* ——— Временна́я планка — зелёный ——— */
.av-journey-section .av-jtag {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: linear-gradient(90deg, #1a5f4a, #2e604f) !important;
  color: #fff !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 5px 10px 6px !important;
  line-height: 1.2 !important;
  display: block !important;
  z-index: 2 !important;
}

/* ——— Бонусная планка — оранжевая ——— */
.av-journey-section .av-jbonus {
  position: absolute !important;
  top: 9px !important;
  right: 9px !important;
  background: linear-gradient(90deg, rgb(255 68 68) 0, rgb(255 118 0) 70%) !important;
  color: #fff !important;
  font-size: 0.66rem !important;
  font-weight: 700 !important;
  padding: 4px 9px !important;
  border-radius: 5px !important;
  z-index: 3 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.2) !important;
  display: block !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

/* ——— Тело карточки ——— */
.av-journey-section .av-jbody {
  padding: 16px 14px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}
.av-journey-section .av-jico {
  font-size: 1.5rem !important;
  line-height: 1 !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  display: block !important;
}
.av-journey-section .av-jtitle {
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  color: #1a5f4a !important;
  margin: 0 0 7px 7px !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}
.av-journey-section .av-jdesc {
  font-size: 1.1rem !important;
  color: #595e59 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.55 !important;
  flex: 1 !important;
  font-weight: 300 !important;
  text-transform: none !important;
}

/* ——— Стрелка-разделитель (desktop) ——— */
.av-journey-section .av-jarrow {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  width: 30px !important;
  padding: 0 !important;
  margin: 0 !important;
  padding-top: 160px !important;
}
.av-journey-section .av-jarrow svg {
  width: 26px !important;
  height: 13px !important;
  display: block !important;
  overflow: visible !important;
  flex-shrink: 0 !important;
}

/* ——— CTA под лентой ——— */
.av-journey-section .av-jcta {
  text-align: center !important;
  margin-top: 3rem !important;
  padding: 0 !important;
}
.av-journey-section .av-jpromo {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: #2e604f !important;
  margin: 0 0 1.5rem !important;
  padding: 13px 28px !important;
  display: inline-block !important;
  background: #fff !important;
  border: 4px solid #fff !important;
  outline: 2px dashed #2e604f !important;
  border-radius: 8px !important;
  line-height: 1.4 !important;
  box-shadow: 0 3px 30px rgba(0,0,0,.08) !important;
}
.av-journey-section .av-jbtn {
  display: inline-block !important;
  background: linear-gradient(90deg, rgb(255 68 68) 0, rgb(255 118 0) 70%) !important;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  padding: .6rem 2rem !important;
  border-radius: 5px !important;
  transition: .3s !important;
  cursor: pointer !important;
  border: none !important;
  letter-spacing: 0.03em !important;
}
.av-journey-section .av-jbtn:hover {
  background: #003c5a !important;
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-2px) !important;
}

/* ——— Адаптив PC ——— */
@media (max-width: 1700px) {
  .av-journey-section .av-jc { max-width: 1400px !important; }
}
@media screen and (max-width: 1440px) {
  .av-journey-section .av-jc { max-width: 1300px !important; }
}
@media screen and (max-width: 1280px) {
  .av-journey-section .av-jc { max-width: 1100px !important; }
  .av-journey-section .av-jh h2 { font-size: 1.4rem !important; }
  .av-journey-section .av-jphoto { height: 130px !important; }
  .av-journey-section .av-jarrow { padding-top: 65px !important; width: 24px !important; }
}

/* ——— МОБИЛЬНЫЙ ≤991px ——— */
@media (max-width: 991px) {
  .av-journey-section {
    padding: 2.5rem 0 !important;
  }
  .av-journey-section .av-jh h2 {
    font-size: 1.2rem !important;
  }
  .av-journey-section .av-jh p {
    font-size: 0.95rem !important;
  }
  .av-journey-section .av-jh {
    margin-bottom: 1.5rem !important;
  }

  /* Сетка 2 колонки вместо flex-ряда */
  .av-journey-section .av-js {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    flex-direction: unset !important;
    align-items: unset !important;
  }

  /* Стрелки убрать */
  .av-journey-section .av-jarrow {
    display: none !important;
  }

  /*
   * SWAP карточек 3 и 4:
   * Карточки — 1-й, 3-й, 5-й, 7-й, 9-й дочерние элементы .av-js
   * (между ними стрелки .av-jarrow на 2, 4, 6, 8 позициях,
   *  но они display:none, поэтому в grid не участвуют).
   * Визуальный порядок: 1 → 2 → (swap) 4 → 3 → 5
   * Это создаёт «змейку»: правый столбец → левый в строке 2.
   */
  .av-journey-section .av-js .av-jcard:nth-child(1) { order: 1 !important; }
  .av-journey-section .av-js .av-jcard:nth-child(3) { order: 2 !important; }
  .av-journey-section .av-js .av-jcard:nth-child(7) { order: 3 !important; } /* карточка 4 встаёт на место 3 */
  .av-journey-section .av-js .av-jcard:nth-child(5) { order: 4 !important; } /* карточка 3 встаёт на место 4 */
  .av-journey-section .av-js .av-jcard:nth-child(9) { order: 5 !important; }

  /*
   * ЛИНИИ-КОННЕКТОРЫ через ::after
   * Карточки имеют overflow:hidden → псевдоэлемент обрежется.
   * Решение: на мобиле overflow:visible, а скругление фото
   * обеспечивает сам .av-jphoto (он сохраняет overflow:hidden).
   */
  .av-journey-section .av-jcard {
    box-shadow: 0 3px 10px rgba(0,0,0,.18) !important;
    border-radius: 8px !important;
    overflow: visible !important;  /* нужно для ::after-линий */
  }

  /* Скругляем верх фото отдельно, чтобы картинка не вылезала */
  .av-journey-section .av-jphoto {
    height: 110px !important;
    border-radius: 8px 8px 0 0 !important;
  }

  /* Белый фон карточки сам себе скруглён через background+border-radius, всё ок */

  /* Базовые свойства для всех ::after-линий */
  .av-journey-section .av-js .av-jcard::after {
    content: '' !important;
    position: absolute !important;
    background: #2e604f !important;
    z-index: 10 !important;
    border-radius: 2px !important;
  }

  /*
   * Схема (визуальный порядок после swap):
   *
   *  [Карт.1 r1c1] ──── [Карт.2 r1c2]
   *                              │
   *  [Карт.4 r2c1] ──── [Карт.3 r2c2]
   *       │
   *  [Карт.5 r3c1]
   *
   * Линии: 1→2 горизонталь, 2→3 вертикаль вниз (правый столбец),
   *        3→4 горизонталь влево, 4→5 вертикаль вниз (левый столбец)
   */

  /* Карточка 1 → 2: горизонталь вправо (в зазор 12px) */
  .av-journey-section .av-js .av-jcard:nth-child(1)::after {
    top: 50% !important;
    right: -12px !important;
    width: 12px !important;
    height: 3px !important;
    transform: translateY(-50%) !important;
  }

  /* Карточка 2 → 3 (r2c2): вертикаль вниз (правый столбец) */
  .av-journey-section .av-js .av-jcard:nth-child(3)::after {
    bottom: -12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 3px !important;
    height: 12px !important;
  }

  /* Карточка 3 (nth-child 5, визуально r2c2) → 4 (r2c1): горизонталь влево */
  .av-journey-section .av-js .av-jcard:nth-child(5)::after {
    top: 50% !important;
    left: -12px !important;
    width: 12px !important;
    height: 3px !important;
    transform: translateY(-50%) !important;
  }

  /* Карточка 4 (nth-child 7, визуально r2c1) → 5: вертикаль вниз (левый столбец) */
  .av-journey-section .av-js .av-jcard:nth-child(7)::after {
    bottom: -12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 3px !important;
    height: 12px !important;
  }

  /* Карточка 5 — последняя, линия не нужна */
  .av-journey-section .av-js .av-jcard:nth-child(9)::after {
    display: none !important;
  }

  /* Компактное тело карточки */
  .av-journey-section .av-jbody {
    padding: 8px 10px 10px !important;
  }
  .av-journey-section .av-jico {
    display: none !important;
  }
  .av-journey-section .av-jdesc {
    display: none !important;
  }
  .av-journey-section .av-jtitle {
    font-size: 0.72rem !important;
    margin: 0 !important;
  }
  .av-journey-section .av-jtag {
    font-size: 0.65rem !important;
    letter-spacing: 0.06em !important;
    padding: 4px 8px 5px !important;
  }
  .av-journey-section .av-jbonus {
    font-size: 0.58rem !important;
    padding: 3px 7px !important;
  }
  .av-journey-section .av-jcard:hover {
    transform: none !important;
  }

  /* CTA */
  .av-journey-section .av-jcta {
    margin-top: 1.5rem !important;
  }
  .av-journey-section .av-jpromo {
    font-size: 0.9rem !important;
    padding: 10px 16px !important;
  }
  .av-journey-section .av-jbtn {
    font-size: 0.85rem !important;
    padding: .55rem 1.4rem !important;
  }
}
.green {
    background: #2e604f url(img/forest2.webp) no-repeat;
    background-size: cover;
}

.eco-houses-section {
    max-width: 1640px;
    margin: 0 auto;
    padding: 50px 0;
}

.section-title {
    text-align: center;
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slider-container {
    position: relative;
    overflow: hidden;
	padding:2rem 0;
}

.houses-slider {
    display: flex;
    gap: 30px;
    overflow: visible;
    scroll-behavior: smooth;
}

.house-card {
    width: calc((100% - 90px) / 4);
    flex-shrink: 0;
    text-align: center;
}

.house-card:hover {
    transform: translateY(-10px);
}

.house-inner {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s;
}


.house-image {
    position: absolute;
    width: 100%;
    height: 80%;
    overflow: hidden;
}

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

.watch-btn {
    position: relative;
    background: rgba(255, 255, 255, 0);
    color: #1a5f5a;
    border: 2px solid #1a5f5a;
    border-radius: 5px;
    display: flex;
    align-items: center;
    padding: 5px;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.watch-btn:hover {
    background: #1a5f5a;
    transform: scale(1.05);
    color: #fff;
}

.watch-btn i {
    font-size: 16px;
}

.house-info {
    padding: 20px;
    background: linear-gradient(0deg, #ebebeb 40% 40%, transparent);
    margin-top: 200px;
    padding-top: 120px;
    padding-bottom: 10px;
    position: relative;
}

.house-features {
    display: flex;
    flex-direction: column;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    font-size: 15px;
}

.feature-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a5f5a;
    font-size: 18px;
}

.house-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    min-height: 65px;
}

.house-price-section > div {
    width: 60%;
}

.house-price-section div.h-first {
    position: relative;
    width: 40%;
}

.price-label {
    color: #70938d;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.house-name {
    color: #1a5f5a;
    font-size: 1.3rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: left;
}

.house-name span {
    display: block;
    font-size: .7rem;
}

.details-btn {
    width: 60%;
    background: transparent;
    color: #e3e5e5;
    border: 2px solid #ffffff;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    margin: 15px auto;
    transition: all 0.3s ease;
}

.details-btn:hover {
    background: #1a5f5a;
    color: white;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #1a5f5a;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-nav:hover {
    background: #ffffff;
}

.slider-nav.prev { left: 0; }
.slider-nav.next { right: 0; }

.slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.booking-banner {
    background: #c2d7cd;
    border-radius: 10px;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.banner-text {
    color: #595959;
    font-size: 16px;
    line-height: 1.6;
    flex: 1;
}

.booking-btn {
    background: #ffffff;
    color: #1a5f5a;
    border: none;
    padding: 18px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.booking-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

@media (max-width: 1200px) {
    .house-card { width: calc((100% - 30px) / 2); }
    .house-image { height: 250px; }
}

@media (max-width: 768px) {
    .section-title { font-size: 1.8rem; }
    .house-card { width: 100%; }
    .slider-container { padding: 0 20px; }
    .booking-banner { flex-direction: column; text-align: center; }
	span.after-btn{padding: 15px 0!important;text-align:center!important;display:block;}
}
.photo-gallery-section {
  padding: 3rem 0;
  background: #f5f2ec;
}

/* ── Сетка ── */
.photo-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: 210px 210px;
  gap: 8px;
  border-radius: 14px;
  overflow: hidden;
}

/* Крупное фото слева — занимает 2 строки */
.pg-item--large {
  grid-row: 1 / 3;
}

/* ── Ячейка ── */
.pg-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #c8d9cf;
}

.pg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.pg-item:hover img {
  transform: scale(1.08);
}

/* ── Оверлей при hover ── */
.pg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 95, 74, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
}

.pg-item:hover .pg-overlay {
  opacity: 1;
}

.pg-overlay i {
  font-size: 2rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.pg-overlay span {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ══════════════════════════════════════════
   ЛАЙТБОКС
   ══════════════════════════════════════════ */

.pg-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  align-items: center;
  justify-content: center;
}

.pg-lightbox.active {
  display: flex;
}

/* Затемнённый фон — через inner */
.pg-lb-inner {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 80px;
  box-sizing: border-box;
}

/* Контент внутри */
.pg-lb-content {
  position: relative;
  text-align: center;
  max-width: 1000px;
  width: 100%;
  z-index: 9999;
}

.pg-lb-content img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 60px rgba(0,0,0,0.6);
  display: block;
  margin: 0 auto;
}

.pg-lb-caption {
  color: #ccc;
  font-size: 1rem;
  padding: 14px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

/* Кнопки лайтбокса */
.pg-lb-close,
.pg-lb-prev,
.pg-lb-next {
  position: fixed;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.25);
  color: #fff;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, transform 0.2s;
  z-index: 10000;
  outline: none;
  padding: 0;
}

.pg-lb-close {
  top: 20px;
  right: 20px;
}
.pg-lb-close:hover {
  background: rgba(255,255,255,0.25);
  transform: rotate(90deg);
}

.pg-lb-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.pg-lb-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.pg-lb-prev:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-50%) scale(1.1);
}
.pg-lb-next:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-50%) scale(1.1);
}

/* ══════════════════════════════════════════
   АДАПТИВ
   ══════════════════════════════════════════ */

/* Планшет: 2 колонки */
@media (max-width: 860px) {
  .photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 150px 150px;
  }
  .pg-item--large {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }
}

/* Мобильный: 1 колонка */
@media (max-width: 540px) {
  .photo-gallery-section {
    padding: 1.5rem 0;
  }
  .photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 120px 120px;
    gap: 4px;
    border-radius: 8px;
  }
  .pg-item--large {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }
  .pg-lb-inner {
    padding: 20px 60px;
  }
  .pg-lb-prev { left: 6px; }
  .pg-lb-next { right: 6px; }
  .pg-lb-close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 1rem; }
  .pg-lb-prev, .pg-lb-next { width: 40px; height: 40px; font-size: 1rem; }
  .pg-overlay span { display: none; }
  .pg-overlay i { font-size: 1.5rem; }
  .hero-content {
    background: url(../img/at21.webp) no-repeat center;
    background-size: cover;
}
}
