/* Базовые стили и переменные */
:root {
    --primary-color: #007BFF;
    --primary-dark: #0056b3;
    --secondary-color: #f4f7f6;
    --text-color: #333;
    --light-text-color: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка сайта */
.header {
    background: var(--light-text-color);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Главная секция */
.hero {
    height: 100vh;
    background: url('images/bg-header.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text-color);
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* Секции сайта */
.section {
    padding: 80px 0;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

/* Анимация появления */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Секция "О нас" */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
}

.about-text {
    flex: 1;
}

/* Секция "Услуги" */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-card {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.service-card h3 {
    margin-bottom: 15px;
}

/* Секция "Преимущества" */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: center;
}

.benefit-item {
    background: var(--light-text-color);
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

/* Секция "Этапы утепления" */
.steps-list {
    display: flex;
    justify-content: space-between;
    text-align: center;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    flex: 1;
    min-width: 150px;
    position: relative;
    padding-top: 50px;
}

.step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--light-text-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* Секция "Портфолио" */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.portfolio-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* Секция "Контакты" */
.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-info,
.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form button {
    width: 100%;
}

/* Подвал сайта */
.footer {
    background: var(--text-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 20px 0;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        margin-top: 10px;
    }

    .nav-link {
        margin: 0 10px 0 0;
    }

    .about-content {
        flex-direction: column;
    }
}