:root {
    --primary-orange: #ff8c00;
    --light-orange: #ffa500;
    --pale-orange: #fff8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --bg-light: #f8fafc;
}

body {
    background-color: var(--bg-light);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    background: #ffffff !important;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    color: var(--text-primary) !important;
    min-width: 175px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.25);
}

.brand-mark i {
    font-size: 1.35rem;
    line-height: 1;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-weight: 800;
    font-size: 1.18rem;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    margin-top: 0.15rem;
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 600;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 0.65rem 0.95rem;
    border-radius: 8px;
    margin: 0 0.1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-orange) !important;
    background-color: var(--pale-orange);
}

.navbar-actions {
    align-items: center;
    gap: 0.5rem;
}

.navbar-nav .nav-link.login-btn {
    color: var(--text-primary) !important;
    font-weight: 700;
    background: transparent;
    box-sizing: border-box;
}

.navbar-nav .nav-link.register-btn,
.navbar-nav .nav-link.cabinet-btn {
    color: #ffffff !important;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
    box-shadow: 0 8px 18px rgba(255, 140, 0, 0.25);
    box-sizing: border-box;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
}

.navbar-nav .nav-link.login-btn:hover {
    background-color: var(--pale-orange) !important;
    color: var(--primary-orange) !important;
}

.navbar-nav .nav-link.register-btn:hover,
.navbar-nav .nav-link.cabinet-btn:hover {
    background: linear-gradient(135deg, #e67e00, var(--primary-orange)) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(255, 140, 0, 0.32);
}

.navbar-nav .nav-link.register-btn:hover i,
.navbar-nav .nav-link.cabinet-btn:hover i {
    color: #ffffff !important;
}

.navbar-toggler {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.45rem 0.65rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.18rem rgba(255, 140, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
}

.card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

main {
    flex: 1 0 auto;
}

footer {
    margin-top: auto;
}

.site-footer {
    padding: 3.5rem 0 1.5rem;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 140, 0, 0.16), transparent 28%),
        linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    border-top: 3px solid var(--primary-orange);
}

.site-footer__top {
    padding-bottom: 2rem;
}

.site-footer__brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.25);
}

.site-footer__brand-title {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.1;
}

.site-footer__brand-subtitle,
.site-footer__text {
    color: #cbd5e1;
}

.site-footer__brand-subtitle {
    margin-top: 0.15rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.site-footer__text {
    max-width: 460px;
    font-size: 0.95rem;
    line-height: 1.65;
}

.site-footer__heading {
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
}

.site-footer__links,
.site-footer__contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer__links li,
.site-footer__contacts li {
    margin-bottom: 0.7rem;
}

.site-footer__links a,
.site-footer__contacts {
    color: #cbd5e1;
    font-size: 0.92rem;
}

.site-footer__links a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__links a:hover,
.site-footer__bottom-links a:hover {
    color: #ffffff;
}

.site-footer__contacts li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.site-footer__contacts i {
    color: var(--primary-orange);
    margin-top: 0.1rem;
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(203, 213, 225, 0.18);
    color: #94a3b8;
    font-size: 0.85rem;
}

.site-footer__bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.9rem;
}

.site-footer__bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cookie-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1050;
    max-width: 360px;
    width: calc(100% - 2rem);
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-orange);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
    padding: 0.9rem 1rem;
    display: none;
}

.cookie-banner.is-visible {
    display: block;
}

.cookie-banner__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.cookie-banner__text {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 0.75rem;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.5rem;
}

.cookie-banner__actions .btn {
    font-size: 0.82rem;
    padding: 0.35rem 0.65rem;
}

@media (max-width: 575.98px) {
    .cookie-banner {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }

    .navbar-nav .nav-link {
        margin: 0.15rem 0;
        padding: 0.75rem 1rem;
    }

    .navbar-actions {
        align-items: stretch;
        gap: 0.25rem;
        margin-top: 0.5rem;
    }

    .navbar-actions .nav-link {
        text-align: center;
    }

    .brand-subtitle {
        display: none;
    }

    .navbar-brand {
        min-width: auto;
    }

    .site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer__bottom-links {
        justify-content: flex-start;
    }
}

/* ===== Публичные страницы сайта: общие паттерны ===== */

.hero-section-orange {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--light-orange) 100%);
    color: #ffffff;
}

.hero-icon-lg {
    font-size: 6rem;
    opacity: 0.9;
}

.hero-icon-xl {
    font-size: 8rem;
    opacity: 0.9;
}

.hero-subtext {
    opacity: 0.9;
}

.section-badge {
    color: var(--primary-orange);
    font-weight: 600;
}

.section-bg-alt {
    background-color: #f8f9fa;
}

