@import url('css/normalize.css');
@import url('css/variables.css');
@import url('css/fonts.css');

*,
*::before,
*::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: #e4e4e4;
}

::-webkit-scrollbar-thumb {
    -webkit-box-shadow: unset;
    box-shadow: unset;
    background-color: var(--secondary-color);
    cursor: pointer;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--secondary-color-hover);
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-size: var(--size-md);
    font-family: "Gilroy", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "slnt" 0;
    line-height: 1.4;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: clip;
    min-width: 375px;
}

h1,
h2,
h3,
h5,
h6,
p {
    font-weight: normal;
    line-height: 1.4;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
}

a:hover {
    color: var(--warning-color);
}

input,
textarea,
select {
    width: 100%;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--dark-color);
    font-family: "Gilroy", sans-serif;
    font-weight: 400;
    line-height: 1.4;
}

button {
    border: none;
    cursor: pointer;
    background-color: transparent;
    padding: 0;
    margin: 0;
    font-family: "Gilroy", sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

#cursor {
    display: none !important;
}

#stalker {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, .4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    will-change: transform, width, height, background-color;
    /* Анимируем только визуальные изменения, НЕ координаты */
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Состояние при наведении на кнопки/ссылки */
#stalker.is-hovering {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.05);
    /* Легкая заливка при ховере */
    border-color: var(--primary-color);
}

.animation {
    transform: translateY(40px);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.animation.animate {
    transform: translateY(0);
    opacity: 1;
}

.container {
    width: 100%;
    max-width: 1604px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    margin-bottom: 162px;
}

.d-flex {
    display: flex !important;
}

.d-block {
    display: block !important;
}

.d-none {
    display: none !important;
}

@media (max-width: 1600px) {
    .container {
        max-width: 1340px;
    }

    .section {
        margin-bottom: 125px;
    }
}

@media (max-width: 1200px) {

    *,
    *::before,
    *::after {
        cursor: auto;
    }

    #stalker,
    #cursor {
        display: none;
    }

    .section {
        margin-bottom: 80px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .section {
        margin-bottom: 50px;
    }

    .d-mobile-flex {
        display: flex !important;
    }

    .d-mobile-block {
        display: block !important;
    }

    .d-mobile-none {
        display: none !important;
    }
}

/* Pattern */
.pattern__wrapper {
    position: relative;
}

.pattern-2 {
    position: absolute;
    top: 50%;
    right: 0;
    width: 100vw;
    z-index: -1;
    transform: translateY(-50%) scale(1.15);
}

.pattern-4 {
    position: absolute;
    top: 0;
    right: 0;
    width: 66vw;
    z-index: -1;
    transform: translate(0, -30%);
}

.pattern-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100vw;
    z-index: -1;
}

@media (max-width: 1600px) {
    .pattern-2 {
        transform: translateY(-50%) scale(1);
    }
}

@media (max-width: 1200px) {
    .pattern-2 {
        transform: translateY(-50%) scale(1.5);
    }
}

@media (max-width: 768px) {

    .pattern-2,
    .pattern-4 {
        display: none;
    }

    .pattern-footer {
        width: 400vw;
        max-width: unset;
        transform: translateX(-8%);
    }
}

@media (min-width: 768px) {
    .pattern-footer {
        display: none;
    }
}

/* Button */
.button,
.wpcf7-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 25px 40px;
    background-color: var(--secondary-color);
    color: var(--light-color);
    line-height: 1;
    border: none;
    overflow: hidden;
    /* Важно для заливки */
    z-index: 1;
    transition: color 0.4s ease;
}

