/* =============================================
   IMPERA PLATINUM — Premium Real Estate Website
   ============================================= */

:root {
    --olive: #6B7A2F;
    --olive-dark: #556220;
    --olive-light: #8A9D3F;
    --dark: #1A1A1A;
    --dark-bg: #111111;
    --text: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --off-white: #F8F8F6;
    --border: #E0E0E0;
    --card-bg: #FAFAFA;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', 'Georgia', serif;
    line-height: 1.2;
    color: var(--dark);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--olive);
    color: var(--white);
    border-color: var(--olive);
}

.btn-primary:hover {
    background: var(--olive-dark);
    border-color: var(--olive-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 122, 47, 0.3);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.btn-outline-dark {
    background: transparent;
    color: var(--dark);
    border-color: var(--dark);
}

.btn-outline-dark:hover {
    background: var(--dark);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

/* NAVIGATION */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 48px;
    transition: var(--transition);
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav.scrolled {
    background: rgba(17,17,17,0.95);
    padding: 14px 48px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.15em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 400;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--olive-light);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 12px;
}

.nav-actions .btn {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17,17,17,0.98);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-link {
    color: var(--white);
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    transition: var(--transition);
}

.mobile-link:hover {
    color: var(--olive-light);
}

/* HERO */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('images/hero-bg.png') center/cover no-repeat;
    background-color: var(--dark-bg);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: var(--white);
    letter-spacing: 0.2em;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 40px;
    line-height: 1.7;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* STATS */
.stats {
    background: var(--white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(0,0,0,0.1);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 0.02em;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark);
    text-transform: lowercase;
    position: relative;
    padding-top: 12px;
}

.stat-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--olive);
}

.stat-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
    padding: 0 8px;
}

/* ABOUT */
.about {
    padding: 100px 0;
}

.about-premium {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.about-premium-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-premium-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--olive);
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.about-premium-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-premium-content p {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.7;
}

.check-list {
    list-style: none;
    margin-bottom: 32px;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text);
    line-height: 1.6;
    font-size: 0.95rem;
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    background: var(--olive);
    border-radius: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8l3 3 5-5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.about-buttons {
    display: flex;
    gap: 16px;
}

.about-construction {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-construction-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-construction-content p {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.7;
}

.about-construction-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-construction-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* INVESTMENT */
.investment {
    padding: 100px 0;
    background: var(--off-white);
}

.investment-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.investment-intro h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.investment-intro p {
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.investment-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.invest-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.invest-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.invest-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.invest-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.invest-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.invest-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* SMART HOME */
.smart-home {
    padding: 100px 0;
}

.smart-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.smart-home-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.smart-home-content > p {
    color: var(--text-light);
    margin-bottom: 36px;
    line-height: 1.7;
}

.apartments-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.apartment-card {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition);
}

.apartment-card:hover {
    border-color: var(--olive);
    box-shadow: var(--shadow);
}

.apartment-type {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.apartment-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--olive-dark);
}

.smart-home-buttons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.smart-home-images {
    display: flex;
    align-items: center;
    justify-content: center;
}

.smart-home-images img {
    width: 100%;
    max-width: 560px;
    height: auto;
    border-radius: var(--radius-lg);
}

/* AMENITIES */
.amenities {
    padding: 100px 0;
    background: var(--white);
}

.amenity-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
    margin-bottom: 80px;
}

.amenity-block:last-child {
    margin-bottom: 0;
}

.amenity-block.reverse {
    grid-template-columns: 1.1fr 1fr;
}

.amenity-divider {
    width: 60px;
    height: 3px;
    background: var(--olive);
    margin-bottom: 24px;
}

.amenity-content h2 {
    font-size: 1.7rem;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    font-weight: 700;
}

.amenity-content > p {
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 0.92rem;
}

.amenity-content ul {
    list-style: none;
    margin-bottom: 24px;
}

.amenity-content ul li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text);
}

.amenity-content ul li::before {
    content: '·';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.amenity-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: none;
}

