/*
 * Custom Styles — Lunar Invest Theme
 * --------------------------------------------------
 * Все пользовательские стили пишем здесь.
 * Файл подключается через functions.php.
 */

/*--------------------------------------------------------------
# Global Reset
--------------------------------------------------------------*/
a, button, input, select, textarea, [role="button"] {
    outline: none !important;
}

/*--------------------------------------------------------------
# Header — site-header
--------------------------------------------------------------*/

/* ---------- Design Tokens ---------- */
:root {
    --h-color-blue: rgb(0, 102, 255);
    --h-color-blue-hover: rgb(0, 102, 255);
    --h-color-text: #111827;
    --h-color-muted: #6b7280;
    --h-color-border: #CFD0D2;
    --h-color-white: #ffffff;
    --h-font: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --h-button-radius: 8px;
    --h-topbar-height: 40px;
    --h-main-height: 60px;
    --h-container: 1440px;
    --h-z: 1000;
}

/* ---------- Sticky wrapper ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--h-z);
    font-family: var(--h-font);
    background: var(--h-color-white);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    border-bottom-color: #e6ebf0;
}

/* ---------- Shared container ---------- */
.header-container {
    max-width: var(--h-container);
    margin-inline: auto;
    padding-inline: 3.2rem;
    display: flex;
    align-items: center;
}

/* =============================================
   СТРОКА 1 — Топ-бар
============================================= */
.header-topbar {
    background: var(--h-color-white);
    min-height: var(--h-topbar-height);
    position: relative;
}

.header-topbar::after {
    content: '';
    display: block;
    height: 1px;
    background: #ecf0f8;
    width: calc(100% - 40px);
    /* вычитаем padding-inline: 20px * 2 */
    max-width: calc(var(--h-container) - 40px);
    margin-inline: auto;
}

.header-topbar .header-container {
    min-height: var(--h-topbar-height);
    padding-block: 0.5rem;
    justify-content: space-between;
    gap: 16px;
}

/* --- Логотип + слоган --- */
.topbar__left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo img {
    height: 3.125rem;
    /* 50px */
    width: auto;
    display: block;
}

.site-logo--text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--h-color-text);
}

/* --- Правая часть топ-бара --- */
.topbar__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Иконки соцсетей --- */
.topbar__socials {
    display: flex;
    align-items: center;
    gap: 4px;
}

.topbar__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--h-color-muted);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.topbar__social-link:visited {
    color: var(--h-color-muted);
}

.topbar__social-link:hover {
    color: var(--h-color-blue);
    background: rgba(26, 123, 245, 0.08);
}

/* =============================================
   КНОПКИ
============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 30px;
    border-radius: var(--h-button-radius);
    font-family: var(--h-font);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

/* Заказать звонок (топ-бар) */
.btn--callback {
    background: var(--h-color-blue);
    color: var(--h-color-white);
    height: 30px;
}

.btn--callback:visited {
    color: var(--h-color-white);
}

.btn--callback:hover {
    background: var(--h-color-blue-hover);
    color: var(--h-color-white);
}

/* Недвижимость */
.btn--realty {
    background: var(--h-color-blue);
    color: var(--h-color-white);
    height: 38px;
    border-radius: var(--h-button-radius);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0 18px;
    flex-shrink: 0;
}

.btn--realty:visited {
    color: var(--h-color-white);
}

.btn--realty:hover {
    background: #f1f5f9;
    color: var(--h-color-blue);
}

.btn--realty .btn__icon {
    flex-shrink: 0;
}

.btn--realty .btn__icon--close {
    display: none;
}

/* --- Враппер и Mega Menu --- */
.realty-dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Увеличиваем зону ховера (мостик) */
.realty-dropdown-wrapper::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 64px;
    z-index: 10;
}

/* Затемнение фона сайта (overlay добавляется к body) */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 900;
    /* Меньше чем у шапки (1000), поэтому шапка останется светлой */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    pointer-events: none;
}

body.realty-menu-open::after {
    opacity: 1;
    visibility: visible;
}

/* Чтобы центрировать меню относительно экрана, убираем position: relative с враппера на десктопе,
   но лучше задать фиксированную позицию самого меню по центру относительно вьюпорта. */

.realty-mega-menu {
    position: fixed;
    top: calc(var(--h-topbar-height) + var(--h-main-height) + 5px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: min(calc(var(--h-container) - 64px), calc(100vw - 40px));
    max-width: calc(100vw - 40px);
    background: transparent;
    border-radius: 28px;
    box-shadow: none;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    pointer-events: none;
    overflow: visible;
}

/* Открытие при наведении на враппер */
.realty-dropdown-wrapper:hover .realty-mega-menu,
.realty-dropdown-wrapper.is-open .realty-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Кнопка в состоянии open */
.realty-dropdown-wrapper.is-open .btn--realty,
.realty-dropdown-wrapper:hover .btn--realty {
    background: #f1f5f9;
    color: var(--h-color-blue);
}

.realty-dropdown-wrapper.is-open .btn--realty .btn__icon--grid,
.realty-dropdown-wrapper:hover .btn--realty .btn__icon--grid {
    display: none;
}

.realty-dropdown-wrapper.is-open .btn--realty .btn__icon--close,
.realty-dropdown-wrapper:hover .btn--realty .btn__icon--close {
    display: block;
}

/* --- КОНТЕЙНЕР (ГРИД) --- */
.realty-mega-menu__container {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.95fr);
    gap: 16px;
    min-height: 560px;
    align-items: stretch;
}

/* --- ЛЕВАЯ КОЛОНКА --- */
.realty-mm-left {
    padding: 28px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: none;
}

/* Горизонтальные табы */
.realty-mm-tabs {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 28px;
    overflow-x: auto;
    padding: 4px;
    background: #f5f7fb;
    border-radius: var(--h-button-radius);
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 100%;
    box-sizing: border-box;
}

.realty-mm-tabs::-webkit-scrollbar {
    display: none;
}

.realty-mm-tab {
    padding: 12px 18px;
    background: transparent;
    border: none;
    border-radius: var(--h-button-radius);
    font-family: var(--h-font);
    font-size: 0.75rem;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.realty-mm-tab:hover {
    color: var(--h-color-text);
    background-color: #fff;
}

.realty-mm-tab.active {
    background: #ffffff;
    color: var(--h-color-text);
    border-radius: var(--h-button-radius);
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

/* Таб Контент */
.realty-mm-tab-content {
    display: none;
    flex-direction: column;
    flex: 1;
}

.realty-mm-tab-content.active {
    display: flex;
}

/* Крупные Категории */
.realty-mm-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #f1f2f4;
}

.realty-mm-cat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
    transition: background 0.2s;
}

.realty-mm-cat-card:hover {
    background: #f9fafb;
}

.realty-mm-cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.realty-mm-cat-card--blue .realty-mm-cat-icon {
    background: #1a7bf5;
}

.realty-mm-cat-card--dark .realty-mm-cat-icon {
    background: #2d3748;
}

.realty-mm-cat-card--black .realty-mm-cat-icon {
    background: #000000;
}

.realty-mm-cat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.realty-mm-cat-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--h-color-text);
}

.realty-mm-cat-count {
    font-size: 0.75rem;
    color: var(--h-color-muted);
}

/* Сетка проектов */
.realty-mm-projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 28px;
    padding-top: 24px;
    border-top: 1px solid #eef2f7;
}

.realty-mm-project-item {
    display: flex;
    gap: 14px;
    text-decoration: none;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(15px);
}

body.realty-menu-open .realty-mm-tab-content.active .realty-mm-project-item {
    animation: megaMenuProjectFadeInUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

body.realty-menu-open .realty-mm-tab-content.active .realty-mm-project-item:nth-child(1) {
    animation-delay: 0.05s;
}

body.realty-menu-open .realty-mm-tab-content.active .realty-mm-project-item:nth-child(2) {
    animation-delay: 0.10s;
}

body.realty-menu-open .realty-mm-tab-content.active .realty-mm-project-item:nth-child(3) {
    animation-delay: 0.15s;
}

body.realty-menu-open .realty-mm-tab-content.active .realty-mm-project-item:nth-child(4) {
    animation-delay: 0.20s;
}

body.realty-menu-open .realty-mm-tab-content.active .realty-mm-project-item:nth-child(5) {
    animation-delay: 0.25s;
}

body.realty-menu-open .realty-mm-tab-content.active .realty-mm-project-item:nth-child(6) {
    animation-delay: 0.30s;
}

body.realty-menu-open .realty-mm-tab-content.active .realty-mm-project-item:nth-child(7) {
    animation-delay: 0.35s;
}

body.realty-menu-open .realty-mm-tab-content.active .realty-mm-project-item:nth-child(8) {
    animation-delay: 0.40s;
}

body.realty-menu-open .realty-mm-tab-content.active .realty-mm-project-item:nth-child(9) {
    animation-delay: 0.45s;
}

body.realty-menu-open .realty-mm-tab-content.active .realty-mm-project-item:nth-child(10) {
    animation-delay: 0.50s;
}

@keyframes megaMenuProjectFadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

.realty-mm-project-item:hover .realty-mm-pi-title {
    color: var(--h-color-blue);
}

.realty-mm-pi-img {
    width: 75px;
    height: 75px;
    border-radius: 10px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.05);
}

.realty-mm-pi-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.realty-mm-pi-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--h-color-text);
    margin: 0;
    transition: color 0.2s;
}

.realty-mm-pi-metro {
    font-size: 0.75rem;
    color: var(--h-color-muted);
    margin: 0;
}

.realty-mm-pi-metro span {
    color: var(--h-color-muted);
    margin-left: 4px;
}

.realty-mm-pi-bottom {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 4px;
    flex-wrap: nowrap;
}

.realty-mm-pi-badge {
    font-size: 0.65rem;
    font-weight: 500;
    background: #2d3748;
    color: #fff;
    padding: 2px 6px;
    border-radius: 5px;
}

.realty-mm-pi-price {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--h-color-blue);
}

/* --- ПРАВАЯ КОЛОНКА (Слайдер) --- */
.realty-mm-right {
    position: relative;
    background: #1a202c;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: none;
}

.realty-mm-slider {
    width: 100%;
    height: 100%;
}

.realty-mm-slider .swiper-slide {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 36px;
    box-sizing: border-box;
}