.button::before,
.wpcf7-submit::before {
    content: '';
    position: absolute;
    top: 100%;
    /* Спрятан снизу */
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    /* Или var(--secondary-color-hover) */
    z-index: -1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.wpcf7-submit {
    font-size: 16px;
}

.button::after,
.wpcf7-submit::after {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url('images/arrow.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.button:hover,
.wpcf7-submit:hover {
    color: var(--light-color);
}

.button:hover::before,
.wpcf7-submit:hover::before {
    transform: translateY(-100%);
}

.button:hover::after,
.wpcf7-submit:hover::after {
    transform: translateX(8px) scale(1.1);
    /* Мягче сдвиг и легкий скейл */
}

@media (max-width: 576px) {

    .button,
    .wpcf7-submit {
        width: 100%;
    }
}

/* Texts */
/* Text Reveal Masking */
.word-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    /* Пробел между словами */
}

.char-wrap {
    display: inline-block;
    transform: translateY(110%) rotate(3deg);
    /* Слегка под углом снизу */
    opacity: 0;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s ease;
}

/* Когда контейнер получает класс .animate, буквы выезжают */
.animate .char-wrap {
    transform: translateY(0) rotate(0);
    opacity: 1;
}

.heading-1,
.heading-2 {
    font-size: 86px;
    font-family: 'namu';
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}

.heading-3 {
    font-size: 36px;
    font-family: 'namu';
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}

.text>p {
    position: relative;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 300;
}

.text>p::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    display: block;
    width: 28px;
    height: 24px;
    border-bottom: 2px solid var(--primary-color);
    border-left: 2px solid var(--primary-color);
    transform: translate(-14px, 14px);
    transition: var(--transition);
}

.text>p:hover::before {
    transform: translate(-20px, 20px);
    width: 36px;
    height: 30px;
}

@media (max-width: 1600px) {

    .heading-1,
    .heading-2 {
        font-size: 64px;
    }

    .heading-3 {
        font-size: 32px;
    }

    .text>p {
        font-size: 21px;
    }
}

@media (max-width: 1200px) {

    .heading-1,
    .heading-2 {
        font-size: 48px;
    }

    .heading-3 {
        font-size: 28px;
    }

    .text>p {
        font-size: 18px;
    }
}

@media (max-width: 576px) {

    .heading-1,
    .heading-2 {
        font-size: 32px;
    }

    .heading-3 {
        font-size: 24px;
    }

    .text>p {
        font-size: 18px;
    }
}

/* Layout */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md) 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scroll {
    padding: var(--spacing-sm) 0;
    background-color: rgba(0, 0, 0, .4);
    backdrop-filter: blur(3px);
}

body.page-template-page-projects .header {
    background-color: rgba(0, 0, 0, .8);
    /* Darker background for visibility */
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm) 0;
}

/* Специфичные стили шапки для страницы "Проекты" */
@media (max-width: 768px) {

    body[class*="template-"] .header {
        background-color: rgba(0, 0, 0, .4);
        backdrop-filter: blur(3px);
    }
}

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

.header__logo {
    width: 50px;
    display: inline-block;
    line-height: 0;
    transition: var(--transition);
}

.header.scroll .header__logo {
    width: 32px;
    margin-left: 0;
}

.header__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: auto;
    margin-left: 60px;
}

.header__menu-list {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: center;
}

.header__menu-item>a {
    position: relative;
    font-size: var(--size-md);
    font-weight: 300;
    letter-spacing: .3px;
    color: var(--light-color);
    transition: var(--transition);
}

.header__menu-item>a:hover {
    color: var(--primary-color);
}

