@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;

    color: #2c3e50;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}



/* Header Styles */
.header {
    background: linear-gradient(135deg, #2e5ef8 0%, #719bf1 100%);
    position: sticky;

    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #ffffff;
    font-size: 3.5vh;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1.5vh;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}



.nav-menu {
    list-style: none;
    display: flex;
    gap: 3vh;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    display: flex;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 2vh;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 1vh 2vh;
    border-radius: 8px;
    white-space: nowrap;
}


.user-info-item {
    margin-left: 2vh;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1.5vh;
    color: #ffffff;
    font-size: 1.8vh;
    font-weight: 500;
    padding: 1vh 2vh;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.welcome-text {
    opacity: 0.9;
}

.admin-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5vh 1vh;
    border-radius: 6px;
    font-size: 1.6vh;
    font-weight: 600;
}

.logout-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}


.nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}




.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    background-color: var(--primary-blue);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.logo-text h1 {
    font-size: 22px;
    color: var(--primary-blue);
    margin-bottom: 3px;
}

.logo-text p {
    font-size: 14px;
    color: var(--text-light);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}


.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-orange);
    border-radius: 3px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-blue);
    cursor: pointer;
}





/* Секция Hero */
.hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 80px 0;
    width: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    justify-content: center;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}



.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

/* Hero изображение */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-placeholder {
    position: relative;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.image-placeholder i {
    font-size: 8rem;
    color: white;
    opacity: 0.8;
}

.pulse-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Секция "О системе" */
.about-section {
    padding: 50px 0;
    background-color: white;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

/* Карточки */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.about-card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}



.about-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.about-icon i {
    font-size: 2.5rem;
    color: white;
}

.about-card h3 {
    font-size: 1.5rem;
    color: #1e3c72;
    margin-bottom: 15px;
}

.about-card p {
    color: #666;
    line-height: 1.7;
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 250px;
        justify-content: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .image-placeholder {
        width: 200px;
        height: 200px;
    }

    .image-placeholder i {
        font-size: 5rem;
    }
}


     /* Общие стили для формы */
 .form-container {
     max-width: 500px;
     margin: 40px auto;
     padding: 40px;
     background: white;
     border-radius: 16px;
     box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
     font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
 }

.form-title {
    text-align: center;
    color: #1e3c72;
    margin-bottom: 35px;
    font-size: 28px;
    font-weight: 600;
}

/* Стили для полей формы */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #e1e5eb;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: #4a6cf7;
    background: white;
    box-shadow: 0 0 0 4px rgba(74, 108, 247, 0.1);
}

.form-control::placeholder {
    color: #999;
    font-size: 14px;
}

/* Стили для поля телефона */
.phone-input-container {
    position: relative;
}

.phone-format {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-weight: 400;
    text-align: left;
}

.phone-input:valid {
    border-color: #4CAF50;
    background-color: #f8fff8;
}

.phone-input:invalid:not(:placeholder-shown) {
    border-color: #ff4757;
    background-color: #fff8f8;
}

.phone-input:focus {
    border-color: #4a6cf7;
    box-shadow: 0 0 0 4px rgba(74, 108, 247, 0.1);
}

/* Стили для checkbox */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4a6cf7;
}

.form-check label {
    margin: 0;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

/* Стили для кнопки */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4a6cf7 0%, #3a56d4 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    justify-content: center;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3a56d4 0%, #2a46b1 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 86, 212, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Ссылка для входа */
.form-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.form-link p {
    color: #666;
    font-size: 15px;
    margin: 0;
}

.form-link a {
    color: #4a6cf7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-link a:hover {
    color: #3a56d4;
    text-decoration: underline;
}

/* Стили для ошибок */
.help-block {
    color: #ff4757;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

/* Адаптивность */
@media (max-width: 600px) {
    .form-container {
        margin: 20px;
        padding: 25px;
    }

    .form-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .form-control {
        padding: 12px 14px;
        font-size: 15px;
    }

    .btn-primary {
        padding: 14px;
    }
}

@media (max-width: 400px) {
    .form-container {
        margin: 10px;
        padding: 20px;
    }

    .form-check {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

