/* Переменные и шрифты */
:root {
    --primary-color: #2c3e50; /* Темно-синий */
    --secondary-color: #3498db; /* Ярко-синий */
    --accent-color: #e74c3c; /* Красный */
    --text-color: #333;
    --light-bg-color: #f4f4f4;
    --white-color: #ffffff;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* Шапка сайта */
.header {
    background-color: var(--primary-color);
    padding: 20px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white-color);
}

.nav-link {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 600;
    margin-left: 25px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color);
}

/* Главный экран */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('hero-section.jpg') no-repeat center center/cover;
    color: var(--white-color);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 50px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 15px 40px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #5fa3ff;
}

/* Секция "Почему мы?" */
.features-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap;
}

.feature-card {
    flex-basis: 30%;
    text-align: center;
    background-color: var(--light-bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card img {
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Секция "Наши услуги" */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-item {
    text-align: center;
    background-color: var(--light-bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.service-item h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Секция "Процесс работы" */
.process-section {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.process-section .section-title {
    color: var(--white-color);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    text-align: center;
    flex-wrap: wrap;
}

.step {
    flex-basis: 22%;
    padding: 20px;
}

.step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.step-content h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Секция "Портфолио" */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    justify-content: center;
}

.portfolio-item {
    position: relative;
    display: flex;
    gap: 10px;
}

.portfolio-item img {
    width: 50%;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.portfolio-label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white-color);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* Секция "Цены" */
.prices-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
    border-radius: 10px;
    overflow: hidden;
}

.prices-table th, .prices-table td {
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.prices-table th {
    background-color: var(--secondary-color);
    color: var(--white-color);
    font-weight: 600;
}

.prices-table tbody tr:last-child td {
    border-bottom: none;
}

.prices-note {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

/* Секция "Контакты" */
.contact-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('contacts-section.jpg') no-repeat center center/cover;
    color: var(--white-color);
    text-align: center;
}

.contact-section .section-title {
    color: var(--white-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form textarea {
    min-height: 120px;
}

.contact-form .cta-button {
    display: block;
    width: 100%;
    text-align: center;
}

/* Подвал сайта */
.footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 30px 0;
}

/* Медиа-запросы */
@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
    .nav {
        display: none;
    }
    .header .container {
        justify-content: center;
    }
    .features-grid, .process-steps, .services-list {
        flex-direction: column;
    }
    .step {
        flex-basis: 100%;
        margin-bottom: 30px;
    }
    .portfolio-item {
        flex-direction: column;
    }
    .portfolio-item img {
        width: 100%;
    }
}

/* Сообщение об успешной отправке */
.form-message {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    display: none; /* Скрываем по умолчанию */
}