.header__menu-item>a::before {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.header__menu-item>a:hover::before {
    left: 0;
    right: auto;
    width: 100%;
}

.burger-menu,
.header__menu-close {
    display: none;
}

.header__button {
    display: inline-flex;
    padding-block: 12px;
}

@media (min-width: 768.01px) {
    .header__button {
        opacity: 1 !important;
    }
}

@media (max-width: 768px) {
    .header .header__logo {
        width: 32px;
    }

    .burger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 32px;
        height: 32px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10;
    }

    .burger-menu:focus {
        outline: none;
    }

    .burger-menu span {
        width: 100%;
        height: 4px;
        background: var(--light-color);
        border-radius: 10px;
        transition: var(--transition);
        position: relative;
        transform-origin: 1px;
    }

    .header__menu-close {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 32px;
        height: 32px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10;
        position: absolute;
        top: var(--spacing-md);
        right: var(--spacing-md);
    }

    .header__menu-close:focus {
        outline: none;
    }

    .header__menu-close span:nth-child(1) {
        width: 100%;
        height: 4px;
        background: var(--dark-color);
        border-radius: 10px;
        transition: var(--transition);
        position: absolute;
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .header__menu-close span:nth-child(2) {
        width: 100%;
        height: 4px;
        background: var(--dark-color);
        border-radius: 10px;
        transition: var(--transition);
        position: absolute;
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
    }

    .header__menu {
        display: flex;
        position: fixed;
        top: -100vh;
        left: 0;
        right: 0;
        height: 100vh;
        z-index: 9999;
        background-color: var(--light-color);
        transition: var(--transition);
        margin: 0;
    }

    .header__menu.active {
        top: 0;
        background-image: url('./images/pattern_3.webp');
        background-repeat: no-repeat;
        background-position: bottom left;
        background-size: 300vw;
    }

    .header__menu-list {
        flex-direction: column;
        margin-bottom: 8vh;
    }

    .header__menu-item>a {
        color: var(--dark-color);
        font-size: 24px;
        font-weight: 400;
    }

    .header__inner {
        gap: 20px;
    }

    .header__inner>* {
        flex-shrink: 0;
    }

    .header__button {
        display: inline-flex;
        padding: 8px 12px;
        width: auto;
        opacity: 0;
        flex-shrink: 1;
    }
}

/* Hero Base */
.hero {
    display: flex;
    align-items: center;
    position: relative;
    min-height: 100vh;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 1;
}

.hero>img,
.hero>video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero>img {
    filter: blur(5px);
}

.hero__video-mobile {
    display: none;
}

.hero__wrapper {
    width: 100%;
    position: relative;
    z-index: 5;
    transform: translateY(30%);
}

.hero__heading {
    color: var(--light-color);
    margin-bottom: 80px;
}

.hero__heading.single-project {
    font-size: 36px;
}

.hero__wrapper .container {
    display: flex;
    justify-content: space-between;
}

.hero__social {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 60px;
    padding-top: 30px;
}

.hero__social>a {
    display: block;
    width: 16px;
    height: 16px;
    line-height: 0;
}

.hero__social>a>* {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero__social>a>svg path {
    transition: var(--transition);
}

.hero__social>a:hover>svg path {
    fill: var(--primary-color)
}

.hero--small {
    min-height: unset;
}

.hero--small .hero__wrapper {
    transform: unset;
    margin: 140px 0 80px;
}

/* Hero - Модификации для главной страницы (вынесены из инлайна Главная - V2) */
body.home .hero {
    align-items: flex-end;
    z-index: 2;
}

body.home .hero__wrapper {
    transform: unset;
    margin-bottom: 15vh;
}

body.home .hero__heading {
    margin-bottom: 0;
    font-size: 36px;
}

body.home .hero__text {
    font-size: 36px;
    line-height: 1;
    font-weight: 300;
    margin-top: 20px;
    margin-bottom: 60px;
    color: var(--light-color);
}

body.home .hero__social {
    margin-top: -20vh;
}

@media (max-width: 992px) {
    .hero__heading {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .hero__wrapper {
        transform: translateY(60%);
    }

    .hero__wrapper .container {
        flex-direction: column;
        gap: 40px;
    }

    .hero__social {
        padding-top: 0;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 40px;
    }

    .hero__social>a {
        width: 32px;
        height: 32px;
    }

    .hero__video-desktop {
        display: none;
    }

    .hero__video-mobile {
        display: block;
    }

    /* Специфично для главной на мобильных */
    body.home .hero__heading {
        font-size: 28px;
    }

    body.home .hero__text {
        font-size: 18px;
        margin-top: 15px;
        margin-bottom: 30px;
    }

    body.home .hero__social {
        margin-top: 0;
    }

    body.home .hero__wrapper {
        margin-bottom: 25vh;
    }
}

/* About (New LVIV CONCEPT style) */
.about {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 0;
}

.about__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.about__bg.animation {
    transform: scale(1.1);
    opacity: 0;
}

.about__bg.animate {
    animation: bgFadeZoom 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes bgFadeZoom {
    0% {
        transform: scale(1.1);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.about__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

.about__container {
    position: relative;
    z-index: 3;
    padding-bottom: 8vh;
}

.about__text {
    max-width: 900px;
}

.about__text-block.animation {
    transform: translateY(50px);
    opacity: 0;
}

.about__text-block.animate {
    animation: textSlideUp 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
}

@keyframes textSlideUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.about__accent-word {
    font-family: 'namu', sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
    line-height: 1.1;
}

.about__text-block p {
    font-size: 24px;
    line-height: 1.4;
    color: var(--light-color);
    font-weight: 300;
    margin-bottom: 15px;
}

.about__text-block p::before {
    display: none;
}

@media (max-width: 1200px) {
    .about__accent-word {
        font-size: 48px;
    }

    .about__text-block p {
        font-size: 21px;
    }
}

@media (max-width: 768px) {
    .about__accent-word {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .about__text-block p {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .about__container {
        padding-bottom: 5vh;
    }
}

/* Projects */
.projects {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    height: 100vh;
    width: 100%;
}

.projects__item {
    overflow: hidden;
    width: calc(100% / 3);
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
    /* Ставим дорогой и долгий transition */
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1), height 1.2s cubic-bezier(0.16, 1, 0.3, 1), z-index 0s;
}

.projects__item span {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 36px;
    font-family: 'namu';
    font-weight: 700;
    text-transform: uppercase;
    color: var(--light-color);
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .2);
    transition: background-color 0.8s ease;
}

.projects__item:hover {
    width: 80%;
    z-index: 5;
}

.projects__item:hover span {
    background-color: rgba(0, 0, 0, .4);
}

@media (max-width: 1200px) {

    .projects__item span,
    .hero__heading.single-project {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .projects {
        flex-direction: column;
    }

    .projects__item {
        width: 100%;
    }

    .projects__item:hover {
        width: 110%;
        height: 200%;
    }

    .projects__item span,
    .hero__heading.single-project {
        font-size: 28px;
    }
}

/* Projects Grid */
/* Page Layout */
.page-projects-archive {
    padding-top: 150px;
    /* Space for the fixed header */
    padding-bottom: 100px;
}

/* Top Section */
.projects-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 20px;
}

.projects-top__title {
    margin-bottom: 0;
    color: var(--dark-color);
}

/* Custom Select Dropdown */
.projects-filter {
    position: relative;
    width: 250px;
    font-size: 18px;
    font-weight: 300;
}

.projects-filter__selected {
    padding: 10px 15px;
    border: 1px solid var(--dark-color);
    cursor: pointer;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.projects-filter__selected::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-right: 1px solid var(--dark-color);
    border-bottom: 1px solid var(--dark-color);
    transform: rotate(45deg) translateY(-3px);
    transition: transform 0.3s ease;
}

.projects-filter.open .projects-filter__selected::after {
    transform: rotate(-135deg) translateY(-3px);
}

.projects-filter__dropdown {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    width: 100%;
    background-color: var(--light-color);
    border: 1px solid var(--dark-color);
    border-top: none;
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 100;
}

.projects-filter.open .projects-filter__dropdown {
    max-height: 300px;
    /* Adjust based on items */
}

.projects-filter__dropdown li {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.projects-filter__dropdown li:hover,
.projects-filter__dropdown li.active {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--secondary-color);
}

/* Grid Layout */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Project Card */
.project-card {
    display: block;
    color: var(--dark-color);
}

.project-card:hover {
    color: var(--secondary-color);
}

.project-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #f0f0f0;
}

.project-card__badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--light-color);
    padding: 5px 15px;
    font-size: 14px;
    text-transform: uppercase;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.project-card__img,
.project-card__hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.project-card__img {
    z-index: 2;
    transition: opacity 0.4s ease;
}

.project-card__img img,
.project-card__hover img,
.project-card__hover video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card__img img {
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0) scale(1);
    will-change: transform, opacity;
}

.project-card__hover {
    z-index: 1;
}

/* Hover Effect */
.project-card:hover .project-card__img {
    opacity: 0;
}

.project-card:hover .project-card__img img {
    transform: translateZ(0) scale(1.08);
}

.project-card__title {
    font-size: 24px;
    font-weight: 300;
    transition: var(--transition);
}

/* Responsive */
@media (max-width: 992px) {
    .projects-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .projects-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .projects-filter {
        width: 100%;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card__media {
        aspect-ratio: 4 / 3;
    }
}

/* Values Pinned (Services) */
.values-pinned {
    height: 500vh;
    position: relative;
}

.values-pinned__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.values-pinned__layout {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 6vw;
    width: 100%;
    height: 100%;
    align-items: center;
}

.values-pinned__sidebar {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.values-pinned__nav {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-left: 2px solid rgba(0, 0, 0, 0.1);
    padding-left: 24px;
}

.values-pinned__nav a {
    font-size: 24px;
    color: var(--dark-color);
    opacity: 0.3;
    text-decoration: none;
    transition: all 0.4s ease;
    display: block;
    font-family: 'namu', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
}

.values-pinned__nav a.active {
    opacity: 1;
}

.values-pinned__nav a.active::before {
    content: '';
    position: absolute;
    left: -26px;
    top: -10px;
    bottom: -10px;
    width: 2px;
    background-color: var(--secondary-color);
    transition: all 0.4s ease;
}

.values-pinned__mob-title {
    display: none;
}

.values-pinned__content {
    position: relative;
    height: 75vh;
    width: 100%;
}

.values-pinned__item {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.values-pinned__item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.values-pinned__img {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    margin-bottom: 30px;
    background-attachment: fixed;
    transform: scale(0.95);
    transition: transform 0.8s ease;
    border-radius: 4px;
}

.values-pinned__item.active .values-pinned__img {
    transform: scale(1);
}

.values-pinned__text p {
    font-size: 24px;
    line-height: 1.4;
    font-weight: 300;
    margin-bottom: 30px;
    transform: translateY(20px);
    transition: transform 0.6s ease 0.1s, opacity 0.6s ease 0.1s;
    opacity: 0;
}

.values-pinned__item.active .values-pinned__text p {
    transform: translateY(0);
    opacity: 1;
}

.values-pinned__text .button {
    transform: translateY(20px);
    transition: transform 0.6s ease 0.2s, opacity 0.6s ease 0.2s;
    opacity: 0;
}

.values-pinned__item.active .values-pinned__text .button {
    transform: translateY(0);
    opacity: 1;
}

.values-blob {
    position: absolute;
    top: 50%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    max-width: 800px;
    max-height: 800px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    opacity: 0.15;
    filter: blur(8px);
    z-index: -1;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: blobMorph 15s ease-in-out infinite alternate;
    transform: translate(0, -50%) rotate(0deg);
    transition: transform 0.1s linear;
    will-change: transform, border-radius;
}

@keyframes blobMorph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    34% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    }

    67% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
    }

    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
}

@media (max-width: 992px) {
    .values-pinned {
        height: auto !important;
    }

    .values-pinned__sticky {
        position: relative;
        height: auto;
        padding: 60px 0;
    }

    .values-pinned__layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .values-pinned__sidebar {
        margin-bottom: 40px;
    }

    .values-pinned__nav {
        display: none;
    }

    .values-pinned__mob-title {
        display: block;
        font-family: 'namu', sans-serif;
        font-size: 21px;
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 16px;
        color: var(--dark-color);
    }

    .values-pinned__content {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 60px;
    }

    .values-pinned__img {
        height: 250px;
        background-attachment: scroll;
        margin-bottom: 20px;
    }

    .values-pinned__item {
        position: relative;
        top: auto;
        left: auto;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .values-pinned__text p {
        font-size: 16px;
        transform: none !important;
        opacity: 1 !important;
        margin-bottom: 20px;
    }

    .values-pinned__text .button {
        transform: none !important;
        opacity: 1 !important;
    }

    .values-blob {
        width: 90vw;
        height: 90vw;
        top: 20%;
        right: 5%;
    }
}

/* Statistics */
.statistics {
    position: relative;
    padding: 324px 0 264px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 582px;
}

@keyframes moveBackground {
    0% {
        background-position: left 0% center;
    }

    0.5% {
        background-position: left 0% center;
    }

    49.5% {
        background-position: left 100% center;
    }

    50.5% {
        background-position: left 100% center;
    }

    99.5% {
        background-position: left 0% center;
    }

    100% {
        background-position: left 0% center;
    }
}

.statistics::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-image: url(./images/stat.webp);
    background-position: left 0% center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: grayscale(1);
    z-index: 2;
    animation: moveBackground 80s linear infinite;
}

.statistics::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, .35);
    z-index: 3;
}

.statistics>.container {
    position: relative;
    z-index: 4;
}

.statistics__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 80px;
}

