﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

    /* Блокировка прокрутки при открытом меню */
    body.menu-open {
        overflow: hidden;
    }

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

/* Хедер */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #4a90e2;
    font-weight: bold;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
    z-index: 1001;
}

    .logo:hover {
        transform: scale(1.05);
    }

    .logo img {
        filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
        width: 32px;
        height: 32px;
    }

/* Бургер меню */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

    .burger-menu span {
        width: 100%;
        height: 3px;
        background: #4a90e2;
        border-radius: 3px;
        transition: all 0.3s linear;
        position: relative;
        transform-origin: 1px;
    }

    .burger-menu.active span:first-child {
        transform: rotate(45deg);
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg);
    }

/* Навигация */
.nav {
    display: flex;
    gap: 2rem;
}

    .nav a {
        color: #4a90e2;
        text-decoration: none;
        font-weight: 500;
        padding: 0.5rem 1rem;
        border-radius: 25px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

        .nav a::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.2), transparent);
            transition: left 0.5s;
        }

        .nav a:hover::before {
            left: 100%;
        }

        .nav a:hover {
            background: rgba(74, 144, 226, 0.2);
            backdrop-filter: blur(10px);
            transform: translateY(-2px);
        }

/* Главная секция */
.hero {
    background: linear-gradient(135deg, #a3c4f3, #b8d4f7, #cfe3fb);
    padding: 120px 0 80px;
    color: #2a4a6b;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
        opacity: 0.3;
    }

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #2a4a6b, #4a90e2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background: linear-gradient(45deg, #4a90e2, #6ba3f5);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

    .cta-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(74, 144, 226, 0.4);
        animation: pulse 2s infinite;
    }

.hero-image {
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

    .hero-image img {
        width: 100%;
        max-width: 500px;
        height: auto;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        filter: brightness(1.1) contrast(1.1);
    }

/* Сервисы */
.services {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa, #fff5f8);
    position: relative;
}

    .services::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 80%, rgba(163, 196, 243, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(184, 212, 247, 0.1) 0%, transparent 50%);
    }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

    .section-title h2 {
        font-size: 2.5rem;
        font-weight: 700;
        background: linear-gradient(45deg, #4a90e2, #6ba3f5);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 1rem;
    }

    .section-title p {
        font-size: 1.1rem;
        color: #666;
    }

/* Сетка сервисов */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(163, 196, 243, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(163, 196, 243, 0.1), transparent);
        transition: left 0.8s;
    }

    .service-card:hover::before {
        left: 100%;
    }

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 25px 50px rgba(163, 196, 243, 0.3);
    }

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #6ba3f5, #a3c4f3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(163, 196, 243, 0.4);
}

    .service-icon i {
        font-size: 2.5rem;
        color: white;
    }

.service-card h3 {
    font-size: 1.5rem;
    color: #4a90e2;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: #666;
    line-height: 1.8;
}

/* О компании */
.about {
    padding: 80px 0;
    background: linear-gradient(135deg, #6ba3f5, #a3c4f3);
    color: #2a4a6b;
    position: relative;
    overflow: hidden;
}

    .about::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 100%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
        animation: float 6s ease-in-out infinite;
    }

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.95;
}

.about-content ol {
    counter-reset: item;
    list-style: none;
    padding-left: 0;
}

.about-content ol > li {
    margin-bottom: 0.6rem;
    padding-left: 2.5rem;
    position: relative;
    line-height: 1.3;
    font-size: 1.05rem;
}

.about-content ol > li::before {
    content: counter(item) ".";
    counter-increment: item;
    position: absolute;
    left: 0;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.about-content .nested-list {
    list-style: disc;
    margin-top: 0.5rem;
    margin-bottom: 0;
    padding-left: 2rem;
    margin-left: 0.5rem;
}

.about-content .nested-list li {
    margin-bottom: 0.3rem;
    line-height: 1.2;
    font-size: 1rem;
    opacity: 0.95;
}

.about-content a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
    transition: all 0.3s ease;
}

