*{
    padding: 0;
    margin: 0;
}
html {
    scroll-behavior: smooth;
}
body{
    max-width: 1920px;
    margin: auto;
    font-family: "Ysabeau Infant", sans-serif;
    overflow-x: hidden;
    background-color:#fff;
}
.big-box{
    max-width: 1610px;
    margin: auto;
    box-sizing: border-box;
}
.box{
    max-width: 1440px;
    margin: auto;
    box-sizing: border-box;
}
.mob-br{
    display: none;
}
@media (max-width: 1650px){
    .big-box{
        padding: 0 24px;
    }
}
@media (max-width: 1480px){
    .box{
        padding: 0 24px;
    }
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    margin: -1px;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    padding: 0;
}
@font-face {
    font-family: "Ysabeau Infant";
    src: url("../font/YsabeauInfant-VariableFont_wght.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: "Ysabeau Infant";
    src: url("../font/YsabeauInfant-Italic-VariableFont_wght.woff2") format("woff2");
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
}
:root{
    --black: #000;
    --dack-green: #22281c;
    --light-green:#647054;
    --beige: #e3d7b6;
    --beige-light: #f4ece0;
}
ul{
    list-style: none;
}
a{
    text-decoration: none;
    color: inherit;
}
h2{
    font-size: 64px;
    text-transform: uppercase;
    text-align: center;
}
.sub-title{
    font-size: 28px;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
}
.sub-title::before,
.sub-title::after{
    content:"•";
    font-size: 22px;
}

/* ===== Header ===== */
header{
    background-color: var(--dack-green);
    position: sticky;
    top: 0;
    left: 0;
    z-index: 20;
}
header nav{
    min-height: 92px;
}
.burger{
    display: none;
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    z-index: 40;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background-color: transparent;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.burger span{
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--beige);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}
.burger.is-open span:nth-child(1){
    transform: translateY(8px) rotate(45deg);
}
.burger.is-open span:nth-child(2){
    opacity: 0;
}
.burger.is-open span:nth-child(3){
    transform: translateY(-8px) rotate(-45deg);
}
header nav,
header nav ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 27px;
}
header a{
    font-size: 18px;
    color: var(--beige);
}
.header__link{
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}
.header__link::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s ease;
}
.header__link:hover{
    color: #fff;
}
.header__link:hover::after{
    transform: scaleX(1);
    transform-origin: left;
}
.header__op{
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    border: 1px solid var(--beige);
    padding: 8px;
    transition: background-color 0.3s ease;
}
.header__op:hover{
    background-color: #fff;
}
.header__op:hover,
.header__op:hover .header__tel{
    color: #22281c;
}
.header__op:hover .header__tel::before{
    filter: brightness(0);
}
.header__tel{
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.header__tel::before{
    content: "";
    width: 18px;
    height: 21px;
    background-image: url(../../image/header-tel.png);
    background-size: cover;
    transition: filter 0.3s ease;
}
.header__vk{
    display: block;
    position: relative;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    background-image: url(../../image/header-vk.png);
    background-size: cover;
}
.header__vk::after{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background-color: #fff;
    -webkit-mask-image: url(../../image/header-vk.png);
    mask-image: url(../../image/header-vk.png);
    -webkit-mask-size: cover;
    mask-size: cover;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.header__vk:hover::after{
    opacity: 1;
}

/* ===== Page head: title + breadcrumbs ===== */
#page-head{
    padding: 60px 0 0;
}
.breadcrumbs{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--light-green);
}
.breadcrumbs a{
    color: var(--light-green);
    transition: color 0.25s ease;
}
.breadcrumbs a:hover{
    color: var(--dack-green);
    text-decoration: underline;
}
.breadcrumbs__sep{
    color: var(--light-green);
    opacity: 0.6;
}
.breadcrumbs__current{
    color: var(--black);
    font-weight: 600;
}

/* ===== Галерея ЖК ===== */
#gallery{
    padding: 70px 0 0;
    background-color: #fff;
    overflow: hidden;
}
#gallery h2{
    margin-bottom: 50px;
    color: var(--black);
}
.gallery__grid{
    position: relative;
    --gallery-gap: 20px;
    /* высота, число колонок и позиции плиток проставляются в JS
       (assets/js/gallery.js) — это настоящая "мазонри"-раскладка
       (как в Pinterest): каждая плитка занимает самую короткую
       колонку на момент размещения, поэтому пустых мест физически
       не остаётся */
}
@media (max-width: 900px){
    .gallery__grid{
        --gallery-gap: 12px;
    }
}
.gallery__item{
    position: absolute;
    overflow: hidden;
    border-radius: 24px;
    background-color: var(--beige-light);
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), left 0.3s ease, top 0.3s ease, width 0.3s ease, height 0.3s ease;
}
.gallery__item.is-visible{
    opacity: 1;
    transform: scale(1);
}
.gallery__item img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery__item:hover img{
    transform: scale(1.05);
}
@media (max-width: 900px){
    .gallery__item{
        border-radius: 16px;
    }
}
@media (prefers-reduced-motion: reduce){
    .gallery__item{
        transition: none;
    }
    .gallery__item img{
        transition: none;
    }
}

