@import url('menu.css');
:root {
    --primary: #67c233;
            --hover:rgb(40, 128, 13);
    --textik :#000000;
}

:root {
    font-family: 'Inter', sans-serif;
}

body {
    font-family: 'Inter', sans-serif;
}
.logo-link img { border-radius: 0;}
/* Для совместимости с Safari */
@supports (font-variation-settings: normal) {
    :root { 
        font-family: 'InterVariable', sans-serif;
        font-optical-sizing: auto;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {

    line-height: 1.6;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

img {
    max-width: 100%;
    border-radius: 25px;
}

h1 {
    font-size: 2.5rem;
    color: var(--textik);
    text-align: center;
}

h2 {
    color: var(--textik);
    margin: 25px 0;
    font-size: 1.8rem;
}

.content-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}



.telegram-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    background: var(--primary);
    color: white!important;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    margin: 40px auto;
}

.telegram-btn:hover {
    background: var(--hover);
    transform: translateY(-5px);
}
.telegram-btn svg { width: 30px; height: 30px; margin-right: 20px;}

.keywords {
    background: #e9ecef;
    padding: 20px;
    border-radius: 15px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 10px;
    }
}

 /* Добавляем новые стили */
 .quote-block {
    position: relative;
    padding: 25px;
    margin: 20px 0;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary);
    transition: transform 0.3s ease;
}

.quote-block:hover {
    transform: translateX(10px);
}

.quote-text {
    font-size: 1.1em;
    line-height: 1.5;
    color: #333;
    padding-right: 40px;
    position: relative;
}

.copy-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    background: rgba(35, 161, 220, 0.55);
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--primary);
}

.copy-btn:hover .copy-icon {
    stroke: white;
}

.copy-icon {
    width: 30px;
    height: 20px;
    stroke: var(--primary);
    transition: stroke 0.3s ease;
}

.quote-block::before {
    content: "“";
    position: absolute;
    left: 10px;
    top: -15px;
    font-size: 80px;
    color: var(--primary);
    opacity: 0.1;
   
}

/* Адаптивность */
@media (max-width: 768px) {
    .quote-text {
        font-size: 1em;
        padding-right: 35px;
    }
    
    .copy-btn {
        padding: 6px;
    }
    
    .copy-icon {
        width: 18px;
        height: 18px;
    }
}





.random-quote-section {
padding: 20px 0;
}

.quote-container {
margin: 0 auto;
display: flex;
align-items: center;
gap: 30px;
padding: 20px;
position: relative;
}

.statham-photo {
flex-shrink: 0;
width: 200px;
height: 200px;
border-radius: 50%;
overflow: hidden;
border: 4px solid var(--primary);
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
position: relative;
z-index: 1;
}

.quote-content {
flex-grow: 1;
position: relative;
}

.quote-text2 {
font-size: 1.4rem;
line-height: 1.5;
padding: 25px;
background: white;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
position: relative;
opacity: 0;
transform: translateX(-20px);
animation: quoteAppear 0.8s forwards;
min-height: 120px;
cursor: pointer;
}
.quote-text3 {

    line-height: 1.5;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    animation: quoteAppear 0.8s forwards;
    min-height: 120px;
    cursor: pointer;
    }

@keyframes quoteAppear {
0% {
opacity: 0;
transform: translate(-50px, -30px) scale(0.8);
}
100% {
opacity: 1;
transform: translate(0) scale(1);
}
}

.quote-text2::before, .quote-text3::before {
content: "“";
position: absolute;
left: 10px;
top: -30px;
font-size: 90px;
color: var(--primary);
opacity: 0.2;

}

.generate-btn {
margin-top: 20px;
background: var(--primary);
color: white;
border: none;
padding: 12px 35px;
border-radius: 30px;
font-size: 1.1rem;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
z-index: 2;
}

.generate-btn:hover {
background: var(--hover);
transform: translateY(-2px);
}

@media (max-width: 768px) {
.quote-container {
flex-direction: column;
text-align: center;
}

.statham-photo {
width: 150px;
height: 150px;
}

.quote-text {
font-size: 1.1rem;
animation: mobileAppear 0.8s forwards;
}

@keyframes mobileAppear {
0% {
    opacity: 0;
    transform: translate(0, -30px) scale(0.8);
}
100% {
    opacity: 1;
    transform: translate(0) scale(1);
}
}
}
.quote-notification {
position: fixed;
top: 20px;
left: 50%;
transform: translateX(-50%);
background: rgba(0, 0, 0, 0.8);
color: white;
padding: 12px 25px;
border-radius: 25px;
font-size: 18px;
opacity: 0;
visibility: hidden;
transition: all 0.4s ease;
z-index: 1000;
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
white-space: nowrap;
}

.quote-notification.show {
opacity: 1;
visibility: visible;
top: 30px;
}
@media (max-width: 768px) {
.quote-notification {
width: 90%;
text-align: center;
white-space: normal;
padding: 10px 15px;
font-size: 14px;
}
}
#memeModal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.8);
z-index: 9999;
cursor: pointer; /* Добавляем курсор-указатель */
}

#memeModal > div {
cursor: auto; /* Возвращаем стандартный курсор для контента */
pointer-events: none; /* Блокируем события для внутреннего контейнера */
}

#memeModal > div > * {
pointer-events: auto; /* Включаем события для дочерних элементов */
}
/* Добавить в стили */
.quote-content {
min-height: 200px; /* Минимальная высота контейнера */
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Плавная анимация */
}

.quote-text2 {
transition: transform 0.3s ease, opacity 0.3s ease; /* Анимация для текста */
transform-origin: top center;
}

.generate-btn {
transition: transform 0.3s ease; /* Анимация для кнопок */
}

/* При появлении новой цитаты */
.quote-text2 {
animation: quoteAppear 0.8s forwards, textScale 0.5s ease;
}