.statistics__item {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.statistics__item-heading {
    color: var(--light-color);
    line-height: 1;
    font-size: 64px;
}

.statistics__text {
    color: var(--light-color);
}

@media (max-width: 1600px) {
    .statistics {
        min-height: 500px;
        padding: 200px 0;
    }

    .statistics__item-heading {
        font-size: 48px;
    }
}

@media (max-width: 1200px) {
    .statistics {
        min-height: 500px;
        padding: 250px 0;
    }

    .statistics__item-heading {
        font-size: 36px;
    }
}

@media (max-width: 992px) {
    .statistics__wrapper {
        gap: 40px;
    }

    .statistics__item-heading {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .statistics {
        min-height: unset;
        padding: 175px 0;
        height: auto;
    }

    .statistics__wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
        position: relative;
    }

    .statistics__item {
        gap: 8px;
        align-items: center;
        position: absolute;
        top: 50%;
        left: 50%;
        text-align: center;
        width: 100%;
        opacity: 0;
        transform: translate(-50%, -150%);
        transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
    }

    .statistics__item.active {
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    .statistics__item.leaving {
        opacity: 0;
        transform: translate(-50%, 50%);
    }

    .statistics__item-heading {
        font-size: 28px;
        text-transform: uppercase;
    }

    .statistics__text>p {
        font-size: 21px;
    }

    .statistics__text>p::before {
        transform: translateX(-14px) translateY(8px);
    }
}

/* YouTube Section */
.youtube-section .pattern-2 {
    right: unset;
    left: 0;
    transform: translateY(-64%) scaleX(-1);
}

.youtube-section__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4vw;
    align-items: center;
}

.youtube-section__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
    height: 100%;
}