.gallery__item{
    cursor: zoom-in;
}

/* ===== Лайтбокс галереи ===== */
.gallery-lightbox{
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(10, 11, 8, 0.98);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.gallery-lightbox.is-open{
    display: flex;
    opacity: 1;
}
.gallery-lightbox__stage{
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 120px;
    box-sizing: border-box;
}
.gallery-lightbox__img{
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.gallery-lightbox__img.is-loaded{
    opacity: 1;
    transform: scale(1);
}
.gallery-lightbox__close,
.gallery-lightbox__arrow{
    position: absolute;
    border: none;
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease;
    z-index: 2;
}
.gallery-lightbox__close:hover,
.gallery-lightbox__arrow:hover{
    background-color: rgba(255, 255, 255, 0.24);
}
.gallery-lightbox__close{
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
}
.gallery-lightbox__arrow{
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
}
.gallery-lightbox__arrow--prev{
    left: 24px;
}
.gallery-lightbox__arrow--next{
    right: 24px;
}
.gallery-lightbox__counter{
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    letter-spacing: 1px;
}
@media (max-width: 720px){
    .gallery-lightbox__stage{
        padding: 90px 16px;
    }
    .gallery-lightbox__arrow{
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
    .gallery-lightbox__arrow--prev{
        left: 6px;
    }
    .gallery-lightbox__arrow--next{
        right: 6px;
    }
    .gallery-lightbox__close{
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .gallery-lightbox__counter{
        bottom: 12px;
        font-size: 13px;
    }
}
@media (prefers-reduced-motion: reduce){
    .gallery-lightbox,
    .gallery-lightbox__img{
        transition: none;
    }
}

/* ===== Консультация (CTA) ===== */
#cta{
    padding: 70px 0;
}
.cta__block{
    background-color: var(--dack-green);
    padding: 85px 65px;
    border-radius: 32px;
    position: relative;
}
.cta__block::before{
    content: "";
    display: block;
    width: 460px;
    height: 460px;
    background-image: url(../../image/cta-phone.png);
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    right: 0;
    bottom: 0;
}
#cta h2,
#cta .sub-title{
    color: #fff;
}
#cta-form{
    margin-top: 70px;
    max-width: 700px;
}
#cta-form p{
    font-size: 28px;
    margin-bottom: 50px;
    color: #fff;
}
#cta-form input{
    min-height: 80px;
    width: 100%;
    background-color: var(--beige-light);
    border-radius: 18px;
    font-size: 22px;
    text-align: center;
}
#cta-form input + input{
    margin-top: 20px;
}
.cta__form-bottom{
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}
.cta__submit{
    min-height: 64px;
    width: auto;
    flex: 0 0 auto;
    padding: 0 40px;
    background-color: var(--light-green);
    border: none;
    border-radius: 18px;
    color: #fff;
    font-size: 20px;
    text-align: center;
    cursor: pointer;
}
.cta__accept{
    display: flex;
    gap: 20px;
    color: #fff;
    align-items: center;
}
#cta-form .cta__accept input{
    width: 20px;
    aspect-ratio: 1/1;
    background-color: var(--beige-light);
}
.cta__link{
    text-decoration: underline 1px dashed;
    text-underline-offset: 4px;
    color: #fff;
}
.cta__form-status{
    margin-top: 20px;
    font-size: 16px;
    color: #fff;
}
.cta__form-status:empty{
    display: none;
}
.cta__form-status--success{
    color: var(--beige);
}
.cta__form-status--error{
    color: #ffb3b3;
}

/* ===== Footer ===== */
footer{
    background-color: var(--dack-green);
    padding: 70px;
    min-height: 500px;
    display: flex;
    align-items: center;
}
.footer-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 240px;
}
.footer__left::after {
    content: "";
    position: absolute;
    top: 0;
    right: -120px;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, .2);
}
.footer__left,
.footer__right{
    padding: 70px 0;
}
footer h2{
    color: var(--beige-light);
    font-size: 54px;
    font-weight: 600;
    line-height: 50px;
}
footer h2 span{
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 10px;
}
footer p {
    color: #fff;
    text-align: center;
}
.footer__description{
    font-size: 26px;
    margin-top: 20px;
    margin-bottom: 100px;
}
.footer__info{
    font-size: 16px;
}
.footer__left {
    position: relative;
}
.footer__right li,
.footer__right a{
    color: #fff;
    font-size: 28px;
}
.footer__right li{
    margin-bottom: 40px;
    margin-left: 40px;
    position: relative;
}
.footer__right li:nth-child(2){
    display: block;
}
.footer__right li::before{
    content: "";
    width: 18px;
    height: 24px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    left: -40px;
    top: 6px;
}
.footer__right li:nth-child(1)::before{
    background-image: url(../../image/footer-tel.png);
}
.footer__right li:nth-child(3)::before{
    background-image: url(../../image/footer-map.png);
}
.beige{
    color: var(--beige);
}
.br{
    display: block;
}

