/* --- ОБЩИЕ СТИЛИ --- */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: #f4f7f6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    color: #2c3e50;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #3498db;
    margin: 10px auto 0;
    border-radius: 2px;
}

.cta-button {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* --- ШАПКА --- */
header {
    background: #ffffff;
    color: #333;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: #3498db;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
    background-color: #3498db;
}

/* --- ГЛАВНЫЙ ЭКРАН (HERO) --- */
.hero {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    text-align: left;
    color: #fff;
    background: url('https://images.pexels.com/photos/4342400/pexels-photo-4342400.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(44, 62, 80, 0.9) 0%, rgba(44, 62, 80, 0.3) 100%);
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    max-width: 600px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 500px;
}

/* --- СЕКЦИИ --- */
section {
    padding: 60px 0;
}

#about p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* --- УСЛУГИ --- */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.12);
}

.service-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

/* --- ОТЗЫВЫ --- */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.review {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid #3498db;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.review h4 {
    text-align: right;
    font-style: italic;
    color: #3498db;
}

/* --- КОНТАКТЫ --- */
.contact-section {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.contact-info, .contact-map {
    flex: 1;
}
.contact-info p, .contact-info ul {
    text-align: left;
    margin-bottom: 15px;
}
.contact-info i {
    color: #3498db;
    margin-right: 10px;
}
.work-hours {
    list-style: none;
    padding: 0;
}
.weekend {
    color: #e74c3c;
    font-weight: bold;
}
.contact-map iframe {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}


/* --- ПОДВАЛ --- */
footer {
    background: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 20px 0;
}
.footer-link {
    color: #3498db;
    text-decoration: none;
}
.footer-link:hover {
    text-decoration: underline;
}

/* --- ВСПЛЫВАЮЩЕЕ ОКНО --- */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.popup {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}
.close-btn:hover {
    color: #333;
}

#subscribe-form input {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .contact-section {
        flex-direction: column;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}