.youtube-section__text p {
    font-size: 18px;
    line-height: 1.4;
}

.youtube-section__text p:not(:last-child) {
    margin-bottom: 15px;
}

.youtube-section__text p::before {
    display: none;
}

.youtube-section__video {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.youtube-section__video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.youtube-section__buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.youtube-section__button {
    align-self: flex-start;
}

.youtube-section__button svg {
    transition: transform 0.3s ease;
}

.youtube-section__button:hover svg {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .youtube-section__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .youtube-section__text p {
        font-size: 16px;
    }

    .youtube-section__video {
        grid-row-start: 2;
        width: 100%;
        height: auto;
        aspect-ratio: 40 / 27;
    }

    .youtube-section__button {
        width: 100%;
    }

    .youtube-section__content {
        gap: 20px;
    }
}

/* Social Bar */
.social-bar {
    background-color: var(--secondary-color);
    padding: 20px 0;
    margin-top: 40px;
    width: 100%;
}

.social-bar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-bar__text {
    color: #fff;
    font-size: 21px;
    line-height: 1.4;
    margin: 0;
}

.social-bar__icons {
    display: flex;
    gap: 20px;
}

.social-bar__icons a {
    display: block;
    width: 32px;
    height: 32px;
}

.social-bar__icons svg {
    width: 100%;
    height: 100%;
}

.social-bar__icons svg path {
    fill: #fff;
    transition: var(--transition);
}

.social-bar__icons a:hover svg path {
    fill: var(--warning-color);
}

@media (max-width: 768px) {
    .social-bar__container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .social-bar__text {
        font-size: 16px;
    }
}

/* Rooms */
.rooms__tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    margin-bottom: 60px;
}

