/* ===== Общие ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0b0b0e;
    background-image: radial-gradient(circle at 10% 20%, #1a1a24 0%, #0b0b0e 90%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
    padding: 2rem 1.5rem;
    color: #ececec;
}

.container {
    max-width: 1380px;
    width: 100%;
}

/* ===== Шапка ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid rgba(255, 215, 150, 0.2);
    padding-bottom: 1.2rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}

.brand h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 2.8rem;
    letter-spacing: -0.02em;
    /* background: linear-gradient(135deg, #f5e3d0 0%, #dbbd9a 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; */
    color: #f5e3d0;                    /* сплошной светлый цвет */
    text-shadow: 0 1px 2px rgba(220, 180, 130, 0.15); /* лёгкое свечение как у градиента */
    /* background-clip: text; */
    line-height: 1.1;
}

.brand h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 1.8rem;
    letter-spacing: -0.02em;
    /* background: linear-gradient(135deg, #f5e3d0 0%, #dbbd9a 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; */
    color: #f5e3d0;                    /* сплошной светлый цвет */
    text-shadow: 0 1px 2px rgba(220, 180, 130, 0.15); /* лёгкое свечение как у градиента */
    background-clip: text;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-align: center;
}

.brand p {
    font-size: 1.3rem;
    font-weight: 300;
    /* letter-spacing: 0.05em; */
    color: #b8aa9a;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    /* text-transform: uppercase; */
    text-align: center;
}

.brand .sub {
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: #b8aa9a;
    margin-top: 0.2rem;
    text-transform: uppercase;
}

.contact-highlight {
    background: rgba(220, 180, 130, 0.08);
    backdrop-filter: blur(4px);
    padding: 0.9rem 2rem;
    border-radius: 60px;
    border: 1px solid rgba(220, 180, 130, 0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.contact-highlight .label {
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: #c6b6a4;
}

.contact-highlight .phone {
    font-size: 1.7rem;
    font-weight: 600;
    /* background: linear-gradient(135deg, #f5e3d0, #dbbd9a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; */
    color: #f5e3d0;                    /* сплошной светлый цвет */
    text-shadow: 0 1px 2px rgba(220, 180, 130, 0.15); /* лёгкое свечение как у градиента */
    /* background-clip: text;
    text-decoration: none;
    transition: 0.2s; */
}

.contact-highlight .phone:hover {
    transform: scale(1.02);
    filter: brightness(1.2);
}

/* ===== Сетка ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.2rem;
    margin-top: 1rem;
}

/* ===== Преимущества ===== */
.features {
    margin: 0 0 3.5rem;
    padding: 2.8rem 2rem;
    background: linear-gradient(145deg, rgba(30, 30, 38, 0.6), rgba(20, 20, 26, 0.6));
    border: 1px solid rgba(220, 180, 130, 0.12);
    border-radius: 32px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

/* Декоративное свечение внутри блока */
.features::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 200px;
    background: radial-gradient(ellipse, rgba(220, 180, 130, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem 2.5rem;
    position: relative;
    z-index: 1;
}

.feature {
    text-align: center;
    padding: 0.5rem;
    position: relative;
}

/* Тонкая вертикальная линия-разделитель между блоками (только на широких экранах) */
@media (min-width: 1024px) {
    .feature:not(:last-child)::after {
        content: '';
        position: absolute;
        right: -1.25rem;
        top: 10%;
        height: 80%;
        width: 1px;
        background: linear-gradient(180deg, transparent 0%, rgba(220, 180, 130, 0.2) 50%, transparent 100%);
    }
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(220, 180, 130, 0.12), rgba(220, 180, 130, 0.04));
    border: 1px solid rgba(220, 180, 130, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Центрирование по горизонтали */
    margin: 0 auto 1.2rem;
    color: #dbbd9a;
    transition: 0.35s ease;
    box-shadow: 0 8px 24px -8px rgba(220, 180, 130, 0.15);
}

.feature-icon svg {
    width: 26px;
    height: 26px;
}

.feature:hover .feature-icon {
    transform: translateY(-3px);
    background: linear-gradient(145deg, rgba(220, 180, 130, 0.22), rgba(220, 180, 130, 0.08));
    border-color: rgba(220, 180, 130, 0.45);
    box-shadow: 0 12px 30px -8px rgba(220, 180, 130, 0.35);
    color: #f5e3d0;
}

.feature h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #f5e3d0;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.feature p {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.6;
    color: #a89b8c;
    letter-spacing: 0.01em;
}

/* ===== Адаптив ===== */
@media (max-width: 640px) {
    .features {
        padding: 2rem 1.4rem;
        border-radius: 24px;
        margin-bottom: 2.5rem;
    }
    .features-grid {
        gap: 1.8rem;
    }
    .feature-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        margin-bottom: 0.9rem;
    }
    .feature-icon svg {
        width: 22px;
        height: 22px;
    }
    .feature h3 {
        font-size: 1.15rem;
    }
    .feature p {
        font-size: 0.85rem;
    }
}


/* ===== Карточка-флип ===== */
.flip-card {
    background-color: transparent;
    height: 400px;
    perspective: 1400px;
    -webkit-perspective: 1400px;
    isolation: isolate;
    cursor: pointer;
    min-height: 400px;
    max-height: 400px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    border-radius: 28px;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8);
    min-height: 400px;
    max-height: 400px;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 28px;
    overflow: hidden;
    background: #18181e;
    border: 1px solid rgba(220, 180, 130, 0.15);
    min-height: 400px;
    max-height: 400px;

        /* Убираем размытие текста на iOS */
    -webkit-font-smoothing: antialiased;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.flip-card-front {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem 1.8rem;
    position: relative;
}

/* ===== Слайдер ===== */
.slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 28px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slide.active {
    opacity: 1;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    color: #f5e3d0;
    border: 1px solid rgba(220, 180, 130, 0.3);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: 0.2s;
    opacity: 0;
}

.flip-card-front:hover .slider-nav {
    opacity: 1;
}

.slider-nav:hover {
    background: rgba(220, 180, 130, 0.3);
}

.slider-nav.prev { left: 12px; }
.slider-nav.next { right: 12px; }

.slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 4;
    opacity: 0;
    transition: 0.2s;
}

.flip-card-front:hover .slider-dots {
    opacity: 1;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: 0.2s;
}

.dot.active {
    background: #dbbd9a;
    width: 18px;
    border-radius: 3px;
}

/* ===== Оверлей и контент ===== */
.flip-card-front::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
    border-radius: 28px;
    z-index: 1;
}

