/*
 * ==============================================
 * ПЕРЕМЕННЫЕ ДЛЯ ТЕМЫ (CSS Variables)
 * ==============================================
 */
:root {
    /* Светлая тема (по умолчанию) */
    --color-bg: #f8fafc; /* slate-50 */
    --color-bg-alt: #ffffff; /* white */
    --color-card-bg: #ffffff; /* white */
    --color-text: #1e293b; /* slate-800 */
    --color-text-muted: #64748b; /* slate-500 */
    --color-border: #e2e8f0; /* slate-200 */
    --color-primary: #0d9488; /* teal-600 */
    --color-primary-hover: #0f766e; /* teal-700 */
    --color-primary-light: #ccfbf1; /* teal-50 */
    --color-primary-text: #134e4a; /* teal-900 */
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

html.dark {
    /* Темная тема */
    --color-bg: #0f172a; /* slate-900 */
    --color-bg-alt: #1e293b; /* slate-800 */
    --color-card-bg: #1e293b; /* slate-800 */
    --color-text: #e2e8f0; /* slate-200 */
    --color-text-muted: #94a3b8; /* slate-400 */
    --color-border: #334155; /* slate-700 */
    --color-primary: #2dd4bf; /* teal-400 */
    --color-primary-hover: #5eead4; /* teal-300 */
    --color-primary-light: #134e4a; /* teal-900 */
    --color-primary-text: #ccfbf1; /* teal-50 */
}

/*
 * ==============================================
 * БАЗОВЫЕ СТИЛИ И СБРОС
 * ==============================================
 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    padding-top: 4rem; /* Отступ для фикс. шапки */
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.container {
    max-width: 1120px; /* 70rem */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.hidden {
    display: none !important;
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/*
 * ==============================================
 * ШАПКА (HEADER)
 * ==============================================
 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: hsla(0, 0%, 100%, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

html.dark .header {
    background-color: hsla(222, 47%, 11%, 0.8);
}

.header-nav {
    height: 4rem; /* 64px */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* 8px */
    font-weight: 700;
    font-size: 0.9rem;  
    color: var(--color-text);
}

.logo-icon {
    height: 1.5rem; /* 24px */
    width: 1.5rem; /* 24px */
    color: var(--color-primary);
}

.nav-desktop {
    display: none; /* Скрыто на мобильных */
    align-items: center;
    gap: 1.5rem; /* 24px */
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem; /* 16px */
}

.lang-switch-desktop {
    display: none; /* Скрыто на мобильных */
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
}

.nav-link {
    position: relative;
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    color: var(--color-text-muted);
}

.nav-link.active {
    color: var(--color-primary);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: scaleX(1);
}

.lang-link-active {
    color: var(--color-primary)!important;
    font-weight: 700;
}

.control-btn {
    height: 2rem; /* 32px */
    width: 2rem; /* 32px */
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.control-btn:hover {
    color: var(--color-primary);
    background-color: var(--color-primary-light);
}

.control-btn svg {
    height: 1.25rem; /* 20px */
    width: 1.25rem; /* 20px */
}

.mobile-menu-toggle {
    display: flex; /* Показать на мобильных */
}

.mobile-menu {
    display: none; /* Скрыто по умолчанию */
    position: absolute;
    top: 4rem; /* Высота шапки */
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--color-bg-alt);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--color-border);
    padding: 1rem;
}

.mobile-menu.visible {
    display: block;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu-nav a {
    font-weight: 500;
    color: var(--color-text-muted);
}
.mobile-menu-nav a.active {
    color: var(--color-text);
}

.mobile-menu hr {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: 1rem 0;
}

.lang-switch-mobile {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}


/*
 * ==============================================
 * СЕКЦИЯ HERO (ГЛАВНАЯ)
 * ==============================================
 */
.hero-section {
    position: relative;
    height: 80vh; /* 80% высоты экрана */
    min-height: 500px;
    max-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Фоновое изображение (замените плейсхолдер) */
    background-image: url('/img/main.webp');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.5; /* Затемнение */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding-top: 4rem; /* Отступ от шапки */
}

.hero-text-content {
    max-width: 48rem; /* 768px */
    margin: 0 auto;
}

.hero-title {
    font-size: 2.25rem; /* 36px */
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem; /* 20px */
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding: 0.75rem 2rem;
    background-color: var(--color-primary);
    color: white;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}
html.dark .hero-button {
    color: var(--color-bg);
}

.hero-button:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.hero-button svg {
    width: 1.25rem; /* 20px */
    height: 1.25rem; /* 20px */
    transition: transform 0.2s ease;
}

.hero-button:hover svg {
    transform: translateX(4px);
}

/*
 * ==============================================
 * ОБЩИЕ СТИЛИ СЕКЦИЙ
 * ==============================================
 */
.section {
    padding-top: 5rem; /* 80px */
    padding-bottom: 5rem; /* 80px */
}

.section-alt {
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.section-primary-light {
    background-color: var(--color-primary-light);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.section-header {
    text-align: center;
    max-width: 36rem; /* 576px */
    margin: 0 auto 4rem auto;
}

.section-tag {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
}

.section-title {
    font-size: 1.875rem; /* 30px */
    font-weight: 700;
    margin-top: 1rem;
    color: var(--color-text);
}

.section-title-alt {
    color: var(--color-primary-text);
}

.section-description {
    font-size: 1.125rem; /* 18px */
    margin-top: 1.5rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/*
 * ==============================================
 * СЕКЦИЯ FEATURES (ПРЕИМУЩЕСТВА)
 * ==============================================
 */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    text-align: center;
    background-color: var(--color-card-bg);
    padding: 2.5rem 2rem;
    border-radius: 0.75rem; /* 12px */
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}

.feature-icon {
    width: 3.5rem; /* 56px */
    height: 3.5rem; /* 56px */
    margin: 0 auto 1.5rem auto;
    background-color: var(--color-primary-light);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 1.75rem; /* 28px */
    height: 1.75rem; /* 28px */
    color: var(--color-primary-text);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/*
 * ==============================================
 * СЕКЦИЯ PLOTS (УЧАСТКИ)
 * ==============================================
 */
.plots-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem; /* 24px */
}

.plot-card {
    background-color: var(--color-card-bg);
    border-radius: 0.75rem; /* 12px */
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.plot-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.plot-card-image {
    position: relative;
    width: 100%;
    height: 200px; /* 200px */
    overflow: hidden;
}

.plot-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.plot-card:hover .plot-card-image img {
    transform: scale(1.05);
}

.plot-card-tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem; /* 12px */
    font-weight: 700;
    border-radius: 9999px;
    text-transform: capitalize;
}

.plot-card-tag.status-available {
     background-color: var(--color-primary-light);
     color: var(--color-primary-text);
}
.plot-card-tag.status-sold {
     background-color: var(--color-border);
     color: var(--color-text-muted);
     text-decoration: line-through;
}
.plot-card-tag.status-reserved {
     background-color: #fef3c7; /* yellow-100 */
     color: #b45309; /* yellow-700 */
}

.plot-card-content {
    padding: 1.5rem; /* 24px */
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Чтобы .plot-card-link был внизу */
}

.plot-card-title {
    font-size: 1.25rem; /* 20px */
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.plot-card-spec {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

html.dark .plot-card-spec {
     color: var(--color-primary-hover);
}

.plot-card-description {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    /* Обрезка текста до 3х строк */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.plot-card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.plot-card-link:hover {
    color: var(--color-primary-hover);
}

.plot-card-link svg {
    width: 0.875rem; /* 14px */
    height: 0.875rem; /* 14px */
    transition: transform 0.2s ease;
}

.plot-card-link:hover svg {
    transform: translateX(3px);
}

/*
 * ==============================================
 * СЕКЦИЯ "КОНТАКТЫ"
 * ==============================================
 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 56rem; /* 896px */
    margin: 0 auto;
}

.contact-card {
    background-color: var(--color-card-bg);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.contact-card-image {
    width: 100px;
    height: 100px;
    border-radius: 9999px; /* Круг */
    margin: 0 auto 1.5rem auto;
    object-fit: cover;
    border: 3px solid var(--color-border);
    box-shadow: var(--shadow);
}

.contact-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.contact-card-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 1rem;
}

.contact-links {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.contact-link:hover {
    color: var(--color-primary);
}

.contact-link svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

.contact-link:hover svg {
    color: var(--color-primary);
}

.contact-link span {
    font-size: 1.125rem;
}

.contact-card-content {
    flex-grow: 1;
}




/*
 * ==============================================
 * СЕКЦИЯ "О НАС" (ABOUT) - НОВЫЕ СТИЛИ
 * ==============================================
 */
.about-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.about-image {
    border-radius: 0.75rem; /* 12px */
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    transition: transform 0.5s ease;
}

.about-image:hover {
     transform: scale(1.03);
}

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

.about-text .section-tag {
    text-align: left;
}
.about-text .section-title {
    text-align: left;
    margin-top: 1rem;
    margin-bottom: 2rem;
}
.about-text p {
    font-size: 1.125rem; /* 18px */
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-top: 1.5rem;
}

.about-text .about-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding: 0.75rem 2rem;
    background-color: var(--color-primary);
    color: white;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}
html.dark .about-text .about-button {
    color: var(--color-bg);
}

.about-text .about-button:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}


/*
 * ==============================================
 * СЕКЦИЯ "TEXT CONTENT" (ДЛЯ PRIVACY) - НОВЫЕ СТИЛИ
 * ==============================================
 */
.text-content {
    max-width: 800px; /* Ограничиваем ширину для читаемости */
    margin: 0 auto 4rem auto; /* Центрируем и добавляем отступ снизу */
}
/* Стили для подзаголовков (h2) */
.text-content h2 {
    font-size: 1.75rem; /* 28px */
    font-weight: 700;
    color: var(--color-text);
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}
/* Стили для параграфов */
.text-content p {
    font-size: 1.125rem; /* 18px */
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}
/* Стили для списков */
.text-content ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: var(--color-text-muted);
}
.text-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}
/* Стили для ссылок в тексте */
.text-content a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 500;
}
.text-content a:hover {
    color: var(--color-primary-hover);
}

/*
 * ==============================================
 * ФУТЕР (FOOTER)
 * ==============================================
 */
 .footer {
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
 }
 
 .footer-content {
    padding-top: 3rem;
    padding-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
 }
 
 .footer-logo {
    text-align: center;
 }
 
 .footer-copyright {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
 }
 
 .footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
 }
 
 .footer-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
 }
 .footer-nav a:hover {
    color: var(--color-primary);
 }


 /* "Хлебные крошки" (навигация) */
.breadcrumbs {
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-align: left;
}
.breadcrumbs a {
    color: var(--color-primary);
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}

/*
 * ==============================================
 * АДАПТИВНОСТЬ (Media Queries)
 * ==============================================
 */
 
/* Планшеты (md) */
@media (min-width: 768px) {
    .logo {font-size: 1.15rem;}
    .nav-desktop {
        display: flex;
    }
    .lang-switch-desktop {
        display: flex;
    }
    .mobile-menu-toggle {
        display: none;
    }

    
    .hero-title {
        font-size: 3rem; /* 48px */
    }
    
    .section {
        padding-top: 6rem; /* 96px */
        padding-bottom: 6rem; /* 96px */
    }
    
    .section-title {
        font-size: 2.25rem; /* 36px */
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .plots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Контакты */
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-card {
        text-align: left;
        display: flex;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .contact-card-image {
        margin: 0;
        width: 100px; 
        height: 100px;
        flex-shrink: 0;
    }
    
    .contact-link {
        justify-content: flex-start;
    }
        .about-layout {
        grid-template-columns: 1fr 1fr;
    }
    
    
    /* Футер */
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-logo {
        text-align: left;
    }
}

/* Ноутбуки (lg) */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem; /* 60px */
    }

    .plots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}