/* assets/css/style.css */

/* 1. Сброс стандартных отступов браузера */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* Контейнер для центрирования контента */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. Шапка сайта */
.header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0056b3;
    text-decoration: none;
}
.nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}
.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}
.nav a:hover, .nav a.active {
    color: #0056b3;
}

/* 3. Главный экран (Hero) */
.hero {
    background: linear-gradient(135deg, #0056b3 0%, #00a8e8 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.btn {
    display: inline-block;
    background: #fff;
    color: #0056b3;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s;
}
.btn:hover {
    transform: translateY(-2px);
}

/* 4. Блок преимуществ */
.features {
    padding: 60px 0;
}
.features h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.feature-card:hover {
    transform: translateY(-5px);
}
.feature-card h3 {
    color: #0056b3;
    margin-bottom: 15px;
}

/* 5. Подвал */
.footer {
    background: #222;
    color: #aaa;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}
/* === Стили для каталога ЖК === */
.catalog-section {
    padding: 60px 0;
}
.section-subtitle {
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.project-card__content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card__class {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    width: fit-content;
}

.project-card__title {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: #111;
}

.project-card__developer {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.project-card__details {
    margin-bottom: 20px;
    flex-grow: 1;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.detail-label {
    color: #666;
}

.detail-value {
    font-weight: 500;
    text-align: right;
}

.project-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto;
}

.project-card__price {
    font-size: 1.1rem;
    color: #333;
}

.project-card__price strong {
    color: #0056b3;
    font-size: 1.2rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}
/* === Детальная страница ЖК === */
.project-detail {
    padding: 40px 0;
}

.breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}
.breadcrumbs a {
    color: #0056b3;
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    gap: 30px;
}
.project-header__info h1 {
    font-size: 2rem;
    margin: 10px 0;
}
.project-address {
    color: #666;
    font-size: 1.1rem;
}

.project-header__price-block {
    text-align: right;
    min-width: 250px;
}
.price-label {
    color: #666;
    font-size: 0.9rem;
}
.price-value {
    font-size: 2rem;
    font-weight: bold;
    color: #0056b3;
}
.price-meter {
    color: #888;
    margin-bottom: 15px;
}

.project-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.project-image-placeholder {
    background: #e0e7ff;
    height: 400px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.features-list li {
    font-size: 1rem;
}

/* Сайдбар */
.info-card, .expert-opinion {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.info-card h3, .expert-opinion h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.info-row:last-child {
    border-bottom: none;
}
.info-row span {
    color: #666;
}

.expert-opinion {
    background: #f0f9ff;
    border-left: 4px solid #0056b3;
}
.expert-opinion p {
    margin-bottom: 15px;
    font-style: italic;
}

.btn-block {
    display: block;
    text-align: center;
    width: 100%;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .project-header {
        flex-direction: column;
    }
    .project-header__price-block {
        text-align: left;
        width: 100%;
    }
    .project-content-grid {
        grid-template-columns: 1fr;
    }
    .features-list {
        grid-template-columns: 1fr;
    }
}