.text-brand {
    color: var(--primary-orange);
}

.text-brand-md {
    color: var(--primary-orange);
    font-size: 2.2rem;
}

.text-brand-lg {
    color: var(--primary-orange);
    font-size: 2.4rem;
}

.text-brand-xl {
    color: var(--primary-orange);
    font-size: 3rem;
}

.text-sm {
    font-size: 0.85rem;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* ===== Главная страница ===== */

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.hero-section {
    min-height: 500px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--light-orange) 100%);
    color: #ffffff;
}

.hero-btn-primary {
    transition: all 0.3s ease;
    background: #ffffff;
    color: var(--primary-orange);
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
    border: none;
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4) !important;
    background: #ffffff !important;
    color: var(--primary-orange) !important;
}

.hero-btn-secondary {
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-weight: 600;
    background: transparent;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    transform: translateY(-3px);
}

.feature-icon {
    transition: transform 0.3s ease;
}

.hover-lift:hover .feature-icon {
    transform: scale(1.1);
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.step-number:hover {
    transform: scale(1.1);
}

.benefit-panel {
    border-left: 4px solid var(--primary-orange) !important;
}

.compliance-card {
    border-left: 4px solid var(--primary-orange) !important;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff8f0, #ffe8d0);
}

.law-note {
    background: #ffffff;
    border-left: 4px solid var(--primary-orange);
    border-radius: 10px;
}

.benefit-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--pale-orange);
    color: var(--primary-orange);
    font-size: 1.2rem;
}

.mini-point {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 10px;
    padding: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.audience-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* ===== Тарифы ===== */

.tariff-value-card,
.tariff-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tariff-value-card:hover,
.tariff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.tariff-card {
    position: relative;
    overflow: visible;
}

.tariff-card.is-popular {
    border: 3px solid var(--primary-orange) !important;
}

.tariff-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--pale-orange);
    color: var(--primary-orange);
    font-size: 1.8rem;
}

.tariff-popular-badge {
    background: var(--primary-orange);
}

.tariff-cta-card {
    background: linear-gradient(135deg, #fff8f0, #ffe8d0);
}

/* ===== Контакты ===== */

.contact-section-icon,
.contact-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--pale-orange);
    color: var(--primary-orange);
}

.contact-section-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    font-size: 1.4rem;
}

.contact-info-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 1.2rem;
}

.contact-card,
.contact-step-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover,
.contact-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* ===== Документы ===== */

.document-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--pale-orange);
    font-size: 1.5rem;
    color: var(--primary-orange);
    flex-shrink: 0;
}

.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color) !important;
}

.hover-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-orange) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.category-filter {
    border-radius: 8px;
    padding: 0.65rem 1.5rem;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.category-filter:hover {
    border-color: var(--primary-orange);
    background: var(--pale-orange);
    color: var(--primary-orange);
}

.category-filter.active {
    background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
    color: #ffffff;
    border-color: var(--primary-orange);
    box-shadow: 0 8px 18px rgba(255, 140, 0, 0.25);
}

.document-meta {
    font-size: 0.9rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: #ddd;
}

#documents-list .btn-outline-primary {
    background: #ffffff;
    border: 1px solid var(--primary-orange);
    color: var(--primary-orange);
    font-weight: 600;
    border-radius: 8px;
    padding: 0.65rem 1.25rem;
}

#documents-list .btn-outline-primary:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: #ffffff;
}

.document-action-btn {
    width: 170px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
}

.document-action-btn.btn-outline-secondary {
    font-weight: 600;
    border-radius: 8px;
}

.document-content {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-primary);
}

.document-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-orange);
}

.document-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-left: 15px;
    border-left: 4px solid var(--primary-orange);
}

.document-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.document-content p {
    margin-bottom: 1rem;
}

.document-content ul,
.document-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.document-content li {
    margin-bottom: 0.5rem;
}

.document-content strong {
    font-weight: 700;
    color: var(--text-primary);
}

.document-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.document-content table th,
.document-content table td {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    text-align: left;
}

.document-content table th {
    background: var(--pale-orange);
    font-weight: 700;
    color: var(--text-primary);
}

.document-content pre {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-orange);
    padding: 1rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 1.5rem 0;
}

#documentModal .modal-content {
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

#documentModal .modal-header {
    background: var(--pale-orange);
    border-bottom: 1px solid var(--border-color);
}

#documentModal .modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

#documentModal .modal-body {
    padding: 2rem;
    max-height: 70vh;
}

#documentModal .modal-footer {
    background: #f8f9fa;
}

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

.document-card {
    animation: fadeInUp 0.5s ease both;
}

/* ===== Подтверждение email ===== */

.result-icon {
    font-size: 3.5rem;
}