.rooms__tab>span {
    position: relative;
    font-size: 24px;
    font-weight: 300;
    color: var(--dark-color);
    transition: var(--transition);
}

.rooms__tab>span:hover,
.rooms__tab.active>span {
    color: var(--secondary-color);
}

.rooms__tab>span::before {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 0;
    height: 1px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.rooms__tab>span:hover::before,
.rooms__tab.active>span::before {
    left: 0;
    right: auto;
    width: 100%;
}

.rooms__list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.rooms__item {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    position: relative;
}

.rooms__item>article {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: .5rem;
    padding: 1rem;
    text-align: center;
    background-color: #06091880;
    opacity: 0;
    backdrop-filter: blur(4px);
    inset: 0;
    pointer-events: none;
    transition: var(--transition);
    transition-duration: .3s;
    z-index: 10;
}

.rooms__item:hover>article {
    opacity: 1;
}

.rooms__item>article>div {
    overflow: hidden;
}

.rooms__item>article>div>* {
    display: block;
    transform: translateY(100%);
    transition: var(--transition);
    transition-duration: .3s;
    font-size: 24px;
    color: var(--light-color);
    padding: 0 var(--size-md);
}

.rooms__item:hover>article>div>* {
    transform: translateY(0);
}

.rooms__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    position: absolute;
    z-index: 1;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0) scale(1);
    will-change: transform, opacity;
}

.rooms__item:hover img {
    transform: translateZ(0) scale(1.08);
}

@media (max-width: 1600px) {
    .rooms__tab>span {
        font-size: 21px;
    }
}

@media (max-width: 992px) {
    .rooms__list {
        gap: 24px;
    }

    .rooms__tabs {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .rooms__tabs {
        gap: 24px;
        justify-content: flex-start;
    }

    .rooms__tabs::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    .rooms__list {
        grid-template-columns: 1fr 1fr;
    }

    .rooms__tab>span {
        font-size: 14px;
        font-weight: 400;
    }

    .rooms__item>article {
        opacity: 1;
        background-color: unset;
        backdrop-filter: unset;
        align-items: flex-start;
        justify-content: flex-end;
        text-align: left;
    }

    .rooms__item>article>div>* {
        transform: translateY(0);
        padding: 0;
        font-size: 16px;
        text-shadow: 0 0 5px rgba(0, 0, 0, .4);
    }

    .rooms__item:hover img {
        transform: unset;
    }
}

@media (max-width: 576px) {
    .rooms__list {
        grid-template-columns: 1fr;
    }
}

/* Single */
.single__data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.single__tour {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.single__tour-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 160px;
    height: 160px;
    background-color: var(--light-color);
    color: var(--dark-color);
    font-size: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.single__tour:hover .single__tour-button {
    background-color: var(--primary-color);
}

.single__tour img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0) scale(1);
    will-change: transform, opacity;
}

.single__tour:hover img {
    transform: translateZ(0) scale(1.08);
}

.single__info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.single__info-item {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
}

.single__info-item--button {
    display: inline-flex;
    background-color: var(--secondary-color);
    padding: 16px 24px;
    transition: var(--transition);
    color: var(--light-color);
}

.single__info-item--button:hover {
    background-color: var(--secondary-color-hover);
    padding-left: 40px;
}

.single__info-item svg {
    width: 40px;
    height: auto;
    flex: 0 0 auto;
}

.single__info-item div {
    font-size: 32px;
    line-height: 41px;
    font-weight: 300;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.single__info-item div p {
    font-weight: 300;
}

.single__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.single__gallery--duo {
    grid-template-columns: 1fr 1fr;
}

.single__gallery--none .single__gallery-item:first-child {
    position: relative;
    aspect-ratio: unset;
    overflow: unset;
}

.single__gallery--none .single__gallery-item:not(:first-child) {
    display: none;
}

.single__gallery--none .single__gallery-item:first-child img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.single__gallery-item {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.single__gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0) scale(1);
    will-change: transform, opacity;
}