@keyframes textScale {
0% {
transform: scale(0.98);
}
100% {
transform: scale(1);
}
}
/* Стили для ссылок-цитат */
a.quote-block {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.quote-block:hover {
    transform: translateX(10px);
    text-decoration: none;
}

/* Убрать стандартное подчеркивание */
.quote-text2 {
    text-decoration: none !important;
}
/* Дополнительные стили для страницы цитаты */
.meme-container {
    max-width: 1000px;
    margin: 20px auto;
    position: relative;
}
.meme-container img { max-width: 1000px;}

.main-meme {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.images-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

.carousel-item {
    cursor: pointer;
    transition: transform 0.3s;
    border-radius: 8px;
    overflow: hidden;
}

.carousel-item:hover {
    transform: scale(1.05);
}

.carousel-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* Обновим существующие стили */
.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap; /* Добавляем перенос элементов */
}

/* Добавим медиа-запрос */
@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column; /* Вертикальное расположение */
        align-items: stretch; /* Растягиваем на всю ширину */
        padding: 0 15px; /* Добавляем отступы по бокам */
    }
    
    .share-btn {
        margin: 5px 0 !important; /* Вертикальные отступы */
        width: 100% !important; /* Занимаем всю ширину */
        text-align: center; /* Центрируем текст */
    }
}
@media (max-width: 768px) {
    h1.quote-text3 {
        font-size: 1.5rem;
        line-height: 1.3;
        padding: 15px;
    }
    
    h2 {
        font-size: 1.3rem;
        padding: 0 10px;
    }
}

.share-btn {
    background: #23a0dc;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    color: rgb(34, 34, 34);
    margin: 0 10px;
    cursor: pointer;
}

.all-quotes-btn {
    display: block;
    width: 300px;
    margin: 30px auto;
    padding: 15px;
    background: #4CAF50;
    color: white;
    text-align: center;
    border-radius: 25px;
    text-decoration: none;
}

@media (max-width: 768px) {
    .images-carousel {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .share-btn {
        margin: 10px;
        width: 100%;
    }
}

.meme-container {
    position: relative;
    max-width: 1000px;
    margin: 20px auto;
}

.main-meme {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.download-btn {
    display: block;
    width: 300px;
    margin: 20px auto;
    padding: 12px;
    background: #4CAF50;
    color: white;
    text-align: center;
    border-radius: 25px;
    text-decoration: none;
}

.images-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

.carousel-item {
    cursor: pointer;
    transition: transform 0.3s;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
}

.carousel-item:hover {
    transform: scale(1.05);
    border-color: #23a0dc;
}

.carousel-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.share-btn {
    padding: 12px 25px;
    border-radius: 25px;
    background: #23a0dc;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.share-btn:hover {
    opacity: 0.9;
}

.more-quotes .quote-block {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

/* Новые стили */
.dark-header {
    background: #efeff0;
    border-radius: 0 0 50px 50px;
    padding: 20px 0 30px;
    position: relative;
    z-index: 1;
}

.dark-header .container {
    position: relative;
}

.dark-header h2 {
    text-align: center;
}

.meme-container {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 25px;
    margin: 30px auto;
}

.download-btn,
.share-btn {
    background: rgba(0, 0, 0, 0.075) !important;
    border: 2px solid rgba(0, 0, 0, 0.144);
    color: rgb(37, 37, 37) !important;
    font-size: 16px !important;
    padding: 12px 25px !important;
    margin: 10px auto !important;
    transition: all 0.3s ease;
    text-align: center;
    display: flex; align-items: center;
}
.share-btn svg { width: 30px; height: 30px; margin-right:10px; }

.download-btn:hover,
.share-btn:hover {
    background: rgba(255,255,255,0.25) !important;
    transform: translateY(-2px);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 40px 0 20px;
}
.quote-text4 { font-weight: 300; font-size: 1.2rem;}
/* Адаптивность */
@media (max-width: 768px) {
    .dark-header {
        border-radius: 0 0 40px 40px;
        padding: 30px 0 0px;
    }
    
    .share-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .download-btn,
    .share-btn {
        width: 100%;
        margin: 5px 0 !important;
    }
    
    .meme-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .dark-header h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .dark-header h2 {
        font-size: 1.4rem;
    }
}

.like-btn {
    position: relative;
    padding: 12px 20px;
    margin-left: 10px;
    background: rgba(255, 255, 255, 0.1);
}

.like-icon {
    font-size: 24px;
    vertical-align: middle;
}

.like-count {
    margin-left: 8px;
    font-weight: bold;
}

.like-btn.liked .like-icon {
    color: #ff3366;
    animation: pulse 0.5s;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Хедер */
.main-header {
    background: rgba(0,0,0,0.9);
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    transform: translateY(0);
}

.main-header.hidden {
    transform: translateY(-100%);
}
/* Добавить отступ для основного контента */
.container {
    margin-top: 70px; /* Высота хедера + padding */
}
/* Стили для категорий на странице цитаты */
.quote-categories-block {
    padding: 15px 0;
    border-top: 1px solid #eee;
}

.quote-categories-block h3 {
    font-size: 24px;
    color: #666;
    margin-bottom: 12px;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid var(--primary);
}

.category-tag:hover {
    background: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    color: white;
}

@media (max-width: 768px) {
    .category-tag {
        font-size: 13px;
        padding: 6px 12px;
    }
}
.nomargin { margin-top: 0 !important;}









/* Стили для карточки автора */
.author-card {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 30px;
    max-width: 800px;
}

.author-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.author-position {
    font-size: 1rem;
    color: #7f8c8d;
    margin: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .author-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }
    
    .author-avatar {
        width: 70px;
        height: 70px;
    }
    
    .author-name {
        font-size: 1.1rem;
    }
    
    .author-position {
        font-size: 0.85rem;
    }
}

/* Анимация появления */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.author-card {
    animation: fadeIn 0.6s ease-out;
}


@media (max-width: 480px) {
    .author-card {
        margin: 20px 0;
    }
    
    .author-avatar {
        width: 60px;
        height: 60px;
    }
    
    .author-name {
        font-size: 1rem;
    }
}


/* Центрирование автора */
.author-card {
    margin: 30px auto; /* auto по бокам для центрирования */
    width: fit-content; /* Ширина по содержимому */
    max-width: 100%; /* Чтобы не выходил за границы на мобильных */
}

/* Для контейнера можно добавить (если ещё нет) */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

* Анимация */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.author-card {
    animation: fadeIn 0.6s ease-out;
}























/* Базовые стили статьи */
.ng-article {
    margin: 0 auto;
    padding: 20px;
    line-height: 1.7;
    color: #333;
}

/* Карточка автора */
.ng-author-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 40px auto;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f5ff 100%);
    border-radius: 20px;
    max-width: 600px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.05);
    animation: ngFadeIn 0.8s ease-out;
}

