/* ===== Сброс ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Растягиваем body на всю высоту ===== */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: white;
    font-family: Arial, sans-serif;
    background: #050816;
    background-image: url("../images/fon.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
}

/* ===== Шапка ===== */
header {
    padding: 20px 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    width: 100%;
    flex-shrink: 0;
    position: relative;
    z-index: 100;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(90deg, #00d9ff, #7b2fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}
.logo:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ===== Навигация ===== */
nav a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: 0.3s ease;
}
nav a:hover {
    color: #00d9ff;
    background: rgba(0, 217, 255, 0.12);
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.25), inset 0 0 15px rgba(0, 217, 255, 0.1);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.6);
}
nav a.active {
    color: #00d9ff;
    background: rgba(0, 217, 255, 0.12);
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.25), inset 0 0 15px rgba(0, 217, 255, 0.1);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.6);
}

/* ===== Центральный блок ===== */
.hero {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    padding: 40px 30px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    text-align: center;
    backdrop-filter: blur(4px);
}

.hero-content h2 {
    margin: 0 0 20px 0;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.4;
    color: #ffffff;
}
.hero-content h2:last-child {
    margin-bottom: 0;
}

/* ===== Футер ===== */
footer {
    width: 100%;
    background: #0a0a0a;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    flex-shrink: 0;
}

/* ===== АДАПТИВНОСТЬ (планшеты, телефоны) ===== */
@media (max-width: 1024px) {
    .container { width: 92%; }
    .hero-content { max-width: 90%; padding: 30px 25px; }
    .hero-content h2 { font-size: 1.3rem; }
    .logo { font-size: 24px; }
}

@media (max-width: 768px) {
    .container { width: 95%; }
    header { padding: 15px 0; }
    .logo { font-size: 22px; }
    nav a { margin-left: 15px; font-size: 0.95rem; }
    .hero { padding: 15px; }
    .hero-content { padding: 25px 20px; border-radius: 16px; }
    .hero-content h2 { font-size: 1.1rem; margin-bottom: 15px; }
    footer { padding: 15px 0; font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .logo { font-size: 20px; }
    nav a { margin-left: 10px; font-size: 0.85rem; }
    .hero-content { padding: 20px 15px; }
    .hero-content h2 { font-size: 1rem; }
    footer { font-size: 0.8rem; padding: 12px 0; }
}

/* ===== ГАМБУРГЕР ===== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0 8px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    #navMenu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        padding: 20px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 200;
        flex-direction: column;
        align-items: center;
    }

    #navMenu.open {
        display: flex;
    }

    #navMenu a {
        padding: 12px 20px;
        border-radius: 8px;
        margin: 0 10px;
        width: auto;
    }

    #navMenu a:hover {
        background: rgba(0, 217, 255, 0.15);
        box-shadow: 0 0 25px rgba(0, 217, 255, 0.2);
        text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
    }
}

/* ===== СТРАНИЦА КОНТАКТОВ ===== */
.page {
    flex: 1;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.contact-wrapper {
    display: flex;
    gap: 40px;
    align-items: stretch;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-info {
    flex: 1;
    min-width: 200px;
}

.contact-info h3,
.contact-form-wrapper h3 {
    font-weight: 400;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #00d9ff;
    letter-spacing: 1px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: 0.3s;
}
.contact-list li:last-child {
    border-bottom: none;
}
.contact-list li:hover {
    padding-left: 8px;
    border-bottom-color: rgba(0, 217, 255, 0.3);
}

.contact-icon {
    font-size: 1.4rem;
    width: 32px;
    text-align: center;
    color: #00d9ff;
}

.contact-list a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    font-size: 1rem;
}
.contact-list a:hover {
    color: #00d9ff;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.4);
}

.contact-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    filter: brightness(0.9);
    transition: 0.3s;
}
.contact-list li:hover .contact-icon-img {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.contact-form-wrapper {
    flex: 1.5;
    min-width: 250px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: 0.3s;
    box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #00d9ff;
    background: rgba(0, 217, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.08);
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-form button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #00d9ff, #7b2fff);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}
.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.5);
    opacity: 0.9;
}

/* Адаптив для страницы контактов */
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
        padding: 24px 20px;
        gap: 30px;
        border-radius: 18px;
    }
    .page-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    .contact-info,
    .contact-form-wrapper {
        min-width: auto;
        flex: none;
    }
    .contact-list li {
        padding: 10px 0;
        font-size: 0.95rem;
    }
    .contact-icon {
        font-size: 1.2rem;
        width: 28px;
    }
    .contact-form input,
    .contact-form textarea {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    .contact-form button {
        padding: 14px;
        font-size: 1rem;
    }
    .contact-icon-img {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .page {
        padding: 20px 0;
    }
    .contact-wrapper {
        padding: 18px 14px;
        border-radius: 14px;
    }
    .page-title {
        font-size: 1.5rem;
    }
    .contact-info h3,
    .contact-form-wrapper h3 {
        font-size: 1.1rem;
    }
    .contact-list a {
        font-size: 0.9rem;
    }
}

/* ===== СТРАНИЦЫ АВТОРИЗАЦИИ (вход + регистрация) ===== */
.auth-container {
    max-width: 440px !important;
    padding: 40px 35px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 28px !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5) !important;
    transition: 0.3s;
}

.auth-title {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 6px;
    color: #fff;
    text-align: center;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
    font-size: 0.95rem;
    text-align: center;
}

.auth-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.auth-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    transition: 0.3s ease;
    box-sizing: border-box;
}

.auth-form input:focus {
    outline: none;
    border-color: #00d9ff;
    background: rgba(0, 217, 255, 0.06);
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.08);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%); 
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    padding: 6px 12px;
    transition: 0.2s;
    border-radius: 6px;
}