.single__gallery-item:hover img {
    transform: translateZ(0) scale(1.08);
}

.single__heading {
    margin-bottom: 40px;
}

@media (max-width: 1600px) {
    .single__info-item svg {
        width: 30px;
    }

    .single__info-item div {
        font-size: 21px;
        line-height: 29px;
    }
}

@media (max-width: 1200px) {
    .single__info-item div {
        font-size: 18px;
        line-height: 26px;
        transform: translateY(3px);
    }

    .single__tour-button {
        font-size: 21px;
    }
}

@media (max-width: 992px) {
    .single__data {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .single__tour {
        grid-row-start: 2;
        aspect-ratio: 3 / 2;
    }

    .single__gallery {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .single__gallery {
        grid-template-columns: 1fr 1fr;
    }

    .single__heading {
        margin-bottom: 24px;
    }
}

@media (max-width: 576px) {
    .single__gallery {
        grid-template-columns: 1fr;
    }
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 -0.5 21 21' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill='%23000000'%3E...%3C/svg%3E");
    background-size: 32px;
    background-repeat: no-repeat;
    background-position: right 16px top 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none;
}

.popup__inner {
    max-width: calc(100% - 140px);
    max-height: calc(100% - 86px);
    width: 100%;
    height: 100%;
}

.popup__iframe {
    width: 100%;
    height: 100%;
}

.popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--light-color);
    font-size: 24px;
}

.popup img {
    max-width: calc(100% - 140px);
    max-height: calc(100% - 86px);
    object-fit: contain;
}

@media (max-width: 1200px) {
    .popup__close {
        font-size: 21px;
    }
}

@media (max-width: 768px) {
    .popup {
        background-size: 20px;
    }

    .popup__inner,
    .popup img {
        margin: 0 auto;
        max-width: 98%;
    }
}

/* Form */
.popup__form {
    width: 100%;
    max-width: 576px;
    background-color: var(--light-color);
    padding: var(--size-lg);
    margin: 0 var(--size-lg);
    max-height: 90vh;
    overflow-y: auto;
}

.popup__form h2 {
    font-size: 20px;
    text-transform: none;
    line-height: 1.4;
    font-weight: 400;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.popup__form .form-wrapper>p:first-child {
    font-size: 16px;
}

.popup__form .form-wrapper {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.popup__form .form-wrapper input[type="text"],
.popup__form .form-wrapper input[type="tel"] {
    padding: 0 0 4px;
    border: none;
    border-bottom: 1px solid;
    font-size: 16px;
    font-weight: 300;
    color: var(--dark-color);
    outline: none;
    transition: var(--transition);
}

.popup__form .form-wrapper input[type="text"]:focus,
.popup__form .form-wrapper input[type="tel"]:focus {
    border-color: var(--secondary-color);
}

.popup__form .wpcf7-list-item {
    margin: 0;
    width: 100%;
}

.popup__form .wpcf7-list-item label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 8px;
}

.popup__form .wpcf7-list-item label input[type="radio"] {
    display: flex;
    width: 20px;
    height: 20px;
    margin: 0;
}

.popup__form .wpcf7-radio {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
}

.popup__form .wpcf7-spinner {
    display: none;
}

@media (max-width: 768px) {
    .popup__form {
        padding: var(--size-md);
        max-height: calc(100vh - 96px);
    }

    .popup__form .form-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }

    .popup__form .form-wrapper>p:first-child {
        font-size: 18px;
    }

    .wpcf7-submit {
        padding: 15px;
    }

    .popup__form h2 {
        display: none;
    }

    .popup__form .form-wrapper.custom>p:first-child {
        display: none;
    }
}

/* Single Project Hero */
.project-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: var(--dark-color);
}

.project-gallery .container {
    max-width: 100%;
    padding: 0 10px;
    /* Оставляем по 10px по бокам. Если хочешь чтобы фото прилипали прямо к краям экрана - ставь 0 */
}

.project-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.project-hero__bg img,
.project-hero__bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%);
}

.project-hero__container {
    height: 100%;
    position: relative;
    z-index: 2;
}

.project-hero__bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0 var(--spacing-lg) 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.project-hero__meta {
    color: var(--light-color);
}

.project-hero__meta h1 {
    margin-bottom: 10px;
}

.project-hero__details {
    font-size: 24px;
    font-weight: 300;
    display: flex;
    gap: 10px;
    align-items: center;
}

.project-hero__details .separator {
    color: var(--primary-color);
}

/* Project Info Section */
.project-info {
    padding: 100px 0;
    background-color: var(--light-color);
}

.project-info__grid {
    display: grid;
    gap: 60px;
    align-items: start;
}

/* Layout Modifiers */
.project-info--both .project-info__grid {
    grid-template-columns: 1fr 1fr;
}