.realty-slider-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
}

.realty-slider-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
}

.realty-slider-badge {
    position: absolute;
    top: 28px;
    left: 28px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(17, 24, 39, 0.08);
    color: var(--h-color-text);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.realty-slider-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    /* Изменено с flex-end, чтобы дочерние элементы по умолчанию шли сверху */
    justify-content: space-between;
    width: 100%;
}

.realty-sc-info {
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-self: flex-end;
    /* Текст оставляем внизу */
}

.realty-sc-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
}

.realty-sc-metro {
    font-size: 0.875rem;
    margin: 0;
    opacity: 0.6;
}

.realty-sc-price {
    font-size: 0.875rem;
    margin: 0;
    opacity: 0.6;
}

.realty-sc-btn {
    padding: 10px 20px;
    border-radius: var(--h-button-radius);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    align-self: flex-start;
    /* Кнопку прижимаем к верхнему краю */
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.30);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.realty-sc-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.50);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Навигация слайдера */
.realty-mm-right .swiper-button-prev.realty-mm-prev,
.realty-mm-right .swiper-button-next.realty-mm-next {
    top: 50%;
    margin-top: -20px;
    width: 40px !important;
    min-width: 40px;
    max-width: 40px;
    height: 40px !important;
    min-height: 40px;
    max-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50%;
    color: #fff !important;
    flex-shrink: 0;
}

.realty-mm-right .swiper-button-prev.realty-mm-prev:hover,
.realty-mm-right .swiper-button-next.realty-mm-next:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.realty-mm-right .swiper-button-prev.realty-mm-prev::after,
.realty-mm-right .swiper-button-next.realty-mm-next::after {
    font-size: 14px !important;
    line-height: 1;
    font-weight: 500;
}

.realty-mm-right .swiper-button-prev.realty-mm-prev {
    left: 20px !important;
}

.realty-mm-right .swiper-button-next.realty-mm-next {
    right: 20px !important;
}

/* Пагинация */
.realty-mm-right .swiper-pagination.realty-mm-pagination {
    bottom: 22px !important;
    left: auto !important;
    right: 36px !important;
    width: auto !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    text-align: right !important;
    padding-right: 0;
}

.realty-mm-right .realty-mm-pagination .swiper-pagination-bullet {
    width: 32px;
    height: 3px;
    display: block;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    border-radius: 2px;
    margin: 0 !important;
    transition: background 0.3s;
}

.realty-mm-right .realty-mm-pagination .swiper-pagination-bullet-active {
    background: #fff;
}

/* Войти */
.btn--login {
    background: transparent;
    border: 1px solid var(--h-color-border);
    color: var(--h-color-text);
    height: 38px;
    border-radius: var(--h-button-radius);
    font-size: 0.875rem;
}

.btn--login:visited {
    color: var(--h-color-text);
}

.btn--login:hover {
    border-color: var(--h-color-blue);
    color: var(--h-color-blue);
}

/* --- Переключатель языка --- */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--h-color-text);
    padding: 0 10px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--h-color-border);
    transition: border-color 0.2s;
    user-select: none;
}

.lang-switcher:hover {
    border-color: var(--h-color-blue);
}

.lang-switcher__arrow {
    flex-shrink: 0;
}

/* =============================================
   СТРОКА 2 — Основная навигация
============================================= */
.header-main {
    background: var(--h-color-white);
}

.header-main .header-container {
    min-height: var(--h-main-height);
    padding-block: 0.9rem;
    justify-content: space-between;
    gap: 16px;
}

/* --- Левая часть --- */
.header-main__left {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1 1 auto;
    min-width: 0;
}

/* --- Правая часть --- */
.header-main__right {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-shrink: 0;
}

/* --- Блок телефона --- */
.header-phone-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}

.header-phone {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--h-color-text);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.02em;
    line-height: 1.2;
    transition: color 0.2s;
}

.header-phone:visited {
    color: var(--h-color-text);
}

.header-phone:hover {
    color: var(--h-color-blue);
}

.header-callback-link {
    font-size: 0.72rem;
    color: var(--h-color-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
    transition: color 0.2s;
}

.header-callback-link:visited {
    color: var(--h-color-blue);
}

.header-callback-link:hover {
    color: var(--h-color-blue-hover);
}

.header-mobile-call {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eef5ff;
    color: var(--h-color-blue);
    text-decoration: none;
    box-shadow: inset 0 0 0 1px rgba(0, 102, 255, 0.06);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.header-mobile-call:visited {
    color: var(--h-color-blue);
}

.header-mobile-call:hover {
    background: #e5f0ff;
    color: #06102b;
    transform: translateY(-1px);
}

.header-mobile-call svg {
    display: block;
}

/* --- Избранное --- */
.favorites-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--h-color-muted);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.favorites-btn:visited {
    color: var(--h-color-muted);
}

.favorites-btn:hover {
    color: #e84045;
    background: rgba(232, 64, 69, 0.08);
}

/* =============================================
   ОСНОВНОЕ МЕНЮ
============================================= */
.main-navigation {
    display: flex;
    align-items: center;
    width: auto;
}

.primary-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    /* уменьшенный отступ */
}

.primary-menu>li {
    position: relative;
}

.primary-menu>li>a {
    display: flex;
    align-items: center;
    padding: 0 8px;
    /* уменьшенный внутренний отступ */
    height: var(--h-main-height);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--h-color-text);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s;
}

.primary-menu>li>a:visited {
    color: var(--h-color-text);
}

.primary-menu>li>a:hover,
.primary-menu>li.current-menu-item>a,
.primary-menu>li.current-page-ancestor>a {
    color: var(--h-color-blue);
}

/* --- Дропдаун --- */
.primary-menu>li>ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--h-color-white);
    border: 1px solid #e6ebf0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    z-index: calc(var(--h-z) + 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    flex-direction: column;
}

.primary-menu>li.project-types-menu>ul {
    min-width: 240px;
}

.primary-menu>li:hover>ul,
.primary-menu>li:focus-within>ul,
.primary-menu>li.focus>ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-menu ul li a {
    display: block;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--h-color-text);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.primary-menu ul li a:hover {
    background: var(--h-color-topbar-bg);
    color: var(--h-color-blue);
}

/* =============================================
   ГАМБУРГЕР
============================================= */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 1.5px solid var(--h-color-border);
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.menu-toggle:hover {
    border-color: var(--h-color-blue);
}

.menu-toggle__bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--h-color-text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Состояние «открыто» */
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   АДАПТИВНОСТЬ
============================================= */

/* --- Планшет (до 1024px) --- */
@media screen and (max-width: 1024px) {
    .primary-menu>li>a {
        padding: 0 9px;
        font-size: 0.8rem;
    }
}

/* --- Маленький планшет / большой телефон (до 900px) --- */
@media screen and (max-width: 900px) {
    .btn--callback {
        display: none;
    }

    .lang-switcher {
        display: none;
    }

    .header-phone-block {
        display: none;
    }
}

/* --- Мобильный (до 768px) --- */
@media screen and (max-width: 768px) {
    :root {
        --h-topbar-height: 36px;
        --h-main-height: 56px;
    }

    .site-header {
        border-bottom-color: transparent;
        box-shadow: none !important;
    }

    .header-main .header-container {
        position: relative;
        min-height: 78px;
        padding-block: 10px;
        padding-inline: 16px;
        gap: 12px;
    }

    .header-main__left {
        gap: 0;
        flex: 0 0 auto;
        min-width: 0;
    }

    .header__logo-wrapper {
        display: flex;
        align-items: center;
    }

    .site-logo img {
        height: 50px;
    }

    .realty-dropdown-wrapper,
    .main-navigation,
    .menu-toggle,
    .topbar__socials,
    .lang-switcher {
        display: none !important;
    }

    .header-main__right {
        margin-left: auto;
        gap: 24px;
    }

    .header-phone-block {
        display: flex;
        position: static;
        transform: none;
        align-items: center;
        justify-content: flex-end;
        width: auto;
        max-width: calc(100vw - 150px);
        text-align: right;
        flex: 0 1 auto;
    }

    .header-phone {
        font-size: 1rem;
        font-weight: 600;
        line-height: 1;
        letter-spacing: -0.03em;
    }

    .header-callback-link {
        display: none;
    }

    .header-mobile-call {
        display: inline-flex;
    }

    /* Скрываем меню по умолчанию */
    .main-navigation {
        position: absolute;
        top: calc(var(--h-topbar-height) + var(--h-main-height));
        left: 0;
        right: 0;
        background: var(--h-color-white);
        z-index: calc(var(--h-z) - 1);
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease;
    }

    .main-navigation.is-open {
        max-height: 80vh;
        overflow-y: auto;
        border-top: 1px solid var(--h-color-border);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    }

    .primary-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
    }

    .primary-menu>li>a {
        height: auto;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .primary-menu>li>a::after {
        display: none;
    }

    .primary-menu>li>ul {
        position: static;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--h-color-border);
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .primary-menu>li.focus>ul,
    .primary-menu>li.is-open>ul {
        display: block;
    }

    .header-main__right .favorites-btn {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .header-main .header-container {
        min-height: 72px;
        padding-inline: 14px;
    }

    .site-logo img {
        height: 50px;
    }

    .header-phone-block {
        max-width: calc(100vw - 140px);
    }

    .header-phone {
        font-size: 0.92rem;
    }

    .header-mobile-call {
        width: 40px;
        height: 40px;
    }
}


/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/

/* --- Общий контейнер секции --- */
.hero-section {
    --hero-inner-gap: 2rem;
    --hero-card-gap: 16px;
    --hero-radius: 24px;
    background: transparent;
    padding-block: 1.5rem 3rem;
}

.hero-container {
    max-width: var(--h-container);
    margin-inline: auto;
    padding-inline: 3.2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: var(--hero-card-gap);
    align-items: stretch;
}

/* =============================================
   СЛАЙДЕР
============================================= */
.hero-slider {
    position: relative;
    border-radius: var(--hero-radius);
    overflow: hidden;
    background: #0d0e14;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

/* Трек */
.hero-slider__track {
    display: flex;
    flex: 1 1 auto;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Отдельный слайд */
.hero-slide {
    min-width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 2.75rem var(--hero-inner-gap) 5rem var(--hero-inner-gap);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Градиентный оверлей */
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0) 45%,
            rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Контент слайда */
.hero-slide__content {
    position: relative;
    z-index: 2;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-slide__title {
    font-size: 2.5rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.2;
    margin: 0;
}

.hero-slide__subtitle {
    font-size: 1rem;
    color: #fff;
    margin: 0;
    line-height: 1.5;
}

.hero-slide__btn {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 1.5rem 1.25rem;
    margin-top: 0.5rem;
    background: #fff;
    border-radius: var(--h-button-radius);
    color: #26282f;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--h-font);
    text-decoration: none;
    width: fit-content;
    transition: background 0.2s, border-color 0.2s;
}

.hero-slide__btn:hover {
    background: #1c1c1e;
    color: #fff;
}

/* Визуальная часть слайда */
.hero-slide__visual {
    position: absolute;
    inset: 0;
    width: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-slide__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(8, 20, 39, 0.62) 0%, rgba(8, 20, 39, 0.42) 24%, rgba(8, 20, 39, 0.16) 52%, rgba(8, 20, 39, 0) 78%),
        linear-gradient(180deg, rgba(10, 18, 33, 0.18) 0%, rgba(10, 18, 33, 0.06) 28%, rgba(10, 18, 33, 0.22) 100%),
        radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.14) 0, rgba(255, 255, 255, 0) 24%);
}

.hero-slide:nth-child(2) .hero-slide__visual::after {
    background:
        linear-gradient(90deg, rgba(11, 34, 26, 0.6) 0%, rgba(11, 34, 26, 0.4) 24%, rgba(11, 34, 26, 0.14) 52%, rgba(11, 34, 26, 0) 78%),
        linear-gradient(180deg, rgba(13, 28, 22, 0.18) 0%, rgba(13, 28, 22, 0.08) 28%, rgba(13, 28, 22, 0.22) 100%),
        radial-gradient(circle at 75% 28%, rgba(255, 255, 255, 0.14) 0, rgba(255, 255, 255, 0) 24%);
}

.hero-slide:nth-child(3) .hero-slide__visual::after {
    background:
        linear-gradient(90deg, rgba(42, 28, 16, 0.58) 0%, rgba(42, 28, 16, 0.38) 24%, rgba(42, 28, 16, 0.12) 52%, rgba(42, 28, 16, 0) 78%),
        linear-gradient(180deg, rgba(37, 24, 14, 0.16) 0%, rgba(37, 24, 14, 0.08) 28%, rgba(37, 24, 14, 0.22) 100%),
        radial-gradient(circle at 77% 30%, rgba(255, 255, 255, 0.14) 0, rgba(255, 255, 255, 0) 24%);
}

/* --- Контролы (точки + стрелки) --- */
.hero-slider__controls {
    position: absolute;
    bottom: 1.5rem;
    left: var(--hero-inner-gap);
    right: var(--hero-inner-gap);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

/* Точки */
.hero-slider__dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s, width 0.25s;
    flex-shrink: 0;
}

.hero-slider__dot.is-active {
    background: #ffffff;
    width: 24px;
    border-radius: 4px;
}

.hero-slider__dot:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.6);
}

