/* ================== Базовые параметры ================== */

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: white;
}

a {
    color: #57a8ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #258eff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.max-width-content {
    max-width: 1600px;
    margin: 0 auto;
}

.wrappable {
    white-space: normal;
}

.bg-shapes {
    pointer-events: none;
}

/* ================== Формы ================== */

.form-control {
    border-radius: 10px !important;
}

.form-control:focus {
    color: white;
}

input.form-control:-webkit-autofill {
    -webkit-text-fill-color: white;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 500000s ease-in-out, color 500000s ease-in-out;
}

.form-group input:focus,
.form-group textarea:focus {
    box-shadow: none;
}

/* ================== Ошибки ================== */

.error-input {
    border-color: #ff4d4f !important;
    background-color: rgba(255, 77, 79, 0.1) !important;
    box-shadow: 0 0 6px rgba(217, 83, 79, 0.4);
}

.error-message {
    color: #ff4d4f;
    font-size: 0.9rem;
    margin-top: 5px;
    line-height: 1.4;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.35s ease;
}

.error-message.show {
    max-height: 200px;
    opacity: 1;
}

.error-link {
    color: #ff4d4f;
    font-weight: 500;
}

.error-link:hover {
    color: #ff292c;
}

/* ================== Кнопки ================== */

.cta-button {
    width: 100%;
    border-radius: 10px;
    transform: translateY(0);
}

.cta-button:hover {
    transform: translateY(0);
}

/* ================== Навигационная панель ================== */

.header-nav {
    position: relative;
}

.navbar-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 24px;
}

.logo {
    grid-column: 1;
}

.logo span {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
}

.nav-menu {
    grid-column: 3;
    justify-self: end;

    list-style: none;
    display: flex;
    gap: 35px;
    padding: 0;
    margin: 0;

    white-space: nowrap;
}

.nav-menu li {
    display: inline-flex;
    align-items: center;
}

.nav-link {
    position: relative;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

.profile-btn {
    font-size: 28px;
    color: #fff;
    transition: transform 0.2s ease, opacity 0.3s;
}

.profile-btn:hover {
    transform: scale(1.15);
    opacity: 0.9;
}

/* ================== glossy_touch ================== */

.glass {
    padding: 30px;
    border-radius: 10px;
}

.glass:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(0);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

nav.glass {
    padding: 16px 24px !important;
    overflow: visible !important;
}

/* ================== Бургер ================== */

.burger-btn {
    display: none;
    grid-column: 3;
    justify-self: end;

    flex-direction: column;
    gap: 5px;

    background: none;
    border: none;
    padding: 8px;
    margin: 0;
}

.burger-btn span {
    width: 26px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.profile-text {
    display: none;
}

.nav-profile-link {
    color: #ffffff !important;
    text-decoration: none !important;
}

.nav-profile-link:hover,
.nav-profile-link:focus,
.nav-profile-link:active {
    color: #ffffff !important;
    text-decoration: none !important;
    outline: none;
}

@media (min-width: 577px) {
    .nav-profile-link i {
        font-size: 28px !important;
    }
}

/* ================== Mobile меню ================== */

@media (max-width: 576px) {

    .burger-btn {
        display: flex;
        z-index: 2001;
    }

    .nav-menu {
        position: fixed;

        top: 72px;
        right: 16px;
        left: auto;

        width: 240px;          /* 👈 размер окна */
        max-width: calc(100vw - 32px);

        display: none;
        flex-direction: column;
        gap: 10px;

        padding: 18px;

        border-radius: 16px;
        background: rgba(20, 24, 35, 0.92); /* 👈 плотный фон */
        backdrop-filter: blur(16px);

        z-index: 2000;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu li {
        justify-content: center;
    }

    .nav-menu a {
        width: 100%;
        text-align: center;
    }

    .nav-menu li + li {
        border-top: 1px solid rgba(255,255,255,0.25);
        padding-top: 12px;
        margin-top: 6px;
    }

    .nav-profile-link i {
        display: none;
    }

    .profile-text {
        display: inline;
    }
}


/* ================== Очень маленькие экраны ================== */

@media (max-width: 360px) {
    .logo {
        display: none;
    }
}