.project-info--center-text .project-info__grid {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.project-info--center-text .project-info__desc p::before {
    display: none;
    /* Hide accent line when centered */
}

.project-info--center-plans .project-info__grid {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Floor Plans */
.project-plan {
    margin-bottom: 40px;
}

.project-plan img {
    width: 100%;
    border-radius: 4px;
}

.project-plan__title {
    margin-top: 15px;
    font-size: 21px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--dark-color);
}

/* Plans Tabs */
.plans-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 15px;
}

.plans-tabs__btn {
    font-size: 20px;
    font-family: 'namu', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark-color);
    opacity: 0.3;
    /* Неактивные табы полупрозрачные */
    transition: var(--transition);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: -16px;
    /* Накладываем подчеркивание прямо на border родителя */
}

.plans-tabs__btn.active,
.plans-tabs__btn:hover {
    opacity: 1;
}

.plans-tabs__btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.plans-tabs__btn.active::after {
    width: 100%;
}

/* Новая анимация для появления контента табов */
@keyframes tabContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
        /* Плавный выезд снизу */
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plans-tabs__pane {
    display: none;
    /* По умолчанию скрыто */
    will-change: transform, opacity;
}

.plans-tabs__pane.active {
    display: block;
    /* Используем ту же премиальную кривую Безье, что и для всего сайта */
    animation: tabContentFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.plans-tabs__pane img {
    width: 100%;
    border-radius: 4px;
}

/* Smart Gallery */
.project-gallery {
    padding-bottom: 60px;
}

.gallery-row {
    display: flex;
    gap: 10px;
    /* Отступ по горизонтали */
    margin-bottom: 10px;
}

.gallery-item {
    flex: 1;
    height: 100vh;
    /* Full screen height on desktop */
    overflow: hidden;
    position: relative;
    border-radius: 4px;
}

.gallery-row--vert .gallery-item {
    width: 50%;
}

.gallery-row--horiz .gallery-item {
    width: 100%;
}

/* Parallax setup */
.parallax-wrap {
    overflow: hidden;
    position: relative;
}

.parallax-img {
    position: absolute;
    /* Меняем на абсолют */
    top: -10%;
    /* Теперь эти 10% считаются от высоты контейнера */
    left: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    will-change: transform, opacity;
}

/* 1. Уменьшаем заголовок проекта в Hero (адаптивный размер) */
.project-hero__meta .heading-1 {
    font-size: clamp(32px, 4vw, 56px);
    /* На мобилках 32px, на больших экранах до 56px */
    margin-bottom: 15px;
}

/* 2. Выравнивание секции с описанием по центру по вертикали */
.project-info__grid {
    align-items: center;
    /* Было start, теперь центрируем */
}

/* Уменьшаем шрифт описания */
.project-info__desc p {
    font-size: 20px;
    /* Подбери нужный размер (в базе у тебя 32px/24px) */
    line-height: 1.5;
}

/* Опционально: уменьшаем шрифт деталей (метраж, город) */
.project-hero__details {
    font-size: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .project-info--both .project-info__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .project-hero__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        padding: 0 var(--spacing-md) 40px;
    }

    .project-hero__details {
        font-size: 18px;
    }

    .gallery-item {
        height: 50vh;
        /* Half screen on mobile */
    }

    .gallery-row {
        gap: 10px;
        margin-bottom: 10px;
    }

    .plans-tabs__btn {
        font-size: 16px;
    }
}

/* Footer */
.footer {
    padding: var(--spacing-md) 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 100px 40px;
    margin-bottom: 80px;
}

.footer__item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__item span {
    color: #363434;
}

.footer__text {
    position: relative;
    color: var(--dark-color);
    font-size: 24px;
}

a.footer__text::before {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

a.footer__text:hover::before {
    left: 0;
    right: auto;
    width: 100%;
}

.footer__button {
    width: 100%;
}

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

.footer__social>a {
    display: block;
    width: 32px;
    height: 32px;
}

.footer__social>a>svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer__social>a>svg path {
    transition: var(--transition);
}

.footer__social>a:hover>svg path {
    fill: var(--primary-color)
}

.footer__copyright {
    font-family: 'namu';
    font-weight: 900;
    margin-top: 40px;
    opacity: .5;
    text-align: center;
}

@media (max-width: 1600px) {
    .footer__grid {
        grid-template-columns: 3fr 3fr 2fr;
    }
}

@media (max-width: 1200px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer__text {
        font-size: 21px;
    }
}

@media (max-width: 992px) {
    .footer {
        padding: 0 0 var(--spacing-md);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 32px;
    }

    .footer__item {
        gap: 4px;
    }

    .footer__text {
        font-size: 18px;
    }
}