/* ============================================ */
/* ОБЩИЕ СТИЛИ                                  */
/* ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

body {
    font-family: 'Sofia Sans Condensed', Arial, sans-serif;
    background: linear-gradient(120deg, #90EE90, #E7E5FA, #E7E5FA, #E6BBC1);
    color: #222;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================ */
/* БЕЙДЖ «ВЕБСАЙТ В РАЗРАБОТКЕ»                 */
/* Текст на градиенте, над хедером               */
/* ============================================ */
.badge {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;

    /* Блюр — работал на всех экранах */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    color: #59142D;
    font-family: 'Sofia Sans Condensed', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    z-index: 1001;
}

.badge-right {
    display: flex;
    align-items: center;
    gap: 20px;
    pointer-events: auto;
}

.badge-icon {
    color: #59142D;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.15s ease;
}

.badge-icon:hover {
    color: #66ff00;
}

.badge-phone {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
    color: #59142D;
    text-decoration: none;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.badge-phone:hover {
    font-weight: 700;
    color: #59142D;   /* тот же бордовый, не меняется */
}

/* ============================================ */
/* ХЕДЕР — БОРДОВАЯ ПОЛОСА                      */
/* ============================================ */
.topbar {
    position: fixed;
    top: 30px;
    left: 0;
    right: 0;
    background: #66152E;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    font-family: 'Sofia Sans Condensed', Arial, sans-serif;
}

.topbar-inner {
    width: 100%;
    padding: 0 24px;
    height: 90px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.topbar-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.topbar-logo img {
    height: 70px;
    width: auto;
    display: block;
    max-width: none;
}

.topbar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0px;
    flex: 1;
    min-width: 0;
}

.topbar-nav a {
    display: block;
    padding: 8px 12px;
    color: #66ff00;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 400;
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;         /* по умолчанию не переносим */
    text-align: center;
    line-height: 1.15;
}

/* Кнопки с двумя словами — переносим на 2 строки */
.topbar-nav a.two-words {
    white-space: normal;         /* разрешить перенос */
    line-height: 1.1;            /* компактнее */
    max-width: 130px;            /* ограничение ширины — принудит перенос */
    word-spacing: 0;             /* убрать лишнее */
}


.topbar-nav a:hover {
    background-color: #f2aec7;
    color: #66152E;
}

/* Бургер — скрыт на десктопе */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
}

.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #66ff00;
    border-radius: 2px;
}

/* Скрытие навигации — переключается JS */
.topbar-nav.hidden {
    display: none !important;
}

/* Бургер — скрыт по умолчанию, показывается JS */
.burger.hidden {
    display: none !important;
}

/* ============================================ */
/* КОНТЕНТ СТРАНИЦЫ                             */
/* ============================================ */
.site-main {
    padding-top: 160px;      /* 30 (бейдж) + 90 (хедер) + запас */
    padding-bottom: 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
}

h1 {
    font-family: 'Sofia Sans Condensed', Arial, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #59142D;
    text-align: center;
    clip-path: inset(0 100% 0 0);
    /* animation задаётся в JS */
}

@keyframes write {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0 0 0); }
}

p {
    font-family: 'Sofia Sans Condensed', Arial, sans-serif;
    font-style: italic;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.5;
    color: #464451;
    text-align: center;
    max-width: 780px;
    margin-top: 24px;
    opacity: 0;
    animation: fade-in 3.5s ease-out 3s forwards;
}

p.text-left {
    font-family: 'Sofia Sans Condensed', Arial, sans-serif;
    font-style: normal;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.6;
    color: #222;
    text-align: left;
    max-width: 780px;
    margin: 0 0 16px;
    opacity: 1;
    animation: none;
}

p.text-center {
    font-family: 'Sofia Sans Condensed', Arial, sans-serif;
    font-style: normal;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1;
    color: #222;
    text-align: left;
    max-width: 780px;
    margin: 0 0 16px;
    opacity: 1;
    animation: none;
}