.ng-author-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 4px solid white;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.ng-author-info {
    flex: 1;
}

.ng-author-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #2c3e50;
}

.ng-author-position {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
}

/* Основной текст */
.ng-content-block {
    margin: 30px 0;
    font-size: 1.1rem;
    line-height: 1.8;
    animation: ngFadeInUp 0.6s ease-out;
}

/* Заголовки разделов */
.ng-subtitle {
    font-size: 1.8rem;
    margin: 50px 0 20px;
    position: relative;
    padding-left: 20px;
}

.ng-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    height: 60%;
    width: 6px;
    background: linear-gradient(to bottom, #23a0dc, #2dd4bf);
    border-radius: 3px;
}

/* Предупреждающий блок */
.ng-warning-block {
    background: #fff4e6;
    border-left: 4px solid #ff922b;
    padding: 20px;
    border-radius: 12px;
    margin: 30px 0;
    display: flex;
    gap: 15px;
    align-items: center;
    animation: ngPulse 2s infinite;
}

.ng-warning-icon {
    background: #ff922b;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* Блок цитаты */
.ng-quote-block {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
    border-left: 4px solid #23a0dc;
    padding: 25px;
    border-radius: 0 16px 16px 0;
    margin: 40px 0;
    font-size: 1.2rem;
    font-style: italic;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.ng-quote-block::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 4rem;
    color: rgba(35, 160, 220, 0.1);
    font-family: serif;
}

/* Блок с шагами */
.ng-steps-container {
    margin: 40px 0;
    display: grid;
    gap: 20px;
}

.ng-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.ng-step:hover {
    transform: translateY(-5px);
}

.ng-step-number {
    background: linear-gradient(135deg, #23a0dc 0%, #2dd4bf 100%);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.ng-step-content h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

/* Блок с изображением */
.ng-image-block {
    margin: 40px 0;
    text-align: center;
}

.ng-image-block img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.5s;
}

.ng-image-block img:hover {
    transform: scale(1.02);
}

.ng-image-caption {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 10px;
    font-style: italic;
}

/* Блок упражнения */
.ng-exercise-block {
    background: linear-gradient(135deg, #e6f7ff 0%, #f0faff 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid #d0ebff;
}

.ng-exercise-title {
    color: #1971c2;
    margin-top: 0;
    font-size: 1.4rem;
}

.ng-save-button {
    background: linear-gradient(135deg, #23a0dc 0%, #2dd4bf 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(35, 160, 220, 0.3);
}

.ng-save-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 160, 220, 0.4);
}

/* Блок статистики */
.ng-stat-block {
    background: #2c3e50;
    color: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ng-stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #23a0dc, #2dd4bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    line-height: 1;
}

.ng-stat-text {
    font-size: 1.1rem;
    max-width: 500px;
}

/* Списки */
.ng-list {
    margin: 20px 0;
    padding-left: 20px;
}

.ng-list-item {
    margin-bottom: 12px;
    position: relative;
    padding-left: 30px;
    list-style: none;
}

.ng-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 12px;
    height: 12px;
    background: #23a0dc;
    border-radius: 3px;
    transform: rotate(45deg);
}

.ng-numbered-list {
    margin: 20px 0;
    padding-left: 20px;
    counter-reset: step-counter;
}

.ng-numbered-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 40px;
    counter-increment: step-counter;
}