/* Стрелки */
.hero-slider__arrows {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-slider__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    line-height: 1;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #26282f;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
    box-sizing: border-box;
}

.hero-slider__arrow svg {
    display: block;
    flex-shrink: 0;
    pointer-events: none;
}

.hero-slider__arrow:hover {
    background: #1c1c1e;
    color: #fff;
}

/* =============================================
   БОКОВЫЕ КАРТОЧКИ
============================================= */
.hero-cards {
    display: flex;
    flex-direction: column;
    gap: var(--hero-card-gap);
}

.hero-card {
    flex: 1 1 0;
    background: #f3f4f6;
    border-radius: var(--hero-radius);
    padding: 1.8rem 1.8rem 1.8rem 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    overflow: hidden;
}

/* Акцентная карточка (синяя) */
.hero-card--accent {
    background: var(--h-color-blue);
}

.hero-card--accent .hero-card__title {
    color: #ffffff;
}

.hero-card--accent .hero-card__text {
    color: rgba(255, 255, 255, 0.8);
}

/* Содержимое карточки */
.hero-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.hero-card__title {
    font-size: 18px;
    font-weight: 500;
    color: #1c1c1e;
    line-height: 1.35;
    margin: 0;
}

.hero-card__text {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* Кнопка карточки */
.hero-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: var(--h-button-radius);
    font-family: var(--h-font);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

/* Кнопка на синей карточке */
.hero-card--accent .hero-card__btn {
    background: #fff;
    color: var(--h-color-text);
}

.hero-card--accent .hero-card__btn:visited {
    color: var(--h-color-text);
}

.hero-card--accent .hero-card__btn:hover {
    color: var(--h-color-blue);
}

/* Кнопка на белой карточке */
.hero-card:not(.hero-card--accent) .hero-card__btn {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: var(--h-color-blue);
}

.hero-card:not(.hero-card--accent) .hero-card__btn:visited {
    color: var(--h-color-blue);
}

/* =============================================
   PROPERTY TYPES
============================================= */
.property-types-section {
    background: #fff;
    padding: 3rem 0 0;
}

.property-types-container {
    max-width: var(--h-container);
    margin-inline: auto;
    padding-inline: 3.2rem;
}

.property-types-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.property-type-card {
    min-height: 82px;
    border-radius: 12px;
    background: #f3f4f6;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-decoration: none;
    color: var(--h-color-text);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.property-type-card:hover {
    color: inherit;
}

.property-type-card__content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.property-type-card__title {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 500;
    color: #6b7280;
}

.property-type-card__value {
    font-size: 17px;
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--h-color-text);
}

.property-type-card__icon {
    width: 24px;
    height: 24px;
    color: var(--h-color-blue);
    flex-shrink: 0;
}

.property-type-card__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* =============================================
   BUYER MOTIVES
============================================= */
.buyer-motives-section {
    background: #fff;
    padding: 3rem 0 0;
}

.buyer-motives-container {
    max-width: var(--h-container);
    margin-inline: auto;
    padding-inline: 3.2rem;
}

.buyer-motives-head {
    max-width: 760px;
    margin-bottom: 28px;
}

.buyer-motives-head__title {
    margin: 0;
    font-size: 36px;
    line-height: 1.12;
    letter-spacing: -0.05em;
    font-weight: 500;
    color: #111827;
}

.buyer-motives-head__text {
    margin: 14px 0 0;
    font-size: 16px;
    line-height: 1.55;
    color: #6b7280;
}

.buyer-motives-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.buyer-motive-card {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    border-radius: 24px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    text-decoration: none;
    color: #ffffff;
    isolation: isolate;
    background:
        linear-gradient(180deg, rgba(6, 16, 43, 0.08) 0%, rgba(6, 16, 43, 0.72) 100%),
        var(--buyer-motive-image) center / cover no-repeat;
}

.buyer-motive-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(6, 16, 43, 0.04) 0%, rgba(6, 16, 43, 0.22) 40%, rgba(6, 16, 43, 0.84) 100%);
    z-index: -1;
}

.buyer-motive-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 23px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 1;
}

.buyer-motive-card:hover {
    color: #ffffff;
}

.buyer-motive-card__top,
.buyer-motive-card__body {
    position: relative;
    z-index: 2;
}

.buyer-motive-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.buyer-motive-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 11px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.buyer-motive-card__arrow {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    transition: transform 0.2s ease, background 0.2s ease;
}

.buyer-motive-card__arrow svg {
    width: 18px;
    height: 18px;
    display: block;
}

.buyer-motive-card:hover .buyer-motive-card__arrow {
    transform: translate(1px, -1px);
    background: rgba(255, 255, 255, 0.2);
}

.buyer-motive-card__title {
    margin: 0;
    font-size: 28px;
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 500;
    text-wrap: balance;
}

.buyer-motive-card__text {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.84);
}

.buyer-motive-card--investment {
    background:
        linear-gradient(180deg, rgba(6, 16, 43, 0.12) 0%, rgba(6, 16, 43, 0.68) 100%),
        var(--buyer-motive-image) center / cover no-repeat;
}

.buyer-motive-card--seaside {
    background:
        linear-gradient(180deg, rgba(7, 41, 84, 0.05) 0%, rgba(7, 41, 84, 0.64) 100%),
        var(--buyer-motive-image) center / cover no-repeat;
}

.buyer-motive-card--residency {
    background:
        linear-gradient(180deg, rgba(9, 47, 103, 0.1) 0%, rgba(9, 47, 103, 0.68) 100%),
        var(--buyer-motive-image) center / cover no-repeat;
}

.buyer-motive-card--citizenship {
    background:
        linear-gradient(180deg, rgba(6, 16, 43, 0.08) 0%, rgba(6, 16, 43, 0.7) 100%),
        var(--buyer-motive-image) center / cover no-repeat;
}

/* =============================================
   HOME WHY US
============================================= */
.home-why-section {
    background: #fff;
    padding: 4rem 0 4rem;
}

.home-why-container {
    max-width: var(--h-container);
    margin-inline: auto;
    padding-inline: 3.2rem;
}

.home-why-head {
    max-width: 900px;
    margin-bottom: 28px;
}

.home-why-head__content {
    display: grid;
    gap: 14px;
}

.home-why-head__title {
    margin: 0;
    font-size: 36px;
    line-height: 1.12;
    letter-spacing: -0.05em;
    font-weight: 500;
    color: #111827;
    max-width: 41rem;
}

.home-why-head__text {
    margin: 0;
    max-width: 560px;
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
}

.home-why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-why-card {
    min-height: 238px;
    padding: 28px 24px 30px;
    border-radius: 24px;
    border: 1px solid rgba(17, 24, 39, 0.06);
    background: #f4f5f7;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-why-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.home-why-card:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.12);
}

.home-why-card:hover::before {
    opacity: 1;
}

.home-why-card--build,
.home-why-card--finance,
.home-why-card--status {
    background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
}