@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.main-logo {
    max-width: 240px;
    width: 100%;
    height: auto;
    margin-top: 24px;
    display: block;
}

/* ============================================ */
/* МОБИЛЬНАЯ ВЕРСИЯ                             */
/* ============================================ */
@media (max-width: 1250px) {
    .burger {
        display: flex;
    }

    .topbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #66152E;
        flex-direction: column;
        padding: 8px 16px 16px;
        gap: 2px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .topbar-nav.open {
        display: flex;
    }

    .topbar-nav a {
        padding: 8px 8px;
        font-size: 1.2rem;
    }

    .topbar-inner {
        gap: 16px;
        padding: 0 16px;
        height: 72px;
    }

    .topbar-logo img {
        height: 48px;
    }

    .site-main {
        padding-top: 140px;
    }

    .badge {
        height: 28px;
        font-size: 0.85rem;
        padding-left: 16px;
    }
}

.topbar-nav a.alt {
    color: #f2aec7;              /* только розовый текст */
    background-color: transparent;   /* без фона */
}

.topbar-nav a.alt:hover {
    background-color: #66ff00;   /* зелёный фон при наведении */
    color: #66152E;              /* бордовый текст при наведении */
}

/* Иконка WhatsApp — зелёная */
.badge-icon .bi-whatsapp {
    color: #25D366;   /* фирменный зелёный WhatsApp */
}

/* Иконка Telegram — синяя */
.badge-icon .bi-telegram {
    color: #229ED9;   /* фирменный синий Telegram */
}

/* ===== Список статей блога ===== */
.blog-list {
    max-width: 1000px;
    margin: 40px auto 60px;
    padding: 0 20px;
}

.blog-item {
    display: flex;
    gap: 24px;
    padding: 24px;
    margin-bottom: 24px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(89, 20, 45, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-item:hover {
    box-shadow: 0 6px 20px rgba(89, 20, 45, 0.12);
    transform: translateY(-2px);
}

/* Фото статьи — фиксированная рамка, обрезка */
.blog-item-cover {
    display: block;
    flex-shrink: 0;
    width: 280px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f6f8;
}

.blog-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* ← ключевое: обрезает, а не сжимает */
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.blog-item:hover .blog-item-cover img {
    transform: scale(1.05);   /* лёгкий зум при наведении */
}

/* Правый блок */
.blog-item-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;    /* ← прижимает контент к левому краю */
    flex: 1;
    min-width: 0;
}

.blog-item-date {
    font-size: 0.9rem;
    color: #9a8f95;
    margin: 0 0 16px;
    font-style: normal;
    text-align: left;      /* явно влево */
}

.blog-item-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #59142D;
    margin: 0 0 12px;
    line-height: 1.3;
}

.blog-item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.blog-item-title a:hover {
    color: #8a2149;
}

