/* ============================================
   КУБАНЬ НЕДВИЖИМОСТЬ — Real Estate
   Palette: Emerald / Sand / Ivory / Navy
   ============================================ */

:root {
    --emerald: #0F5132;
    --emerald-dark: #0A3D26;
    --emerald-light: #1E7A4F;
    --mint: #D4E9DD;
    --gold: #C9A14A;
    --gold-light: #E0C176;
    --sand: #F6F1E7;
    --ivory: #FCFAF5;
    --navy: #1A2530;
    --white: #ffffff;
    --text-dark: #1A2530;
    --text: #2A3641;
    --text-muted: #6B7785;
    --border: rgba(26, 37, 48, 0.1);

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Manrope', -apple-system, sans-serif;

    --shadow-sm: 0 4px 12px rgba(26, 37, 48, 0.06);
    --shadow-md: 0 12px 32px rgba(26, 37, 48, 0.1);
    --shadow-lg: 0 24px 60px rgba(26, 37, 48, 0.16);

    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --radius: 10px;
    --radius-sm: 6px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--ivory);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

em { font-style: italic; color: var(--emerald-light); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 32px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.btn-primary {
    background: var(--emerald);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--emerald-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 81, 50, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover {
    background: var(--white);
    color: var(--emerald-dark);
    border-color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--emerald);
    border: 1px solid var(--emerald);
}
.btn-outline:hover {
    background: var(--emerald);
    color: var(--white);
}

.btn-nav {
    padding: 11px 24px;
    font-size: 12px;
    background: var(--emerald);
    color: var(--white);
}
.btn-nav:hover { background: var(--emerald-dark); }

.btn-sm { padding: 12px 22px; font-size: 12px; }
.btn-block { width: 100%; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 22px 0;
    transition: var(--transition);
    background: transparent;
}
.navbar.scrolled {
    padding: 14px 0;
    background: rgba(252, 250, 245, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}
.navbar.scrolled .nav-link,
.navbar.scrolled .logo-text { color: var(--navy); }
.navbar.scrolled .logo-icon { color: var(--emerald); }

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
    transition: var(--transition);
}
.logo-icon { color: var(--gold-light); font-size: 20px; }
.logo-text em { color: var(--gold-light); font-style: italic; }

.nav-menu {
    display: flex;
    gap: 32px;
}
.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    position: relative;
    transition: var(--transition);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 1px;
    background: var(--emerald-light);
    transition: var(--transition);
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--gold-light); }

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.hamburger span {
    width: 28px; height: 2px;
    background: var(--white);
    transition: var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--navy); }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?w=1920&q=85') center/cover no-repeat;
    background-color: var(--navy);
    overflow: hidden;
    padding: 120px 0 50px;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15, 81, 50, 0.85) 0%, rgba(26, 37, 48, 0.7) 60%, rgba(26, 37, 48, 0.5) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 32px;
    margin: 0 auto;
    width: 100%;
}
.hero-eyebrow {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 24px;
    font-weight: 600;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(42px, 6.5vw, 76px);
    font-weight: 600;
    line-height: 1.08;
    margin-bottom: 24px;
    color: var(--white);
    max-width: 720px;
}
.hero-title em {
    color: var(--gold-light);
    font-weight: 500;
}
.hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    max-width: 560px;
    margin: 0 0 36px;
    color: rgba(255,255,255,0.92);
    line-height: 1.7;
}

/* Search Card */
.search-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 40px;
    max-width: 820px;
}
.search-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
}
.search-tab {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}
.search-tab.active {
    color: var(--emerald);
    border-bottom-color: var(--emerald);
}
.search-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1px;
    background: var(--border);
}
.search-field {
    background: var(--white);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
}
.search-field label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.search-field select {
    border: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    padding: 2px 0;
    outline: none;
}
.search-btn {
    border-radius: 0;
    padding: 0 36px;
    margin: 12px 16px 12px 0;
}

.hero-stats {
    display: flex;
    gap: 48px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats span {
    font-family: var(--font-serif);
    font-size: 38px;
    color: var(--gold-light);
    line-height: 1;
    font-weight: 600;
}
.hero-stats p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-eyebrow {
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--emerald-light);
    font-weight: 700;
    margin-bottom: 14px;
}
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 600;
    line-height: 1.12;
    color: var(--navy);
    margin-bottom: 22px;
    letter-spacing: -0.5px;
}
.section-text {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.8;
}
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

/* ============================================
   ABOUT
   ============================================ */