.amenity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CONTACT */
.contact {
    padding: 100px 0;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.contact-wrapper > p {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input {
    width: 100%;
    padding: 16px 24px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.contact-form input::placeholder {
    color: #AAAAAA;
}

.contact-form input:focus {
    border-color: var(--olive);
    box-shadow: 0 0 0 3px rgba(107, 122, 47, 0.1);
}

.contact-form .btn {
    margin-top: 8px;
    padding: 18px 32px;
    font-size: 1rem;
}

/* LOCATION */
.location {
    padding: 80px 0;
    background: var(--dark-bg);
    color: var(--white);
}

.location-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.location-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.location-map img,
.location-map iframe {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.location-content h2 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.location-content p {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    font-size: 1rem;
}

/* FOOTER */
.footer {
    background: var(--dark);
    padding: 48px 0;
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.15em;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-copy {
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
}

/* ANIMATIONS */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   RESPONSIVE — Tablet
   ============================================= */

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .stat-item:nth-child(3)::after {
        display: none;
    }

    .about-premium,
    .about-construction,
    .investment-grid,
    .smart-home-grid,
    .amenity-block,
    .amenity-block.reverse,
    .location-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-premium-image img,
    .about-construction-image img {
        height: 350px;
    }

    .amenity-image img {
        height: auto;
    }

    .investment-cards {
        grid-template-columns: 1fr 1fr;
    }
}

/* =============================================
   RESPONSIVE — Mobile (iPhone 16 Pro Max design)
   ============================================= */

@media (max-width: 768px) {

    /* NAV */
    .nav-links,
    .nav-actions {
        display: none;
    }

    .burger {
        display: flex;
    }

    .nav {
        padding: 16px 20px;
    }

    .container {
        padding: 0 20px;
    }

    /* HERO */
    .hero {
        min-height: 100vh;
    }

    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: 0.12em;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 32px;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 12px;
    }

    .hero-buttons .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }

    /* STATS — 2x2 grid with Smart Home on top */
    .stats {
        padding: 48px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
        text-align: center;
    }

    .stat-item::after {
        display: none;
    }

    /* Smart Home stat spans full width on top */
    .stat-item:nth-child(3) {
        grid-column: 1 / -1;
        order: -1;
    }

    .stat-item:nth-child(3) .stat-number {
        font-size: 2.2rem;
    }

    .stat-item:nth-child(3) .stat-label {
        font-size: 1.1rem;
        font-style: italic;
    }

    /* Reorder: 500m, 100%, then 30%, 24/7 */
    .stat-item:nth-child(1) { order: 0; }
    .stat-item:nth-child(2) { order: 1; }
    .stat-item:nth-child(4) { order: 2; }
    .stat-item:nth-child(5) { order: 3; }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .stat-desc {
        font-size: 0.75rem;
    }

    /* ABOUT — single column, image on top */
    .about {
        padding: 60px 0;
    }

    .about-premium,
    .about-construction {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-premium {
        margin-bottom: 60px;
    }

    .about-premium-image {
        order: -1;
    }

    .about-premium-image img,
    .about-construction-image img {
        height: auto;
        border-radius: var(--radius);
    }

    .about-premium-content h2,
    .about-construction-content h2 {
        font-size: 1.6rem;
    }

    .about-premium-content p,
    .about-construction-content p {
        font-size: 0.9rem;
    }

    .check-list li {
        font-size: 0.88rem;
    }

    .about-buttons {
        flex-direction: row;
        gap: 12px;
    }

    .about-buttons .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }

    /* INVESTMENT — single column cards, icon left + text right */
    .investment {
        padding: 60px 0;
    }

    .investment-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .investment-intro {
        text-align: center;
    }

    .investment-intro h2 {
        font-size: 1.8rem;
    }

    .investment-intro p {
        font-size: 0.95rem;
    }

    .investment-intro .btn {
        display: none;
    }

    .investment-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .invest-card {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
        border-radius: var(--radius);
    }

    .invest-card:hover {
        transform: none;
    }

    .invest-icon {
        width: 52px;
        height: 52px;
        min-width: 52px;
        margin-bottom: 0;
    }

    .invest-card-text {
        flex: 1;
    }

    .invest-card h3 {
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .invest-card p {
        font-size: 0.82rem;
    }

    /* Show "Смотреть" button below cards on mobile */
    .investment-cards::after {
        content: '';
        display: block;
        grid-column: 1 / -1;
    }

    .investment-mobile-btn {
        display: block;
        text-align: center;
        margin-top: 24px;
    }

    /* SMART HOME — single column */
    .smart-home {
        padding: 60px 0;
    }

    .smart-home-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .smart-home-content h2 {
        font-size: 2rem;
    }

    .smart-home-content > p {
        font-size: 0.9rem;
    }

    .apartments-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .apartment-card {
        padding: 18px 20px;
    }

    .smart-home-images img {
        max-width: 100%;
        border-radius: var(--radius);
    }

    .smart-home-buttons {
        gap: 12px;
    }

    .smart-home-buttons .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }

    /* AMENITIES — single column, stacked */
    .amenities {
        padding: 60px 0;
    }

    .amenity-block,
    .amenity-block.reverse {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 48px;
    }

    .amenity-content h2 {
        font-size: 1.4rem;
    }

    .amenity-content > p {
        font-size: 0.85rem;
    }

    .amenity-content ul li {
        font-size: 0.82rem;
    }

    .amenity-image {
        border-radius: var(--radius);
    }

    .amenity-image img {
        height: auto;
    }

    /* CONTACT — centered, full width */
    .contact {
        padding: 60px 0;
    }

    .contact-wrapper h2 {
        font-size: 1.6rem;
    }

    .contact-wrapper > p {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }

    .contact-form input {
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    .contact-form .btn {
        padding: 16px 24px;
        font-size: 0.95rem;
    }

    /* LOCATION — single column */
    .location {
        padding: 48px 0;
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .location-map img,
    .location-map iframe {
        height: 280px;
    }

    .location-content h2 {
        font-size: 1.5rem;
    }

    .location-content p {
        font-size: 0.9rem;
    }

    /* FOOTER */
    .footer {
        padding: 36px 0;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }

    .footer-links a {
        font-size: 0.85rem;
    }
}

/* =============================================
   RESPONSIVE — Small phones
   ============================================= */

@media (max-width: 380px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .investment-intro h2 {
        font-size: 1.5rem;
    }
}
