* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    background-color: #ffffff;
    color: #000000;
}

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-section {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-section.is-visible {
    opacity: 1;
    animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Header */
header {
    background: #1a2a44;
    color: #ffffff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    min-height: 60px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none; /* Скрываем чекбокс визуально */
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    width: 25px; /* Уменьшено */
    height: 18px; /* Уменьшено */
    position: relative;
    z-index: 1001;
}

.nav-toggle-label span {
    display: block;
    width: 100%;
    height: 2.5px; /* Уменьшена толщина линий */
    background: #ffffff;
    position: absolute;
    transition: all 0.3s ease;
}

.nav-toggle-label span:nth-child(1) { top: 0; }
.nav-toggle-label span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle-label span:nth-child(3) { bottom: 0; }

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.4s ease;
}

nav ul li a:hover {
    color: #00aaff;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('bg.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #ffffff;
    min-height: 400px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 0.6rem 1.5rem; /* Уменьшено */
    background: #00aaff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.4s ease, transform 0.4s ease;
}

.cta-button:hover {
    background: #0088cc;
    transform: scale(1.05);
}

/* About Section */
.about {
    padding: 4rem 0;
    background-color: #f4f4f4;
    text-align: center;
    color: #000000;
    min-height: 300px;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about p {
    max-width: 800px;
    margin: 0 auto 1rem;
}

/* Platforms Section */
.platforms {
    padding: 4rem 0;
    background-color: #ffffff;
    text-align: center;
    color: #000000;
    min-height: 300px;
}

.platforms h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.platforms p {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.platform-item {
    background-color: #e0e0e0;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 350px; /* Фиксированная высота блока */
    text-align: center;
}

.platform-item img {
    width: 150px; /* Фиксированный размер логотипа */
    height: 90px;
    object-fit: contain; /* Сохранение пропорций без искажений */
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center; /* Вертикальное и горизонтальное центрирование */
    margin: 0 auto; /* Горизонтальное центрирование */
}

.platform-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Services Section */
.services {
    padding: 4rem 0;
    background-color: #ffffff;
    text-align: center;
    color: #000000;
    min-height: 300px;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.services p {
    max-width: 800px;
    margin: 0 auto 2rem;
}

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

.service-item {
    background-color: #e0e0e0;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    color: #000000;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Presence Section */
.presence {
    padding: 4rem 0;
    background-color: #ffffff;
    text-align: center;
    color: #000000;
    min-height: 300px;
}

.presence h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.presence p {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.presence-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.presence-item {
    background-color: #e0e0e0;
    color: #000000;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    transition: background 0.4s ease, transform 0.4s ease;
    min-width: fit-content;
}

.presence-item:hover {
    background: #d0d0d0;
    transform: translateY(-3px);
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background-color: #ffffff;
    text-align: center;
    color: #000000;
    min-height: 300px;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact-form input,
#contact-form textarea {
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #f0f0f0;
}

#contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

#contact-form button {
    padding: 0.6rem 1.5rem; /* Уменьшено */
    background: #00aaff;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.4s ease, transform 0.4s ease;
}

#contact-form button:hover {
    background: #0088cc;
    transform: scale(1.05);
}

/* Footer Styles */
footer {
    background: #1a2a44;
    color: #ffffff;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #2a3a5a;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-main {
    flex: 1;
    min-width: 200px;
}

.footer-legal {
    flex: 2;
    min-width: 300px;
}

.footer-legal p {
    font-size: 0.8em;
    line-height: 1.4;
    opacity: 0.9;
}

.footer-main p {
    margin: 0;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

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

    .nav-toggle {
        display: none; /* Чекбокс скрыт, управляем только через label */
    }

    .nav-toggle-label {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        width: 60%;
        height: 100vh;
        background: #1a2a44;
        padding: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    nav ul li {
        margin: 1.5rem 0;
        text-align: left;
    }

    nav ul li a {
        font-size: 1.2rem;
    }

    #nav-toggle:checked ~ nav ul {
        display: flex;
        transform: translateX(0);
    }

    #nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }

    #nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .platform-item {
        height: 300px;
    }

    .platform-item img {
        width: 120px;
        height: 72px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .platform-grid, .service-grid {
        grid-template-columns: 1fr;
    }

    .presence-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .presence-item {
        padding: 0.5rem 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .footer-legal p {
        font-size: 0.75em;
    }
}