/* ===== Section header (переиспользуемый) ===== */

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    margin-bottom: 40px;
}

.section-header__label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-gold-600);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}
.section-header__label-line {
    width: 24px;
    height: 1px;
    background: var(--color-gold-600);
}

.section-header__title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(26px, 3vw, 36px);
    color: var(--color-dark-950);
    margin: 0 0 12px;
}

.section-header__description {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    color: #5b6270;
    max-width: 640px;
    margin: 0;
}

.section-header__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid var(--color-gold-600);
    border-radius: 999px;
    color: var(--color-gold-600);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}
.section-header__cta svg { width: 16px; height: 16px; }
.section-header__cta:hover {
    background: var(--color-gold-600);
    color: #fff;
}

/* ===== Best projects — Swiper ===== */

.best-projects {
    width: 100%;
}

.best-projects__swiper {
    width: 100%;
    padding-bottom: 44px;
}

.best-projects__swiper .swiper-wrapper {
    /* высота под 2 ряда карточек, чтобы grid rows работал предсказуемо */
}

.best-projects__pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.best-projects__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #d8dbe0;
    opacity: 1;
    border-radius: 999px;
    transition: background 0.2s ease, width 0.2s ease;
}
.best-projects__pagination .swiper-pagination-bullet-active {
    background: var(--color-gold-600);
    width: 22px;
}

/* ===== Карточка ЖК ===== */

.zhk-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.zhk-card:hover {
    box-shadow: 0 12px 32px rgba(17, 22, 34, 0.1);
    transform: translateY(-3px);
}

.zhk-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-dark-900);
}
.zhk-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zhk-card__rating {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--color-gold-500);
    color: var(--color-dark-950);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
}
.zhk-card__rating svg { width: 13px; height: 13px; }

.zhk-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 18px 20px;
    flex: 1;
}

.zhk-card__title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 19px;
    color: var(--color-dark-950);
    text-decoration: none;
}

.zhk-card__location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: #8a90a0;
}
.zhk-card__location svg { width: 13px; height: 13px; }

.zhk-card__meta {
    display: flex;
    gap: 16px;
    margin: 10px 0 4px;
    flex-wrap: wrap;
}

.zhk-card__meta-item {
    display: flex;
    flex-direction: column;
}
.zhk-card__meta-value {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-dark-950);
}
.zhk-card__meta-label {
    font-family: var(--font-sans);
    font-size: 11px;
    color: #a2a7b3;
}

.zhk-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: var(--color-gold-600);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.zhk-card__link svg { width: 14px; height: 14px; }

@media (max-width: 640px) {
    .section-header {
        flex-direction: column;
    }
}