.blog-item-short {
    font-size: 1rem;
    font-style: normal;
    color: #464451;
    line-height: 1.6;
    margin: 0 0 16px;
    text-align: left;
    /* Обрезка длинного текста */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-item-readmore {
    display: inline-block;
    color: #66152E;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.15s ease;
}

.blog-item-readmore:hover {
    color: #66ff00;
}

.blog-empty {
    text-align: center;
    color: #888;
    font-style: italic;
}

/* Мобильная версия */
@media (max-width: 700px) {
    .blog-item {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }

    .blog-item-cover {
        width: 100%;
        height: 200px;
    }

    .blog-item-title {
        font-size: 1.3rem;
    }
}

/* Статья */
.article-detail {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.article-cover {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

.article-content {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #222;
    margin-top: 24px;
}

.article-content p {
    font-family: 'Sofia Sans Condensed', Arial, sans-serif;
    font-style: normal;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.6;
    color: #222;
    text-align: left;
    max-width: none;
    margin: 0 0 16px;
    opacity: 1;
    animation: none;
}

/* Защита текста статей от выделения и копирования */
.article-content {
    -webkit-user-select: none;    /* Safari */
    -moz-user-select: none;       /* Firefox */
    -ms-user-select: none;        /* IE/Edge */
    user-select: none;            /* современные браузеры */
    -webkit-touch-callout: none;  /* отключить контекстное меню на iOS */
}

/* Разрешить выделение внутри <pre> и <code> — для примеров кода */
.article-content pre,
.article-content code {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Водяной знак — фиксирован, всегда в центре экрана */
/* Водяной знак на всех страницах сайта */
.site-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-family: 'Sofia Sans Condensed', Arial, sans-serif;
    font-size: 6rem;
    font-weight: 700;
    color: #59142D;
    opacity: 0.06;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    white-space: nowrap;
    letter-spacing: 0.1em;
}

@media (max-width: 700px) {
    .site-watermark {
        font-size: 3.5rem;
    }
}


/* ============================================ */
/* ФУТЕР                                        */
/* ============================================ */
.site-footer {
    width: 100%;
    display: flex;
    align-items: baseline;              /* ← было flex-end */
    justify-content: space-between;
    gap: 32px;
    padding: 32px 40px;
    border-top: 1px solid rgba(89, 20, 45, 0.1);
    margin-top: 60px;
    font-family: 'Sofia Sans Condensed', Arial, sans-serif;
    color: #59142D;
    flex-wrap: wrap;
}

.footer-col-left,
.footer-col-center,
.footer-col-right {
    display: flex;
    align-items: baseline;              /* ← было flex-end */
    line-height: 1;
}

.footer-col-left {
    flex-shrink: 0;
}

.footer-col-center {
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.footer-col-right {
    flex-shrink: 0;
}

/* Копирайт */
.footer-copy {
    margin: 0;
    line-height: 1;
    font-size: 1.3rem;
    font-style: normal;
    color: #59142D;
    opacity: 0.9;
    white-space: nowrap;
}

/* Центральная колонка: иконки + телефоны */
.footer-phones {
    display: flex;
    align-items: baseline;              /* ← было flex-end */
    gap: 14px;
    flex-wrap: nowrap;
}

.footer-icon {
    color: #59142D;
    text-decoration: none;
    font-size: 1.3rem;
    line-height: 1;
    transition: opacity 0.15s ease;
}

.footer-icon:hover {
    opacity: 0.7;
}

.footer-icon .bi-whatsapp { color: #25D366; }
.footer-icon .bi-telegram { color: #229ED9; }

.footer-phones .badge-phone {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: #59142D;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
    transition: color 0.15s ease;
}

.footer-phones .badge-phone:hover {
    color: #59142D;
}

/* Правая колонка: соцсети в строку */
.footer-socials {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: baseline;              /* ← было flex-end */
    gap: 16px;
    flex-wrap: nowrap;
}

.footer-socials a {
    display: inline-flex;
    align-items: baseline;              /* ← было flex-end */
    gap: 4px;
    font-weight: 500;
    font-size: 1.3rem;
    letter-spacing: 0.03em;
    color: #59142D;
    text-decoration: none;
    opacity: 0.85;
    line-height: 1;
    transition: opacity 0.15s ease;
    white-space: nowrap;
}

.footer-socials a:hover {
    opacity: 1;
}

.footer-socials .arrow {
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    line-height: 1;
    transition: transform 0.15s ease;
}

.footer-socials a:hover .arrow {
    transform: translate(3px, -3px);   /* диагональ вправо-вверх */
}

/* Адаптив */
@media (max-width: 1400px) {
    .footer-socials a { font-size: 0.8rem; }
    .footer-socials { gap: 12px; }
    .footer-copy { font-size: 1rem; }
}

@media (max-width: 1200px) {
    .site-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-socials {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ============================================ */
/* КОНТАКТЫ — блок телефонов и соцсетей         */
/* ============================================ */
.contacts-block {
    max-width: 900px;
    margin: 40px auto;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}

.contacts-phones {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contacts-socials {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contacts-socials a {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    color: #59142D;
    text-decoration: none;
    opacity: 0.85;
    line-height: 1;
    transition: opacity 0.15s ease;
    white-space: nowrap;
}

.contacts-socials a:hover {
    opacity: 1;
}

.contacts-socials .arrow {
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    line-height: 1;
    transition: transform 0.15s ease;
}

.contacts-socials a:hover .arrow {
    transform: translate(3px, -3px);
}

@media (max-width: 700px) {
    .contacts-phones {
        flex-direction: column;
        align-items: center;
    }

    .contacts-socials {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================ */
/* КНОПКА ЛАЙКА                                 */
/* ============================================ */
.article-like-block {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #59142D;
    color: #59142D;
    font-family: 'Sofia Sans Condensed', Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.like-btn:hover {
    background: rgba(89, 20, 45, 0.08);
}

.like-btn .like-icon {
    font-size: 1.5rem;
    line-height: 1;
    color: #66152E;
}

.like-btn.liked {
    background: #59142D;
    color: #fff;
    border-color: #59142D;
}

.like-btn.liked .like-icon {
    color: #f2aec7;
}

.like-btn.liked:hover {
    background: #8a2149;
    border-color: #8a2149;
}

/* ============================================ */
/* СТАТИСТИКА В КАРТОЧКЕ: ЛАЙКИ + ПРОСМОТРЫ     */
/* ============================================ */
.blog-item-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 12px 0 16px;
}

/* Мини-версия кнопки лайка */
.like-btn-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: transparent;
    border: 2px solid #59142D;
    color: #59142D;
    font-family: 'Sofia Sans Condensed', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
}

.like-btn-small:hover {
    background: rgba(89, 20, 45, 0.08);
}

.like-btn-small .like-icon {
    font-size: 1.1rem;
    color: #66152E;
}

.like-btn-small.liked {
    background: #59142D;
    color: #fff;
    border-color: #59142D;
}

.like-btn-small.liked .like-icon {
    color: #f2aec7;
}

/* Просмотры */
.views-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Sofia Sans Condensed', Arial, sans-serif;
    font-size: 1rem;
    color: #9a8f95;
    line-height: 1;
}

.views-badge .views-icon {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Полноразмерная кнопка на странице статьи — оставляем */
.article-like-block {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #59142D;
    color: #59142D;
    font-family: 'Sofia Sans Condensed', Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.like-btn:hover {
    background: rgba(89, 20, 45, 0.08);
}

.like-btn .like-icon {
    font-size: 1.5rem;
    color: #66152E;
}

.like-btn.liked {
    background: #59142D;
    color: #fff;
    border-color: #59142D;
}

.like-btn.liked .like-icon {
    color: #f2aec7;
}

.like-btn.liked:hover {
    background: #8a2149;
    border-color: #8a2149;
}
/* ============================================ */
/* МОБИЛЬНАЯ ВЁРСТКА                            */
/* ============================================ */
@media (max-width: 900px) {

    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* ===== БЕЙДЖ ===== */
    .badge {
        height: auto;
        min-height: 72px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 14px;
        gap: 6px;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    /* Текст бейджа — на всю ширину, отдельной строкой */
    .badge-text {
        text-align: center;
        width: 100%;
        display: block;
        font-size: 0.85rem;
        margin: 0;
    }

    /* Блок иконок и телефонов — в одну строку */
    .badge-right {
        justify-content: center;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .badge-icon {
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .badge-phone {
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    /* ===== ХЕДЕР ===== */
    .topbar {
        top: 72px;
    }

    .topbar-inner {
        height: 60px;
        padding: 0 12px;
        gap: 12px;
    }

    .topbar-logo img {
        height: 40px;
    }

    .topbar-nav a {
        font-size: 1.1rem;
    }

    /* ===== КОНТЕНТ ===== */
    .site-main {
        padding-top: 150px;
        padding-left: 12px;
        padding-right: 12px;
    }

    /* ===== ФУТЕР ===== */
    .site-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 24px 16px;
    }

    .footer-col-left,
    .footer-col-center,
    .footer-col-right {
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    /* Иконки WA и TG — в одну строку */
    .footer-phones {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    /* Иконки — горизонтально */
    .footer-icon {
        display: inline-block;
    }

    /* Телефоны — вертикально */
    .footer-phones .badge-phone {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* Соцсети — вертикально */
    .footer-socials {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .footer-socials a {
        justify-content: center;
    }

    /* Водяной знак */
    .site-watermark {
        font-size: 2.2rem;
        letter-spacing: 0.05em;
    }
}

@media (max-width: 500px) {
    .site-watermark {
        font-size: 1.6rem;
    }

    .topbar-nav a {
        font-size: 1rem;
    }

    .badge-phone {
        font-size: 0.8rem;
    }

    .badge-icon {
        font-size: 1rem;
    }
}

.footer-icons-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 4px;
}

/* ============================================ */
/* СЕТКА БЮДЖЕТОВ (таунхаусы, дома, участки)     */
/* ============================================ */
.budget-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 40px auto 60px;
    padding: 0 24px;
}

.budget-card {
    /* Обычное состояние — белый фон без рамки */
    background: #ffffff;
    border: 3px solid transparent;
    border-radius: 16px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;

    text-decoration: none;
    color: #222;
    box-shadow: 0 2px 16px rgba(89, 20, 45, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    min-height: 240px;
}

.budget-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(89, 20, 45, 0.18);

    /* При наведении — появляется градиентная рамка */
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, #66ff00, #f2aec7, #66152E) border-box;
    border: 3px solid transparent;
}

.budget-icon {
    font-size: 2.5rem;
    font-weight: 700;
    color: #66152E;
    margin-bottom: 12px;
    line-height: 1;
    font-family: 'Orbitron', monospace;
}

.budget-title {
    font-size: 2rem;
    font-weight: 700;
    color: #59142D;
    margin: 0 0 12px;
    line-height: 1.2;
    font-family: 'Sofia Sans Condensed', Arial, sans-serif;
}

.budget-desc {
    font-size: 1.3rem;
    color: #464451;
    line-height: 1.5;
    margin: 0 0 20px;
    font-style: normal;
}

.budget-arrow {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #66152E;
    transition: transform 0.2s ease;
}

.budget-card:hover .budget-arrow {
    transform: translateX(6px);
}

/* Адаптив */
@media (max-width: 900px) {
    .budget-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 24px auto 40px;
        padding: 0 16px;
    }

    .budget-card {
        min-height: auto;
        padding: 28px 20px;
    }

    .budget-title {
        font-size: 1.5rem;
    }
}

/* ============================================ */
/* КАРТОЧКА ОБЪЕКТА (property detail)            */
/* ============================================ */
.property-detail {
    max-width: 1100px;
    margin: 40px auto 60px;
    padding: 0 24px;
}

.property-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.property-header h1 {
    margin: 0;
    font-size: 2.4rem;
    color: #59142D;
    text-align: left;
    clip-path: none;      /* отключаем анимацию прорисовки */
    animation: none;
}

.property-price {
    font-family: 'Orbitron', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    color: #66152E;
    margin: 0;
}

/* Галерея */
.property-gallery {
    margin-bottom: 32px;
}

.property-cover {
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f6f8;
    box-shadow: 0 4px 24px rgba(89, 20, 45, 0.1);
}

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

.property-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.property-thumb {
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f6f8;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.property-thumb:hover {
    opacity: 0.85;
}

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

/* Информация */
.property-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.property-info-block {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 2px 16px rgba(89, 20, 45, 0.06);
}

.property-info-block h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #59142D;
    margin: 0 0 16px;
    font-family: 'Sofia Sans Condensed', Arial, sans-serif;
}

.property-params {
    list-style: none;
    padding: 0;
    margin: 0;
}

.property-params li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(89, 20, 45, 0.08);
    font-size: 1.05rem;
    color: #222;
}

.property-params li:last-child {
    border-bottom: none;
}

.property-params span {
    color: #9a8f95;
}

.property-location,
.property-distance,
.property-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #222;
    font-style: normal;
    text-align: left;
    margin: 0 0 12px;
    max-width: none;
    opacity: 1;
    animation: none;
}

.property-description {
    grid-column: 1 / -1;
}

/* Кнопки действий */
.property-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(89, 20, 45, 0.1);
}

.property-back {
    display: inline-block;
    color: #59142D;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.15s ease;
}

.property-back:hover {
    color: #66ff00;
}

.property-favorite {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #66152E;
    color: #66152E;
    font-family: 'Sofia Sans Condensed', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.property-favorite:hover {
    background: #66152E;
    color: #ffffff;
}

.property-favorite .fav-icon {
    font-size: 1.2rem;
}

/* Адаптив */
@media (max-width: 900px) {
    .property-cover {
        height: 280px;
    }

    .property-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .property-header h1 {
        font-size: 1.8rem;
    }

    .property-price {
        font-size: 1.3rem;
    }

    .property-thumb {
        height: 80px;
    }

    .property-info-block {
        padding: 20px 24px;
    }
}

/* ============================================ */
/* ВИДЕО НА СТРАНИЦЕ ОБЪЕКТА                     */
/* ============================================ */
.property-video {
    margin-bottom: 32px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(89, 20, 45, 0.1);
    background: #000;
}

.property-video-player {
    display: block;
    width: 100%;
    height: auto;
    max-height: 600px;
    background: #000;
}

/* Если хочется задать фиксированную высоту — раскомментировать: */
/*
.property-video-player {
    height: 500px;
    object-fit: contain;
}
*/

@media (max-width: 900px) {
    .property-video-player {
        max-height: 320px;
    }
}

/* ============================================ */
/* МОДАЛЬНОЕ ОКНО "ОБ ИЗБРАННОМ"                 */
/* ============================================ */
.fav-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fav-modal[hidden] {
    display: none;
}

.fav-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(89, 20, 45, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

.fav-modal-content {
    position: relative;
    background: #faf8f5;
    border-radius: 20px;
    padding: 36px 32px 28px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(89, 20, 45, 0.3);
    font-family: 'Sofia Sans Condensed', Arial, sans-serif;
    animation: fav-modal-appear 0.3s ease;
}

@keyframes fav-modal-appear {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.fav-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #59142D;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    transition: color 0.15s ease;
}

.fav-modal-close:hover {
    color: #66152E;
}

.fav-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #59142D;
    margin: 0 0 16px;
    text-align: center;
}

.fav-modal-text {
    font-size: 1.05rem;
    line-height: 1.5;
    color: #222;
    margin: 0 0 12px;
    text-align: left;
}

.fav-modal-text-small {
    font-size: 0.9rem;
    color: #6a6068;
    margin-top: 16px;
}

.fav-modal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.fav-modal-list li {
    padding: 6px 0 6px 24px;
    position: relative;
    font-size: 1rem;
    line-height: 1.5;
    color: #222;
}

.fav-modal-list li::before {
    content: "•";
    position: absolute;
    left: 6px;
    color: #66152E;
    font-weight: 700;
}

.fav-modal-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 12px 24px;
    background: #66152E;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-family: 'Sofia Sans Condensed', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.fav-modal-btn:hover {
    background: #8a2149;
}

/* ============================================ */
/* СЕТКА ОБЪЕКТОВ (property-list)                */
/* ============================================ */
.property-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 32px auto 60px;
    padding: 0 24px;
}

.property-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 16px rgba(89, 20, 45, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 3px solid transparent;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(89, 20, 45, 0.18);
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, #66ff00, #f2aec7, #66152E) border-box;
    border: 3px solid transparent;
}

.property-card-video {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: #000;
}

.property-card-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #f5f6f8, #e7e5fa);
}

.property-card-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.property-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #59142D;
    margin: 0 0 6px;
    line-height: 1.3;
    font-family: 'Sofia Sans Condensed', Arial, sans-serif;
}

.property-card-type {
    font-size: 0.9rem;
    color: #9a8f95;
    margin: 0 0 12px;
    font-style: normal;
    text-align: left;
}

.property-card-price {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: #66152E;
    margin: auto 0 0;
    font-style: normal;
    text-align: left;
}

.filter-back {
    display: inline-block;
    color: #59142D;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.15s ease;
}

.filter-back:hover {
    color: #66ff00;
}

/* Адаптив */
@media (max-width: 900px) {
    .property-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .property-card-video,
    .property-card-placeholder {
        height: 180px;
    }
}

@media (min-width: 901px) and (max-width: 1100px) {
    .property-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================ */
/* КНОПКА "В ИЗБРАННОЕ" (на карточке объекта)   */
/* ============================================ */
.favorite-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #66152E;
    color: #66152E;
    font-family: 'Sofia Sans Condensed', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.favorite-btn:hover {
    background: rgba(102, 21, 46, 0.08);
}

.favorite-btn .fav-icon {
    font-size: 1.3rem;
    line-height: 1;
    color: #f2aec7;
    transition: color 0.2s ease;
}

.favorite-btn.active {
    background: #66152E;
    color: #f2aec7;
    border-color: #66152E;
}

.favorite-btn.active .fav-icon {
    color: #66ff00;
}

.favorite-btn.active:hover {
    background: #8a2149;
    border-color: #8a2149;
}

/* ============================================ */
/* КНОПКА "ИЗБРАННОЕ" ПОД ХЕДЕРОМ               */
/* ============================================ */
.favorites-wrap {
    position: fixed;
    top: 130px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 998;
}

.favorites-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.25);   /* ← полупрозрачный белый */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #66152E;
    text-decoration: none;
    font-family: 'Sofia Sans Condensed', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 30px;
    border: 2px solid #66152E;
    box-shadow: 0 4px 16px rgba(102, 21, 46, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.favorites-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 21, 46, 0.2);
    background: rgba(255, 255, 255, 0.45);
}

.favorites-btn i {
    font-size: 1.1rem;
    color: #f2aec7;                 /* ← розовое сердечко */
}
/* ============================================ */
/* ИНФО-БЛОК НА СТРАНИЦЕ "ИЗБРАННОЕ"            */
/* ============================================ */
.favorites-note {
    max-width: 720px;
    margin: 24px auto 32px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(102, 21, 46, 0.15);
    border-radius: 16px;
    font-family: 'Sofia Sans Condensed', Arial, sans-serif;
    color: #222;
}

.favorites-note p {
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0 0 12px;
    font-style: normal;
    text-align: left;
    max-width: none;
    opacity: 1;
    animation: none;
}

.favorites-note ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.favorites-note ul li {
    padding: 4px 0 4px 24px;
    position: relative;
    font-size: 1rem;
    line-height: 1.5;
}

.favorites-note ul li::before {
    content: "•";
    position: absolute;
    left: 6px;
    color: #66152E;
    font-weight: 700;
}

.favorites-note-small {
    font-size: 0.9rem !important;
    color: #6a6068;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
}

/* ============================================ */
/* АДАПТИВ                                       */
/* ============================================ */
@media (max-width: 900px) {
    .favorites-wrap {
        top: auto;
        bottom: 20px;
        left: 16px;
        gap: 6px;
    }

    .favorites-btn {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}