.home-why-card--service {
    background: linear-gradient(180deg, #fbfbfc 0%, #f3f4f6 100%);
}

.home-why-card--build::before {
    background:
        radial-gradient(circle at 100% 0, rgba(37, 99, 235, 0.12), transparent 34%),
        radial-gradient(circle at 0 100%, rgba(96, 165, 250, 0.09), transparent 26%);
}

.home-why-card--finance::before {
    background:
        radial-gradient(circle at 88% 10%, rgba(59, 130, 246, 0.12), transparent 32%),
        radial-gradient(circle at 12% 92%, rgba(148, 163, 184, 0.08), transparent 22%);
}

.home-why-card--status::before {
    background:
        radial-gradient(circle at 94% 0, rgba(37, 99, 235, 0.14), transparent 34%),
        radial-gradient(circle at 0 100%, rgba(255, 219, 132, 0.12), transparent 30%);
}

.home-why-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.home-why-card__counter {
    display: inline-flex;
    padding-top: 6px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.home-why-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #2563eb;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.home-why-card__icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.home-why-card__body {
    display: grid;
    gap: 12px;
}

.home-why-card__title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: #111827;
}

.home-why-card__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
}

.hero-card:not(.hero-card--accent) .hero-card__btn:hover {
    border-color: var(--h-color-blue);
    background: rgba(26, 123, 245, 0.05);
}

/* =============================================
   АДАПТИВНОСТЬ — hero
============================================= */
@media screen and (max-width: 1024px) {
    .hero-container {
        grid-template-columns: minmax(0, 1fr) 320px;
        padding-inline: 2.4rem;
    }

    .hero-section {
        --hero-inner-gap: 1.5rem;
        --hero-radius: 24px;
    }
}

@media screen and (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        padding-inline: 1.5rem;
    }

    .hero-slider {
        min-height: 420px;
    }

    .hero-slide {
        padding: 1.75rem var(--hero-inner-gap) 4.25rem var(--hero-inner-gap);
    }

    .hero-slider__controls {
        right: var(--hero-inner-gap);
    }

    .hero-cards {
        flex-direction: row;
    }

    .hero-card {
        flex: 1 1 0;
    }

    .hero-card:first-child {
        padding: 1.375rem;
    }

    .hero-card:last-child {
        padding: 1.375rem;
    }
}

@media screen and (max-width: 520px) {
    .hero-section {
        --hero-inner-gap: 1.25rem;
        --hero-radius: 22px;
    }

    .hero-cards {
        flex-direction: column;
    }

    .hero-card:first-child,
    .hero-card:last-child {
        padding: 1.375rem;
    }

    .hero-slide__title {
        font-size: 1.4rem;
    }
}

/*--------------------------------------------------------------
# Projects Section
--------------------------------------------------------------*/

.projects-section {
    /* Main wrapper now has no padding itself, let inner wrappers handle it */
    background: transparent;
}

.page-template-page-projects.page {
    margin-bottom: 0;
}

/* --- Container for consistency --- */
.projects-container {
    max-width: var(--h-container);
    margin-inline: auto;
    padding-inline: 3.2rem;
}

/* --- Top Filter Area (White) --- */
.projects-filter-area {
    background: #ffffff;
    padding-block: 3rem 2.5rem;
    /* Padding top for section, bottom for filters */
}

.projects-section--page .projects-filter-area {
    padding-top: 2rem;
}

.projects-page-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.25rem;
    font-size: 12px;
    line-height: 1.5;
    color: var(--h-color-blue);
}

.projects-page-breadcrumbs__link {
    color: #7d8698;
    text-decoration: none;
    transition: color 0.2s;
}

.projects-page-breadcrumbs__link:hover {
    color: var(--h-color-blue);
}

.projects-page-breadcrumbs__sep {
    color: var(--h-color-blue);
    opacity: 0.45;
}

.page-template-page-about.page {
    margin-bottom: 0;
}

.about-page-intro {
    background: rgb(244, 245, 247);
    padding: 2rem 0 4rem;
}

.about-page-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.25rem;
    font-size: 12px;
    line-height: 1.5;
    color: var(--h-color-blue);
}

.about-page-breadcrumbs__link {
    color: #7d8698;
    text-decoration: none;
    transition: color 0.2s;
}

.about-page-breadcrumbs__link:hover {
    color: var(--h-color-blue);
}

.about-page-breadcrumbs__sep {
    color: var(--h-color-blue);
    opacity: 0.45;
}

.about-page-intro__content {
    max-width: 760px;
}

.about-page-intro__title {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
    font-weight: 600;
    color: var(--h-color-text);
}

.about-page-intro__text {
    margin: 18px 0 0;
    max-width: 700px;
    font-size: 18px;
    line-height: 1.5;
    color: #6b7280;
}

/* --- Bottom Cards Area (Gray) --- */
.projects-cards-area {
    background-color: rgb(244, 245, 247);
    padding: 3rem 0;
}

.projects-section--page .projects-cards-area {
    padding: 4rem 0;
}

.projects-header-new {
    margin-bottom: 2rem;
}

.projects-title-new {
    font-size: 36px;
    /* ~40px */
    font-weight: 500;
    color: #111827;
    /* Dark text */
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.projects-subtitle-new {
    font-size: 1rem;
    color: #6b7280;
    /* Gray text */
    margin: 0;
}

/* --- Filters Grid --- */
.projects-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.projects-filters-form {
    display: grid;
    gap: 0;
}

/* Filter Item Box */
.project-filter-item {
    background: #f3f4f6;
    /* Light gray box */
    border-radius: 12px;
    padding: 6px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60px;
    /* Height constraint based on ref */
    position: relative;
    cursor: pointer;
    transition: border 0.2s;
    border: 1px solid rgba(0, 0, 0, 0);
}

.project-filter-item:hover {
    border: 1px solid #e6ebf0;
}

.project-filter-item.is-disabled {
    cursor: default;
}

.project-filter-label {
    font-size: 0.75rem;
    /* ~12px */
    color: #9ca3af;
    /* Lighter gray for label */
    margin-bottom: 4px;
}

.project-filter-control {
    position: relative;
}

.project-filter-select {
    width: 100%;
    padding: 0 42px 0 0;
    border: 0;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 16px) center;
    background-size: 12px 12px;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    appearance: none;
    cursor: pointer;
}

.project-filter-select:focus {
    outline: none;
}

.project-filter-item.is-disabled .project-filter-select {
    pointer-events: none;
    color: #111827;
    opacity: 1;
}

.project-filter-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
}

.project-filter-value svg {
    color: #9ca3af;
    transition: transform 0.2s;
}

.project-filter-item:hover .project-filter-value svg {
    color: #111827;
}

/* Global helper to ensure [hidden] attribute works regardless of class specificity */
[hidden] {
    display: none !important;
}

/* Range Slider Specifics */
.filter-item-range {
    cursor: default;
    /* Keep default cursor for range area */
    padding-bottom: 18px;
}

.filter-item-range:hover {
    background: #f3f4f6;
    /* No hover effect on the bg for range */
}

.project-filter-range-values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 8px;
    /* space before the track */
}

/* Mockup CSS for the Range slider track */
.project-filter-track {
    width: calc(100% - 32px);
    height: 2px;
    background: #e6ebf0;
    position: absolute;
    bottom: 0px;
    /* Touch the very bottom of the box */
    left: 16px;
    border-radius: 2px;
    overflow: visible;
}

.project-filter-track-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--h-color-blue);
    /* Purple/Blue accent color */
    pointer-events: none;
    /* Let logic handle dragging later */
}

.projects-filters-form .project-filter-range-input {
    position: absolute;
    left: 16px;
    bottom: -5px;
    width: calc(100% - 32px);
    height: 14px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    pointer-events: none;
}

.projects-filters-form .project-filter-range-input:focus {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.projects-filters-form .project-filter-range-input::-webkit-slider-runnable-track {
    height: 2px;
    border: 0 !important;
    background: transparent !important;
    -webkit-appearance: none !important;
}

.projects-filters-form .project-filter-range-input::-moz-range-track {
    height: 2px;
    border: 0 !important;
    background: transparent !important;
}

.projects-filters-form .project-filter-range-input::-webkit-slider-thumb {
    width: 12px;
    height: 12px;
    margin-top: -5px;
    border: 0 !important;
    border-radius: 50%;
    background: var(--h-color-blue);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    -webkit-appearance: none !important;
    appearance: none !important;
    pointer-events: auto;
}

.projects-filters-form .project-filter-range-input::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: 0 !important;
    border-radius: 50%;
    background: var(--h-color-blue);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
}

/* Reset Button */
.project-filter-reset {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 400;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s;
}

.project-filter-reset:hover {
    color: #111827;
}

/* Load More Button Styles */
.btn--load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 32px;
    background: var(--h-color-blue);
    color: var(--h-color-white);
    border-radius: var(--h-button-radius);
    /* Adjusted to match style */
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 12px 28px rgba(0, 102, 255, 0.28);
}

.btn--load-more:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(0, 102, 255, 0.34);
}

.projects-page-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.projects-actions-bottom {
    margin-top: 2.5rem;
    text-align: center;
}

.projects-page-progress {
    width: 160px;
    display: grid;
    gap: 12px;
    justify-items: center;
}

.projects-page-progress__text {
    font-size: 14px;
    font-weight: 400;
    color: #8f98a8;
    text-align: center;
}

.projects-page-progress__bar {
    width: 100%;
    height: 2px;
    background: rgba(71, 90, 252, 0.14);
    border-radius: 999px;
    overflow: hidden;
}

.projects-page-progress__fill {
    display: block;
    width: 0;
    height: 100%;
    background: #475afc;
    border-radius: inherit;
    transition: width 0.25s ease;
}

