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

:root {
    --primary-color: #09A4A9;
    --secondary-color: #0d7f83;
    --accent-color: #ffa500;
    --text-color: #333333;
    --bg-color: #ffffff;
    --dark-bg: #1a1a1a;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Кнопки */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn--primary {
    background: linear-gradient(135deg, #09A4A9 0%, #0bc5cb 50%, #09A4A9 100%);
    background-size: 200% 200%;
    color: white;
    box-shadow: 0 4px 15px rgba(9, 164, 169, 0.3);
}

.btn--primary:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(9, 164, 169, 0.45);
}

/* Заголовки */
.section__title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--dark-bg);
    text-align: center;
    letter-spacing: -0.02em;
}

.section__subtitle {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 48px;
}

/* Шапка — Glassmorphism */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

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

.header__logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.header__nav {
    display: flex;
    gap: 32px;
}

.header__link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
    border-radius: 1px;
}

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

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

.header__contacts {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header__info {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #666;
}

.header__phone {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    white-space: nowrap;
}

.header__burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.header__burger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Мобильное меню */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.mobile-menu__link {
    padding: 12px 0;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

/* Hero секция */
.hero {
    padding: 240px 0;
    position: relative;
    overflow: hidden;
    background-color: #1a2a3a;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 30, 50, 0.75) 0%, rgba(9, 164, 169, 0.3) 100%);
    z-index: 1;
}

.hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 2;
}

.hero__blob--1 {
    width: 500px;
    height: 500px;
    background: rgba(9, 164, 169, 0.25);
    top: -150px;
    right: -100px;
}

.hero__blob--2 {
    width: 400px;
    height: 400px;
    background: rgba(9, 164, 169, 0.2);
    bottom: -100px;
    left: -100px;
}

.hero__blob--3 {
    width: 300px;
    height: 300px;
    background: rgba(11, 197, 203, 0.15);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero__content {
    display: block;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 3;
}

.hero__title {
    font-size: 58px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.hero__subtitle {
    font-size: 24px;
    color: rgba(9, 220, 227, 0.9);
    margin-bottom: 16px;
    font-weight: 600;
}

.hero__description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 36px;
    line-height: 1.7;
}

/* Услуги — секция с превью */
.services {
    padding: 100px 0;
    background: var(--light-gray);
}

.services__preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Карточка-превью услуги — Glass */
.service-preview {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

.service-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #0bc5cb);
    border-radius: 16px 16px 0 0;
}

.service-preview:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(9, 164, 169, 0.08);
}

.service-preview__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 12px;
}

.service-preview__description {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-preview__link {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    transition: color 0.3s;
}

.service-preview:hover .service-preview__link {
    color: var(--secondary-color);
}

/* Развёрнутый блок услуги */
.service-block {
    padding: 100px 0;
}

.service-block:nth-child(odd) {
    background: linear-gradient(180deg, #ffffff 0%, #f8fcfc 100%);
}

.service-block:nth-child(even) {
    background: linear-gradient(180deg, #f5f5f5 0%, #eef7f7 100%);
}

.service-block__title {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark-bg);
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -0.02em;
}

.service-block__description {
    font-size: 18px;
    color: #666;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.service-block__subsections {
    display: grid;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.service-block__subsection {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-block__subsection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #0bc5cb);
}

.service-block__subsection:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.service-block__subtitle {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: none;
}

.service-block__text {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
}

.service-block__list {
    list-style: none;
    padding: 0;
}

.service-block__list li {
    padding: 10px 0 10px 28px;
    position: relative;
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.service-block__list li:last-child {
    border-bottom: none;
}

.service-block__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.service-block__cta {
    text-align: center;
    margin-top: 48px;
}

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

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.benefit-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
    transform: translateY(-4px);
}

.benefit-card__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    color: var(--primary-color);
}

.benefit-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 12px;
}

.benefit-card__description {
    font-size: 15px;
    color: #666;
}

/* Процесс работы */
.process {
    padding: 100px 0;
    background: linear-gradient(135deg, #09A4A9 0%, #0d7f83 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.process::before,
.process::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.process::before {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    top: -100px;
    right: -100px;
}

.process::after {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.06);
    bottom: -80px;
    left: -80px;
}

.process .section__title {
    color: white;
    position: relative;
    z-index: 1;
}

.process__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.process-step {
    text-align: center;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 32px 24px;
    transition: all 0.3s ease;
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
}

.process-step__number {
    font-size: 64px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.process-step__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.process-step__description {
    font-size: 15px;
    opacity: 0.9;
}

/* Контакты */
.contact {
    padding: 100px 0;
    background: var(--light-gray);
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact__info {
    text-align: left;
}

.contact__info .section__title,
.contact__info .section__subtitle {
    text-align: left;
}

.contact__details {
    margin-top: 32px;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.contact__icon {
    color: var(--primary-color);
}

.contact__item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: color 0.3s;
}

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

.contact__form {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.7);
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(9, 164, 169, 0.1);
    background: white;
}

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

.form__privacy {
    font-size: 13px;
    color: #666;
    margin-top: 16px;
    text-align: center;
}

/* Футер */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 60px 0 30px;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer__logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.footer__requisites {
    font-size: 13px;
    color: #888;
    margin-bottom: 4px;
}

.footer__copyright {
    font-size: 14px;
    color: #999;
    margin-top: 12px;
}

.footer__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__link {
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

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

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__contacts a,
.footer__contacts span {
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
}

.footer__social {
    display: flex;
    gap: 16px;
}

.footer__social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.footer__social a:hover {
    background: var(--primary-color);
    transform: translateY(-4px);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal__content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 60px 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal__close:hover {
    color: var(--text-color);
}

.modal__icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #09A4A9, #0bc5cb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(9, 164, 169, 0.3);
}

.modal__title {
    font-size: 24px;
    color: var(--dark-bg);
    font-weight: 700;
}

/* Scroll-анимации */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 992px) {
    .header__nav {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .hero__title {
        font-size: 36px;
    }

    .hero {
        padding: 80px 0;
    }

    .services__preview {
        grid-template-columns: 1fr;
    }

    .contact__content {
        grid-template-columns: 1fr;
    }

    .section__title {
        font-size: 32px;
    }

    .service-block__title {
        font-size: 28px;
    }
}

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

    .hero {
        padding: 70px 0;
    }

    .hero__title {
        font-size: 34px;
    }

    .hero__subtitle {
        font-size: 20px;
    }

    .hero__blob--1 {
        width: 300px;
        height: 300px;
    }

    .hero__blob--2 {
        width: 250px;
        height: 250px;
    }

    .hero__blob--3 {
        display: none;
    }

    .services,
    .benefits,
    .contact {
        padding: 70px 0;
    }

    .services__preview {
        grid-template-columns: 1fr;
    }

    .service-block {
        padding: 70px 0;
    }

    .service-block__subsection {
        padding: 24px 20px;
    }

    .service-block__title {
        font-size: 24px;
    }

    .service-block__subtitle {
        font-size: 18px;
    }

    .process {
        padding: 70px 0;
    }

    .process__steps {
        grid-template-columns: 1fr;
    }

    .benefits__grid {
        grid-template-columns: 1fr;
    }

    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__nav,
    .footer__contacts {
        align-items: center;
    }

    .footer__social {
        justify-content: center;
    }

    .contact__form {
        padding: 28px 20px;
    }
}
