/* NeuroTail — theme: Изумруд (Emerald)
   Тело сайта — светлое (Swiss White).
   Трансформированы только header и footer: тёмные, градиент в изумруд. */
:root {
    --primary: #059669;
    --primary-dark: #047857;
    --secondary: #34d399;
    --accent: #04150f;
    --light: #ffffff;
    --dark: #050807;
    --gradient-1: linear-gradient(120deg, #050807 0%, #04150f 45%, #065f46 100%);
    --gradient-2: linear-gradient(135deg, #059669, #10b981);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 18px 40px rgba(0,0,0,0.10);
    --radius: 0;
    --radius-lg: 0;
}

body { background: #fff; color: #111; font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif; }

/* ---------- HEADER: тёмный, градиент в изумруд ---------- */
.navbar {
    background: linear-gradient(120deg, #050807 0%, #04150f 45%, #065f46 100%) !important;
    border-bottom: 1px solid rgba(16, 185, 129, .35);
    box-shadow: 0 4px 20px rgba(6, 78, 59, .25);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.navbar-brand { color: #6ee7b7 !important; }
.navbar-brand span { color: #6ee7b7 !important; font-weight: 700; }
.navbar-brand span:last-child { color: #fff !important; }

.navbar .nav-link {
    color: rgba(255, 255, 255, .72) !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: .82rem;
    letter-spacing: .12em;
    border-radius: 0;
    white-space: nowrap;
}
.navbar .nav-link:hover { background: rgba(16, 185, 129, .12); color: #6ee7b7 !important; }
.navbar .nav-link::after { background: linear-gradient(90deg, #10b981, #6ee7b7); }
.navbar .nav-link.active { color: #6ee7b7 !important; }

.navbar-toggler { border-color: rgba(16, 185, 129, .4); }
.navbar-toggler-icon { filter: invert(1); }

/* ---------- HERO (главная) — как в 19 emerald ---------- */
.hero-section {
    background: #fff !important;
    color: #111;
    padding: 7rem 0 5.5rem;
    text-align: left !important;
}
.hero-section::before, .hero-section::after { display: none; }
.hero-section .position-absolute { display: none; }
.hero-section .container { text-align: left !important; }
.hero-section h1 {
    color: #111;
    text-shadow: none;
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.05;
    font-size: clamp(2.1rem, 4.6vw, 3.6rem);
}
.hero-section h1 .text-underline-accent {
    text-decoration: underline;
    text-decoration-color: #ff4d00;
    text-decoration-thickness: 6px;
    text-underline-offset: 10px;
    white-space: nowrap;
}
.hero-section p { color: #666; font-size: 1.15rem; }
.hero-section .btn-primary {
    background: #111;
    color: #fff;
    border-radius: 0;
    box-shadow: none;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .9rem;
}
.hero-section .btn-primary:hover { background: #ff4d00; transform: none; box-shadow: none; }
@media (max-width: 575px) {
    .hero-section h1 { line-height: 1.25; }
    .hero-section h1 .text-underline-accent {
        text-decoration-thickness: 4px;
        text-underline-offset: 3px;
    }
}

/* ---------- Секции главной: заголовки слева ---------- */
.hero-section + .py-5 .text-center,
.hero-section + .py-5 .text-center h2,
.hero-section + .py-5 .text-center p {
    text-align: left !important;
}

/* ---------- Section eyebrow + divider (как в 19 emerald) ---------- */
.section-eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #ff4d00;
    margin-bottom: .9rem;
}
.divider-glow {
    height: 3px;
    width: 64px;
    background: #ff4d00;
    margin: 0 0 1.2rem;
}

/* ---------- Hero eyebrow (как в 19 emerald) ---------- */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem 1rem;
    background: none;
    border: 1px solid #111;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 1.2rem;
}
.hero-eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4d00;
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- CTA (главная) ---------- */
section[style*="background:linear-gradient(135deg, #0d1b2a, #1b263b)"] {
    background: #111 !important;
}
section[style*="background:linear-gradient(135deg, #0d1b2a, #1b263b)"] .btn-outline-light {
    border-color: #6ee7b7;
    color: #6ee7b7;
    border-radius: 0;
}
section[style*="background:linear-gradient(135deg, #0d1b2a, #1b263b)"] .btn-outline-light:hover {
    background: #6ee7b7;
    border-color: #6ee7b7;
    color: #04150f;
}

/* ---------- Page banners: тёмная изумрудная подложка с фоновым изображением ---------- */
.page-banner {
    background:
        linear-gradient(120deg, rgba(5, 8, 7, .93) 0%, rgba(4, 21, 15, .88) 45%, rgba(6, 95, 70, .82) 100%),
        url("../../img/hero-bg.jpg") center / cover no-repeat !important;
    border-bottom: 1px solid rgba(16, 185, 129, .35);
}
.page-banner::before { display: none; }
.page-banner, .page-banner * { text-align: left !important; }
.page-banner h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; letter-spacing: -.02em; }
.page-banner p { color: rgba(255, 255, 255, .65); max-width: 620px; }
.page-banner .breadcrumb { justify-content: flex-start !important; }
.page-banner .breadcrumb-item a { color: rgba(255, 255, 255, .7); }
.page-banner .breadcrumb-item a:hover { color: #6ee7b7; }

/* ---------- Service cards — как в 19 emerald ---------- */
.service-card, .service-card-home {
    position: relative;
    background: #fff;
    border-radius: 0 !important;
    padding: 1.8rem 1.6rem;
    box-shadow: none;
    border: 1px solid #111;
    height: 100%;
    overflow: hidden;
    transition: box-shadow .3s;
}
.service-card::before, .service-card-home::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: #ff4d00;
    opacity: 0;
    transition: opacity .3s;
}
.service-card:hover, .service-card-home:hover {
    box-shadow: 0 18px 40px rgba(0,0,0,.10);
}
.service-card:hover::before, .service-card-home:hover::before { opacity: 1; }
.service-icon {
    width: 62px;
    height: 62px;
    border-radius: 0 !important;
    display: grid;
    place-items: center;
    font-size: 1.9rem;
    background: #fff;
    box-shadow: inset 0 0 0 1.5px #111;
    margin-bottom: 1.1rem;
    transition: transform .3s;
}
.service-card:hover .service-icon,
.service-card-home:hover .service-icon {
    transform: scale(1.08) rotate(-4deg);
}
.service-card-home .display-1 {
    display: inline-grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 0;
    background: #fff;
    box-shadow: inset 0 0 0 1.5px #111;
    font-size: 1.9rem;
    transform-origin: 50% 50%;
    transition: transform .3s;
    margin-bottom: 1.1rem;
}
.service-card-home:hover .display-1 {
    transform: scale(1.08) rotate(-4deg);
}
.service-card h5, .service-card-home h5 {
    font-weight: 700;
    font-size: 1.08rem;
    margin-bottom: .5rem;
}
.service-card p, .service-card-home p {
    color: #666;
    font-size: .93rem;
    margin-bottom: 1rem;
}
.service-sidebar { border-radius: 0; }
.service-card .service-sidebar.bg-primary { background: #0d6efd !important; }
.service-card .service-sidebar.bg-success { background: #198754 !important; }
.service-card .service-sidebar.bg-warning { background: #ffc107 !important; }
.service-card .service-sidebar.bg-info { background: #0dcaf0 !important; }
.service-card .service-sidebar.bg-danger { background: #dc3545 !important; }
.service-card .service-sidebar.bg-secondary { background: #6c757d !important; }
.service-card .badge { background: #111; border-radius: 0; }

/* ---------- Generic cards ---------- */
.card {
    border-radius: 0 !important;
    border: 1px solid #111;
    box-shadow: none;
}
.card:hover { box-shadow: 0 18px 40px rgba(0,0,0,.10); }
.hover-lift:hover { box-shadow: 0 18px 40px rgba(0,0,0,.10) !important; }

/* ---------- Section headings — как в 19 emerald ---------- */
h2.fw-bold {
    font-weight: 700;
    letter-spacing: -.03em;
}

/* ---------- Buttons (квадратные, как в 19) ---------- */
.btn-primary {
    background: #111 !important;
    color: #fff !important;
    border-radius: 0 !important;
    box-shadow: none;
}
.btn-primary:hover { background: #ff4d00 !important; transform: none; box-shadow: none; }
.btn-outline-primary {
    border-color: #111;
    color: #111;
    border-radius: 0 !important;
}
.btn-outline-primary:hover { background: #111; color: #fff; border-color: #111; transform: none; }
.btn-outline-light { border-radius: 0 !important; }

/* ---------- Forms ---------- */
.form-control, .form-select {
    border: 1px solid #111;
    border-radius: 0;
    background: #fff;
}
.form-control:focus, .form-select:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .18);
}
.form-label {
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #111;
}

/* ---------- Auth modal ---------- */
.modal-content { border-radius: 0; border: 1px solid #111; box-shadow: none; }
.nav-tabs .nav-link { border-radius: 0; border-bottom: 3px solid transparent; }
.nav-tabs .nav-link.active {
    color: #fff;
    background: #111;
    border-bottom-color: #111;
}

/* ---------- Chat widget ---------- */
.chat-fab {
    background: #111 !important;
    border-radius: 0;
    box-shadow: none;
}
.chat-fab:hover { box-shadow: none !important; }
.chat-panel { border-radius: 0; border: 1px solid #111; box-shadow: var(--shadow-lg); }
.chat-header { background: #111 !important; }
.chat-msg.user { background: #111; border-radius: 0; }
.chat-msg.admin { background: #fff; border-radius: 0; box-shadow: inset 0 0 0 1px #111; }

/* ---------- Links / text ---------- */
a { color: #111; }
a:hover { color: #10b981; }
.text-primary { color: #059669 !important; }
.text-warning { color: #f59e0b !important; }

/* ---------- Misc ---------- */
.badge { border-radius: 0; }
::selection { background: #111; color: #fff; }

/* ---------- FOOTER: тёмный, градиент в изумруд ---------- */
.footer {
    background: linear-gradient(120deg, #050807 0%, #04150f 55%, #065f46 100%) !important;
    border-top: 1px solid rgba(16, 185, 129, .3);
    color: rgba(255, 255, 255, .72);
}
.footer h5 { color: #6ee7b7; }
.footer-text { color: rgba(255, 255, 255, .6) !important; }
.footer-link { color: rgba(255, 255, 255, .72) !important; }
.footer-link:hover { color: #6ee7b7 !important; }
.footer-copyright { color: rgba(255, 255, 255, .45) !important; }
.footer .border-top { border-color: rgba(16, 185, 129, .25) !important; }