.projects-section.is-filter-loading [data-projects-results] {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.projects-empty {
    grid-column: 1 / -1;
    display: grid;
    gap: 10px;
    justify-items: center;
    padding: 48px 24px;
    border-radius: 24px;
    background: #ffffff;
    text-align: center;
}

.projects-empty__title {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 600;
    color: #111827;
}

.projects-empty__text {
    max-width: 420px;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #6b7280;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .projects-filters {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-section--page .projects-container {
        padding-inline: 16px;
    }

    .projects-filter-area {
        padding-block: 2.5rem 1.5rem;
    }

    .projects-section--page .projects-filter-area {
        padding-top: 1.5rem;
    }

    .projects-page-breadcrumbs {
        display: none;
    }

    .projects-header-new {
        margin-bottom: 1.5rem;
    }

    .projects-title-new {
        font-size: 30px;
        line-height: 1.08;
        letter-spacing: -0.04em;
    }

    .projects-subtitle-new {
        font-size: 15px;
        line-height: 1.5;
    }

    .projects-filters {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 16px;
    }

    .projects-filters-form {
        gap: 12px;
    }

    .project-filter-item {
        min-height: 56px;
        padding: 8px 14px;
        border-radius: 10px;
    }

    .filter-item-range {
        padding-bottom: 16px;
    }

    .project-filter-label {
        margin-bottom: 3px;
        line-height: 1.4;
    }

    .project-filter-select,
    .project-filter-value,
    .project-filter-range-values {
        font-size: 16px;
    }

    .project-filter-track,
    .projects-filters-form .project-filter-range-input {
        left: 14px;
        width: calc(100% - 28px);
    }

    .project-filter-reset {
        align-self: flex-start;
        font-size: 14px;
    }

    .projects-page-actions {
        margin-top: 2rem;
        gap: 1rem;
    }

    .projects-actions-bottom {
        margin-top: 1.5rem;
    }

    .projects-page-progress {
        width: min(100%, 280px);
    }

    .btn--load-more {
        width: min(100%, 320px);
    }

    .projects-empty {
        padding: 36px 22px;
        border-radius: 20px;
    }

    .projects-empty__title {
        font-size: 22px;
    }

    .projects-empty__text {
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .projects-section--page .projects-container {
        padding-inline: 14px;
    }

    .projects-filter-area {
        padding-block: 1.75rem 1.25rem;
    }

    .projects-section--page .projects-filter-area,
    .projects-section--page .projects-cards-area {
        padding-top: 1.25rem;
    }

    .projects-section--page .projects-cards-area {
        padding-bottom: 3rem;
    }

    .projects-title-new {
        font-size: 28px;
    }

    .projects-subtitle-new {
        font-size: 14px;
    }

    .projects-filters {
        gap: 10px;
    }

    .project-filter-item {
        min-height: 54px;
        padding: 8px 12px;
    }

    .project-filter-track,
    .projects-filters-form .project-filter-range-input {
        left: 12px;
        width: calc(100% - 24px);
    }

    .project-filter-range-values {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .project-filter-reset {
        font-size: 13px;
    }

    .projects-page-actions {
        margin-top: 1.5rem;
    }

    .projects-actions-bottom {
        margin-top: 1.25rem;
    }

    .projects-page-progress {
        gap: 10px;
    }

    .projects-page-progress__text {
        font-size: 13px;
    }

    .btn--load-more {
        width: 100%;
        padding-inline: 20px;
    }
}

/*--------------------------------------------------------------
# Consultation Section
--------------------------------------------------------------*/
.consultation-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #06102b;
    padding-block: 4rem;
}

.consultation-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 22%, rgba(83, 124, 208, 0.34) 0%, rgba(83, 124, 208, 0) 26%),
        radial-gradient(circle at 72% 18%, rgba(116, 159, 238, 0.2) 0%, rgba(116, 159, 238, 0) 22%),
        radial-gradient(circle at 82% 72%, rgba(12, 18, 38, 0.42) 0%, rgba(12, 18, 38, 0) 24%),
        radial-gradient(circle at 38% 58%, rgba(255, 219, 132, 0.06) 0%, rgba(255, 219, 132, 0) 20%),
        linear-gradient(180deg, rgba(6, 16, 43, 0.96) 0%, rgba(6, 16, 43, 0.96) 100%);
}

.consultation-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.72;
    background-image:
        radial-gradient(circle, rgba(255, 231, 169, 0.92) 0 1.2px, transparent 1.5px),
        radial-gradient(circle, rgba(255, 236, 186, 0.78) 0 0.9px, transparent 1.2px),
        radial-gradient(circle, rgba(255, 228, 150, 0.5) 0 0.7px, transparent 1px),
        radial-gradient(circle at 14% 22%, rgba(255, 230, 170, 0.9) 0 2px, transparent 2.4px),
        radial-gradient(circle at 71% 28%, rgba(255, 235, 184, 0.86) 0 2.2px, transparent 2.6px),
        radial-gradient(circle at 82% 64%, rgba(255, 226, 146, 0.76) 0 1.8px, transparent 2.2px);
    background-size:
        122px 122px,
        176px 176px,
        236px 236px,
        auto,
        auto,
        auto;
    background-position:
        0 0,
        42px 74px,
        18px 128px,
        0 0,
        0 0,
        0 0;
}

.consultation-container {
    position: relative;
    z-index: 1;
    max-width: var(--h-container);
    margin-inline: auto;
    padding-inline: 3.2rem;
}

.consultation-card {
    background: #ffffff;
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 3.5rem 2.4rem;
    position: relative;
    overflow: hidden;
}

.consultation-content {
    flex: 1;
    max-width: 650px;
    z-index: 2;
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.consultation-title {
    font-size: 36px;
    font-weight: 500;
    color: #111827;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.consultation-subtitle {
    font-size: 1.1rem;
    color: #4b5563;
    margin: 0 0 2.5rem 0;
}

.consultation-form {
    display: flex;
    gap: 12px;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.consult-form-group {
    flex: 1;
}

.consultation-form .consult-input {
    width: 100%;
    height: 48px;
    padding: 0 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: var(--h-font);
    font-size: 0.95rem;
    color: #111827;
    background: #ffffff;
    transition: border-color 0.2s;
    outline: none;
    box-sizing: border-box;
}

.consultation-form .consult-input::placeholder {
    color: #9ca3af;
}

.consultation-form .consult-input:focus {
    border-color: var(--h-color-blue);
}

.consultation-form .consult-submit {
    height: 48px;
    padding: 0 32px;
    background: var(--h-color-blue);
    color: #ffffff;
    border: none;
    border-radius: var(--h-button-radius);
    font-family: var(--h-font);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    white-space: nowrap;
    outline: none;
}

.consultation-form .consult-submit:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 102, 255, 0.28);
}

.consultation-form .consult-submit:active {
    transform: scale(0.98);
}

.consultation-policy {
    font-size: 0.8rem;
    color: #9ca3af;
    line-height: 1.5;
    max-width: 500px;
}

.consultation-policy a.policy-link {
    color: var(--h-color-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.consultation-policy a.policy-link:hover {
    color: var(--h-color-blue);
    text-decoration: underline;
}

/* Right Side - Manager */
.consultation-manager {
    position: relative;
    width: 450px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    z-index: 1;
}

/* Gray organic blob shape */
.manager-visual {
    position: absolute;
    bottom: -3rem;
    right: 0;
    width: 100%;
    height: calc(100% + 4rem);
    pointer-events: none;
    z-index: 0;
}

.manager-blob {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 480px;
    height: 380px;
    background: #e5e7eb;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: rotate(-10deg);
}

.manager-photo {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 375px;
    height: auto;
    object-fit: contain;
    z-index: 1;
}

.manager-info {
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0.2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-right: 2rem;
    border: 1px solid #f3f4f6;
    margin-bottom: -1rem;
    /* slight overlap at the bottom */
}

.manager-name {
    font-size: 0.975rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 2px;
}

.manager-role {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
    .consultation-card {
        flex-direction: column;
        padding: 2.5rem;
    }

    .consultation-content {
        max-width: none;
        padding-right: 0;
    }

    .consultation-form {
        flex-wrap: wrap;
    }

    .consultation-form .consult-submit {
        width: 100%;
    }

    .consultation-manager {
        width: 100%;
        height: 320px;
        margin-top: 3rem;
        justify-content: center;
        align-items: center;
    }

    .manager-visual {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .manager-blob {
        left: 50%;
        transform: translateX(-50%) rotate(-10deg);
        width: 400px;
        height: 300px;
    }

    .manager-photo {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 320px;
    }

    .manager-info {
        margin: auto auto 0 auto;
        padding: 1rem 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .consultation-section {
        padding-block: 56px;
    }

    .consultation-container {
        padding-inline: 16px;
    }

    .consultation-card {
        padding: 24px;
        border-radius: 24px;
    }

    .consultation-title {
        font-size: 30px;
        line-height: 1.08;
    }

    .consultation-subtitle {
        margin-bottom: 22px;
        font-size: 15px;
        line-height: 1.5;
    }

    .consultation-form {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        margin-bottom: 22px;
    }

    .consult-form-group,
    .consultation-form .consult-submit {
        width: 100%;
    }

    .consultation-form .consult-input,
    .consultation-form .consult-submit {
        font-size: 16px;
    }

    .consultation-policy {
        max-width: none;
        font-size: 12px;
    }

    .consultation-manager {
        margin-top: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .consultation-section {
        padding-block: 48px;
    }

    .consultation-container {
        padding-inline: 14px;
    }

    .consultation-title {
        font-size: 28px;

        br {
            display: none;
        }
    }

    .consultation-card {
        padding: 20px;
        border-radius: 20px;
    }
}

/* =============================================
   NEWS SECTION
============================================= */
.news-section {
    background: #f3f4f6;
    padding: 4rem 0;
    font-family: var(--h-font);
}

.news-container {
    max-width: var(--h-container);
    margin: 0 auto;
    padding: 0 3.2rem;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.news-title {
    font-size: 36px;
    font-weight: 500;
    color: #111827;
    margin: 0;
    line-height: 1.2;
}

.news-all-articles {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--h-color-text);
    text-decoration: none;
    transition: color 0.2s;
}

.news-all-articles:hover {
    color: var(--h-color-blue);
}

.news-grid-scroll {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.news-grid-scroll::-webkit-scrollbar {
    display: none;
}

.news-grid {
    display: flex;
    gap: 20px;
    padding: 0;
}

.news-card {
    background: #fff;
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-width: 340px;
    max-width: 340px;
    flex: 0 0 auto;
    border: 1px solid rgba(17, 24, 39, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: var(--h-color-text);
}

.news-card__link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

.news-card__image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 18px;
    background: #e5e7eb;
    background-image: linear-gradient(to right, #e5e7eb 0%, #f3f4f6 20%, #e5e7eb 40%, #e5e7eb 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%;
    position: relative;
    animation: shimmer 2s infinite linear forwards;
}

.news-card__image-wrapper.has-image {
    background: #f3f4f6;
    /* Static fallback for cards with images */
    animation: none;
}

.news-card__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.news-card__image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.02) 100%);
    z-index: 2;
    pointer-events: none;
}

.news-card__image-wrapper.has-image::after {
    background: transparent;
}

.news-card__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-card__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.28;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--h-color-text);
}

.news-card__title:hover {
    color: var(--h-color-text);
}

.news-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.news-card__excerpt {
    font-size: 14px;
    color: var(--h-color-muted);
    line-height: 1.5;
    margin-bottom: auto;
    padding-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__date {
    font-size: 12px;
    color: var(--h-color-muted);
}

.news-card__meta-sep {
    font-size: 12px;
    color: var(--h-color-muted);
    line-height: 1;
}

.news-card__category {
    font-size: 12px;
    color: var(--h-color-muted);
}

.news-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #e51075;
    background: #fdf2f8;
    padding: 4px 8px;
    border-radius: 6px;
}

.news-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-card__tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--h-color-blue);
    border: 1px solid var(--h-color-blue);
    padding: 4px 8px;
    border-radius: 2.5rem;
}

