/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4 {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    margin-bottom: 15px;
    color: #2c3e50;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #e74c3c;
    margin: 10px auto;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: #e74c3c;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: #e74c3c;
    color: white;
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-secondary {
    background: #3498db;
    color: white;
}

.btn-secondary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Шапка */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 15px;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: #e74c3c;
}

.nav ul {
    display: flex;
}

.nav li {
    margin: 0 15px;
}

.nav a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover,
.nav a.active {
    color: #e74c3c;
}

.contacts-header {
    text-align: right;
}

.contacts-header p {
    margin-bottom: 5px;
    font-weight: 500;
}

/* Герой-секция */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/hero-bg.jpg') center/cover no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Преимущества */
.advantages {
    padding: 80px 0;
    background: white;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.advantage-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-10px);
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Калькулятор */
.calculator {
    padding: 80px 0;
    background: #f1f2f6;
}

.calculator-form {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
}

#calcForm {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 500px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.result {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.result h3 {
    margin-bottom: 20px;
}

#estimatedPrice {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e74c3c;
}

/* Услуги */
.services {
    padding: 80px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    padding: 20px 20px 0;
}

.service-card p {
    padding: 0 20px 20px;
}

/* Отзывы */
.testimonials {
    padding: 80px 0;
    background: #f1f2f6;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.testimonial:before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -20px;
    left: 20px;
    color: #e74c3c;
    opacity: 0.2;
}

.author {
    font-weight: 500;
    color: #e74c3c;
    text-align: right;
    margin-top: 20px;
}

/* Футер */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #e74c3c;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Страница "О компании" */
.about-page {
    padding: 60px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 40px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #e74c3c;
    margin-bottom: 10px;
}

/* Страница "Услуги" */
.services-page {
    padding: 60px 0;
    background: white;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.service-detail:nth-child(even) {
    direction: rtl;
}

.service-detail:nth-child(even) .service-info {
    direction: ltr;
}

.service-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.additional-services {
    margin-top: 60px;
}

/* Страница "Как мы работаем" */
.process-page {
    padding: 60px 0;
    background: white;
}

.process-steps {
    margin-bottom: 60px;
}

.step {
    display: flex;
    margin-bottom: 40px;
    align-items: flex-start;
}

.step-number {
    background: #e74c3c;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.feature h3 {
    color: #e74c3c;
}

.cta-section {
    text-align: center;
    background: #f1f2f6;
    padding: 50px;
    border-radius: 8px;
    margin-top: 60px;
}

/* Страница "Контакты" */
.contacts-page {
    padding: 60px 0;
    background: white;
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h3 {
    color: #e74c3c;
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #2980b9;
    transform: translateY(-3px);
}

.contact-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.map {
    margin-top: 50px;
}

.map-placeholder {
    height: 400px;
    background: #f1f2f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #7f8c8d;
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .service-detail,
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .service-detail:nth-child(even) {
        direction: ltr;
    }
    
    .contacts-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav ul {
        margin: 20px 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav li {
        margin: 5px 10px;
    }
    
    .contacts-header {
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto 20px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        height: 70vh;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .calculator-form {
        flex-direction: column;
    }
}