.front-content {
    position: relative;
    z-index: 2;
}

.front-content .price {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 500;
    color: #f5e3d0;
    margin-bottom: 0.25rem;
}

.front-content .price small {
    font-size: 1rem;
    font-weight: 300;
    color: #b8aa9a;
    margin-left: 0.3rem;
}

.front-content .title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #f5e3d0;
    margin-bottom: 0.3rem;
}

.flip-card-back .desc {
    font-weight: 320;
    font-size: 1rem;
    color: #cfc1b0;
    opacity: 0.9;
    padding: 0.9rem;
}

.front-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(220, 180, 130, 0.75);
    backdrop-filter: blur(8px);
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    border: 1px solid rgba(220, 180, 130, 0.75);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ffe7cc;
    z-index: 3;
}

/* ===== Задняя сторона ===== */
.flip-card-back {
    transform: rotateY(180deg);
    background: #121217;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    border: 1px solid rgba(220, 180, 130, 0.2);
}

.flip-card-back .map-container {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #1e1e26;
    min-height: 300px;
}

.flip-card-back .map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(0.9) hue-rotate(180deg) saturate(0.7);
    border-radius: 20px;
    min-height: 300px;
}

.back-hint {
    margin-top: 0.8rem;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: #d7d2cc;
    text-transform: uppercase;
    font-weight: 300;
    position: absolute;
    bottom: 1.5rem;

}

/* ===== Футер ===== */
.footer-note {
    margin-top: 4rem;
    text-align: center;
    font-weight: 300;
    font-size: 0.8rem;
    color: #5f5549;
    letter-spacing: 0.05em;
    border-top: 1px solid rgba(220, 180, 130, 0.08);
    padding-top: 2rem;
}

/* ===== Ссылка на админку ===== */
.admin-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(220, 180, 130, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(220, 180, 130, 0.3);
    color: #dbbd9a;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    font-size: 0.8rem;
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: 0.2s;
    z-index: 999;
}

.admin-link:hover {
    background: rgba(220, 180, 130, 0.3);
}

/* ===== Адаптив ===== */
@media (max-width: 640px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
    .brand h1 { font-size: 2.2rem; }
    .contact-highlight {
        padding: 0.6rem 1.5rem;
        width: 100%;
        justify-content: center;
    }
    .contact-highlight .phone { font-size: 1.4rem; }
    .grid { gap: 1.5rem; }
    .flip-card,
    .flip-card-inner,
    .flip-card-front,
    .flip-card-back {
        height: 360px;
        min-height: 360px;
        max-height: 360px;
    }
    .flip-card-back .map-container,
    .flip-card-back .map-container iframe {
        min-height: 260px;
    }
    .slider-nav { opacity: 1; }
    .slider-dots { opacity: 1; }
}