/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #0f172a;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --gray-light: #e2e8f0;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

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

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

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

ul {
    list-style: none;
}

.section__title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn--primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn--primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(37, 99, 235, 0.3);
}

.btn--primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

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

.header.scrolled {
    padding: 10px 0;
    background-color: white;
}

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

.logo__link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo__text {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition);
}

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

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__link {
    color: var(--secondary-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

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

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

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

.header__phone {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--secondary-color);
    font-weight: 500;
}

.header__phone i {
    color: var(--primary-color);
}

.burger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.burger span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.burger::before,
.burger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.burger::before {
    top: 0;
}

.burger::after {
    bottom: 0;
}

.burger.active span {
    opacity: 0;
}

.burger.active::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.burger.active::after {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Главный экран */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.hero__content {
    flex: 1;
}

.hero__image {
    flex: 1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}

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

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

.hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
}

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

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

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

.service-card__icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 28px;
}

.service-card__title {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card__text {
    color: var(--gray-color);
    margin-bottom: 0;
}

/* О нас */
.about {
    background-color: #f1f5f9;
}

.about__inner {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about__content {
    flex: 1;
}

.about__image {
    flex: 1;
}

.about__text {
    margin-bottom: 20px;
    color: var(--gray-color);
}

/* Преимущества */
.advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
}

.advantage-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.1);
}

.advantage-card__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 24px;
}

.advantage-card__title {
    font-size: 20px;
    margin-bottom: 15px;
}

.advantage-card__text {
    color: var(--gray-color);
    margin-bottom: 0;
}

/* Контакты */
.contacts {
    background-color: #f1f5f9;
}

.contacts__inner {
    display: flex;
    gap: 50px;
}

.contacts__info {
    flex: 1;
}

.contacts__form {
    flex: 1;
}

.contacts__item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contacts__icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 20px;
    margin-right: 15px;
}

.contacts__title {
    font-size: 18px;
    margin-bottom: 5px;
}

.contacts__value {
    color: var(--gray-color);
    margin-bottom: 0;
}

.form {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

.form__group {
    margin-bottom: 20px;
}

.form__input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

.form__input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form__textarea {
    min-height: 150px;
    resize: vertical;
}

.form__submit {
    width: 100%;
}

/* Карта */
.map {
    height: 450px;
}

.map iframe {
    display: block;
}

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

.footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer__info {
    flex: 1;
}

.footer__logo {
    margin-bottom: 20px;
}

.footer__text {
    color: rgba(255, 255, 255, 0.7);
}

.footer__nav,
.footer__contacts {
    flex: 1;
}

.footer__title {
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
}

.footer__item {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.footer__link {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer__link:hover {
    color: white;
}

.footer__bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer__copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 0;
}

/* Кнопка прокрутки вверх */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero {
        padding: 150px 0 80px;
    }

    .hero__title {
        font-size: 40px;
    }

    .hero__subtitle {
        font-size: 18px;
    }

    .about__inner,
    .contacts__inner {
        flex-direction: column;
    }

    .section__title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .header__contact {
        display: none;
    }

    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav__list {
        flex-direction: column;
        gap: 15px;
    }

    .burger {
        display: block;
    }

    .hero__inner {
        flex-direction: column;
        text-align: center;
    }

    .hero__title {
        font-size: 36px;
    }

    .footer__inner {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero__title {
        font-size: 30px;
    }

    .section__title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .service-card,
    .advantage-card {
        padding: 20px;
    }
}