.post-type-archive-news.page,
.post-type-archive-news.archive {
    margin-bottom: 0;
}

.news-archive {
    background: #f3f4f6;
    padding: 2rem 0 4rem;
}

.news-archive__breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.25rem;
    font-size: 12px;
    line-height: 1.5;
    color: var(--h-color-blue);
}

.news-archive__breadcrumbs-link {
    color: #7d8698;
    text-decoration: none;
    transition: color 0.2s;
}

.news-archive__breadcrumbs-link:hover {
    color: var(--h-color-blue);
}

.news-archive__breadcrumbs-sep {
    color: var(--h-color-blue);
    opacity: 0.45;
}

.news-archive__header {
    margin-bottom: 2rem;
}

.news-archive__subtitle {
    margin: 0.6rem 0 0;
    font-size: 1rem;
    color: #6b7280;
}

.news-archive__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.news-archive__card.news-card {
    width: auto;
    min-width: 0;
    max-width: none;
}

.news-archive__card-link {
    min-height: 100%;
}

.news-archive .navigation.pagination {
    margin-top: 2.5rem;
}

.news-archive .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.news-archive .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: var(--h-button-radius);
    background: #fff;
    color: #111827;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    font-size: 14px;
}

.news-archive .page-numbers.current {
    background: var(--h-color-blue);
    border-color: var(--h-color-blue);
    color: #fff;
}

.news-archive .page-numbers:hover {
    border-color: var(--h-color-blue);
    color: var(--h-color-blue);
}

.news-archive__empty {
    padding: 2rem 0;
    color: #6b7280;
}

@media (max-width: 1280px) {
    .property-types-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .buyer-motives-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-archive__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .news-container {
        padding-inline: 16px;
    }

    .property-types-container {
        padding-inline: 1.5rem;
    }

    .property-types-section {
        padding-bottom: 2rem;
    }

    .property-types-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .property-type-card {
        min-height: 72px;
        padding: 16px 18px;
        border-radius: 16px;
    }

    .property-type-card__value {
        font-size: 15px;
    }

    .buyer-motives-container {
        padding-inline: 16px;
    }

    .buyer-motives-section {
        padding-top: 8px;
    }

    .buyer-motives-head {
        margin-bottom: 22px;
    }

    .buyer-motives-head__title {
        font-size: 30px;
        line-height: 1.08;
        letter-spacing: -0.04em;
    }

    .buyer-motives-head__text {
        margin-top: 12px;
        font-size: 15px;
        line-height: 1.5;
    }

    .buyer-motives-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .buyer-motive-card {
        min-height: 240px;
        padding: 16px;
        border-radius: 24px;
    }

    .buyer-motive-card__title {
        font-size: 28px;
    }

    .buyer-motive-card__text {
        font-size: 14px;
    }

    .home-why-container {
        padding-inline: 16px;
    }

    .home-why-section {
        padding-top: 56px;
    }

    .home-why-head {
        margin-bottom: 22px;
    }

    .home-why-head__title {
        font-size: 30px;
        line-height: 1.08;
        letter-spacing: -0.04em;
    }

    .home-why-head__text {
        font-size: 15px;
        line-height: 1.55;
    }

    .home-why-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .home-why-card {
        min-height: auto;
        padding: 24px;
        border-radius: 24px;
    }

    .home-why-card__title {
        font-size: 20px;
    }

    .news-card {
        min-width: 280px;
        max-width: 280px;
    }

    .news-title {
        font-size: 1.8rem;
    }

    .news-archive {
        padding: 1.5rem 0 3rem;
    }

    .news-archive__header {
        margin-bottom: 1.5rem;
    }

    .news-archive__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-archive__card.news-card {
        width: auto;
        min-width: 0;
        max-width: none;
    }
}

@media (max-width: 640px) {
    .news-container {
        padding-inline: 14px;
    }
}

@media (max-width: 560px) {
    .news-archive__grid {
        grid-template-columns: 1fr;
    }
}

/* --- News Swiper --- */
.news-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.news-header-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.news-swiper-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-swiper-prev,
.news-swiper-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--h-color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--h-color-text);
    transition: all 0.2s;
    outline: none;
}

.news-swiper-prev:hover,
.news-swiper-next:hover,
.news-swiper-prev:focus,
.news-swiper-next:focus {
    border-color: var(--h-color-blue);
    color: var(--h-color-blue);
    box-shadow: 0 4px 12px rgba(26, 123, 245, 0.15);
}

.news-swiper-prev.swiper-button-disabled,
.news-swiper-next.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--h-color-border);
    color: var(--h-color-muted);
    box-shadow: none;
}

.news-swiper {
    padding: 10px 0 20px !important;
    margin: -10px 0 -20px !important;
    /* to show box shadow */
    width: 100%;
}

.news-swiper .swiper-wrapper {
    display: flex;
}

.news-slide {
    width: 340px;
    /* Fixed card width, Swiper auto handles layout */
    height: auto;
    box-sizing: border-box;
    padding: 0 10px;
}

.news-slide .news-card {
    height: 100%;
    min-width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .news-slide {
        width: 280px;
    }
}

/* --- News Swiper --- */
.news-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.news-header-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.news-slider-wrapper {
    position: relative;
    width: 100%;
    /* No max-width, so it goes full viewport width */
}

/* Base Swiper styling */
.news-swiper {
    width: 100%;
    padding: 20px 0 20px !important;
    /* padding-left dynamically aligns content to container. 
       Fallback to 3.2rem if container calc fails, but the JS could also handle it.
       We'll set CSS padding-left to match .news-container */
    padding-left: max(2.2rem, calc(50vw - (var(--h-container) / 2) + 2.2rem)) !important;
    padding-right: max(2.2rem, calc(50vw - (var(--h-container) / 2) + 2.2rem)) !important;
}

.news-slide {
    width: 340px;
    /* Fixed width */
    height: auto;
    box-sizing: border-box;
    padding: 0 10px;
}

.news-slide .news-card {
    height: 100%;
    min-width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .news-swiper {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .news-slide {
        width: 280px;
        padding: 0 8px;
    }
}

@media (max-width: 640px) {
    .news-swiper {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}

/* Floating Navigation Arrows */
.news-swiper-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    /* Let clicks pass through empty space */
    z-index: 10;
    /* Limit width to container so buttons float over the edges of the content */
    max-width: calc(var(--h-container) + 120px);
    margin: 0 auto;
    padding: 0 1rem;
}

.news-swiper-prev,
.news-swiper-next {
    pointer-events: auto;
    /* Re-enable clicks on buttons */
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--h-color-text);
    transition: opacity 0.3s, transform 0.2s, box-shadow 0.2s, color 0.2s;
    outline: none;
    padding: 0;
    line-height: 0;
}

.news-swiper-prev svg,
.news-swiper-next svg {
    margin: auto;
    display: block;
}

.news-swiper-prev:hover,
.news-swiper-next:hover,
.news-swiper-prev:focus,
.news-swiper-next:focus {
    color: var(--h-color-blue);
    box-shadow: 0 8px 24px rgba(26, 123, 245, 0.15);
    transform: scale(1.05);
}

