/*====================================================
    RESET
====================================================*/

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #07111f;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/*====================================================
    VARIABLES
====================================================*/

:root {
    --bg: #07111f;
    --bg2: #0d1b2e;

    --card: rgba(255, 255, 255, .07);

    --border: rgba(255, 255, 255, .12);
    --blue: #2E6BFF;
    --blueHover: #5085ff;

    --text: #ffffff;
    --gray: #bfc8d6;

    --shadow: 0 20px 60px rgba(0, 0, 0, .35);
    --radius: 22px;
}

/*====================================================
    COMMON
====================================================*/

.container {
    width: min(1200px, 92%);
    margin: auto;
}

section {
    padding: 110px 0;
}

h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
}

h2 {
    font-size: 42px;
    margin-bottom: 50px;
    font-weight: 700;
}

h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

p {
    color: var(--gray);
    font-size: 18px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/*====================================================
    HEADER
====================================================*/

.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(7, 17, 31, .45);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

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

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .5px;
}

.logo span {
    color: var(--blue);
    margin-right: 10px;
}

nav {
    display: flex;
    gap: 35px; /* Отступы между элементами */
    white-space: nowrap; /* Запрещаем перенос текста */
    flex-wrap: nowrap; /* Фиксируем в одну строку */
}

nav a {
    font-size: 18px;
    padding: 12px 16px;
    position: relative;
    transition: .3s;
}

nav a:hover {
    color: #fff;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: .3s;
}

nav a:hover::after {
    width: 100%;
}

/* Бургер-меню */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 8px;
}

@media (max-width: 768px) {
    nav {
        display: none; /* Скрыто на мобильных устройствах */
    }

    nav.active {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg);
        padding: 20px 0;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        animation: slideDown 0.3s ease-in-out forwards;
    }

    @keyframes slideDown {
        from { transform: translateY(-20px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
}

}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 82px;
    max-width: 100%; /* Убираем ограничение ширины */
}


/*====================================================
    HERO
====================================================*/

.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(7,17,31,.72), rgba(7,17,31,.72)),
        url("../images/hero.jpg") center center/cover no-repeat;
    animation: zoomHero 24s ease-in-out infinite alternate;
}

@keyframes zoomHero {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top,
            rgba(46, 107, 255, .25),
            transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(900px, 90%);
}

.hero-subtitle {
    display: inline-block;
    padding: 12px 20px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    margin-bottom: 28px;
    color: #d7e4ff;
}

.hero p {
    max-width: 700px;
    margin: 35px auto;
    font-size: 20px;
}

/*====================================================
    BUTTONS
====================================================*/

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 45px;
}

.btn {
    padding: 18px 38px;
    border-radius: 14px;
    font-weight: 600;
    transition: .35s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--blue);
    box-shadow: 0 10px 30px rgba(46, 107, 255, .35);
}

.btn-primary:hover {
    transform: translateY(-4px);
    background: var(--blueHover);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .05);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, .09);
    transform: translateY(-4px);
}

/*====================================================
    ADVANTAGES
====================================================*/

.advantages {
    background: linear-gradient(180deg, var(--bg), var(--bg2));
}

.advantages h2 {
    text-align: center;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-top: 60px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 35px;
    backdrop-filter: blur(16px);
    transition: .35s;
    box-shadow: var(--shadow);
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(46, 107, 255, .4);
    background: rgba(255, 255, 255, .1);
}

.card h3 {
    color: var(--text);
    margin-bottom: 12px;
}

.card p {
    color: var(--gray);
    font-size: 16px;
}

/*====================================================
    ABOUT
====================================================*/

.about {
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
}

.about p {
    margin-bottom: 22px;
}

.about ul {
    list-style: none;
    margin-top: 30px;
}

.about li {
    margin-bottom: 16px;
    color: #dce6f5;
    font-size: 17px;
}

.about-image {
    min-height: 520px;
    border-radius: 28px;
    background:
        linear-gradient(rgba(0, 0, 0, .18), rgba(0, 0, 0, .18)),
        url("/images/office1.webp") center/cover no-repeat;
    box-shadow: var(--shadow);
    transition: .4s;
}

.about-image:hover {
    transform: scale(1.02);
}

/*====================================================
    CTA
====================================================*/

.cta {
    text-align: center;
    background:
        linear-gradient(135deg, #0b1b31, #10294a);
}

.cta h2 {
    margin-bottom: 20px;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 40px;
}

/*====================================================
    CONTACTS
====================================================*/

.contacts {
    background: var(--bg);
}

.contacts h2 {
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.contact-grid div {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 35px;
    transition: .3s;
    backdrop-filter: blur(14px);
}

.contact-grid div:hover {
    transform: translateY(-8px);
    border-color: rgba(46, 107, 255, .35);
}

.contact-grid h3 {
    margin-bottom: 15px;
    color: #fff;
}

.contact-grid p {
    color: #d4dce7;
}

/*====================================================
    FOOTER
====================================================*/

footer {
    background: #050c17;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 35px 0;
    text-align: center;
    color: #8b96a9;
    font-size: 15px;
}

/*====================================================
    ANIMATIONS
====================================================*/

.fade {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s;
}

.fade.show {
    opacity: 1;
    transform: none;
}

/*====================================================
    SCROLLBAR
====================================================*/

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #07111f;
}

::-webkit-scrollbar-thumb {
    background: #2E6BFF;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4d82ff;
}

/*====================================================
    RESPONSIVE
====================================================*/

@media (max-width: 1024px) {

    h1 {
        font-size: 52px;
    }

    h2 {
        font-size: 36px;
    }

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

    .about-image {
        order: -1;
        min-height: 420px;
    }
}

@media (max-width: 768px) {

    section {
        padding: 80px 0;
    }

    .header .container {
        height: 70px;
    }

    nav {
        display: none; /* Скрыто по умолчанию */
    }

    h1 {
        font-size: 38px;
    }

    h2 {
        font-size: 30px;
    }

    p {
        font-size: 16px;
    }

    .hero p {
        font-size: 17px;
    }

    .buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 320px;
    }

    .card {
        padding: 30px;
    }

    .about-image {
        min-height: 300px;
    }
}

@media (max-width: 480px) {

    h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 14px;
        padding: 10px 16px;
    }

    .logo {
        font-size: 18px;
    }
}