.toggle-password:hover {
    color: #00d9ff;
    background: rgba(0, 217, 255, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0 25px;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 10px;
}

.remember-me,
.agree-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.remember-me input[type="checkbox"],
.agree-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #00d9ff;
    cursor: pointer;
}

.agree-check a {
    color: #00d9ff;
    text-decoration: none;
    transition: 0.2s;
}
.agree-check a:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.3);
}

.forgot-link {
    color: #00d9ff;
    text-decoration: none;
    transition: 0.2s;
    font-size: 0.9rem;
}
.forgot-link:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.btn-auth {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00d9ff, #7b2fff);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.25);
    letter-spacing: 0.5px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(0, 217, 255, 0.45);
    opacity: 0.9;
}

.btn-auth:active {
    transform: translateY(0);
}

.auth-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.auth-footer a {
    color: #00d9ff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}
.auth-footer a:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.3);
}

.auth-error {
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(255, 70, 70, 0.15);
    border: 1px solid rgba(255, 70, 70, 0.3);
    border-radius: 10px;
    color: #ff6b6b;
    text-align: center;
    font-size: 0.95rem;
    backdrop-filter: blur(4px);
}

/* Адаптив для форм авторизации */
@media (max-width: 768px) {
    .auth-container {
        padding: 30px 24px !important;
        border-radius: 20px;
    }
    .auth-title {
        font-size: 1.8rem;
    }
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 24px 16px !important;
        border-radius: 16px;
    }
    .auth-title {
        font-size: 1.5rem;
    }
    .auth-subtitle {
        font-size: 0.85rem;
    }
    .auth-form input[type="text"],
    .auth-form input[type="email"],
    .auth-form input[type="password"] {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    .btn-auth {
        font-size: 1rem;
        padding: 12px;
    }
}

/* ===== КНОПКИ ВХОДА И РЕГИСТРАЦИИ В МЕНЮ ===== */
.nav-separator {
    display: inline-block;
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 10px;
    vertical-align: middle;
}

.auth-link {
    color: #fff !important;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: 10px;
}
.auth-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #00d9ff !important;
}

.register-link {
    background: linear-gradient(135deg, #00d9ff, #7b2fff);
    border: none;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.25);
}
.register-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.4);
    background: linear-gradient(135deg, #00d9ff, #7b2fff);
    color: #fff !important;
}

@media (max-width: 768px) {
    .nav-separator {
        display: none;
    }
    .auth-link {
        display: block;
        margin: 8px 20px;
        text-align: center;
        padding: 12px;
        border-radius: 30px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    .register-link {
        background: linear-gradient(135deg, #00d9ff, #7b2fff);
        border: none;
    }
    .register-link:hover {
        background: linear-gradient(135deg, #00d9ff, #7b2fff);
        transform: scale(1.02);
    }
}









.toggle-password {
    display: inline-block !important;
    background: rgba(255,0,0,0.2) !important; /* чтобы увидеть */
}



/* ===== КНОПКА "ПОКАЗАТЬ ПАРОЛЬ" (уникальный стиль) ===== */
.btn-show-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    background: rgba(255, 255, 255, 0.08); /* лёгкий фон */
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 14px;
    border-radius: 20px; /* скруглённая, как пилюля */
    transition: 0.25s ease;
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.btn-show-password:hover {
    background: rgba(0, 217, 255, 0.15);
    border-color: #00d9ff;
    color: #00d9ff;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.btn-show-password:active {
    transform: translateY(-50%) scale(0.96);
}



.auth-success {
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(0, 217, 255, 0.12);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 10px;
    color: #00d9ff;
    text-align: center;
    font-size: 0.95rem;
    backdrop-filter: blur(4px);
}
.auth-success a {
    color: #fff;
    text-decoration: underline;
}





/* =========================================
   ERROR PAGE
   ========================================= */

.error-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;

    background: #0b1120;
    color: #ffffff;
}

.error-content {
    width: 100%;
    max-width: 720px;
    text-align: center;
}


/* =========================================
   ERROR CODE
   ========================================= */

.error-code {
    margin-bottom: 20px;

    font-size: clamp(100px, 18vw, 180px);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -8px;

    color: #3b82f6;

    user-select: none;
}


/* =========================================
   TITLE
   ========================================= */

.error-title {
    margin: 0 0 16px;

    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700;
    line-height: 1.2;

    color: #f8fafc;
}


/* =========================================
   DESCRIPTION
   ========================================= */

.error-text {
    max-width: 600px;
    margin: 0 auto 32px;

    font-size: 17px;
    line-height: 1.7;

    color: #94a3b8;
}


/* =========================================
   BUTTON
   ========================================= */

.error-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 0 26px;

    border-radius: 8px;

    background: #3b82f6;
    color: #ffffff;

    font-size: 16px;
    font-weight: 600;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.error-button:hover {
    background: #2563eb;
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}

.error-button:active {
    transform: translateY(0);
}


/* =========================================
   ERROR NUMBER
   ========================================= */

.error-number {
    margin-top: 28px;

    font-size: 13px;
    color: #475569;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    .error-page {
        padding: 30px 18px;
    }

    .error-code {
        margin-bottom: 18px;
        letter-spacing: -5px;
    }

    .error-title {
        font-size: 26px;
    }

    .error-text {
        font-size: 16px;
        line-height: 1.6;
    }

    .error-button {
        width: 100%;
        max-width: 280px;
    }
}


/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    .error-button {
        transition: none;
    }

    .error-button:hover {
        transform: none;
    }
}


.p-error {
    opacity: 0.7;
    max-width: 500px;
    margin: 0 auto 30px;  /* или 300px, если нужно именно так */
	text-decoration: underline;
}