.ng-numbered-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #23a0dc 0%, #2dd4bf 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Блок техники */
.ng-technique-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.ng-technique-step {
    background: white;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.ng-technique-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.ng-technique-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* Успешный блок */
.ng-success-block {
    background: linear-gradient(135deg, #ebfbee 0%, #d3f9d8 100%);
    border-left: 4px solid #2b8a3e;
    padding: 20px;
    border-radius: 0 12px 12px 0;
    margin: 30px 0;
    animation: ngFadeIn 0.8s ease-out;
}

/* Анимации */
@keyframes ngFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ngFadeInUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ngPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .ng-article { width: 100%; }
    .ng-author-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .ng-subtitle {
        font-size: 1.5rem;
    }
    
    .ng-technique-block {
        grid-template-columns: 1fr;
    }
}













/* 1. Блок "Важная мысль" */
.ng-insight-block {
    background: linear-gradient(135deg, #f3f9ff 0%, #e6f2ff 100%);
    border-left: 4px solid #4dabf7;
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 16px 16px 0;
    position: relative;
    overflow: hidden;
    animation: ngFadeIn 0.6s ease-out;
}

.ng-insight-block::before {
    content: "💡";
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2.5rem;
    opacity: 0.15;
}

.ng-insight-title {
    font-size: 1.3rem;
    color: #1971c2;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

/* 2. Блок "Предупреждение" */
.ng-alert-block {
    background: #fff3bf;
    border-left: 4px solid #ffd43b;
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 12px 12px 0;
    position: relative;
    animation: ngPulse 3s infinite;
}

.ng-alert-block::before {
    content: "⚠️";
    position: absolute;
    left: 15px;
    top: 18px;
    font-size: 1.5rem;
}

.ng-alert-content {
    padding-left: 40px;
}

/* 3. Блок "Успех" */
.ng-success-card {
    background: #ebfbee;
    border: 1px solid #40c057;
    padding: 25px;
    margin: 30px 0;
    border-radius: 16px;
    position: relative;
    animation: ngFadeInUp 0.6s ease-out;
}

.ng-success-card::before {
    content: "✨";
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
}

/* 4. Блок "Цитата психолога" */
.ng-psych-quote {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
}

.ng-psych-quote::before,
.ng-psych-quote::after {
    font-family: serif;
    font-size: 4rem;
    color: #ced4da;
    position: absolute;
    line-height: 1;
}

.ng-psych-quote::before {
    content: "“";
    top: 10px;
    left: 15px;
}

.ng-psych-quote::after {
    content: "”";
    bottom: -20px;
    right: 15px;
}

.ng-psych-author {
    display: block;
    text-align: right;
    font-style: normal;
    font-weight: 600;
    margin-top: 15px;
    color: #495057;
}

/* 5. Блок "Шаги" с эмодзи */
.ng-steps-emoji {
    margin: 40px 0;
    counter-reset: step-counter;
}

.ng-step-emoji {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    padding-left: 80px;
    animation: ngFadeInUp 0.6s ease-out;
}

.ng-step-emoji::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 25px;
    width: 40px;
    height: 40px;
    background: #4dabf7;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.ng-step-emoji-1::before { content: "1️⃣" !important; background: transparent; font-size: 1.5rem; }
.ng-step-emoji-2::before { content: "2️⃣" !important; background: transparent; font-size: 1.5rem; }
.ng-step-emoji-3::before { content: "3️⃣" !important; background: transparent; font-size: 1.5rem; }

/* 6. Блок "Факт" */
.ng-fact-block {
    background: #fff9db;
    border-left: 4px solid #ffd43b;
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 16px 16px 0;
    position: relative;
}

.ng-fact-block::before {
    content: "🔍 Интересный факт:";
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #e67700;
}

/* 7. Блок "Совет" */
.ng-tip-block {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 25px;
    margin: 30px 0;
    position: relative;
    border: 1px dashed #4dabf7;
}

.ng-tip-block::before {
    content: "💡 Совет";
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1971c2;
}

/* 8. Блок "Вопрос" */
.ng-question-block {
    background: #f3f0ff;
    border-radius: 16px;
    padding: 25px;
    margin: 30px 0;
    position: relative;
    border-left: 4px solid #7950f2;
}

.ng-question-block::before {
    content: "❓ Вопрос для размышления:";
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #5f3dc4;
}

/* Анимации */
@keyframes ngFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ngFadeInUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ngPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .ng-step-emoji {
        padding-left: 70px;
    }
    
    .ng-step-emoji::before {
        left: 15px;
        width: 35px;
        height: 35px;
    }
}


.views-count {
    margin-left: auto;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Стили для популярных и случайных статей */
.popular-grid,
.random-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.popular-card,
.random-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.popular-card:hover,
.random-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.popular-card::before {
    content: '🔥';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    z-index: 2;
}

.random-card::before {
    content: '🎲';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    z-index: 2;
}

.popular-card .post-image,
.random-card .post-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

.popular-card .post-content,
.random-card .post-content {
    padding: 20px;
}

.popular-card .post-title,
.random-card .post-title {
    font-size: 1.1rem;
    margin: 0 0 12px 0;
    color: #2c3e50;
    line-height: 1.4;
}

.popular-card .post-excerpt,
.random-card .post-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.popular-card .post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.views-count {
    font-size: 0.85rem;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .popular-grid,
    .random-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .popular-card .post-image,
    .random-card .post-image {
        height: 160px;
    }
    
    .popular-card .post-title,
    .random-card .post-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .popular-card,
    .random-card {
        margin: 0 10px;
    }
    
    .popular-card .post-content,
    .random-card .post-content {
        padding: 15px;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popular-card,
.random-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Заголовки секций */
.content-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--hover));
    border-radius: 2px;
}

/* Стили для кастомного confirm */
.custom-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    padding: 20px;
}

.confirm-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.confirm-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.confirm-header h3 {
    margin: 0;
    font-size: 18px;
}

.confirm-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-close:hover {
    color: #000;
}

.confirm-body {
    padding: 20px;
}

.confirm-body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.confirm-actions {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.confirm-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.confirm-cancel {
    background: #f8f9fa;
    color: #333;
}

.confirm-cancel:hover {
    background: #e9ecef;
}

.confirm-ok {
    background: #dc3545;
    color: white;
}

.confirm-ok:hover {
    background: #c82333;
}

.confirm-ok.publish {
    background: #28a745;
}

.confirm-ok.publish:hover {
    background: #218838;
}

.consultation-hero h1 {
    font-size: 36px;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 18px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.verification-badge {
    background: #f0f7ff;
    border: 1px solid #b8daff;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 15px;
    color: #333;
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
}

.verification-badge ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.verification-badge li {
    margin: 5px 0;
}

.consultation-cta {
    background: linear-gradient(135deg, #67c233, #4da322);
    color: white;
    text-align: center;
    padding: 40px 20px;
    border-radius: 16px;
    max-width: 800px;
    margin: 40px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.consultation-cta h2 {
    font-size: 28px;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.consultation-cta p {
    font-size: 17px;
    opacity: 0.95;
    margin: 0 0 24px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #67c233;
    font-weight: bold;
    font-size: 18px;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background: #f8f8f8;
}

/* Адаптивность */
@media (max-width: 768px) {
    .consultation-cta {
        padding: 30px 15px;
    }
    .consultation-cta h2 {
        font-size: 24px;
    }
    .consultation-cta p {
        font-size: 16px;
    }
    .cta-button {
        font-size: 16px;
        padding: 12px 24px;
    }
}




/* Стили для Telegram авторизации */
.telegram-auth-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.telegram-auth-card {
    background: linear-gradient(135deg, #0088cc 0%, #00a2e8 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 136, 204, 0.3);
    position: relative;
    overflow: hidden;
}

.telegram-auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1%, transparent 1%);
    background-size: 20px 20px;
    transform: rotate(30deg);
}

.telegram-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.telegram-auth-card h3 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
}

.telegram-auth-card p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.telegram-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.benefit-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.telegram-auth-btn {
    background: white;
    color: #0088cc;
    border: none;
    padding: 18px 30px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.telegram-auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.auth-note {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.8;
}

/* Модальное окно Telegram */
.telegram-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.telegram-modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.modal-header {
    background: linear-gradient(135deg, #0088cc, #00a2e8);
    color: white;
    padding: 30px;
    text-align: center;
    border-radius: 20px 20px 0 0;
}

.modal-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.modal-steps {
    padding: 30px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.step-number {
    background: #0088cc;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-content strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.step-content p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.telegram-launch-btn {
    display: block;
    background: #0088cc;
    color: white;
    text-align: center;
    padding: 18px;
    margin: 0 30px 30px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.telegram-launch-btn:hover {
    background: #0077b3;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.3);
}

.modal-footer {
    padding: 0 30px 30px;
    text-align: center;
}

.modal-footer a {
    color: #0088cc;
    text-decoration: none;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .telegram-auth-card {
        padding: 30px 20px;
    }
    
    .telegram-benefits {
        grid-template-columns: 1fr;
    }
    
    .telegram-modal-content {
        margin: 10px;
    }
    
    .modal-steps {
        padding: 20px;
    }
}

/* Исправления для модального окна */
.telegram-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.telegram-modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    /* Важно: предотвращаем закрытие при клике на контент */
    pointer-events: auto;
}

/* Убедитесь, что контент модалки не перехватывает клики */
.telegram-modal-content > * {
    pointer-events: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001; /* Выше чем модалка */
}

.close-modal:hover {
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
}

/* ИСПРАВЛЕНИЯ ДЛЯ TELEGRAM МОДАЛКИ */

/* Гарантируем, что модалка скрыта изначально */
.telegram-modal {
    display: none !important; /* Добавляем !important */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    backdrop-filter: blur(5px);
}

/* Когда модалка активна */
.telegram-modal.active {
    display: flex !important;
}

/* Контент модалки */
.telegram-modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    margin: 0; /* Убираем возможные отступы */
}

/* Анимация появления */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Кнопка закрытия */
.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    border-radius: 50%;
    transition: background 0.3s;
}

.close-modal:hover {
    background: rgba(0,0,0,0.1);
}

/* Предотвращаем закрытие при клике на контент */
.telegram-modal-content {
    pointer-events: auto;
}

.telegram-modal-content > * {
    pointer-events: auto;
}


/* Стили для блока Telegram пользователя */
.telegram-user-profile {
    max-width: 800px;
    margin: 30px auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    position: relative;
    overflow: hidden;
}

.telegram-user-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
}

.tg-profile-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.tg-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.tg-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.tg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tg-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
}

.tg-user-details {
    flex: 1;
}

.tg-user-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.tg-user-username {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 500;
}

.tg-actions {
    flex-shrink: 0;
}

.tg-logout-form {
    margin: 0;
}

.tg-logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tg-logout-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.tg-logout-icon {
    font-size: 16px;
}

.tg-notification-badge {
    margin-top: 15px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .telegram-user-profile {
        margin: 20px 15px;
        padding: 20px;
        border-radius: 16px;
    }
    
    .tg-profile-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .tg-user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .tg-avatar {
        width: 60px;
        height: 60px;
    }
    
    .tg-avatar-placeholder {
        font-size: 24px;
    }
    
    .tg-user-name {
        font-size: 18px;
    }
    
    .tg-user-username {
        font-size: 14px;
    }
    
    .tg-logout-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .telegram-user-profile {
        padding: 15px;
    }
    
    .tg-avatar {
        width: 50px;
        height: 50px;
    }
    
    .tg-user-name {
        font-size: 16px;
    }
}

/* Блок психолога под ответом */
.psychologist-card-response {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 25px;
    margin: 25px 0;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.psychologist-card-response::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
}

.psychologist-info-response {
    display: flex;
    align-items: center;
    gap: 20px;
}

.psychologist-avatar-response {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
}

.psychologist-avatar-response img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.psychologist-avatar-placeholder-response {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: bold;
}

.psychologist-details-response {
    flex: 1;
}

.psychologist-name-response {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.psychologist-position-response {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
    font-weight: 500;
}

.psychologist-badge-response {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    margin-top: 12px;
    display: inline-block;
}

/* Адаптивность */
@media (max-width: 768px) {
    .psychologist-card-response {
        padding: 20px;
        border-radius: 16px;
    }
    
    .psychologist-info-response {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .psychologist-avatar-response {
        width: 70px;
        height: 70px;
    }
    
    .psychologist-name-response {
        font-size: 20px;
    }
    
    .psychologist-position-response {
        font-size: 14px;
    }
}


/* Стили системы комментариев */
.comments-section {
    max-width: 800px;
    margin: 10px auto 0;
    padding: 0 20px;
}

.comments-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.comments-header h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0;
}

.comments-stats {
    font-size: 1rem;
    color: #7f8c8d;
}

.comments-count {
    font-weight: bold;
    color: #3498db;
}

/* Форма комментария */
.comment-form-container {
    margin-bottom: 40px;
}

.comment-form {
    display: flex;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e1e8ed;
}

.comment-form-avatar {
    flex-shrink: 0;
}

.comment-form-avatar .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid #e1e8ed;
}

.comment-form-content {
    flex: 1;
}

.reply-indicator {
    background: #e3f2fd;
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #1976d2;
}

.reply-indicator button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reply-indicator button:hover {
    background: rgba(0,0,0,0.1);
}

.comment-textarea {
    width: 100%;
    min-height: 80px;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
}

.comment-textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.comment-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.char-counter {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.submit-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-btn:not(:disabled):hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.submit-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.comment-login-prompt {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #666;
}

/* Список комментариев */
.comments-list {
    position: relative;
}

.comments-loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Отдельный комментарий */
.comment {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.comment:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid #e1e8ed;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.comment-time {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.comment-text {
    color: #34495e;
    line-height: 1.5;
    margin-bottom: 12px;
    word-wrap: break-word;
}

.comment-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.comment-action {
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 16px;
    transition: all 0.2s ease;
}

.comment-action:hover {
    background: #f8f9fa;
    color: #3498db;
}

.comment-action.liked {
    color: #e74c3c;
}

.like-count {
    font-weight: 600;
    font-size: 0.85rem;
}


.reply {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.reply .comment-avatar .avatar {
    width: 36px;
    height: 36px;
}

/* Модальное окно */
.comment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.comment-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 16px;
    max-width: 320px;
    width: 90%;
    text-align: center;
}

.modal-content h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.edit-btn {
    background: #3498db;
    color: white;
}

.delete-btn {
    background: #e74c3c;
    color: white;
}

.cancel-btn {
    background: #ecf0f1;
    color: #7f8c8d;
}

.modal-btn:hover {
    transform: translateY(-1px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .comments-section {
        padding: 0 15px;
    }
    
    .comment-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .comment-form-avatar {
        align-self: flex-start;
    }
    
    .comment-replies {
        margin-left: 30px;
    }
    
    .comment-header {
        flex-direction: column;
        gap: 5px;
    }
    
    .comment-actions {
        gap: 15px;
    }
}

/* 🔥 ПРИНУДИТЕЛЬНЫЕ СТИЛИ ДЛЯ КОММЕНТАРИЕВ 🔥 */
.comments-section {
    max-width: 100% !important;
    width: 100% !important;
    margin: 10px auto 0 !important;
    padding: 0 !important;
}

.comments-header {
    max-width: 1200px !important;
    margin: 0 auto 30px !important;
    padding: 0 20px 15px !important;
}

.comment-form-container {
    max-width: 1200px !important;
    margin: 0 auto 40px !important;
    padding: 0 20px !important;
}

.comments-list {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* Форма комментария на всю ширину */
.comment-form {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Заголовок комментариев */
.comments-header h3 {
    font-size: 1.8rem !important;
    color: #2c3e50 !important;
    margin: 0 !important;
    flex: 1 !important;
}

.comments-stats {
    font-size: 1rem !important;
    color: #7f8c8d !important;
    margin: 0 !important;
}

/* Выравнивание заголовка и счётчика */
.comments-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .comments-header,
    .comment-form-container,
    .comments-list {
        padding: 0 15px !important;
    }
    
    .comments-header {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: flex-start !important;
    }
    
    .comments-stats {
        align-self: flex-start !important;
    }
}

/* Стили для редактирования комментариев */
.comment-edit-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid #3498db;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 10px;
}

.edit-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.save-btn, .cancel-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}

.save-btn {
    background: #27ae60;
    color: white;
}

.cancel-btn {
    background: #e74c3c;
    color: white;
}

.edit-char-counter {
    margin-left: auto;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.edit-char-count {
    font-weight: 600;
}

/* Анимации для лайков */
.like-btn {
    transition: all 0.2s ease !important;
}

.like-btn.liked {
    color: #e74c3c !important;
}

.like-btn:active {
    transform: scale(1.2) !important;
}

/* Улучшенные стили для модального окна */
.comment-modal.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        transform: translateY(20px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

/* Стили для редактированных комментариев */
.comment-time.edited::after {
    content: ' (ред.)';
    color: #7f8c8d;
    font-style: italic;
}

/* Улучшенные стили для редактирования */
.comment-edit-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid #3498db;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.comment-edit-textarea:focus {
    border-color: #2980b9;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.edit-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

.save-btn, .cancel-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.save-btn {
    background: #27ae60;
    color: white;
}

.save-btn:hover:not(:disabled) {
    background: #219a52;
    transform: translateY(-1px);
}

.save-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.cancel-btn {
    background: #e74c3c;
    color: white;
}

.cancel-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.edit-char-counter {
    margin-left: auto;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.edit-char-count {
    font-weight: 600;
}

.edit-char-count.warning {
    color: #e74c3c;
}

.edit-char-count.caution {
    color: #f39c12;
}

/* Стили для системы ответов */
.reply-indicator {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #1565c0;
    border-left: 4px solid #2196f3;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reply-indicator button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.reply-indicator button:hover {
    background: rgba(0,0,0,0.1);
    transform: rotate(90deg);
}

/* Упоминания в тексте */
.mention {
    color: #2196f3;
    font-weight: 600;
}

/* Анимация для формы при ответе */
.comment-form {
    transition: all 0.3s ease !important;
}
/* Стили для ленивой загрузки ответов */
.view-replies-btn {
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 16px;
    transition: all 0.2s ease;
}

.view-replies-btn:hover {
    background: #e3f2fd;
    color: #2980b9;
    transform: translateY(-1px);
}

.view-replies-btn.loading {
    color: #7f8c8d;
    cursor: not-allowed;
    transform: none;
}

/* Улучшенные стили для ответов */
.comment-replies {
    margin-left: 60px;
    margin-top: 16px;
    border-left: 3px solid #e1e8ed;
    padding-left: 20px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.reply {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    margin-bottom: 12px;
}

.reply:last-child {
    margin-bottom: 0;
}

.reply .comment-avatar .avatar {
    width: 36px;
    height: 36px;
    border: 2px solid #bdc3c7;
}

.reply .comment-author {
    font-size: 0.9rem;
}

.reply .comment-time {
    font-size: 0.8rem;
}

/* 🔥 ФИКС ЛЕСЕНКИ - плоские комментарии после 2 уровня */
.comment-replies {
    margin-left: 50px;
    position: relative;
}



.reply-to {
    color: #3498db;
    font-weight: 600;
}

/* Убираем линии для глубоких уровней */
.comment[data-level="3"] .comment-replies::before,
.comment[data-level="4"] .comment-replies::before {
    display: none;
}

/* 🔥 ПЛОСКАЯ СТРУКТУРА КАК ВК */
.comment-replies {
    margin-left: 0 !important;
    border-left: none !important;
    padding-left: 0 !important;
}

.reply {
    background: #f8f9fa;
    border-left: 3px solid #3498db;
    margin-left: 10px;
}

.reply-to {
    color: #3498db;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.reply-to:hover {
    color: #2980b9;
}

/* Стили для блока "Ответ для:" */
.reply-to-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: #f0f7ff;
    border: 1px solid #d0ebff;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #1971c2;
}

.reply-to-text {
    flex: 1;
}

.jump-to-parent-btn {
    background: #1971c2;
    color: white;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
}

.jump-to-parent-btn:hover {
    background: #1864ab;
    transform: scale(1.1);
}
/* Стили для ответов на комментарии - смещение вправо */
.comment-reply {
    margin-left: 50px;
    border-left: 3px solid #e9ecef;
    padding-left: 15px;
    background: #ffffffe0;
}

.comment-reply .comment-content {
    border-left: none;
}

/* Убираем линию для глубоких уровней - все ответы на одном уровне */
.comment-reply .comment-reply {
    margin-left: 0;
    border-left: none;
    padding-left: 0;
}
/* Общая линия для ответов */
.comment-reply {
    position: relative;
    margin-left: 40px;
}

.reply-line {
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #3498db;
}

/* Новое расположение лайков - в правом углу */
.comment-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.like-btn {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 24px;
    padding: 6px 12px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.like-btn.liked {
    color: #e74c3c;
}

.like-btn.liked::before {
    content: "♥";
    color: #e74c3c;
}

.like-btn:not(.liked)::before {
    content: "♡";
    color: #7f8c8d;
}

.like-count {
    font-size: 14px;
    font-weight: 600;
}

/* Стили для личного кабинета в меню - ВСЕ С ПРЕФИКСОМ */
.pc-menu-profile-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.pc-menu-profile-link:hover .pc-menu-profile {
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

.pc-menu-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pc-menu-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.pc-menu-name {
    font-weight: 500;
}
/* Стили для кнопки профиля психолога */
.psychologist-profile-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #67c233, #4da322);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.psychologist-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(103, 194, 51, 0.4);
    color: white;
    text-decoration: none;
}

/* Стили для кнопки профиля психолога */
.author-profile-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #67c233, #4da322);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(103, 194, 51, 0.3);
}

.author-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(103, 194, 51, 0.4);
    color: white;
    text-decoration: none;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .author-profile-btn {
        padding: 8px 16px;
        font-size: 13px;
        margin-top: 10px;
    }
}


/* Стили для блока голосования */
.poll-container {
    background: linear-gradient(135deg, #ff6b35, #ff8e53);
    border-radius: 30px;
    padding: 30px;
    margin: 30px 0;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    animation: pollAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 100% !important; /* ← ДОБАВЬ ЭТУ СТРОЧКУ */
    max-width: 100% !important; /* ← И ЭТУ */
    box-sizing: border-box; /* ← И ЭТУ */
}
/* Для мобилок */
@media (max-width: 768px) {
    .poll-container {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 20px;
    }
}

.poll-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ff6b35, #ff8e53);
}

@keyframes pollAppear {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.poll-question {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 25px 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Кастомные чекбоксы */
.poll-option {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.poll-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.poll-option-label {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.poll-option:hover .poll-option-label {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.poll-option input:checked + .poll-option-label {
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Кастомный чекбокс */
.custom-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    margin-right: 15px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.poll-option input:checked + .poll-option-label .custom-checkbox {
    background: #fff;
    border-color: #fff;
}

.custom-checkbox::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #ff6b35;
    font-weight: bold;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.poll-option input:checked + .poll-option-label .custom-checkbox::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Стили для результатов */
.poll-results {
    display: none;
    animation: resultsAppear 0.8s ease;
}

@keyframes resultsAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.poll-result-item {
    margin-bottom: 15px;
    animation: resultSlideIn 0.6s ease forwards;
    opacity: 0;
    transform: translateX(-20px);
}

@keyframes resultSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.result-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
}

.result-bar-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.result-bar {
    height: 100%;
    background: linear-gradient(90deg, #fff, #ffd700);
    border-radius: 10px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: barFill 1.5s ease-out forwards;
}

@keyframes barFill {
    from {
        width: 0%;
    }
}

.result-percentage {
    font-weight: 700;
    font-size: 0.9rem;
}

.poll-message {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    font-weight: 600;
    animation: messagePulse 2s infinite;
}

@keyframes messagePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Honeypot поле */
.poll-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .poll-container {
        padding: 20px;
        margin: 20px 0;
        border-radius: 20px;
    }
    
    .poll-question {
        font-size: 1.2rem;
    }
    
    .poll-option-label {
        padding: 15px;
    }
    
    .custom-checkbox {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }
}

@media (max-width: 480px) {
    .poll-container {
        padding: 15px;
        border-radius: 15px;
    }
    
    .poll-question {
        font-size: 1.1rem;
    }
    
    .poll-option-label {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

.consultation-psychologist-avatar {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #67c233;
    box-shadow: 0 8px 25px rgba(103, 194, 51, 0.3);
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #f0f9f0, #e8f5e8);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.consultation-psychologist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.consultation-psychologist-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #67c233, #4da322);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
}

.consultation-psychologist-info {
    text-align: center;
    margin-bottom: 25px;
}

.consultation-psychologist-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.consultation-psychologist-position {
    font-size: 1rem;
    color: #666;
    line-height: 1.4;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .consultation-psychologist-avatar {
        width: 100px;
        height: 100px;
    }
    
    .consultation-psychologist-avatar-placeholder {
        font-size: 2rem;
    }
    
    .consultation-psychologist-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .consultation-psychologist-avatar {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }
    
    .consultation-psychologist-avatar-placeholder {
        font-size: 1.5rem;
    }
    
    .consultation-psychologist-name {
        font-size: 1.1rem;
    }
}


/* СТИЛИ FAQ - АККОРДЕОН С АНИМАЦИЯМИ */
.faq-section {
    margin: 10px 0;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%; /* ДОБАВИТЬ ЭТУ СТРОКУ */
    box-sizing: border-box; /* ДОБАВИТЬ ЭТУ СТРОКУ */
}

.faq-title {
    color: white;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.faq-accordion {
    width: 100%;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question[aria-expanded="true"] {
    background: #f1f3f4;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(90deg);
}

.faq-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: #667eea;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.faq-answer.show {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 25px 20px;
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

/* СТИЛИ HOWTO - ТАЙМЛАЙН С АНИМАЦИЯМИ */
.howto-section {
    margin: 10px 0;
    padding: 40px 30px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%; /* ДОБАВИТЬ ЭТУ СТРОКУ */
    box-sizing: border-box; /* ДОБАВИТЬ ЭТУ СТРОКУ */
}

.howto-title {
    color: white;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.howto-steps {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.howto-steps::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.howto-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInStep 0.6s ease forwards;
}

@keyframes fadeInStep {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.howto-step:nth-child(1) { animation-delay: 0.1s; }
.howto-step:nth-child(2) { animation-delay: 0.2s; }
.howto-step:nth-child(3) { animation-delay: 0.3s; }
.howto-step:nth-child(4) { animation-delay: 0.4s; }
.howto-step:nth-child(5) { animation-delay: 0.5s; }

.step-number {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #f5576c;
    margin-right: 25px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.howto-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.step-content {
    flex: 1;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.howto-step:hover .step-content {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.step-title {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.step-description {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .faq-section, .howto-section {
        margin: 20px 0;
        padding: 20px 15px;
        width: 100%; /* ДОБАВЬ И ЗДЕСЬ */
        box-sizing: border-box; /* ДОБАВЬ И ЗДЕСЬ */
    }
    
    .faq-title, .howto-title {
        font-size: 1.5rem;
    }
    
    .faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .howto-steps::before {
        left: 25px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-right: 20px;
    }
    
    .step-content {
        padding: 20px;
    }
}

.copy-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 10000;
    transition: all 0.3s;
    opacity: 1;
}

.copy-notification.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}

.quote-text3 {
    cursor: pointer;
    transition: transform 0.2s;
    padding: 10px;
    border-radius: 8px;
}

.quote-text3:active {
    transform: scale(0.98);
}
/* Основные стили статьи */
.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.article-header {
    margin-bottom: 3rem;
    text-align: center;
}

.article-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 1rem 0;
    color: #2c3e50;
    animation: fadeInUp 0.8s ease;
}

.article-meta {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.article-hero {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

.image-caption {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    padding: 0.5rem;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #34495e;
}

.article-lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: #2c3e50;
    margin: 2rem 0;
    padding: 1rem;
    border-left: 4px solid #3498db;
    background: #f8f9fa;
}

.article-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #ecf0f1;
}

.social-sharing {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.share-button {
    background: none;
    border: 2px solid #3498db;
    color: #3498db;
    padding: 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-button:hover {
    background: #3498db;
    color: white;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tag {
    background: #ecf0f1;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #3498db;
    color: white;
}

.related-articles {
    margin-top: 4rem;
}

.section-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.related-article {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.related-article:hover {
    transform: translateY(-5px);
}

.article-link {
    text-decoration: none;
    color: inherit;
}

.article-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-title {
    font-size: 1.2rem;
    padding: 1rem;
    margin: 0;
    color: #2c3e50;
}

.related-excerpt {
    font-size: 0.9rem;
    color: #7f8c8d;
    padding: 0 1rem 1rem;
    margin: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    z-index: 1000;
}

/* 🔥 Минималистичный дизайн для навигации по статье */
.ng-insight-block {
    background: transparent;
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    position: relative;
    animation: ngNavAppear 0.6s ease-out;
}

.ng-insight-title {
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.ng-insight-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.ng-insight-block ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid;
    gap: 12px;
}

.ng-insight-block li {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: ngNavAppear 0.6s ease-out forwards;
}

.ng-insight-block li:nth-child(1) { animation-delay: 0.1s; }
.ng-insight-block li:nth-child(2) { animation-delay: 0.2s; }
.ng-insight-block li:nth-child(3) { animation-delay: 0.3s; }
.ng-insight-block li:nth-child(4) { animation-delay: 0.4s; }
.ng-insight-block li:nth-child(5) { animation-delay: 0.5s; }
.ng-insight-block li:nth-child(6) { animation-delay: 0.6s; }
.ng-insight-block li:nth-child(7) { animation-delay: 0.7s; }

.ng-insight-block a {
    display: flex !important;
    align-items: center !important;
    padding: 18px 20px !important;
    background: #f8fafc !important;
    border-radius: 15px !important;
    text-decoration: none !important;
    color: #2d3748 !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    transition: all 0.3s ease !important;
    border: 2px solid #e2e8f0 !important;
    position: relative;
    overflow: hidden;
}

.ng-insight-block a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.ng-insight-block a:hover::before {
    left: 100%;
}

.ng-insight-block a:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15) !important;
    border-color: #667eea !important;
    background: #ffffff !important;
    color: #2d3748 !important;
    text-decoration: none !important;
}

/* Анимация появления */
@keyframes ngNavAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стрелка при наведении */
.ng-insight-block a::after {
    content: '→';
    position: absolute;
    right: 20px;
    color: #667eea;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.ng-insight-block a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Адаптивность */
@media (max-width: 768px) {
    .ng-insight-block {
        padding: 25px 20px;
        margin: 30px 0;
        border-radius: 15px;
    }
    
    .ng-insight-title {
        font-size: 1.5rem;
    }
    
    .ng-insight-block a {
        padding: 15px !important;
        font-size: 1rem !important;
    }
    
    .ng-insight-block a::after {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .ng-insight-block {
        padding: 20px 15px;
    }
    
    .ng-insight-title {
        font-size: 1.3rem;
    }
    
    .ng-insight-block a {
        padding: 12px 15px !important;
        font-size: 0.95rem !important;
    }
}

/* Легкая тень для всего блока */
.ng-insight-block {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    border: 1px solid #f1f5f9;
}

/* СТИЛИ ДЛЯ БЛОКА ПЕРЕХОДА К КОНСУЛЬТАЦИИ */
.cr-consultation-block {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f9f0 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid #c8e6c9;
    position: relative;
    overflow: hidden;
}

.cr-consultation-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #45a049);
}

.cr-header {
    text-align: center;
    margin-bottom: 25px;
}

.cr-main-title {
    font-size: 24px;
    color: #2e7d32;
    margin-bottom: 10px;
    font-weight: 700;
}

.cr-subtitle {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

.cr-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.cr-benefit-item {
    background: white;
    padding: 15px;
    border-radius: 12px;
    border-left: 4px solid #4CAF50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cr-benefit-title {
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 5px;
    font-size: 14px;
}

.cr-benefit-desc {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.cr-psychologists-section {
    margin: 30px 0;
}

.cr-section-title {
    text-align: center;
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.cr-psychologists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cr-psychologist-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cr-psychologist-card:hover {
    transform: translateY(-5px);
    border-color: #4CAF50;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.cr-psychologist-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #4CAF50;
}

.cr-psychologist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cr-psychologist-name {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.cr-psychologist-specialization {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.cr-psychologist-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
}

.cr-psychologist-feature {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: #495057;
    font-weight: 500;
}

.cr-contact-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: 14px;
}

.cr-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.cr-urgent-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.cr-urgent-title {
    color: #856404;
    font-weight: 600;
    margin-bottom: 5px;
}

.cr-urgent-text {
    color: #856404;
    font-size: 14px;
    margin: 0;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .cr-consultation-block {
        padding: 20px;
        margin: 30px 0;
        border-radius: 15px;
    }
    
    .cr-main-title {
        font-size: 20px;
    }
    
    .cr-subtitle {
        font-size: 14px;
    }
    
    .cr-benefits-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .cr-psychologists-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cr-psychologist-card {
        padding: 20px;
    }
    
    .cr-psychologist-avatar {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .cr-consultation-block {
        padding: 15px;
    }
    
    .cr-main-title {
        font-size: 18px;
    }
    
    .cr-benefit-item {
        padding: 12px;
    }
    
    .cr-contact-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}