/* Общие стили */
:root {
    --primary-color: #e74c3c;
    --secondary-color: #3498db;
    --dark-color: #333;
    --light-color: #f9f9f9;
    --gray-color: #e0e0e0;
    --text-color: #333;
    --text-light: #777;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

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

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn--primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn--primary:hover {
    background-color: #c0392b;
    border-color: #c0392b;
}

.btn--secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn--secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.section {
    padding: 60px 0;
}

.section--gray {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/pech7.jpg') no-repeat center center/cover;
}

.section__title {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section__title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

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

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

.logo img {
    height: 50px;
}

.nav__list {
    display: flex;
    list-style: none;
}

.nav__item {
    margin-left: 30px;
}

.nav__link {
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav__link:hover {
    color: var(--primary-color);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav__link:hover::after {
    width: 100%;
}

.phone-link {
    font-weight: 700;
    color: var(--text-color);
    transition: color 0.3s;
}

.phone-link:hover {
    color: var(--primary-color);
}

.phone-link--big {
    font-size: 24px;
    display: inline-block;
    margin: 10px 0;
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav__toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: all 0.3s;
}

/* Герой */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/pech1.jpeg') no-repeat center center/cover;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    padding-top: 80px;
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero__buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Услуги */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card__img {
    height: 200px;
    overflow: hidden;
}

.service-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-card__img img {
    transform: scale(1.1);
}

.service-card__title {
    padding: 20px 20px 10px;
    font-size: 20px;
}

.service-card__desc {
    padding: 0 20px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.service-card__price {
    padding: 0 20px 20px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
}

/* Калькулятор */
.calculator {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.calculator__row {
    margin-bottom: 20px;
}

.calculator__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.calculator__select,
.calculator__input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
}

.calculator__checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calculator__checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.calculator__btn {
    width: 100%;
    margin-top: 20px;
}

.calculator__result {
    margin-top: 30px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 18px;
}

/* Контакты */
.contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contacts__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contacts__subtitle {
    font-size: 24px;
    margin-bottom: 20px;
}

.contacts__social {
    margin-top: 30px;
}

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

.social-link {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: 14px;
}

.contacts__map {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

/* Подвал */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 30px 0;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__link {
    color: #aaa;
    transition: color 0.3s;
}

.footer__link:hover {
    color: white;
}

/* Адаптивность */
@media (max-width: 992px) {
    .contacts {
        grid-template-columns: 1fr;
    }
    
    .contacts__map {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .header__inner {
        flex-wrap: wrap;
    }
    
    .nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    .nav__list {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: white;
        padding: 20px 0;
    }
    
    .nav__list.active {
        display: flex;
    }
    
    .nav__item {
        margin: 10px 0;
    }
    
    .nav__toggle {
        display: block;
        order: 2;
    }
    
    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero__title {
        font-size: 36px;
    }
    
    .hero__buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .section {
        padding: 40px 0;
    }
}

@media (max-width: 576px) {
    .hero__title {
        font-size: 28px;
    }
    
    .hero__subtitle {
        font-size: 18px;
    }
    
    .section__title {
        font-size: 26px;
    }
    
    .calculator {
        padding: 20px 15px;
    }
}