/* === БАЗА === */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background: #020617;
    color: #e5e7eb;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
}


/* Для светлых страниц, если нужно */
body.body-light {
    background: #f3f4f6;
    color: #111827;
}

/* === NAVBAR / HEADER === */

.nav-blur,
.navbar-blur {
    backdrop-filter: blur(16px);
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

/* === HERO / ЛЕНДИНГ === */

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-gradient {
    background:
        radial-gradient(circle at top left, #4f46e5 0, transparent 55%),
        radial-gradient(circle at bottom right, #d6014c 0, transparent 60%),
        #020617;
}

.glass-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 1.5rem;
}

.badge-soft {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 999px;
}

.btn-cta {
    border-radius: 999px !important;
    padding-left: 1.75rem !important;
    padding-right: 1.75rem !important;
}

.section-light {
    background: #0f172a;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
}

/* === AUTH (логин, регистрация) === */

body.auth-page {
    background:
        radial-gradient(circle at top left, #4f46e5 0, transparent 55%),
        radial-gradient(circle at bottom right, #22c55e 0, transparent 60%),
        #020617;
    min-height: 100vh;
}

/* Центруємо форму всередині main, щоб footer не "їхав" */
body.auth-page main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    width: 100%;
}

@media (max-width: 576px) {
    body.auth-page main { padding: 16px 0; }
}
.auth-card {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.8);
}

.auth-card .form-control,
.auth-card .form-select {
    background-color: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.4);
    color: #e5e7eb;
}

.auth-card .form-control:focus,
.auth-card .form-select:focus {
    background-color: rgba(15, 23, 42, 0.95);
    border-color: #4f46e5;
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.5);
    color: #e5e7eb;
}

/* === ЛЕЙАУТ КАБИНЕТА === */

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #020617;
    border-right: 1px solid rgba(148, 163, 184, 0.3);
}

.sidebar .brand {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.sidebar a {
    color: #9ca3af;
    font-size: 0.9rem;
}

.sidebar a.active {
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.9);
}

.sidebar .nav-link {
    border-radius: .75rem;
    padding: .5rem 1rem;
    margin: .1rem .75rem;
}

.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b7280;
    padding: .75rem 1.5rem .25rem;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topbar {
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
}

.card-glass {
    background: rgba(15, 23, 42, 0.98);
    border-radius: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.metric-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9ca3af;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 600;
}

.status-tabs .btn {
    border-radius: 999px;
    font-size: .8rem;
}

/* Таблицы в дашборде */
.table-dark.table-striped thead th {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9ca3af;
    border-color: rgba(55, 65, 81, 0.7);
}

.table-dark.table-striped tbody td {
    font-size: .86rem;
    vertical-align: middle;
    border-color: rgba(31, 41, 55, 0.8);
}

/* === Страница психологов === */

.page-header {
    margin-bottom: 1.5rem;
}

.page-header-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.page-header-subtitle {
    color: #9ca3af;
    font-size: 0.9rem;
}

.psych-card {
    background: rgba(15, 23, 42, 0.98);
    border-radius: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1.25rem;
    height: 100%;
}

.psych-avatar {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(148, 163, 184, 0.5);
}

.psych-name {
    font-weight: 600;
}

.psych-specialization {
    font-size: .85rem;
    color: #9ca3af;
}

.psych-price {
    font-weight: 600;
}

.psych-meta {
    font-size: .8rem;
    color: #9ca3af;
}

/* === Профиль психолога === */

