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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #121212;
}

/* Контейнер */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка и навигация */
header {
    background-color: #1a1a1a;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #4a90e2;
}

/* Главный экран */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    color: #e0e0e0;
    padding: 100px 20px;
    border-bottom: 1px solid #333;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: left;
    }

    @media (max-width: 768px) {
        .hero-content {
            flex-direction: column;
            text-align: center;
        }

        .hero-text {
            order: 1;
            width: 100%;
        }

        .hero-image {
            order: 2;
            width: 100%;
            display: flex;
            justify-content: center;
        }

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

.hero-image img {
    max-width: 450px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}

.hero-image:hover img {
    transform: translateY(-5px);
}

.hero-text {
    flex-basis: 500px;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero p {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #b0b0b0;
}

.cta-button {
    display: inline-block;
    background-color: #4a90e2;
    color: #ffffff;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

/* Блок "Обо мне" */
.about {
    background-color: #1a1a1a;
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid #333;
}

.about h2 {
    color: #4a90e2;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.principles {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 50px;
}

.principle {
    flex-basis: 30%;
    background-color: #2a2a2a;
    padding: 30px;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border: 1px solid #333;
}

.principle h3 {
    color: #4a90e2;
}

/* Специализация */
.specialization {
    padding: 80px 0;
    background-color: #121212;
    border-bottom: 1px solid #333;
}

.specialization h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5em;
    color: #4a90e2;
}

.services {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.service-card {
    flex-basis: calc(33.333% - 20px);
    background-color: #1e1e1e;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border: 1px solid #333;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #4a90e2;
    margin-bottom: 15px;
}

.service-card ul {
    color: #b0b0b0;
}

.service-card ul li {
    margin-bottom: 8px;
}

/* Порядок взаимодействия */
.process {
    background-color: #1a1a1a;
    padding: 80px 0;
    border-bottom: 1px solid #333;
}

.process h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5em;
    color: #4a90e2;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 50px;
}

.step {
    flex-basis: calc(25% - 15px);
    text-align: center;
    background-color: #1e1e1e;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border: 1px solid #333;
    position: relative;
    transition: transform 0.3s;
}

.step:hover {
    transform: translateY(-5px);
}

.step::after {
    content: '→';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
    color: #4a90e2;
}

.step:last-child::after {
    content: none;
}

.step h3 {
    color: #4a90e2;
}

/* Подвал */
footer {
    background-color: #000000;
    color: #e0e0e0;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #333;
}

.contact-info p {
    margin: 10px 0;
    color: #b0b0b0;
}

.contact-info a {
    color: #4a90e2;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Всплывающее окно для согласия на cookies */
.cookie-popup {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.cookie-popup-content {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #333;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.cookie-popup-content h3 {
    color: #4a90e2;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.cookie-popup-content p {
    color: #b0b0b0;
    margin-bottom: 25px;
    line-height: 1.5;
    font-size: 0.95em;
}

.cookie-popup-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

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

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 1em;
    }

    .about {
        padding: 60px 0;
    }

    .about h2 {
        font-size: 2em;
    }

    .principles, .services, .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .principle, .service-card, .step {
        flex-basis: 100%;
        margin-bottom: 30px;
        width: 100%;
    }

    .step::after {
        content: none;
    }

    .step h3 {
        font-size: 1.3em;
    }

    .process h2, .specialization h2 {
        font-size: 2em;
    }

    footer {
        padding: 30px 0;
    }

    .contact-info p, .credentials p {
        font-size: 0.9em;
    }

    nav ul {
        gap: 10px;
        padding: 0 5px;
    }

    nav a {
        font-size: 0.85em;
        padding: 5px 0;
    }

    header {
        padding: 10px 0;
    }

    /* Мобильная версия в ландшафтном режиме */
    @media (orientation: landscape) {
        nav ul {
            gap: 8px;
            padding: 0 2px;
        }

        nav a {
            font-size: 0.8em;
        }

        header {
            padding: 8px 0;
        }
    }
}