.about { padding: 120px 0; background: var(--ivory); }
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 72px;
    align-items: center;
}
.about-features {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.feature-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 52px; height: 52px;
    background: var(--mint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature strong {
    display: block;
    font-size: 15px;
    color: var(--navy);
    margin-bottom: 4px;
}
.feature p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}
.about-image { position: relative; }
.about-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/5;
    object-fit: cover;
}
.image-stats {
    position: absolute;
    bottom: -24px; left: -24px;
    background: var(--emerald);
    padding: 24px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.img-stat span {
    font-family: var(--font-serif);
    font-size: 40px;
    color: var(--gold-light);
    line-height: 1;
    font-weight: 600;
    display: block;
}
.img-stat p {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    margin: 6px 0 0;
}

/* ============================================
   CATALOG
   ============================================ */
.catalog { padding: 120px 0; background: var(--sand); }
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}
.property-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}
.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.property-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.property-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.property-card:hover .property-img img { transform: scale(1.08); }
.property-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--emerald);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 4px;
}
.property-type {
    position: absolute;
    top: 14px; right: 14px;
    background: rgba(255,255,255,0.95);
    color: var(--navy);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
}
.property-info { padding: 24px; }
.property-price {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 600;
    color: var(--emerald-dark);
    margin-bottom: 8px;
}
.property-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}
.property-location {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.property-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.property-tags span {
    font-size: 12px;
    color: var(--text);
    background: var(--mint);
    padding: 5px 12px;
    border-radius: 999px;
    font-weight: 500;
}
.catalog-cta {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.catalog-cta p {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--navy);
    font-style: italic;
}

/* ============================================
   SERVICES
   ============================================ */
.services { padding: 120px 0; background: var(--ivory); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.service-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border-bottom: 3px solid transparent;
}
.service-card:hover {
    border-bottom-color: var(--emerald);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.service-icon {
    font-size: 40px;
    margin-bottom: 18px;
    width: 76px; height: 76px;
    background: var(--mint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}
.service-card h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}
.service-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews { padding: 120px 0; background: var(--sand); }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.review-card {
    background: var(--white);
    padding: 36px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.stars {
    color: var(--gold);
    font-size: 18px;
    letter-spacing: 3px;
    margin-bottom: 20px;
}
.review-text {
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 24px;
    color: var(--text);
    font-style: italic;
}
.review-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.author-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--white);
}
.author-name { font-weight: 700; font-size: 15px; color: var(--navy); }
.author-meta { font-size: 13px; color: var(--emerald-light); }

/* ============================================
   CONSULT FORM
   ============================================ */
.consult {
    position: relative;
    padding: 120px 0;
    background: var(--emerald);
}
.consult-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1920&q=85') center/cover fixed no-repeat;
    opacity: 0.08;
}
.consult .section-title { color: var(--white); }
.consult .section-eyebrow { color: var(--gold-light); }
.consult-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    overflow: hidden;
    max-width: 1080px;
    margin: 0 auto;
}
.consult-info {
    padding: 56px 44px;
    background: var(--navy);
    color: var(--white);
}
.consult-info .section-title { color: var(--white); }
.consult-info .section-eyebrow { color: var(--gold-light); }
.consult-info .section-text { color: rgba(255,255,255,0.75); }
.consult-list {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.consult-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: rgba(255,255,255,0.9);
}
.consult-list span {
    width: 24px; height: 24px;
    background: var(--gold);
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.consult-form { padding: 56px 44px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.form-group { display: flex; flex-direction: column; }
.form-group label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--text-dark);
    background: var(--sand);
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--emerald);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.12);
}
.form-group.full { margin-bottom: 20px; }
.form-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 14px;
}
.form-success {
    display: none;
    margin-top: 16px;
    padding: 14px;
    background: var(--emerald);
    color: var(--white);
    text-align: center;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
}
.form-success.show { display: block; animation: fadeIn 0.4s; }

/* ============================================
   CONTACTS
   ============================================ */
.contacts { padding: 120px 0; background: var(--ivory); }
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 32px;
    align-items: stretch;
}
.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.contact-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.contact-icon {
    font-size: 30px;
    margin-bottom: 14px;
    width: 60px; height: 60px;
    background: var(--mint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.contact-card h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 8px;
}
.contact-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}
.contact-card a:hover { color: var(--emerald); }
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 420px;
    box-shadow: var(--shadow-md);
    background: var(--sand);
}
.map-container iframe { border: 0; min-height: 420px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.65);
    padding: 80px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 56px;
}
.footer .logo { color: var(--white); margin-bottom: 18px; }
.footer-tagline {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
    opacity: 0.7;
}
.social-links { display: flex; gap: 20px; }
.social-links a {
    font-size: 13px;
    color: var(--gold-light);
    transition: var(--transition);
}
.social-links a:hover { color: var(--white); }
.footer-col h4 {
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    text-transform: none;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
    font-size: 14px;
    opacity: 0.7;
    transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--gold-light); opacity: 1; }
.footer-col > p {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 16px;
    line-height: 1.6;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    opacity: 0.5;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; max-width: 320px;
        height: 100vh;
        background: var(--ivory);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        gap: 24px;
        transition: right 0.4s ease;
        box-shadow: var(--shadow-lg);
    }
    .nav-menu.active { right: 0; }
    .nav-menu .nav-link { color: var(--navy); font-size: 18px; }
    .btn-nav { display: none; }
    .hamburger { display: flex; }

    .about-grid,
    .consult-card,
    .contacts-grid { grid-template-columns: 1fr; }
    .about { padding: 80px 0; }
    .about-features { grid-template-columns: 1fr; }
    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: 1fr; }
    .consult-info,
    .consult-form { padding: 40px 28px; }
    .search-form { grid-template-columns: 1fr 1fr; }
    .search-btn { grid-column: span 2; margin: 16px; padding: 14px; }
    .hero-stats { gap: 28px; flex-wrap: wrap; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 560px) {
    .container, .nav-container, .hero-content { padding: 0 20px; }
    .catalog-grid,
    .services-grid,
    .reviews-grid,
    .contact-cards,
    .search-form { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .search-btn { grid-column: span 1; }
    .hero-stats { gap: 24px; }
    .hero-stats span { font-size: 30px; }
}
