* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #1a1a1a;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    color: #0d3b66;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #f39c12;
    margin: 10px auto 0;
}

/* ---------- Шапка ---------- */
.header {
    background: #0d3b66;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.header__logo-accent {
    color: #f39c12;
}

.header__menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.header__link {
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.3s;
}

.header__link:hover {
    color: #f39c12;
}

/* Бургер (для мобилки) */
.header__burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.header__burger span {
    width: 28px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
    transition: 0.3s;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, #0d3b66 0%, #1a5a7a 100%);
    padding: 70px 0;
    color: #fff;
}

.hero__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero__content {
    flex: 1;
}

.hero__title {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero__btn {
    display: inline-block;
    background: #f39c12;
    color: #fff;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero__btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.4);
}

.hero__image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero__img-placeholder {
    width: 100%;
    max-width: 350px;
    height: 250px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%23f39c12"><circle cx="50" cy="50" r="40"/><rect x="30" y="30" width="40" height="40" fill="%23fff"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.7;
}

/* ---------- Услуги (Grid) ---------- */
.services {
    padding: 80px 0;
    background: #fff;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.service-card {
    background: #f8f9fa;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-card__icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.service-card__title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #0d3b66;
}

.service-card__desc {
    color: #555;
    font-size: 0.95rem;
}

/* ---------- О нас (Flex) ---------- */
.about {
    padding: 80px 0;
    background: #eef4f8;
}

.about__flex {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.about__item {
    text-align: center;
    flex: 1 1 150px;
}

.about__number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #f39c12;
}

.about__item p {
    font-size: 1.1rem;
    color: #0d3b66;
    font-weight: 500;
}

/* ---------- Контакты (Flex) ---------- */
.contacts {
    padding: 80px 0;
    background: #fff;
}

.contacts__wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contacts__form-block,
.contacts__map-block {
    flex: 1 1 300px;
}

.contacts__form-title,
.contacts__map-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #0d3b66;
}

/* Форма */
.form__input,
.form__textarea {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s;
}

.form__input:focus,
.form__textarea:focus {
    border-color: #f39c12;
    outline: none;
}

.form__textarea {
    height: 120px;
    resize: vertical;
}

.form__btn {
    background: #0d3b66;
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.form__btn:hover {
    background: #f39c12;
}

.form__status {
    margin-top: 15px;
    font-weight: 600;
}

/* Карта */
.contacts__map {
    width: 100%;
    height: 300px;
    background: #ddd;
    border-radius: 12px;
}

.contacts__address {
    margin-top: 15px;
    font-weight: 500;
    color: #0d3b66;
}

/* ---------- Футер ---------- */
.footer {
    background: #0d3b66;
    padding: 30px 0;
    text-align: center;
    color: #aaa;
}

/* ---------- Адаптив (медиа-запросы) ---------- */
@media (max-width: 768px) {
    .header__menu {
        display: none;
        flex-direction: column;
        background: #0d3b66;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 20px;
        gap: 15px;
    }

    .header__menu.active {
        display: flex;
    }

    .header__burger {
        display: flex;
    }

    .hero__container {
        flex-direction: column;
        text-align: center;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__image {
        order: -1;
    }

    .hero__img-placeholder {
        max-width: 200px;
        height: 150px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about__flex {
        flex-direction: column;
        align-items: center;
    }

    .contacts__wrapper {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.6rem;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Модальное окно (доп. страницы услуг) ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal__content {
    position: relative;
    background: #fff;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    padding: 40px 35px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    animation: slideUp 0.4s ease;
    z-index: 1001;
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.2rem;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    transition: color 0.3s, transform 0.2s;
    line-height: 1;
}

.modal__close:hover {
    color: #e74c3c;
    transform: rotate(90deg);
}

.modal__body {
    margin-top: 10px;
}

.modal__body h2 {
    font-size: 2rem;
    color: #0d3b66;
    margin-bottom: 15px;
}

.modal__body h3 {
    font-size: 1.3rem;
    color: #f39c12;
    margin: 20px 0 10px;
}

.modal__body p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 12px;
}

.modal__body ul {
    padding-left: 25px;
    margin: 15px 0;
}

.modal__body ul li {
    color: #555;
    margin-bottom: 8px;
}

.modal__body .modal__price {
    display: inline-block;
    background: #0d3b66;
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 15px 0;
}

.modal__body .modal__btn-back {
    display: inline-block;
    background: #f39c12;
    color: #fff;
    padding: 12px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.modal__body .modal__btn-back:hover {
    background: #e08e0b;
    transform: scale(1.03);
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Адаптив для модалки */
@media (max-width: 600px) {
    .modal__content {
        padding: 30px 20px;
        width: 95%;
        max-height: 90vh;
    }

    .modal__body h2 {
        font-size: 1.5rem;
    }
}