.profile-hero {
    background: radial-gradient(circle at top left, #4f46e5 0, transparent 55%),
                radial-gradient(circle at bottom right, #22c55e 0, transparent 60%),
                #020617;
    padding: 2rem 0 3rem;
}

.profile-card {
    background: rgba(15, 23, 42, 0.96);
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

/* === FOOTER === */

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    background: #020617;
    color: #9ca3af;
}

.site-footer a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: .9rem;
}

.site-footer a:hover {
    text-decoration: underline;
}


/* === DROPDOWN / МЕНЮ "ПОСЛУГИ" === */

.dropdown-menu-glass {
    background: rgba(15, 23, 42, 0.96);
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: .5rem;
    backdrop-filter: blur(16px);
}

.dropdown-menu-glass .dropdown-item {
    font-size: 0.9rem;
    color: #e5e7eb;
    border-radius: .6rem;
    padding: .4rem .9rem;
}

.dropdown-menu-glass .dropdown-item:hover {
    background: rgba(55, 65, 81, 0.9);
    color: #f9fafb;
}


/* === Профіль психолога — розширення === */

.profile-hero {
    background: radial-gradient(circle at top left, #4f46e5 0, transparent 55%),
                radial-gradient(circle at bottom right, #22c55e 0, transparent 60%),
                #020617;
    padding: 2rem 0 3rem;
}

.profile-card {
    background: rgba(15, 23, 42, 0.96);
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Статистика на картці психотерапевта */
.profile-stat {
    min-width: 110px;
}

.profile-stat-number {
    font-weight: 600;
    font-size: 1.2rem;
    color: #e5e7eb;
}

.profile-stat-label {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Піллюльки / теги */
.pill {
    display: inline-block;
    padding: .2rem .7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 0.75rem;
    color: #e5e7eb;
}

/* Больше воздуха между секциями */
section {
    scroll-margin-top: 80px;
}

/* HERO: блок с накладёнными фото */
.hero-images {
    position: relative;
    min-height: 260px;
}

.hero-img img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 1.5rem;
    object-fit: cover;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
}

.hero-img-main {
    position: relative;
    z-index: 2;
    width: 70%;
    max-width: 380px;
}

.hero-img-secondary {
    position: absolute;
    right: 0;
    bottom: -20px;
    width: 55%;
    max-width: 300px;
    z-index: 1;
    opacity: 0.95;
}

@media (max-width: 767.98px) {
    .hero-images {
        min-height: auto;
    }
    .hero-img-main,
    .hero-img-secondary {
        position: static;
        width: 100%;
        max-width: none;
        margin-bottom: 1rem;
    }
}

/* Фільтри на головній */
.psych-filter-bar .btn {
    border-radius: 999px;
    font-size: .8rem;
    padding: .3rem .9rem;
    border-color: rgba(148, 163, 184, 0.6);
}

.psych-filter-bar .btn.active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #f9fafb;
}

/* Маленькі пігулки тегів */
.pill-small {
    font-size: 0.7rem;
    padding: .15rem .6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: #e5e7eb;
}

/* Кружочки-іконки у блоці "Як працює" */
.how-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.95);
}

.how-icon .bi-icon {
    font-size: 1rem;
    font-weight: 600;
    color: #f9fafb;
}


/* === VIDCHUY: HEADER, HERO, HOME, TESTIMONIALS === */

/* Лого у хедері */
.brand-logo {
    height: 28px;
    width: auto;
    display: block;
}

/* Чуть сдвигаем меню правіше тільки в головному хедері */
.navbar.navbar-blur .navbar-nav {
    margin-left: 2rem;
}

@media (max-width: 991.98px) {
    .navbar.navbar-blur .navbar-nav {
        margin-left: 0;
    }
}

/* Зелена брендова кнопка для "Я психолог" / "Кабінет" */
.btn-psych-main {
    background: #22c55e;
    border-color: #22c55e;
    color: #0b1120;
    border-radius: 999px;
    padding: 0.35rem 1.1rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-psych-main:hover,
.btn-psych-main:focus {
    background: #16a34a;
    border-color: #16a34a;
    color: #f9fafb;
}

/* Більше "повітря" при скролі до секцій (не впливає на відступи) */
section {
    scroll-margin-top: 80px;
}

/* HERO: блок з накладеними фото */
.hero-images {
    position: relative;
    min-height: 260px;
}

.hero-img img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 1.5rem;
    object-fit: cover;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
}

.hero-img-main {
    position: relative;
    z-index: 2;
    width: 70%;
    max-width: 380px;
}

.hero-img-secondary {
    position: absolute;
    right: 0;
    bottom: -20px;
    width: 55%;
    max-width: 300px;
    z-index: 1;
    opacity: 0.95;
}

@media (max-width: 767.98px) {
    .hero-images {
        min-height: auto;
    }

    .hero-img-main,
    .hero-img-secondary {
        position: static;
        width: 100%;
        max-width: none;
        margin-bottom: 1rem;
    }
}

/* Фільтри на головній (блок "Наші психологи") */
.psych-filter-bar .btn {
    border-radius: 999px;
    font-size: .8rem;
    padding: .3rem .9rem;
    border-color: rgba(148, 163, 184, 0.6);
}

.psych-filter-bar .btn.active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #f9fafb;
}

/* Маленькі "пігулки" тегів тем */
.pill-small {
    font-size: 0.7rem;
    padding: .15rem .6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: #e5e7eb;
}

/* Кружочки-іконки у блоці "Як працює Vidchuy" */
.how-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.95);
}

.how-icon .bi-icon {
    font-size: 1rem;
    font-weight: 600;
    color: #f9fafb;
}

/* Блок відгуків */
.testimonial-section {
    background: #0b1220;
}

.testimonial-slider {
    position: relative;
    padding-bottom: 3rem;
}

.testimonial-card {
    border-radius: 1.5rem;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    font-weight: 600;
    color: #f9fafb;
}

.text-secondary.xsmall {
    font-size: 0.75rem;
}

/* Стрілки слайдера відгуків унизу, а не поверх тексту */
.testimonial-slider .carousel-control-prev,
.testimonial-slider .carousel-control-next {
    top: auto;
    bottom: 0;
    transform: none;
    width: 3rem;
    height: 3rem;
}

.testimonial-slider .carousel-control-prev {
    left: calc(50% - 3.5rem);
}

.testimonial-slider .carousel-control-next {
    right: calc(50% - 3.5rem);
}

/* AI Companion Block */

.ai-companion-card{
background: linear-gradient(145deg, #79093a, #5a072c);
border-radius:22px;
padding:50px;
border:1px solid rgba(255,255,255,0.06);
box-shadow:0 20px 60px rgba(0,0,0,0.35);
}

.ai-companion-title{
font-size:32px;
font-weight:700;
color:#ffffff;
}

.ai-companion-title span{
color:#4ea1ff;
}

.ai-companion-text{
color:#b6c2d1;
font-size:16px;
line-height:1.7;
margin-bottom:14px;
}

.ai-companion-cta{
text-align:center;
background:rgba(255,255,255,0.02);
border-radius:16px;
padding:35px;
border:1px solid rgba(255,255,255,0.05);
}

.ai-companion-cta-text{
font-size:18px;
font-weight:600;
color:#ffffff;
}

.ai-companion-note{
font-size:13px;
color:#9aa7b6;
}