/* assets/css/style.css – полный, с поддержкой адаптации и новых элементов матрицы (для публичных страниц) */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --secondary: #10b981;
    --dark: #1e293b;
    --gray: #64748b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.02);
    --radius: 16px;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: #fff;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo img { height: 42px; width: auto; }
.nav__list {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}
.nav__list a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.2s;
}
.nav__list a:hover { color: var(--primary); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(79,70,229,0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79,70,229,0.4);
}
.btn-outline {
    border-color: var(--border);
    background: transparent;
    color: var(--dark);
}
.btn-outline:hover { background: var(--light); border-color: var(--primary); }
.btn-large { padding: 16px 36px; font-size: 1.15rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }
.btn-info {
    background: #0ea5e9;
    color: white;
    border: none;
}
.btn-info:hover { background: #0284c7; }

/* Hero */
.hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 50%, #f0f4ff 100%);
    overflow: hidden;
}
.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero__title {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--dark);
}
.hero__title span {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero__subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 36px;
    line-height: 1.7;
}
.hero__cta { display: flex; gap: 16px; margin-bottom: 40px; }
.hero__stats { display: flex; gap: 40px; }
.hero-stat__number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}
.hero-stat__label {
    display: block;
    font-size: 0.9rem;
    color: var(--gray);
}
.hero__image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}

/* Section headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--dark);
}
.section-subtitle {
    font-size: 1.15rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Services */
.services { padding: 100px 0; background: white; }
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
}
.service-card {
    background: white;
    padding: 48px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
}
.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}
.service-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}
.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 700;
}
.service-card p { color: var(--gray); margin-bottom: 20px; font-size: 1.05rem; }
.service-card__link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.service-card__link:hover { color: var(--primary-dark); }

/* Partners */
.partners { padding: 100px 0; background: var(--light); }
.partners__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.partners__features {
    list-style: none;
    margin-bottom: 30px;
}
.partners__features li {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.05rem;
}
.partners__features li i { color: var(--secondary); margin-top: 3px; flex-shrink: 0; }
.partners__image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Steps */
.how-it-works { padding: 100px 0; background: white; }
.steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    text-align: center;
}
.step {
    flex: 1;
    max-width: 300px;
    padding: 40px 30px;
    background: var(--light);
    border-radius: var(--radius);
    transition: transform 0.3s, box-shadow 0.3s;
}
.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.step__number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 24px;
    box-shadow: 0 8px 20px rgba(79,70,229,0.3);
}
.step h3 { font-size: 1.3rem; margin-bottom: 12px; }
.step p { color: var(--gray); }

/* CTA */
.cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 100px 0;
    text-align: center;
}
.cta h2 { font-size: 2.8rem; margin-bottom: 20px; font-weight: 800; }
.cta p { font-size: 1.15rem; opacity: 0.9; max-width: 600px; margin: 0 auto 30px; }
.cta .btn-light {
    background: white;
    color: var(--primary);
    border-color: white;
}
.cta .btn-light:hover { background: #f1f5f9; }

/* Footer */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 60px 0 0;
}
.footer__container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer__col img { margin-bottom: 16px; }
.footer__social {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}
.footer__social a {
    width: 40px;
    height: 40px;
    background: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s;
}
.footer__social a:hover { background: var(--primary); color: white; }
.footer a { color: #cbd5e1; text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: white; }
.footer h4 { color: white; margin-bottom: 20px; font-size: 1.1rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.footer__bottom {
    border-top: 1px solid #1e293b;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* ==================== СТРАНИЦЫ АВТОРИЗАЦИИ ==================== */
.page-auth {
    background: var(--light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.auth-container {
    width: 100%;
    max-width: 450px;
}
.auth-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.auth-logo {
    display: block;
    text-align: center;
    margin-bottom: 30px;
}
.auth-logo img {
    height: 40px;
}
.auth-card h1 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    color: var(--dark);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--dark);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: 'Inter', sans-serif;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-check input[type="checkbox"] {
    width: auto;
    margin: 0;
}
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.alert-error {
    background: #fee2e2;
    color: #b91c1c;
}
.alert-success {
    background: #dcfce7;
    color: #166534;
}
.alert-info {
    background: #e0f2fe;
    color: #075985;
}
.alert-warning {
    background: #fef9c3;
    color: #854d0e;
}
.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--gray);
}
.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.auth-footer a:hover {
    text-decoration: underline;
}

/* Модальные окна */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-content, .modal-content-single {
    background: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    position: relative;
}
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: flex-end;
}

/* Mobile menu toggle (бургер-иконка) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}
.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark);
    margin: 5px 0;
    transition: 0.3s;
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 1024px) {
    .hero__title { font-size: 3rem; }
    .hero__container { gap: 30px; }
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    .nav__list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 99;
    }
    .nav__list.active {
        right: 0;
    }
    .hero { padding: 60px 0; }
    .hero__container { grid-template-columns: 1fr; text-align: center; }
    .hero__title { font-size: 2.4rem; }
    .hero__subtitle { font-size: 1rem; }
    .hero__cta { flex-direction: column; align-items: center; }
    .hero__stats { justify-content: center; }
    .hero__image { display: none; }
    .section-title { font-size: 2rem; }
    .services__grid { grid-template-columns: 1fr; }
    .partners__content { grid-template-columns: 1fr; }
    .partners__image img { max-width: 100%; }
    .steps { flex-direction: column; align-items: center; }
    .cta h2 { font-size: 2rem; }
    .footer__container { grid-template-columns: 1fr; }
    .auth-card { padding: 30px 20px; }
    .form-row { grid-template-columns: 1fr; }
    .modal-content, .modal-content-single { padding: 20px; width: 95%; }
}