.about-content a:hover {
    color: white;
    text-decoration: none;
    opacity: 1;
}

/* Футер */
footer {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #6ba3f5;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

    .footer-section a:hover {
        color: #6ba3f5;
    }

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 1rem;
    text-align: center;
    color: #888;
}

.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #6ba3f5, #a3c4f3);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 1001;
}

/* Адаптивность */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-container {
        gap: 3rem;
    }

    /* Сетка сервисов на планшетах */
    .services-grid {
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem;
    }
}

/* Планшеты портрет и большие телефоны (до 768px) */
@media (max-width: 768px) {
    /* Показываем бургер меню */
    .burger-menu {
        display: flex;
    }

    /* Скрываем обычное меню и делаем его мобильным */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

        .nav.active {
            right: 0;
            animation: slideInFromRight 0.3s ease;
        }

        .nav a {
            font-size: 1.2rem;
            padding: 1rem 2rem;
            width: 80%;
            text-align: center;
            border-radius: 15px;
        }

    .header-container {
        padding: 0.8rem 1.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero {
        padding: 100px 0 60px;
        text-align: center;
    }

        .hero h1 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .hero p {
            font-size: 1.1rem;
            margin-bottom: 1.5rem;
        }

    .hero-image {
        order: -1;
        margin-bottom: 1rem;
    }

        .hero-image img {
            max-width: 400px;
        }

    .section-title h2 {
        font-size: 2rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    /* Сетка сервисов на мобильных */
    .services-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
        gap: 1.5rem;
        padding: 0 1.5rem;
    }

    .service-card {
        padding: 2rem;
    }

    .services,
    .about {
        padding: 60px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
}

/* Мобильные устройства (до 480px) */
@media (max-width: 480px) {
    .burger-menu {
        width: 25px;
        height: 25px;
    }

    .nav {
        width: 100%;
        right: -100%;
    }

        .nav.active {
            right: 0;
        }

    .header-container {
        padding: 0.6rem 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

        .logo img {
            width: 28px;
            height: 28px;
        }

    .hero {
        padding: 120px 0 50px;
    }

        .hero h1 {
            font-size: 2rem;
            line-height: 1.1;
        }

        .hero p {
            font-size: 1rem;
            margin-bottom: 1.2rem;
        }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .hero-image img {
        max-width: 300px;
    }

    .container {
        padding: 0 1rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .service-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Сетка сервисов на очень маленьких экранах */
    .services-grid {
        gap: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .services,
    .about {
        padding: 50px 0;
    }

    .footer-container {
        padding: 0 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-section a,
    .footer-section p {
        font-size: 0.9rem;
    }
}

/* Очень маленькие устройства (до 320px) */
@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .service-card {
        padding: 1.2rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
    }
}

/* Ландшафтная ориентация мобильных устройств */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 100px 0 40px;
    }

        .hero h1 {
            font-size: 2.2rem;
        }

    .services,
    .about {
        padding: 40px 0;
    }

    .nav {
        padding-top: 2rem;
        justify-content: flex-start;
        gap: 1rem;
    }

        .nav a {
            padding: 0.5rem 1rem;
            font-size: 1rem;
        }
}

/* Большие экраны (от 1200px) */
@media (min-width: 1200px) {
    .container,
    .header-container,
    .hero-container {
        max-width: 1400px;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .section-title h2 {
        font-size: 3rem;
    }

    .services-grid {
        max-width: 1400px;
    }
}

/* Очень большие экраны (от 1600px) */
@media (min-width: 1600px) {
    .container,
    .header-container,
    .hero-container {
        max-width: 1600px;
    }

    .hero {
        padding: 150px 0 100px;
    }

        .hero h1 {
            font-size: 4.5rem;
        }

    .services-grid {
        max-width: 1600px;
    }
}