.reveal{
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.reveal.is-visible{
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
    .reveal{
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.cookie-banner{
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 12px);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: max-content;
    background-color:  var(--light-green);
    color: #fff;
    padding: 18px 20px;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
}
.cookie-banner.is-visible{
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.cookie-banner__text a{
    color: var(--beige);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-banner__close{
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background-color: var(--beige);
    color: var(--dack-green);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease, transform 0.25s ease;
}
.cookie-banner__close:hover{
    background-color: #fff;
    color: var(--dack-green);
    transform: rotate(90deg);
}
@media (max-width: 480px){
    .mob-br{
        display: block;
    }
    .cookie-banner{
        align-items: flex-start;
        bottom: 12px;
        gap: 12px;
    }
    .cookie-banner__close{
        align-self: flex-end;
        margin-top: -8px;
    }
}

@media(max-width:1280px){
    .header__op-text{
        display: none;
    }
}

/* ===== Бургер-меню и планшет/мобайл: 900px ===== */
@media (max-width: 900px){
    header nav{
        justify-content: flex-start;
        min-height: 76px;
    }
    .header__logo img{
        width: 220px;
        height: auto;
    }
    .burger{
        display: flex;
    }
    .header__first-list,
    .header__second-list{
        display: none;
    }
    nav.is-open{
        position: fixed;
        inset: 0;
        z-index: 30;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 36px;
        padding: 110px 32px 40px;
        box-sizing: border-box;
        overflow-y: auto;
        background-color: var(--dack-green);
        max-width: none;
    }
    nav.is-open .header__first-list,
    nav.is-open .header__second-list{
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 26px;
    }
    nav.is-open .header__logo{
        order: -1;
    }
    nav.is-open .header__logo img{
        width: 200px;
    }
    nav.is-open .header__op{
        display: inline-flex;
    }
    nav.is-open .header__op-text{
        display: inline;
    }
    h2{
        font-size: 44px;
    }
    .sub-title{
        font-size: 20px;
    }
    .cta__block{
        padding: 40px 28px;
        margin: 0 24px;
    }
    .cta__block::before{
        width: 220px;
        height: 220px;
        opacity: 0.25;
    }
    #cta-form p{
        font-size: 16px;
        text-align: center;
        margin-bottom: 30px;
    }
    .cta__form-bottom{
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    .cta__submit{
        width: 100%;
        font-size: 22px;
    }
    footer{
        padding: 50px 0px;
        min-height: 0;
    }
    .footer-grid{
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }
    .footer__left::after{
        display: none;
    }
    .footer__left,
    .footer__right{
        padding: 30px 0;
    }
    .footer__description{
        margin-bottom: 40px;
    }
    .footer__right{
        align-items: center;
    }
    .footer__right li{
        margin-left: 0;
        padding-left: 40px;
        text-align: left;
    }
}

/* ===== Мобильные: 640px ===== */
@media (max-width: 640px){
    h2{
        font-size: 28px;
    }
    .sub-title{
        font-size: 17px;
        gap: 10px;
    }
    .breadcrumbs{
        font-size: 13px;
    }
    #cta-form input,
    .cta__submit{
        min-height: 62px;
        font-size: 17px;
    }
    .cta__accept{
        font-size: 14px;
    }
    footer h2{
        font-size: 28px;
        line-height: 28px;
        text-align: left;
    }
    footer h2 span{
        font-size: 16px;
        letter-spacing: 2px;
    }
    .footer__description{
        font-size: 19px;
    }
    footer p {
        text-align: left;
    }
    .footer__info{
        font-size: 14px;
    }
    .footer__right li, .footer__right a {
        font-size: 16px;
        margin-bottom: 24px;
    }
    .footer__right li::before{
        left: 0px;
    }
    .burger.is-open{
        top: 40px;
    }
}

@media (max-width: 480px){
    .mob-none{
        display: none;
    }
    .cta__block::before{
        display: none;
    }
    .header__logo img{
        width: 170px;
    }
    .cta__block::before{
        display: none;
    }
}

/* Ноутбуки: уменьшаем */
@media (min-width: 1024px) and (max-width: 1919.98px){
    body{
        zoom: calc(100vw / 1920px);
    }
}
/* Большие мониторы и 4К: увеличиваем */
@media (min-width: 1920.02px){
    body{
        zoom: calc(100vw / 1920px);
    }
}