.news-swiper-prev.swiper-button-disabled,
.news-swiper-next.swiper-button-disabled {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* =============================================
   ADVANTAGES SECTION
============================================= */
.advantages-section {
    padding: 4rem 0;
    font-family: var(--h-font);
}

.advantages-container {
    max-width: var(--h-container);
    margin-inline: auto;
    padding-inline: 3.2rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 420px;
    gap: 16px;
}

.advantage-card {
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.adv-light {
    background-color: #f4f5f7;
    color: var(--h-color-text);
}

.adv-light .adv-desc {
    color: #8c94a8;
}

.adv-orange {
    background-color: #fca311;
    color: #ffffff;
}

.adv-blue {
    background-color: var(--h-color-blue);
    color: #ffffff;
}

.adv-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 2;
}

.adv-desc {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
    margin-top: auto;
    margin-bottom: 0px;
    padding-top: 15px;
    opacity: 0.85;
    position: relative;
    z-index: 2;
}

/* Individual blocks - naturally flow in 1x4 grid */
.adv-individual .adv-title,
.adv-reputation .adv-title,
.adv-service .adv-title,
.adv-pro .adv-title {
    max-width: 100%;
}

.adv-individual {
    grid-column: span 1;
    grid-row: span 1;
}

.adv-reputation {
    grid-column: span 1;
    grid-row: span 1;
}

.adv-service {
    grid-column: span 1;
    grid-row: span 1;
}

.adv-pro {
    grid-column: span 1;
    grid-row: span 1;
}



/* Image Wrappers */
.adv-image-wrapper {
    position: absolute;
    bottom: -10px;
    right: 20px;
    opacity: 0.8;
    z-index: 1;
}

.adv-image-helmet-wrapper {
    bottom: -15px;
    right: -10px;
    opacity: 1;
}

.adv-image-helmet {
    display: block;
    max-width: 350px;
    height: auto;
    object-fit: contain;
    object-position: 100% 50%;
}

/* Icon Centers */
.adv-icon-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.adv-circle-icon {
    width: 80px;
    height: 80px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =============================================
   HOME TESTIMONIALS
============================================= */
@media (max-width: 1024px) {
    .advantages-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .adv-individual {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 300px;
    }

    .adv-reputation {
        grid-column: 1 / 3;
        grid-row: auto;
        min-height: 300px;
    }

    .adv-service {
        grid-column: 1 / 2;
        grid-row: auto;
        min-height: 300px;
    }

    .adv-pro {
        grid-column: 2 / 3;
        grid-row: auto;
        min-height: 300px;
    }

    .adv-icon-center {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-top: auto;
        align-self: center;
        padding-top: 12px;
    }
}

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

    .adv-individual,
    .adv-reputation,
    .adv-service,
    .adv-pro {
        grid-column: 1 / -1;
    }

    .advantages-container {
        padding-inline: 1.5rem;
    }
}

/* =============================================
   HOME MOBILE PASS
============================================= */
@media (max-width: 767px) {
    .hero-section {
        --hero-inner-gap: 16px;
        --hero-radius: 24px;
        padding-block: 12px 20px;
    }

    .hero-container {
        padding-inline: 16px;
        gap: 12px;
    }

    .hero-slider {
        min-height: 420px;
    }

    .hero-slide {
        padding: 24px var(--hero-inner-gap) 64px var(--hero-inner-gap);
        align-items: flex-end;
    }

    .hero-slide__content {
        max-width: 100%;
        gap: 10px;
    }

    .hero-slide__title {
        font-size: 30px;
        line-height: 1.08;
        letter-spacing: -0.03em;
    }

    .hero-slide__subtitle {
        font-size: 15px;
        line-height: 1.5;
    }

    .hero-slide__btn {
        width: 100%;
        justify-content: center;
        height: 48px;
        margin-top: 4px;
        padding: 0 18px;
        font-size: 15px;
    }

    .hero-slider__controls {
        bottom: 16px;
    }

    .hero-slider__arrows {
        display: none;
    }

    .hero-cards {
        flex-direction: column;
        gap: 12px;
    }

    .hero-card,
    .hero-card:first-child,
    .hero-card:last-child {
        flex: 0 0 auto;
        min-height: 156px;
        padding: 20px;
        border-radius: 20px;
        gap: 14px;
    }

    .hero-card__title {
        font-size: 18px;
        line-height: 1.25;
    }

    .hero-card__text {
        font-size: 14px;
        line-height: 1.5;
    }

    .hero-card__btn {
        width: 100%;
        height: 48px;
        font-size: 14px;
    }

    .property-types-container {
        padding-inline: 16px;
    }

    .property-types-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .property-type-card {
        min-height: 62px;
        padding: 16px 18px;
        border-radius: 16px;
    }

    .property-type-card__title {
        font-size: 11px;
        line-height: 1.2;
    }

    .property-type-card__value {
        font-size: 14px;
    }

    .buyer-motives-container {
        padding-inline: 16px;
    }

    .projects-section--front .projects-container {
        padding-inline: 16px;
    }

    .projects-section--front .projects-filter-area {
        padding-top: 2rem;
    }

    .projects-section--front .projects-cards-area {
        padding: 1.5rem 0 3.5rem;
    }

    .projects-section--front .projects-filters {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 16px;
    }

    .projects-section--front .projects-filters-form {
        gap: 12px;
    }

    .projects-section--front .project-filter-item {
        min-height: 56px;
        padding: 8px 14px;
        border-radius: 10px;
    }

    .projects-section--front .filter-item-range {
        padding-bottom: 16px;
    }

    .projects-section--front .project-filter-label {
        margin-bottom: 3px;
        line-height: 1.4;
    }

    .projects-section--front .project-filter-select,
    .projects-section--front .project-filter-range-values {
        font-size: 16px;
    }

    .projects-section--front .project-filter-track,
    .projects-section--front .projects-filters-form .project-filter-range-input {
        left: 14px;
        width: calc(100% - 28px);
    }

    .projects-section--front .project-filter-reset {
        align-self: flex-start;
        font-size: 14px;
    }

    .advantages-section {
        padding: 56px 0;
    }

    .advantages-container {
        padding-inline: 16px;
    }

    .advantages-grid {
        gap: 16px;
    }

    .advantage-card {
        min-height: 260px;
        padding: 24px;
        border-radius: 24px;
    }

    .adv-title {
        font-size: 17px;
        line-height: 1.25;
    }

    .adv-desc {
        font-size: 14px;
        line-height: 1.6;
        padding-top: 12px;
    }

    .adv-platform .adv-title,
    .adv-individual .adv-title {
        max-width: 100%;
    }

    .adv-image-platform {
        max-width: 210px;
    }

    .adv-image-helmet {
        max-width: 250px;
    }

    .adv-circle-icon {
        width: 64px;
        height: 64px;
    }

    .news-section {
        padding: 56px 0;
    }

    .news-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        margin-bottom: 24px;
    }

    .news-header-actions {
        width: 100%;
        justify-content: flex-start;
        gap: 16px;
    }

    .news-swiper-nav {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero-section {
        --hero-inner-gap: 14px;
        --hero-radius: 22px;
        padding-block: 12px 24px;
    }

    .hero-container {
        padding-inline: 14px;
    }

    .hero-slider {
        min-height: 390px;
    }

    .hero-slide {
        padding: 22px var(--hero-inner-gap) 58px var(--hero-inner-gap);
    }

    .hero-slide__title {
        font-size: 28px;
    }

    .hero-slide__subtitle {
        font-size: 14px;
    }

    .hero-cards {
        flex-direction: column;
    }

    .hero-card,
    .hero-card:first-child,
    .hero-card:last-child {
        min-height: 148px;
        padding: 18px;
        border-radius: 18px;
    }

    .property-types-container {
        padding-inline: 14px;
    }

    .property-type-card {
        padding: 15px 16px;
    }

    .property-type-card__value {
        font-size: 13px;
    }

    .buyer-motives-container {
        padding-inline: 14px;
    }

    .buyer-motive-card {
        min-height: 220px;
        padding: 15px;
    }

    .buyer-motive-card__badge {
        min-height: 30px;
        padding-inline: 10px;
        font-size: 10px;
    }

    .buyer-motive-card__arrow {
        width: 32px;
        height: 32px;
    }

    .buyer-motive-card__title {
        font-size: 24px;
    }

    .buyer-motive-card__text {
        margin-top: 10px;
        font-size: 13px;
        line-height: 1.45;
    }

    .home-why-container {
        padding-inline: 14px;
    }

    .home-why-section {
        padding-top: 48px;
    }

    .home-why-head__title {
        font-size: 28px;
    }

    .home-why-head__text {
        font-size: 14px;
        line-height: 1.5;
    }

    .home-why-card {
        padding: 20px;
        border-radius: 20px;
        gap: 16px;
    }

    .home-why-card__icon {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

    .home-why-card__icon svg {
        width: 22px;
        height: 22px;
    }

    .home-why-card__title {
        font-size: 18px;
    }

    .home-why-card__text {
        font-size: 13px;
        line-height: 1.55;
    }

    .projects-section--front .projects-container {
        padding-inline: 14px;
    }

    .projects-section--front .projects-filter-area {
        padding-top: 48px;
    }

    .projects-section--front .projects-cards-area {
        padding: 1.25rem 0 3rem;
    }

    .projects-section--front .projects-title-new {
        font-size: 28px;
    }

    .projects-section--front .projects-subtitle-new {
        font-size: 14px;
    }

    .projects-section--front .projects-filters {
        gap: 10px;
    }

    .advantages-section {
        padding: 48px 0;
    }

    .advantages-container {
        padding-inline: 14px;
    }

    .advantage-card {
        min-height: 236px;
        padding: 20px;
        border-radius: 20px;
    }

    .adv-title {
        font-size: 15px;
    }

    .adv-desc {
        font-size: 13px;
    }

    .adv-image-platform {
        max-width: 180px;
    }

    .adv-image-helmet {
        max-width: 220px;
    }

    .news-section {
        padding: 48px 0;
    }

    .news-title {
        font-size: 28px;
        line-height: 1.08;
        letter-spacing: -0.03em;
    }

    .news-all-articles {
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .property-types-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.site-footer {
    background: #ffffff;
    margin-top: 0;
}

.footer-container {
    max-width: var(--h-container);
    margin: 0 auto;
    padding: 3.5rem 3.2rem 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
    gap: 2.5rem;
    align-items: start;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

.footer-column__title {
    margin: 0 0 1rem;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    color: #111827;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li+li {
    margin-top: 8px;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--h-color-blue);
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.footer-side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: end;
}

.footer-meta {
    margin-top: 1.25rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: end;
}

.footer-promos {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer-promo {
    position: relative;
    display: block;
    min-height: 118px;
    padding: 1.35rem 1.4rem;
    border-radius: 26px;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    max-width: 320px;
}

.footer-promo:hover {
    transform: translateY(-1px);
}

.footer-promo__content {
    position: relative;
    z-index: 1;
}

.footer-promo__heading {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    justify-content: flex-start;
}

.footer-promo__title {
    margin: 0;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 500;
}

.footer-promo__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-promo__text {
    margin: 0.6rem 0 0;
    font-size: 12px;
    line-height: 1.45;
    max-width: 28ch;
}

.footer-promo--primary {
    background: var(--h-color-blue);
    color: #ffffff;
}

.footer-promo--primary .footer-promo__title {
    font-size: 14px;
}

.footer-promo__content {
    position: relative;
    z-index: 1;
}

.footer-promo--primary .footer-promo__text {
    color: rgba(255, 255, 255, 0.84);
}

.footer-promo--secondary {
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.28) 0%, rgba(17, 24, 39, 0.66) 100%),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 40%),
        #2e3643;
    color: #ffffff;
}

.footer-promo--secondary::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 28%),
        radial-gradient(circle at 80% 35%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 38%);
    pointer-events: none;
}

.footer-promo--secondary .footer-promo__text {
    color: rgba(255, 255, 255, 0.78);
}

.footer-socials {
    justify-content: flex-start;
}

.footer-socials__link {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-socials__link:hover {
    color: var(--h-color-blue);
    border-color: rgba(0, 102, 255, 0.2);
    transform: translateY(-1px);
}

.footer-contact {
    margin-top: 0;
    display: inline-flex;
    flex-direction: column;
    gap: 0.45rem;
}

.footer-contact__label {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: rgb(76, 77, 82);
}

.footer-contact__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #111827;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
}

.footer-contact__phone svg {
    color: var(--h-color-blue);
    flex-shrink: 0;
}

.footer-contact__phone:hover {
    color: var(--h-color-blue);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 5px;
    align-items: end;
}

.footer-brand {
    display: flex;
    align-items: flex-end;
}

.footer-brand__logo .custom-logo-link,
.footer-brand__text {
    display: inline-flex;
    text-decoration: none;
}

.footer-brand__logo .custom-logo {
    width: auto;
    max-width: 150px;
    height: auto;
}

.footer-brand__text {
    color: #111827;
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 600;
}

.footer-legal {
    max-width: 760px;
}

.footer-legal__text {
    margin: 0;
    color: #9ca3af;
    font-size: 12px;
    line-height: 1.45;
}

.footer-legal__links {
    margin-top: 0.7rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.footer-legal__links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.footer-legal__links a:hover {
    color: var(--h-color-blue);
}

.sticky-whatsapp-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 985;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(37, 211, 102, 0.32);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    animation: sticky-whatsapp-pulse 10s ease-in-out infinite;
    -webkit-tap-highlight-color: transparent;
}

.sticky-whatsapp-button:hover {
    background: #21c45d;
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(37, 211, 102, 0.36);
}

.sticky-whatsapp-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.92), 0 0 0 8px rgba(37, 211, 102, 0.35);
}

.sticky-whatsapp-button svg {
    width: 28px;
    height: 28px;
    display: block;
}

@keyframes sticky-whatsapp-pulse {

    0%,
    82%,
    100% {
        transform: scale(1);
        box-shadow: 0 18px 36px rgba(37, 211, 102, 0.32), 0 0 0 0 rgba(37, 211, 102, 0);
    }

    3% {
        transform: scale(1.04);
        box-shadow: 0 18px 36px rgba(37, 211, 102, 0.34), 0 0 0 0 rgba(37, 211, 102, 0.18);
    }

    6% {
        transform: scale(1);
        box-shadow: 0 18px 36px rgba(37, 211, 102, 0.32), 0 0 0 14px rgba(37, 211, 102, 0);
    }
}

.mobile-bottom-nav {
    display: none;
}

.mobile-bottom-nav__inner {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
}

.mobile-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 56px;
    padding: 6px 2px 4px;
    color: #6b7280;
    text-decoration: none;
    text-align: center;
    border-radius: 16px;
    transition: color 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-nav__item:hover {
    color: var(--h-color-blue);
}

.mobile-bottom-nav__item.is-active {
    color: var(--h-color-blue);
    background: rgba(0, 102, 255, 0.06);
}

.mobile-bottom-nav__icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-bottom-nav__icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.mobile-bottom-nav__label {
    display: block;
    max-width: 58px;
    font-size: 9px;
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -0.01em;
}

@media (max-width: 1200px) {
    .footer-top {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {

    .footer-top,
    .footer-bottom {
        grid-template-columns: 1fr;
    }

    .footer-meta {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        align-items: start;
    }

    .footer-socials {
        justify-content: flex-start;
    }

    .footer-promo {
        min-height: 0;
    }
}

@media (max-width: 768px) {
    #page {
        padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    }

    .sticky-whatsapp-button {
        right: 16px;
        bottom: calc(96px + env(safe-area-inset-bottom, 0px));
        width: 56px;
        height: 56px;
    }

    .sticky-whatsapp-button svg {
        width: 26px;
        height: 26px;
    }

    .mobile-bottom-nav {
        display: block;
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        z-index: 980;
    }

    .mobile-bottom-nav__inner {
        padding: 8px 10px 10px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(17, 24, 39, 0.08);
        border-radius: 22px;
        box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .footer-container {
        padding: 2.75rem 16px 2rem;
    }

    .footer-top {
        gap: 2rem;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem 1rem;
    }

    .footer-column__title {
        margin-bottom: 0.85rem;
        font-size: 13px;
    }

    .footer-links li+li {
        margin-top: 6px;
    }

    .footer-links a {
        font-size: 13px;
        line-height: 1.35;
    }

    .footer-side {
        align-items: stretch;
    }

    .footer-promos {
        gap: 0.75rem;
    }

    .footer-promo {
        width: 100%;
        max-width: none;
        min-height: 0;
        padding: 1rem 1rem 1.05rem;
        border-radius: 22px;
    }

    .footer-promo__heading {
        align-items: flex-start;
        justify-content: space-between;
    }

    .footer-promo__title {
        font-size: 13px;
        max-width: 24ch;
    }

    .footer-promo__text {
        margin-top: 0.45rem;
        max-width: none;
    }

    .footer-meta {
        margin-top: 1.75rem;
        gap: 1rem;
    }

    .footer-contact {
        gap: 0.35rem;
    }

    .footer-contact__label {
        font-size: 11px;
    }

    .footer-contact__phone {
        font-size: 1rem;
    }

    .footer-socials {
        gap: 8px;
    }

    .footer-socials__link {
        width: 40px;
        height: 40px;
    }

    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.5rem;
        gap: 1rem;
        align-items: start;
    }

    .footer-brand {
        align-items: flex-start;
    }

    .footer-brand__logo .custom-logo {
        max-width: 136px;
    }

    .footer-legal__text {
        font-size: 11px;
        line-height: 1.55;
    }

    .footer-legal__links {
        margin-top: 0.85rem;
        gap: 0.55rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-legal__links a {
        font-size: 11px;
    }
}

@media (max-width: 640px) {
    #page {
        padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-bottom-nav {
        left: 14px;
        right: 14px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-bottom-nav__inner {
        gap: 2px;
        padding: 7px 8px 9px;
        border-radius: 20px;
    }

    .mobile-bottom-nav__item {
        min-height: 54px;
        padding-inline: 1px;
        border-radius: 14px;
    }

    .mobile-bottom-nav__label {
        font-size: 10px;
    }

    .footer-container {
        padding: 2.5rem 14px 0;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem 1rem;
    }

    .footer-column__title {
        font-size: 14px;
    }

    .footer-promo {
        padding: 0.95rem 1rem;
        border-radius: 20px;
    }

    .footer-promo__title {
        max-width: 40ch;
    }

    .footer-promo__text {
        font-size: 12px;
    }

    .footer-meta {
        margin-top: 1.25rem;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.75rem 1rem;
        align-items: end;
    }

    .footer-contact {
        gap: 0.25rem;
    }

    .footer-contact__label {
        line-height: 1.35;
    }

    .footer-contact__phone {
        gap: 0.45rem;
        font-size: 0.95rem;
    }

    .footer-socials {
        justify-content: flex-end;
        align-self: end;
    }

    .footer-bottom {
        margin-top: 0;
        padding-top: 1rem;
        gap: 0.75rem;
    }

    .footer-brand__logo .custom-logo {
        max-width: 150px;
    }

    .footer-legal {
        display: grid;
        gap: 0.65rem;
    }

    .footer-legal__text {
        line-height: 1.5;
    }

    .footer-legal__links {
        margin-top: 0;
        gap: 0.35rem;
    }
}

/*--------------------------------------------------------------
# Home Hero New — Fullscreen Block
--------------------------------------------------------------*/

.home-hero-new {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(135deg, #0f1f38 0%, #1e3a5f 100%);
    border-radius: 0 0 24px 24px;
}

.home-hero-new__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    display: block;
}

.home-hero-new__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 12, 28, 0.40) 0%, rgba(5, 12, 28, 0.40) 36%, rgba(5, 12, 28, 0.24) 68%, rgba(5, 12, 28, 0.08) 100%),
        linear-gradient(180deg, rgba(5, 12, 28, 0.12) 0%, rgba(5, 12, 28, 0.42) 100%);
}

.home-hero-new__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--h-container);
    margin-inline: auto;
    padding-inline: 3.2rem;
    padding-bottom: 96px;
    padding-top: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

/* Плашка над заголовком */
.home-hero-new__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 24px;
}

.home-hero-new__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff3b30;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.20);
}

/* Заголовок */
.home-hero-new__title {
    margin: 0;
    font-size: 70px;
    font-weight: 500;
    line-height: 0.96;
    letter-spacing: -0.068em;
    color: #ffffff;
    text-shadow: 0 20px 56px rgba(2, 8, 22, 0.36);
    max-width: 800px;
}

/* Подзаголовок */
.home-hero-new__subtitle {
    margin: 24px 0 0;
    max-width: 520px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2;
    color: rgba(240, 246, 255, 0.82);
}

/* Кнопки */
.home-hero-new__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.home-hero-new__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 32px;
    border-radius: var(--h-button-radius);
    border: none;
    font-family: var(--h-font);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    white-space: nowrap;
}

.home-hero-new__btn--primary {
    background: var(--h-color-blue);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 102, 255, 0.28);
}

.home-hero-new__btn--primary:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(0, 102, 255, 0.34);
}

.home-hero-new__btn--outline {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.30);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.home-hero-new__btn--outline:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.50);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Адаптив */
@media screen and (max-width: 1024px) {
    .home-hero-new__title {
        font-size: clamp(42px, 5.2vw, 68px);
    }
}

@media screen and (max-width: 768px) {
    .home-hero-new {
        min-height: 480px;
        align-items: flex-end;
    }

    .home-hero-new__image {
        object-position: 65% center;
    }

    .home-hero-new__shade {
        background:
            linear-gradient(180deg, rgba(5, 12, 28, 0.58) 0%, rgba(5, 12, 28, 0.78) 70%, rgba(5, 12, 28, 0.92) 100%);
    }

    .home-hero-new__inner {
        padding-inline: 20px;
        padding-bottom: 56px;
        padding-top: 120px;
    }

    .home-hero-new__title {
        font-size: clamp(36px, 9vw, 52px);
        letter-spacing: -0.055em;
    }

    .home-hero-new__subtitle {
        font-size: 15px;
    }

    .home-hero-new__actions {
        flex-direction: column;
        width: 100%;
    }

    .home-hero-new__btn {
        width: 100%;
        min-height: 52px;
    }
}

@media screen and (max-width: 480px) {
    .home-hero-new__badge {
        font-size: 12px;
        padding: 6px 14px 6px 10px;
    }

    .home-hero-new__title {
        font-size: clamp(32px, 8.5vw, 46px);
    }
}
