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

:root {
    --primary-color: #1a1a1a;
    --primary-light: #333333;
    --text-dark: #333;
    --text-gray: #6b7280;
    --bg-gray: rgb(245, 245, 245);
    --bg-light: #e8e8e8;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --yellow-accent: #ffd900;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    background-color: var(--bg-gray);
}

/* Типографика */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 1.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.25rem);
}

p {
    margin-bottom: 1rem;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0rem;
    max-width: 100%;
    margin: 0 auto;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Навигация */
nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #000;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-gray);
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

/* Бургер-меню */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
}

.burger span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    padding: 5rem 0 3rem;
    background: var(--white);
    text-align: center;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-text {
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Форма поиска */
.search-box {
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.search-form {
    position: relative;
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 1.5rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    outline: none;
    transition: var(--transition);
    background: #fff;
}

.search-input:focus {
    border-color: var(--primary-color);
    background: var(--white);
}

.search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.search-button:hover {
    background: var(--primary-light);
}

/* Популярные категории */
.popular-categories {
    text-align: center;
}

.popular-categories h3 {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-weight: 500;
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: var(--transition);
    cursor: pointer;
}

.tag:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Секции */
section {
    padding: 20px 0px 20px 0px;
}

section:nth-child(even) {
    background: var(--bg-gray);
}

section:nth-child(odd) {
    background: var(--bg-gray);
}

.section-header {
    text-align: left;
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 1200px;
}

/* Сетка категорий */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.category-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    border: none;
    transition: var(--transition);
    text-align: left;
    margin-bottom: 20px;
}


.category-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-size: 1.25rem;
}

.category-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.category-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.category-link:hover {
    gap: 0.75rem;
}

/* Блок проверки подписок */
.check-subscriptions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.check-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.check-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.check-emoji {
    font-size: 2.5rem;
}

.check-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.check-card a {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.95rem;
}

/* Блок "Как это работает" */
.how-it-works-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.step {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.step h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.step p {
    line-height: 1.6;
}

/* Блок безопасности */
.security-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.security-card {
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.security-card-emoji {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.security-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* FAQ */
.faq-list {
    max-width: 1200px;
    margin: 3rem auto 0;
}

.faq-item {
    margin-bottom: 1rem;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-gray);
}

.faq-icon {
    transition: var(--transition);
    font-size: 1.25rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p,
.footer-section a {
    color: #9ca3af;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    text-align: left;
    color: #9ca3af;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #9ca3af;
    margin: 0 0.5rem;
}

.footer-bottom p {
    color: #9ca3af;
    margin: 0 0.5rem;
}

.footer-bottom a:hover {
    color: var(--white);
}

.text-footer {
    text-align: left;
    margin-bottom: 30px;
}

.text-footer p {
    font-size: 12px;
    margin-bottom: 4px;
    color: #fff;
}

/* Блок с хлебными крошками */
.breadcrumbs-wrapper {
    background: white;
    border-radius: 32px;
    padding: 12px 30px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.breadcrumb-link {
    color: #4d7cfe;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 40px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb-end {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 40px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb-link:hover {
    background-color: #f0f5ff;
    color: #2c5bff;
}

.breadcrumb-link.active {
    color: #666;
    cursor: default;
    pointer-events: none;
}

.breadcrumb-link.active:hover {
    background-color: transparent;
}

.breadcrumb-separator {
    color: #ddd;
    font-size: 12px;
    margin: 0 2px;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Блок с заголовком и мета-информацией */
.article-header-wrapper {
    background: white;
    border-radius: 32px;
    padding: 40px 40px;
    text-align: center;
    margin-bottom: 0rem !important;
}

.article-title {
    font-size: 40px;
    font-weight: 800;
    color: #222;
    margin-bottom: 16px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 40px;
    max-width: 1200px;
    display: flex;
    align-items: flex-left;
    gap: 10px;
}

.article-subtitle::before {
    content: "ℹ️";
    font-size: 12px;
    margin-top: 2px;
}

.article-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.meta-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 15px;
    background: var(--bg-gray);
    transition: transform 0.2s, background 0.2s;
}

.meta-card:hover {
    transform: translateY(-2px);
    background: #f5f5f5;
}

.meta-label {
    font-size: 10px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.meta-value {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Специальные стили для разных типов мета-данных */
.recommend-good .meta-label::before {
    content: "👍";
    font-size: 12px;
}

.recommend-good .meta-value {
    color: #28a745;
}

.recommend-good .meta-value::before {
    content: "✅";
    font-size: 12px;
}

.recommend-bad .meta-label::before {
    content: "👎";
    font-size: 12px;
}

.recommend-bad .meta-value {
    color: #dc3545;
}

.recommend-bad .meta-value::before {
    content: "❌";
    font-size: 12px;
}

.difficulty-low .meta-label::before {
    content: "⚡";
    font-size: 12px;
}

.difficulty-low {
    color: #0a7b3d;
}

.difficulty-medium {
    color: #cc6600;
}

.difficulty-high {
    color: #cc0000;
}

.difficulty-low .meta-value::before {
    content: "⭐";
    font-size: 12px;
}

.author .meta-label::before {
    content: "✍️";
    font-size: 12px;
}

.author .meta-value::before {
    content: "👤";
    font-size: 12px;
}

.views .meta-label::before {
    content: "👁️";
    font-size: 12px;
}

.views .meta-value::before {
    content: "📊";
    font-size: 12px;
}

.comments .meta-label::before {
    content: "💬";
    font-size: 12px;
}

.comments .meta-value::before {
    content: "💭";
    font-size: 12px;
}

/* Стили для страницы отписки */
.otpiska-body {
    background-color: #f8f9fa;
    color: #333;
    padding: 20px;
    line-height: 1.5;
}

/* Заголовок секции */
.otpiska-section-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.otpiska-section-header h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.otpiska-section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Контейнер секции */
.otpiska-unsubscribe-section {
    margin: 0 auto;
}

/* Сетка сервисов */
.otpiska-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

/* Карточка сервиса */
.otpiska-service-card {
    background-color: white;
    border-radius: 32px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.otpiska-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Шапка карточки */
.otpiska-service-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.otpiska-service-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 24px;
    color: #fff;
}

.otpiska-service-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #1a1a1a;
    border-left: 4px solid #000;
    margin: 10px 0 6px 0;
    padding-left: 15px;
}

.otpiska-service-name {
    font-size: 12px;
    color: #666;
}

/* Тип действия */
.otpiska-action-type {
    display: inline-block;
    background-color: #f0f7ff;
    color: #0066cc;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Сложность отписки */
.otpiska-difficulty {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.otpiska-difficulty-label {
    font-weight: 600;
    margin-right: 10px;
    color: #555;
}

.otpiska-difficulty-level {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.otpiska-difficulty-low {
    background-color: #e6f7ea;
    color: #0a7b3d;
}

.otpiska-difficulty-medium {
    background-color: #fff4e6;
    color: #cc6600;
}

.otpiska-difficulty-high {
    background-color: #ffe6e6;
    color: #cc0000;
}

/* Рекомендации */
.otpiska-recommendations {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background-color: var(--bg-gray);
    border-radius: 15px;
}

.otpiska-recommend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.otpiska-recommend-count {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.otpiska-recommend-yes .otpiska-recommend-count {
    color: #0a7b3d;
}

.otpiska-recommend-no .otpiska-recommend-count {
    color: #cc0000;
}

.otpiska-recommend-label {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* Интротекст */
.otpiska-intro-text {
    background-color: #f0f7ff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: #333;
    border-left: 4px solid #000;
}

/* Кнопка действия */
.otpiska-action-button {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.otpiska-action-button:hover {
    background-color: #f5f5f5;
    color: #000;
}

.otpiska-action-button i {
    margin-left: 8px;
}

/* Статистика */
.otpiska-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #888;
}

.otpiska-stat-item {
    display: flex;
    align-items: center;
}

.otpiska-stat-item i {
    margin-right: 5px;
}

/* Пустая страница */
.no-pages {
    background: white;
    border-radius: 32px;
    padding: 40px 40px;
    text-align: center;
}

/* Текстовый контент */
.text-content-section {
    padding: 20px 0;
    background: #fff;
    line-height: 1.6;
    color: #333;
}

.category-text {
    background: white;
    border-radius: 32px;
    padding: 40px 40px;
    overflow: hidden;
}

.category-text h3 {
    font-size: 1.6rem;
    margin: 2.5rem 0 1rem 0;
    color: #333;
    padding-left: 0px;
    border-left: none;
}

h4 {
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem 0;
    color: #34495e;
}

/* Стили для ненумерованных списков */
ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    list-style: none;
}

ul li {
    margin-bottom: 0.8rem;
    padding-left: 1.8rem;
    position: relative;
}

.category-text ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* Стили для нумерованных списков */
ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    counter-reset: item;
    list-style: none;
}

ol li {
    margin-bottom: 1.5rem;
    padding-left: 2.5rem;
    position: relative;
    padding-left: 1rem;
    margin-left: 1.5rem;
}

ol li:before {
    counter-increment: item;
    content: counter(item);
    position: absolute;
    left: -2.5rem;
    top: 0;
    background: #3498db;
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Информационный блок */
.info-box {
    background: #e8f4fc;
    border-left: 4px solid #3498db;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.info-box h4 {
    color: #2980b9;
    margin-top: 0;
}

/* Стили для таблиц */
.category-text table {
    width: 100%;
    min-width: 600px;
    max-width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    line-height: 1.4;
    color: #333;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin: 20px 0px;
}

.category-text table * {
    white-space: normal;
}

.category-text table tbody {
    display: table;
    width: 100%;
}

.category-text table tr {
    display: table-row;
}

.category-text table td {
    display: table-cell;
}

.category-text table tbody tr:first-child {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.category-text table tbody tr:first-child td {
    font-weight: 800 !important;
    color: #212529;
    white-space: nowrap;
    padding: 10px 16px;
    text-align: left;
    font-size: 0.95em;
}

.category-text table tbody tr:not(:first-child) td {
    padding: 10px 16px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
    font-weight: 400;
}

.category-text table tbody tr:not(:first-child):nth-child(even) {
    background-color: #f8f9fa;
}

.category-text table tbody tr:not(:first-child):hover {
    background-color: #e9ecef;
    transition: background-color 0.2s;
}

.category-text table a {
    color: #007bff;
    text-decoration: none;
    border-bottom: 1px dotted #007bff;
    font-weight: 500;
}

.category-text table a:hover {
    color: #0056b3;
    border-bottom-style: solid;
}

/* Пагинация */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #2c3e50;
    text-decoration: none;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.page-link:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-color: #3b82f6;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.page-item.active .page-link:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border-color: #2563eb;
}

.page-item.disabled .page-link {
    color: #94a3b8;
    background-color: #f1f5f9;
    border-color: #e2e8f0;
    cursor: not-allowed;
    box-shadow: none;
}

.page-item.disabled .page-link:hover {
    background-color: #f1f5f9;
    transform: none;
    box-shadow: none;
}

.page-item:first-child .page-link,
.page-item:last-child .page-link {
    padding: 0 20px;
    min-width: 100px;
    font-weight: 600;
}

.page-item:first-child .page-link {
    border-radius: 8px 0 0 8px;
}

.page-item:last-child .page-link {
    border-radius: 0 8px 8px 0;
}

.page-item.ellipsis .page-link {
    background: transparent;
    border: none;
    box-shadow: none;
    cursor: default;
    min-width: 30px;
}

.page-item.ellipsis .page-link:hover {
    background: transparent;
    transform: none;
}

/* ОСНОВНЫЕ СТИЛИ ДЛЯ КАРТОЧЕК (исправленные) */
.card {
    border: none;
    border-radius: 20px;
    margin-bottom: 1.5rem !important;
}

/* Единый стиль для card-body - БЕЗ text-align: center */
.card-body {
    background: white;
    border-radius: 32px;
    padding: 1rem 1.5rem;
}

/* Стили для заголовков в карточках */
.card-title {
    font-weight: 600;
    color: #212529;
    font-size: 1rem;
    white-space: nowrap;
}

/* --- Стили для блока "Информация о компании" --- */
.d-flex.align-items-center {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.d-flex.align-items-center img {
    max-height: 40px;
    width: auto;
    border-radius: 8px;
}

.d-flex.align-items-center span.display-6 {
    font-size: 2rem !important;
    line-height: 1;
}

.text-muted.small {
    font-size: 0.85rem;
    color: #333 !important;
    text-decoration: none;
    border-bottom: 1px dashed #adb5bd;

}

.text-muted.small:hover {
    color: #0d6efd !important;
    border-bottom-color: #0d6efd;
}

/* Ссылка на сайт */
.text-muted {
    color: #333 !important;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
        margin-left: 20px;
}

.text-muted:hover {
    color: #0d6efd !important;
}

/* Кнопка "Отписаться" - ОСНОВНОЙ СТИЛЬ */
.btn-danger {
    background-color: #dc3545;
    border: none;
    border-radius: 40px;
    padding: 0.4rem 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.2);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-danger:hover {
    background-color: #bb2d3b;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(220, 53, 69, 0.3);
}

.btn-danger i {
    margin-right: 5px;
    font-size: 0.9rem;
}

/* Кнопка в обводке */
.btn-outline-danger {
    color: #dc3545;
    border: 2px solid #dc3545;
    background: transparent;
    border-radius: 40px;
    padding: 0.25rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}

/* --- Стили для блока голосования --- */
.vote-form {
    display: inline-block;
}

.btn-outline-success,
.btn-outline-danger {
    border-radius: 40px;
    padding: 0.5rem 1.8rem;
    font-weight: 500;
    border-width: 2px;
    transition: all 0.2s;
}

.btn-outline-success {
    color: #198754;
    border-color: #198754;
}

.btn-outline-success:hover {
    background-color: #198754;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(25, 135, 84, 0.3);
}

.btn-outline-success span,
.btn-outline-danger span {
    font-weight: 700;
}

/* Прогресс-бар */
.progress {
    border-radius: 40px;
    background-color: #e9ecef;
    margin-top: 15px;
    height: 30px !important;
}

.progress-bar {
    border-radius: 40px;
    background-color: #198754;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 30px;
}

.alert-info {
    background-color: #e7f1ff;
    border: none;
    border-radius: 40px;
    color: #0a58ca;
    padding: 0.75rem 1.25rem;
}

/* --- Стили для формы вопроса --- */
.card form p {
    margin-bottom: 1.2rem;
}

.card form input[type="text"],
.card form input[type="email"],
.card form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 60px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 1rem;
}

.card form textarea {
    border-radius: 30px;
    min-height: 100px;
}

.card form input[type="text"]:focus,
.card form input[type="email"]:focus,
.card form textarea:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn-primary {
    background-color: #0d6efd;
    border: none;
    border-radius: 60px;
    padding: 0.6rem 2rem;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.4);
}

/* Десктопная версия - горизонтальное расположение */
@media (min-width: 769px) {
    .d-flex.flex-wrap {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .breadcrumbs-wrapper {
        padding: 15px 20px;
        margin-bottom: 15px;
    }

    .article-header-wrapper {
        padding: 30px 25px;
    }

    .article-title {
        font-size: 28px;
        gap: 8px;
    }

    .article-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
        gap: 3px;
    }

    .article-meta-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .breadcrumb-link,
    .breadcrumb-current {
        font-size: 13px;
        padding: 4px 8px;
    }

    .meta-card {
        padding: 12px;
    }

    .burger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        align-items: flex-start;
    }

    nav.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
    }

    .nav-links .btn {
        width: 100%;
        margin-top: 1rem;
    }

    .hero {
        padding: 3rem 0 2rem;
    }

    section {
        padding: 3rem 0;
    }

    .categories-grid,
    .check-subscriptions,
    .how-it-works-steps,
    .security-cards,
    .otpiska-services-grid {
        grid-template-columns: 1fr;
    }

    .popular-tags {
        justify-content: flex-start;
    }

    .search-input {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .search-button {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 0.75rem;
        border-radius: 12px;
    }

    .search-form {
        display: flex;
        flex-direction: column;
    }

    /* Горизонтальный блок на мобильных становится вертикальным */
    .d-flex.flex-wrap {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem;
    }

    .d-flex.align-items-center {
        justify-content: center;
        flex-wrap: wrap;
    }

    .d-flex.align-items-center img,
    .d-flex.align-items-center span.fs-1 {
        margin-right: 0 !important;
        margin-bottom: 8px;
    }

    .text-muted {
        text-align: center;
        display: block;
    }

    .btn-danger,
    .btn-outline-danger {
        width: 100%;
        text-align: center;
    }

    .btn-outline-success,
    .btn-outline-danger {
        padding: 0.4rem 1.2rem;
        font-size: 0.9rem;
    }

    .btn-danger {
        padding: 0.5rem 1.5rem;
    }

    .d-flex.align-items-center.mb-3 {
        flex-direction: column;
        text-align: center;
    }

    .d-flex.align-items-center.mb-3 img.me-3 {
        margin-right: 0 !important;
        margin-bottom: 10px;
    }

    .d-flex.align-items-center.mb-3 span.display-6.me-3 {
        margin-right: 0 !important;
        margin-bottom: 5px;
    }

    .otpiska-stats {
        flex-direction: column;
        gap: 10px;
    }

    .text-content-section {
        padding: 40px 0;
    }

    h3 {
        font-size: 1.3rem;
    }

    ul, ol {
        padding-left: 1rem;
    }

    ul li, ol li {
        padding-left: 1.5rem;
    }

    ol li:before {
        left: -1.8rem;
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.9rem;
    }

    table th,
    table td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .category-text table {
        font-size: 0.9em;
        min-width: 500px;
    }

    .category-text table td {
        padding: 8px 12px;
    }

    .category-text table tbody tr:first-child td {
        font-weight: 700;
        background-color: #f1f3f5;
    }

    .pagination {
        gap: 0.25rem;
    }

    .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 12px;
        font-size: 0.9rem;
    }

    .page-item:first-child .page-link,
    .page-item:last-child .page-link {
        min-width: 80px;
        padding: 0 15px;
    }

    .btn-danger:hover,
    .btn-outline-danger:hover {
        transform: none;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-emoji {
        font-size: 3rem;
    }

    .category-emoji {
        font-size: 2.5rem;
    }

    .breadcrumbs-wrapper {
        padding: 12px 16px;
    }

    .article-header-wrapper {
        padding: 25px 20px;
    }

    .article-title {
        font-size: 24px;
    }

    .article-subtitle {
        font-size: 15px;
    }

    .meta-value {
        font-size: 16px;
    }

    .text-content-section {
        padding: 30px 0;
    }

    .category-text {
        background: white;
        border-radius: 32px;
        padding: 20px 10px;
        overflow: hidden;
    }

    .otpiska-body {
        background-color: #f8f9fa;
        color: #333;
        padding: 20px 0px;
        line-height: 1.5;
    }

    h3 {
        font-size: 1.5rem;
        margin: 1rem 0 1rem 0;
        color: #2c3e50;
        padding-left: 15px;
        border-left: 4px solid #000;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 10px;
        font-size: 0.85rem;
    }

    .page-item:first-child .page-link,
    .page-item:last-child .page-link {
        min-width: 70px;
        padding: 0 12px;
        font-size: 0.85rem;
    }

    .category-text table {
        min-width: 300px;
    }
}
/* Двухколоночный макет */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Общие стили для карточек */
.company-card,
.voting-card,
.question-card {
    background: white;
    border-radius: 24px;
    padding: 25px;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Левая колонка - информация о компании */
.company-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.company-logo {
    max-height: 60px;
    width: auto;
    border-radius: 12px;
}

.company-emoji {
    font-size: 3rem;
    line-height: 1;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1e24;
    margin: 0 0 5px 0;
}

.company-badge {
    display: inline-block;
    background-color: #f0f7ff;
    color: #0066cc;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.company-website {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 16px;
}

.company-website i {
    color: #6c757d;
    font-size: 1.2rem;
}

.company-website a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    word-break: break-all;
}

.company-website a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.unsubscribe-btn {
    display: block;
    width: 100%;
    max-width: 350px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 60px;
    padding: 14px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
     margin: auto;
}

.unsubscribe-btn:hover {
    background-color: #000;
    transform: translateY(-2px);
}

.unsubscribe-btn i {
    margin-right: 8px;
}

/* Правая колонка - голосование */
.voting-card {
    display: flex;
    flex-direction: column;
}

.voting-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1e24;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.voting-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.vote-form {
    width: 100%;
}

.vote-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 60px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    max-width: 350px;
    margin: auto;
}

.vote-like {
    background-color: #198754;
    color: white;
}

.vote-like:hover {
    background-color: #157347;
    transform: translateY(-2px);
}

.vote-dislike {
    background-color: #dc3545;
    color: white;
}

.vote-dislike:hover {
    background-color: #bb2d3b;
    transform: translateY(-2px);
}

.vote-count {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-left: 5px;
}

/* Состояние после голосования */
.voted-message {
    background-color: #e7f1ff;
    color: #0a58ca;
    padding: 12px 16px;
    border-radius: 60px;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 15px;
}

.voting-progress {
    width: 100%;
    height: 30px;
    background-color: #e9ecef;
    border-radius: 40px;
    overflow: hidden;
}

.voting-progress .progress-bar {
    height: 100%;
    background-color: #198754;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
}

/* Карточка с вопросом (на всю ширину) */
.question-card {
    margin-top: 20px;
    margin-bottom: 20px;
}

.question-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1e24;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.question-card form p {
    margin-bottom: 15px;
}

.question-card form input[type="text"],
.question-card form input[type="email"],
.question-card form textarea {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid #dee2e6;
    border-radius: 14px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.question-card form textarea {
    border-radius: 14px;
    min-height: 100px;
    resize: vertical;
}

.question-card form input[type="text"]:focus,
.question-card form input[type="email"]:focus,
.question-card form textarea:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.question-submit-btn {
    width: 100%;
    display: block;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 60px;
    padding: 18px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: 350px;
    margin: 50px auto 0px auto;
}

.question-submit-btn:hover {
    background-color: #000;
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .company-card,
    .voting-card,
    .question-card {
        padding: 20px;
    }

    .company-header {
        flex-direction: column;
        text-align: center;
    }

    .company-name {
        font-size: 1.3rem;
    }

    .unsubscribe-btn {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .vote-btn {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .company-card,
    .voting-card,
    .question-card {
        padding: 18px;
        border-radius: 20px;
    }

    .company-logo {
        max-height: 50px;
    }

    .company-emoji {
        font-size: 2.5rem;
    }
}

label {
cursor: default;
font-size: 14px;
font-weight: 700;
padding-bottom: 10px;
}
/* Стили для уведомлений */
.container.mt-3 {
    margin-top: 1rem !important;
    margin-bottom: 1rem;
}

.alert {
    position: relative;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 60px; /* Скругленные углы как у всех элементов */
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    animation: slideDown 0.3s ease forwards;
}

/* Типы уведомлений */
.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.alert-error {
    background-color: #ffebee;
    color: #c62828;
}

.alert-warning {
    background-color: #fff3e0;
    color: #ef6c00;
}

.alert-info {
    background-color: #e3f2fd;
    color: #1565c0;
}

/* Иконки для уведомлений (добавляются через ::before) */
.alert-success::before {
    content: "✅";
    margin-right: 10px;
    font-size: 1.1rem;
}

.alert-error::before {
    content: "❌";
    margin-right: 10px;
    font-size: 1.1rem;
}

.alert-warning::before {
    content: "⚠️";
    margin-right: 10px;
    font-size: 1.1rem;
}

.alert-info::before {
    content: "ℹ️";
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Кнопка закрытия */
.btn-close {
    position: relative;
    width: 24px;
    height: 24px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    margin-left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.btn-close::before {
    content: "✕";
    font-size: 1rem;
    font-weight: 600;
    color: currentColor;
}

.btn-close:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

/* Анимация появления */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Для Bootstrap fade класса */
.fade {
    transition: opacity 0.15s linear;
}

.fade.show {
    opacity: 1;
}

/* Адаптивность */
@media (max-width: 768px) {
    .alert {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        border-radius: 50px;
        flex-wrap: wrap;
    }

    .btn-close {
        width: 20px;
        height: 20px;
    }

    .btn-close::before {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container.mt-3 {
        padding-left: 10px;
        padding-right: 10px;
    }

    .alert {
        padding: 0.75rem 1rem;
        border-radius: 40px;
    }

    .alert::before {
        font-size: 1rem;
    }
}

/* Стили для капчи */
.captcha-group {
    margin-bottom: 25px;
}

.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.captcha-input {
    width: 100%;
    max-width: 250px;
    padding: 12px 18px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 1rem;
    text-align: center;
    font-weight: 600;
    transition: all 0.2s ease;
    margin: 0 10px;
}

.captcha-input:focus {
    border-color: #0d6efd;
    outline: none;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.captcha-help {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.captcha-help::before {
    content: "🛡️";
    font-size: 1rem;
}

.form-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    padding-left: 15px;
}

/* Для капчи с изображением */
.captcha-image-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 60px;
}

.captcha-image {
    border-radius: 12px;
    border: 2px solid #dee2e6;
    background: white;
}

.captcha-refresh {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: #e9ecef;
    border: none;
    border-radius: 40px;
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.captcha-refresh:hover {
    background: #dee2e6;
    transform: scale(1.05);
}

.captcha-refresh i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .captcha-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .captcha-input {
        max-width: 100%;
    }

    .captcha-image-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Стили для блока с вопросами */
.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-4 h6 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1e24;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 4px solid #000;
    padding-left: 15px;
}

/* Стили для списка вопросов */
.list-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.list-group-item {
    background: white;
    border: 0px solid #f0f0f0;
    border-radius: 24px !important;
    padding: 20px;
    transition: all 0.2s ease;
    margin-bottom: 0;
}

.list-group-item:hover {
    transform: translateY(-2px);
    border-color: #e0e0e0;
}

/* Заголовок вопроса (имя и дата) */
.d-flex.w-100.justify-content-between {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #eee;
}

.d-flex.w-100.justify-content-between h6 {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    border-left: none;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.d-flex.w-100.justify-content-between h6::before {
    content: "👤";
    font-size: 0.9rem;
    color: #666;
}

/* Дата */
.text-muted {
    color: #8a9aa8 !important;
    font-size: 0.85rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 5px;
}

.text-muted::before {
    content: "📅";
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Текст вопроса */
.list-group-item p.mb-1 {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #2d3e50;
    margin-bottom: 15px !important;
    padding: 5px 0;
}

.list-group-item p.mb-1 strong {
    font-weight: 800;
    color: #1e293b;
    display: inline-block;
    min-width: 70px;
}

/* Блок с ответом */
.alert.alert-light {
    background: #f8fafc;
    border: none;
    border-radius: 18px;
    padding: 16px 18px;
    margin-top: 10px !important;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #2c3e50;
    position: relative;
}

.alert.alert-light::before {
    content: "💬";
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.alert.alert-light strong {
    color: #000;
    font-weight: 700;
    margin-right: 20px;
}

/* Если нет ответа */
.list-group-item:has(.alert-light) {
    border-bottom: 0px solid #e8f4fc;
}

/* Анимация появления вопросов */
.list-group-item {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.list-group-item:nth-child(1) { animation-delay: 0.1s; }
.list-group-item:nth-child(2) { animation-delay: 0.2s; }
.list-group-item:nth-child(3) { animation-delay: 0.3s; }
.list-group-item:nth-child(4) { animation-delay: 0.4s; }
.list-group-item:nth-child(5) { animation-delay: 0.5s; }

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

/* Пустое состояние (если вопросов нет) */
.mt-4:has(.list-group:empty) {
    display: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .list-group-item {
        padding: 16px;
        border-radius: 20px !important;
    }

    .d-flex.w-100.justify-content-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .text-muted {
        align-self: flex-start;
    }

    .alert.alert-light {
        padding: 14px;
        border-radius: 16px;
    }

    .alert.alert-light::before {
        left: -8px;
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .mt-4 h6 {
        font-size: 1rem;
        padding-left: 12px;
    }

    .list-group-item p.mb-1 {
        font-size: 0.9rem;
    }

    .alert.alert-light {
        font-size: 0.9rem;
        padding: 12px;
    }
}

/* Темная тема (если нужно) */
@media (prefers-color-scheme: dark) {
    .list-group-item {
        background: var(--bg-gray);

    }

    .list-group-item p.mb-1 {
        color: #000;
    }

    .alert.alert-light {
        background: #fff;
        color: #333;
    }
}
/* Стили для секции автора */
.author-section {
    margin: 0px 0px 20px 0px;
}

.author-card {
    background: white;
    border-radius: 32px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.author-avatar {
    width: 100px;
    height: 100px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-emoji {
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(2px 4px 4px rgba(0,0,0,0.1));
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1e24;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-name::after {
    content: "✍️";
    font-size: 1.2rem;
    opacity: 0.7;
}

.author-bio {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 15px;
    padding-right: 20px;
}

.author-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #718096;
    font-size: 0.95rem;
    background: #f5f5f5;
    padding: 8px 15px;
    border-radius: 40px;
    width: fit-content;
}

.author-contact i {
    color: #4299e1;
    font-size: 1rem;
}

.author-contact a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-contact a:hover {
    color: #4299e1;
}

/* Адаптивность */
@media (max-width: 768px) {
    .author-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .author-avatar {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }

    .author-emoji {
        font-size: 2.5rem;
    }

    .author-name {
        font-size: 1.3rem;
        justify-content: center;
    }

    .author-bio {
        padding-right: 0;
    }

    .author-contact {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .author-card {
        padding: 20px;
        border-radius: 24px;
    }

    .author-avatar {
        width: 70px;
        height: 70px;
    }

    .author-emoji {
        font-size: 2rem;
    }

    .author-name {
        font-size: 1.2rem;
    }

    .author-bio {
        font-size: 0.95rem;
    }
}

/* Стили для секции шаринга */
.share-section {
    margin: 30px 0;
}

.share-card {
    background: white;
    border-radius: 32px;
    padding: 25px 30px;
    transition: box-shadow 0.2s ease;
}


.share-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-title::before {
    content: "📢";
    font-size: 1rem;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 10px;
    border-radius: 60px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    color: white;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.share-btn:active {
    transform: translateY(0);
}

.share-btn i {
    font-size: 1.3rem;
}

/* Цвета для каждой соцсети */
.share-vk {
    background: linear-gradient(135deg, #4C75A3, #2A5885);
}

.share-vk:hover {
    background: linear-gradient(135deg, #5B88BD, #3A6A9E);
}

.share-tg {
    background: linear-gradient(135deg, #0088cc, #006699);
}

.share-tg:hover {
    background: linear-gradient(135deg, #00A0E0, #0077B3);
}

.share-ok {
    background: linear-gradient(135deg, #EE8208, #F2720C);
}

.share-ok:hover {
    background: linear-gradient(135deg, #FF9500, #FF7F00);
}

.share-x {
    background: linear-gradient(135deg, #1DA1F2, #0D8BD9);
}

.share-x:hover {
    background: linear-gradient(135deg, #1D9BF0, #1A8CD8);
}

/* Адаптивность */
@media (max-width: 992px) {
    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .share-card {
        padding: 20px;
    }

    .share-title {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .share-btn {
        padding: 12px 8px;
        font-size: 0.9rem;
    }

    .share-btn i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .share-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .share-btn {
        justify-content: flex-start;
        padding: 12px 20px;
    }

    .share-btn i {
        width: 30px;
        text-align: center;
    }
}
/* Кнопка копирования */
.share-copy {
    background: linear-gradient(135deg, #6B7280, #4B5563);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.share-copy:hover {
    background: linear-gradient(135deg, #7F8C9A, #5F6B7A);
}

/* Уведомление о копировании */
.copy-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1a1e24;
    color: white;
    padding: 12px 24px;
    border-radius: 60px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.copy-notification::before {
    content: "🔗";
    font-size: 1.1rem;
}

/* Адаптивность для уведомления */
@media (max-width: 768px) {
    .copy-notification {
        bottom: 20px;
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 90%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .copy-notification {
        width: 95%;
        padding: 10px 15px;
    }
}

/* Обновленные стили для кнопок (добавьте к существующим) */
.share-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 10px;
    border-radius: 60px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    color: white;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    font-family: inherit;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.share-btn:active {
    transform: translateY(0);
}

.share-btn i {
    font-size: 1.3rem;
}

/* Цвета для каждой соцсети */
.share-vk {
    background: linear-gradient(135deg, #4C75A3, #2A5885);
}

.share-vk:hover {
    background: linear-gradient(135deg, #5B88BD, #3A6A9E);
}

.share-tg {
    background: linear-gradient(135deg, #0088cc, #006699);
}

.share-tg:hover {
    background: linear-gradient(135deg, #00A0E0, #0077B3);
}

.share-ok {
    background: linear-gradient(135deg, #EE8208, #F2720C);
}

.share-ok:hover {
    background: linear-gradient(135deg, #FF9500, #FF7F00);
}

.share-copy {
    background: linear-gradient(135deg, #6B7280, #4B5563);
}

.share-copy:hover {
    background: linear-gradient(135deg, #7F8C9A, #5F6B7A);
}

/* Адаптивность */
@media (max-width: 992px) {
    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .share-card {
        padding: 20px;
    }

    .share-title {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .share-btn {
        padding: 12px 8px;
        font-size: 0.9rem;
    }

    .share-btn i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .share-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .share-btn {
        justify-content: flex-start;
        padding: 12px 20px;
    }

    .share-btn i {
        width: 30px;
        text-align: center;
    }
}

/* Стили для поиска */
.search-wrapper {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    overflow: hidden;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.result-emoji {
    width: 40px;
    height: 40px;
    background: #f0f7ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.result-info {
    flex: 1;
    min-width: 0;
}

.result-title {
    font-weight: 600;
    color: #1a1e24;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.result-title mark {
    background: #fff3bf;
    padding: 2px 0;
    border-radius: 2px;
    color: inherit;
}

.result-description {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
    word-break: break-word;
    text-align: left;
}

.result-description mark {
    background: #fff3bf;
    padding: 2px 0;
    border-radius: 2px;
}

.result-type {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    display: inline-block;
}

.category-badge {
    background: #e7f1ff;
    color: #0d6efd;
}

.page-badge {
    background: #e8f5e9;
    color: #2e7d32;
}

.result-category {
    display: block;
    font-size: 0.75rem;
    color: #8a9aa8;
    margin-top: 4px;
}

.search-no-results {
    cursor: default;
    background: #f8f9fa;
}

.search-no-results:hover {
    background: #f8f9fa;
}

/* Анимации */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-results.active {
    animation: slideDown 0.2s ease forwards;
}

/* Адаптивность */
@media (max-width: 768px) {
    .search-results {
        position: fixed;
        top: auto;
        left: 10px;
        right: 10px;
        max-height: 60vh;
        border-radius: 20px;
    }

    .search-result-item {
        padding: 12px 15px;
    }

    .result-emoji {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}
/* Стили для страницы "О проекте" */
.about-page {
    padding: 40px 0;
}

/* Hero секция */
.about-hero {
    text-align: center;
    margin-bottom: 60px;
}

.about-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1e24;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-subtitle {
    font-size: 1.25rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

/* Миссия */
.mission-section {
    margin-bottom: 20px;
    margin-top: 20px;
}

.mission-card {
    background-color: #fff;
    color: #333;
    padding: 50px;
    border-radius: 40px;
    text-align: center;
}

.mission-emoji {
    font-size: 4rem;
    margin-bottom: 20px;
}

.mission-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.mission-card p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Проблема и решение */
.problem-solution-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.problem-card,
.solution-card {
    background: white;
    padding: 40px;
    border-radius: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.problem-emoji,
.solution-emoji {
    font-size: 3rem;
    margin-bottom: 20px;
}

.problem-card h3,
.solution-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1e24;
}

.problem-card p,
.solution-card p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

.problem-list,
.solution-list {
    list-style: none;
    padding: 0;
}

.problem-list li,
.solution-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #4a5568;
}

.problem-list li::before {
    content: "❌";
    position: absolute;
    left: 0;
    font-size: 1rem;
}

.solution-list li::before {
    content: "✅";
    position: absolute;
    left: 0;
    font-size: 1rem;
}

/* Статистика */
.stats-section {
    background: white;
    padding: 50px;
    border-radius: 40px;
    margin-bottom: 60px;
}

.stats-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #1a1e24;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: #4a5568;
}

/* Как это работает */
.how-it-works-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #1a1e24;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.step-item {
    background: white;
    padding: 30px;
    border-radius: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.step-number {
    width: 50px;
    height: 50px;
    background: #333;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1e24;
}

.step-content p {
    color: #4a5568;
    line-height: 1.5;
}

/* Преимущества */
.advantages-section {
    margin-bottom: 60px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.advantage-card {
    background: white;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.advantage-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1e24;
}

.advantage-card p {
    color: #4a5568;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Для кого */
.for-whom-section {
    background: #f8fafc;
    padding: 50px;
    border-radius: 40px;
    margin-bottom: 60px;
}

.whom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.whom-item {
    background: white;
    padding: 15px 20px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #1a1e24;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.whom-emoji {
    font-size: 1.2rem;
}

/* Команда */
.team-section {
    margin-bottom: 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-card {
    background: white;
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.team-avatar {
    font-size: 3rem;
    margin-bottom: 15px;
}

.team-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1a1e24;
}

.team-role {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 10px;
}

.team-bio {
    color: #4a5568;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* FAQ */
.about-faq-section {
    margin-bottom: 60px;
}

.about-faq-list {
    max-width: 1200px;
    margin: 0 auto;
}

.about-faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.about-faq-question {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    background: white;
}

.about-faq-question span {
    font-size: 1.3rem;
}

.about-faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1e24;
    margin: 0;
}

.about-faq-answer {
    padding: 0 25px 20px 65px;
    color: #4a5568;
    line-height: 1.6;
}

/* Призыв к действию */
.cta-section {
    margin-bottom: 40px;
}

.cta-card {
    background: #333;
    padding: 60px;
    border-radius: 40px;
    text-align: center;
    color: white;
}

.cta-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-card p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    color: #fff
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #1a1e24;
    text-decoration: none;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-title {
        font-size: 2.5rem;
    }

    .problem-solution-section {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .whom-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 40px 20px;
    }

    .cta-card h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .about-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .whom-grid {
        grid-template-columns: 1fr;
    }

    .advantage-card {
        padding: 20px;
    }

    .mission-card {
        padding: 30px 20px;
    }

    .mission-card h2 {
        font-size: 2rem;
    }
}
/* Стили для секции категорий */
.section-space {
    padding: 60px 0;
}

/* Навигация по алфавиту */
.handbook__symbol-nav {
    background: white;
    border-radius: 32px;
    padding: 20px 25px;
    margin-bottom: 20px;
}

.handbook__symbol-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.handbook__symbol-nav li {
    display: inline-block;  /* Важно: не блочный элемент */
    margin: 0;
}

.handbook__symbol-nav ul li {
margin-bottom: 0.8rem;
padding-left: 0px;
position: relative;
}

.handbook__symbol-nav li a,
.handbook__symbol-nav li.active {
    display: flex;  /* Используем flex для центрирования */
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #f8f9fa;
    border-radius: 40px;
    color: #1a1e24;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    white-space: nowrap;  /* Запрещаем перенос текста */
}

/* Активная буква */
.handbook__symbol-nav li.active {
    background: #000;
    color: white;
    cursor: default;
    /* Убедимся, что это не блочный элемент */
    display: flex;
    align-items: center;
    justify-content: center;
}

.handbook__symbol-nav li a:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* Для ссылки "Все" */
.handbook__symbol-nav li:first-child a {
    background: #f0f0f0;
    font-weight: 700;
}

/* Адаптивность */
@media (max-width: 768px) {
    .handbook__symbol-nav {
        padding: 15px;
    }

    .handbook__symbol-nav li a,
    .handbook__symbol-nav li.active {
        min-width: 35px;
        height: 35px;
        font-size: 0.9rem;
        padding: 0 8px;
    }
}

@media (max-width: 480px) {
    .handbook__symbol-nav ul {
        justify-content: center;
    }

    .handbook__symbol-nav li a,
    .handbook__symbol-nav li.active {
        min-width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

/* Карточки категорий и страниц */
.category-card {
    background: white;
    border-radius: 24px;
    padding: 25px;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.category-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.category-emoji,
.page-emoji {
    font-size: 2rem;
    line-height: 1;
}

.category-badge {
    background: #e7f1ff;
    color: #0d6efd;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
}

.page-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
}

.category-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.category-card-title a {
    color: #1a1e24;
    text-decoration: none;
    transition: color 0.2s ease;
}

.category-card-title a:hover {
    color: #0d6efd;
}

.category-card-description {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

.category-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.items-count {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
    font-size: 0.85rem;
}

.items-count i {
    color: #0d6efd;
}

.difficulty {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
    font-size: 0.85rem;
}

.difficulty i {
    color: #ffc107;
}

.difficulty-easy {
    color: #28a745;
    font-weight: 600;
}

.difficulty-medium {
    color: #fd7e14;
    font-weight: 600;
}

.difficulty-hard {
    color: #dc3545;
    font-weight: 600;
}

.card-link {
    color: #0d6efd;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s ease;
}

.card-link:hover {
    gap: 8px;
    color: #0a58ca;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 40px;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1e24;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 25px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: #000;
    color: white;
    text-decoration: none;
    border-radius: 60px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Пагинация */
.basic-pagination {
    margin-top: 50px;
    text-align: center;
}

.basic-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.basic-pagination li a,
.basic-pagination li span.current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: white;
    border-radius: 45px;
    color: #1a1e24;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.basic-pagination li a:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.basic-pagination li a.current,
.basic-pagination li span.current {
    background: #000;
    color: white;
    cursor: default;
}

.basic-pagination .prev,
.basic-pagination .next {
    padding: 0 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .section-space {
        padding: 40px 0;
    }

    .handbook__symbol-nav {
        padding: 15px;
    }

    .handbook__symbol-nav li a,
    .handbook__symbol-nav li.active {
        min-width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .category-card {
        padding: 20px;
    }

    .category-card-title {
        font-size: 1.1rem;
    }

    .basic-pagination li a,
    .basic-pagination li span.current {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .handbook__symbol-nav ul {
        justify-content: center;
    }

    .category-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .card-link {
        align-self: flex-end;
    }
}
/* Wiki специфичные стили */
.wiki-emoji {
    font-size: 2rem;
    line-height: 1;
    background: #f0f7ff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.wiki-badge {
    background: #e3f2fd;
    color: #1565c0;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
}

.views-count {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
    font-size: 0.85rem;
}

.views-count i {
    color: #0d6efd;
}

/* Стили для страницы Wiki */
.wiki-article-section {
    margin: 0px 0;
}

.wiki-article-card {
    background: white;
    border-radius: 32px;
    padding: 40px;
}

.wiki-article-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1e24;
    margin-bottom: 20px;
    line-height: 1.2;
}

.wiki-article-meta {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 0.95rem;
}

.meta-item i {
    color: #0d6efd;
    font-size: 1rem;
}

.wiki-article-description {
    background: #f8f9fa;
    padding: 20px 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #2c3e50;
}

/* Оглавление */
.wiki-toc {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
}

.toc-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-content li {
    margin-bottom: 8px;
}

.toc-content a {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.2s;
}

.toc-content a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.toc-content .toc-h3 {
    padding-left: 20px;
    font-size: 0.95rem;
}

/* Контент статьи */
.wiki-article-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #2d3e50;
    margin-bottom: 40px;
}

.wiki-article-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.wiki-article-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 30px 0 15px;
}

.wiki-article-content p {
    margin-bottom: 20px;
}

.wiki-article-content ul,
.wiki-article-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.wiki-article-content li {
    margin-bottom: 10px;
}

.wiki-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 20px 0;
}

.wiki-article-content blockquote {
    background: #f8f9fa;
    padding: 20px;
    border-left: 4px solid #0d6efd;
    border-radius: 12px;
    margin: 20px 0;
    font-style: italic;
}

.wiki-article-content code {
    background: #f1f3f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.95em;
}

.wiki-article-content pre {
    background: #2d3e50;
    color: white;
    padding: 20px;
    border-radius: 16px;
    overflow-x: auto;
    margin: 20px 0;
}

/* Теги */
.wiki-tags {
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.tags-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1e24;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #f0f7ff;
    color: #0d6efd;
    padding: 6px 15px;
    border-radius: 40px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.tag:hover {
    background: #0d6efd;
    color: white;
}

/* Полезность */
.wiki-usefulness {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.usefulness-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a1e24;
}

.usefulness-buttons {
    display: flex;
    gap: 12px;
}

.useful-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    border: none;
    border-radius: 60px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.useful-yes {
    background: #198754;
    color: white;
}

.useful-yes:hover {
    background: #157347;
    transform: translateY(-2px);
}

.useful-no {
    background: #dc3545;
    color: white;
}

.useful-no:hover {
    background: #bb2d3b;
    transform: translateY(-2px);
}



/* Навигация по статьям */
.wiki-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.nav-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-link:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.nav-link.prev {
    text-align: left;
}

.nav-link.next {
    text-align: right;
    justify-content: flex-end;
}

.nav-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.nav-title {
    font-weight: 600;
    color: #1a1e24;
}

/* Похожие статьи */
.similar-articles-section {
    margin-bottom: 60px;
}

.similar-article-card {
    background: white;
    padding: 25px;
    border-radius: 24px;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.similar-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.similar-article-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.similar-article-title a {
    color: #1a1e24;
    text-decoration: none;
}

.similar-article-title a:hover {
    color: #0d6efd;
}

.similar-article-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.read-more {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    gap: 10px;
}

/* Уведомление */
.copy-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1a1e24;
    color: white;
    padding: 12px 24px;
    border-radius: 60px;
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s;
}

.copy-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Адаптивность */
@media (max-width: 768px) {
    .wiki-article-card {
        padding: 25px;
    }

    .wiki-article-title {
        font-size: 2rem;
    }

    .wiki-article-meta {
        gap: 15px;
    }

    .wiki-usefulness {
        flex-direction: column;
        text-align: center;
    }

    .wiki-navigation {
        flex-direction: column;
    }

    .nav-link.next {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .wiki-article-title {
        font-size: 1.4rem;
    }

    .wiki-article-meta {
        flex-direction: column;
        gap: 8px;
    }

    .usefulness-buttons {
        width: 100%;
    }

    .useful-btn {
        flex: 1;
        justify-content: center;
    }
}

/* Стили для изображения статьи */
.wiki-article-image {
    margin-bottom: 30px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.article-image:hover {
    transform: scale(1.02);
}

/* Стили для изображений в похожих статьях */
.similar-article-image {
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 15px;
}

.similar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.similar-article-card:hover .similar-image {
    transform: scale(1.05);
}

/* Адаптивность для изображений */
@media (max-width: 768px) {
    .wiki-article-image {
        margin-bottom: 20px;
        border-radius: 20px;
    }

    .similar-article-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .similar-article-image {
        height: 120px;
    }
}
.blog-section {
    padding: 40px 0;
}



/* Заголовок */
.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1e24;
    margin-bottom: 15px;
    line-height: 1.2;
}

.title-emoji {
    font-size: 2.5rem;
    margin-right: 10px;
}

.blog-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Grid сетка для карточек - 3 колонки */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Карточка статьи */
.blog-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

/* Изображение */
.blog-card-image {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    text-decoration: none;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

/* Контент */
.blog-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-card-title a {
    color: #1a1e24;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-title a:hover {
    color: #0d6efd;
}

.blog-card-excerpt {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

/* Мета информация */
.blog-card-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #6c757d;
}

.meta-date, .meta-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-emoji {
    font-size: 1rem;
}

/* Кнопка */
.blog-card-footer {
    margin-top: auto;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.2s;
    padding: 8px 0;
}

.read-more-btn:hover {
    gap: 12px;
}

.read-more-emoji {
    font-size: 1rem;
}

/* Пустое состояние */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 40px;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1e24;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 25px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: #000;
    color: white;
    text-decoration: none;
    border-radius: 60px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Пагинация */
.blog-pagination {
    margin-top: 50px;
    text-align: center;
}

.pagination-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-list li {
    display: inline-block;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: white;
    border-radius: 45px;
    color: #1a1e24;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid #f0f0f0;
}

.pagination-link:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.pagination-link.current {
    background: #000;
    color: white;
    border-color: #000;
    cursor: default;
}

.pagination-link.current:hover {
    transform: none;
}

.pagination-emoji {
    font-size: 1rem;
}

/* Адаптивность */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на маленьких планшетах */
        gap: 20px;
    }

    .blog-title {
        font-size: 2rem;
    }

    .blog-card-image {
        height: 160px;
    }

    .blog-card-content {
        padding: 20px;
    }

    .blog-card-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .blog-grid {
        grid-template-columns: 1fr; /* 1 колонка на мобильных */
        gap: 20px;
    }

    .blog-card-meta {
        flex-direction: column;
        gap: 5px;
    }

    .pagination-link {
        min-width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 1.8rem;
    }

    .title-emoji {
        font-size: 2rem;
    }

    .blog-subtitle {
        font-size: 1rem;
    }

    .blog-card-image {
        height: 140px;
    }
}


/* Детальная страница */
.blog-post-section {
    margin: 30px 0;
}

.blog-post-card {
    background: white;
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.blog-post-image {
    margin-bottom: 30px;
    border-radius: 24px;
    overflow: hidden;
}

.post-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1e24;
    margin-bottom: 20px;
}

.blog-post-meta {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
}

.blog-post-intro {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.blog-post-toc {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
}

.toc-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-content ul {
    list-style: none;
    padding-left: 0;
}

.toc-content li {
    margin-bottom: 8px;
}

.toc-content a {
    color: #0d6efd;
    text-decoration: none;
}

.toc-content a:hover {
    text-decoration: underline;
}

.blog-post-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #2d3e50;
    margin-bottom: 30px;
}

.blog-post-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
}

.blog-post-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
}

.blog-post-content p {
    margin-bottom: 20px;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.blog-post-content img {
    max-width: 100%;
    border-radius: 16px;
    margin: 20px 0;
}

.blog-post-content a {
    color: #2e86de;
    text-decoration: underline;
    text-decoration-color: rgba(46, 134, 222, 0.35);
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.blog-post-content a:hover {
    color: #1a6cb8;
    text-decoration-color: rgba(26, 108, 184, 0.7);
}

.blog-post-content a[target="_blank"]::after {
    content: " ↗";
    font-size: 0.8em;
    opacity: 0.6;
}

.blog-post-rating {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.rating-title {
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-buttons {
    display: flex;
    gap: 10px;
}

.rating-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 20px;
    border: none;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.rating-yes {
    background: #198754;
    color: white;
}

.rating-yes:hover {
    background: #157347;
    transform: translateY(-2px);
}

.rating-no {
    background: #dc3545;
    color: white;
}

.rating-no:hover {
    background: #bb2d3b;
    transform: translateY(-2px);
}



.blog-post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.nav-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-link:hover {
    background: #e9ecef;
}

.nav-link.next {
    justify-content: flex-end;
}

.nav-emoji {
    font-size: 1.2rem;
}

.nav-info {
    flex: 1;
}

.nav-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.nav-title {
    font-weight: 600;
    color: #1a1e24;
}

/* Пагинация */
.blog-pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background: white;
    border-radius: 40px;
    color: #1a1e24;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid #f0f0f0;
}

.pagination-link:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.pagination-link.current {
    background: #000;
    color: white;
    border-color: #000;
    cursor: default;
}

.pagination-emoji {
    font-size: 1rem;
}

/* Уведомление */
.copy-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1a1e24;
    color: white;
    padding: 12px 24px;
    border-radius: 60px;
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s;
}

.copy-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Адаптивность */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2rem;
    }

    .blog-post-card {
        padding: 25px;
    }

    .blog-post-title {
        font-size: 2rem;
    }

    .blog-post-navigation {
        flex-direction: column;
    }

    .nav-link.next {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .blog-card-image {
        height: 160px;
    }

    .blog-post-meta {
        flex-direction: column;
        gap: 10px;
    }

    .rating-buttons {
        width: 100%;
    }

    .rating-btn {
        flex: 1;
        justify-content: center;
    }
}

/* Комментарии - улучшенный дизайн */
.comments-section {
    margin-top: 60px;
    padding: 40px 0;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

.comments-wrapper {
    margin: 0 auto;
}

/* Заголовок */
.comments-header {
    text-align: left;
    margin-bottom: 40px;
}

.comments-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a1e24;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 12px;
}

.title-emoji {
    font-size: 2.2rem;
}

.comments-badge {
    background: #0d6efd;
    color: white;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    margin-left: 10px;
}

.comments-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Карточка формы */
.comment-form-card {
    background: white;
    border-radius: 32px;
    padding: 35px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.form-emoji {
    font-size: 2rem;
}

.form-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1e24;
    margin: 0;
}

/* Успешное сообщение */
.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.success-emoji {
    font-size: 2rem;
}

.success-content strong {
    display: block;
    color: #155724;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.success-content p {
    color: #155724;
    margin: 0;
    font-size: 0.95rem;
}

/* Поля формы */
.form-row {
    margin-bottom: 25px;
}

.double-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #1a1e24;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.label-emoji {
    font-size: 1.1rem;
}

.field-hint {
    display: block;
    font-size: 0.8rem;
    color: #8a9aa8;
    margin-top: 5px;
}

/* Аватарка */
.avatar-row {
    margin-bottom: 20px;
}

.avatar-selector {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    max-width: 600px;
}

.avatar-select {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 60px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.avatar-select:hover {
    border-color: #0d6efd;
}

.avatar-select:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.avatar-preview {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.preview-emoji {
    font-size: 2rem;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

/* Поля ввода */
.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #f0f0f0;
    border-radius: 60px;
    font-size: 1rem;
    transition: all 0.2s;
    background: #f8f9fa;
}

.form-textarea {
    border-radius: 24px;
    resize: vertical;
    min-height: 120px;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #0d6efd;
    background: white;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

/* Капча */
.captcha-container {
    background: #f8f9fa;
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 25px;
}

.captcha-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.captcha-image-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px;
    border-radius: 16px;
    border: 2px solid #f0f0f0;
}

.captcha-image {
    border-radius: 12px;
    background: white;
    width: 120px;
    height: 40px;
}

.captcha-refresh {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-refresh:hover {
    background: #e0e0e0;
    transform: rotate(180deg);
}

.refresh-emoji {
    font-size: 1.2rem;
}

.captcha-input-wrapper {
    flex: 1;
    min-width: 200px;
}

.captcha-input {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid #f0f0f0;
    border-radius: 60px;
    font-size: 1rem;
    transition: all 0.2s;
}

.captcha-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.input-hint {
    display: block;
    font-size: 0.8rem;
    color: #8a9aa8;
    margin-top: 5px;
    margin-left: 12px;
}

/* Ошибки */
.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 12px;
    padding: 10px 15px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #721c24;
}

.error-emoji {
    font-size: 1rem;
}

/* Кнопка отправки */
.form-actions {
    text-align: center;
}

.submit-btn {
    background: #333;
    color: white;
    border: none;
    border-radius: 60px;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.btn-emoji {
    font-size: 1.2rem;
}

.btn-hint {
    display: block;
    font-size: 0.8rem;
    color: #8a9aa8;
    margin-top: 10px;
}

/* Список комментариев */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.list-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1e24;
    display: flex;
    align-items: center;
    gap: 8px;
}

.list-emoji {
    font-size: 1.3rem;
}

.list-count {
    background: #f0f0f0;
    color: #1a1e24;
    padding: 2px 8px;
    border-radius: 40px;
    font-size: 0.9rem;
    margin-left: 8px;
}

.sort-select {
    padding: 8px 15px;
    border: 2px solid #f0f0f0;
    border-radius: 40px;
    background: white;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Элемент комментария */
.comment-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.comment-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.comment-avatar {
    width: 60px;
    height: 60px;
    background: #333);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.avatar-emoji {
    font-size: 2rem;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-author {
    font-weight: 700;
    color: #1a1e24;
    font-size: 1.1rem;
}

.verified-badge {
    background: #0d6efd;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.comment-date {
    color: #8a9aa8;
    font-size: 0.85rem;
}

.comment-text {
    color: #2d3e50;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.comment-footer {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.reply-btn,
.show-replies-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.2s;
}

.reply-btn:hover {
    background: #f0f0f0;
    color: #0d6efd;
}

.show-replies-btn:hover {
    background: #f0f0f0;
    color: #0d6efd;
}

.toggle-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

/* Ответы */
.replies-wrapper {
    margin: 15px 0 0 20px;
    padding-left: 15px;
    border-left: 3px solid #f0f0f0;
}

.reply-item {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 20px;
}

.reply-avatar {
    width: 60px;
    height: 60px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reply-content {
    flex: 1;
}

.reply-header {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.reply-author {
    font-weight: 600;
    color: #1a1e24;
}

.reply-date {
    color: #8a9aa8;
    font-size: 0.8rem;
}

.reply-text {
    color: #2d3e50;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Форма ответа */
.reply-form-wrapper {
    margin: 15px 0 0 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 20px;
}

.reply-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reply-to {
    font-weight: 600;
    color: #0d6efd;
}

.reply-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #6c757d;
}

.reply-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    margin-bottom: 15px;
    resize: vertical;
    font-size: 0.95rem;
}

.reply-actions {
    display: flex;
    gap: 10px;
}

.reply-submit {
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 40px;
    padding: 8px 20px;
    cursor: pointer;
    font-weight: 500;
}

.reply-cancel {
    background: #f0f0f0;
    border: none;
    border-radius: 40px;
    padding: 8px 20px;
    cursor: pointer;
}

/* Пустые комментарии */
.no-comments {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 32px;
}

.no-comments-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-comments h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1e24;
    margin-bottom: 10px;
}

.no-comments p {
    color: #6c757d;
}

/* Пагинация */
.pagination-wrapper {
    margin-top: 40px;
    text-align: center;
}

.pagination-info {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 40px;
    color: #1a1e24;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.pagination-link:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.pagination-link.current {
    background: #000;
    color: white;
    border-color: #000;
    cursor: default;
}

.pagination-link.first,
.pagination-link.last,
.pagination-link.prev,
.pagination-link.next {
    font-size: 1.2rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .double-row {
        grid-template-columns: 1fr;
    }

    .captcha-box {
        flex-direction: column;
    }

    .captcha-image-wrapper {
        width: 100%;
        justify-content: center;
    }

    .comment-item {
        flex-direction: column;
        gap: 15px;
    }

    .comment-avatar {
        align-self: flex-start;
    }

    .replies-wrapper {
        margin-left: 10px;
    }

    .reply-form-wrapper {
        margin-left: 0;
    }
}

/* Увеличенный select */
.avatar-group {
    margin-bottom: 25px;
}

.avatar-selector {
    display: flex;
    align-items: center;
    gap: 25px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 24px;
    border: 2px solid #f0f0f0;
}

.select-wrapper {
    position: relative;
    flex: 1;
}

.avatar-select {
    width: 100%;
    padding: 16px 20px;
    padding-right: 45px;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    font-size: 1.1rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-weight: 500;
    color: #1a1e24;
}

.avatar-select:hover {
    border-color: #0d6efd;
    background: #f8f9fa;
}

.avatar-select:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.8rem;
    pointer-events: none;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.preview-emoji {
    font-size: 2.5rem;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.2));
}

/* Стили для опций */
.avatar-select option {
    padding: 15px;
    font-size: 1.1rem;
}

/* Для Firefox */
.avatar-select option {
    background-color: white;
    color: #1a1e24;
}

/* Адаптивность */
@media (max-width: 768px) {
    .avatar-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .avatar-preview {
        align-self: center;
    }
}

/* Стили для ответов */
.reply-form-container {
    margin-top: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
}

.reply-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reply-to {
    font-weight: 600;
    color: #0d6efd;
    background: #e7f1ff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.reply-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #6c757d;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.reply-close:hover {
    background: #f0f0f0;
}

.reply-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    margin-bottom: 15px;
    resize: vertical;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.reply-textarea:focus {
    outline: none;
    border-color: #0d6efd;
}

.reply-actions {
    display: flex;
    gap: 10px;
}

.reply-submit {
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 40px;
    padding: 10px 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.reply-submit:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
}

.reply-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.reply-cancel {
    background: #f0f0f0;
    border: none;
    border-radius: 40px;
    padding: 10px 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.reply-cancel:hover {
    background: #e0e0e0;
}

/* Кнопка показа ответов */
.toggle-replies-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    margin-top: 10px;
}

.toggle-replies-btn:hover {
    color: #0d6efd;
}

.toggle-arrow {
    font-size: 0.8rem;
    transition: transform 0.2s;
}
/* Стили для формы ответа - ИСПРАВЛЕННЫЕ */
.reply-form-container {
    margin-top: 20px;
    margin-left: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #eaeef2;
    animation: slideDown 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reply-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eaeef2;
}

.reply-form-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a1e24;
}

.reply-emoji {
    font-size: 1.1rem;
}

.reply-close-btn {
    background: none;
    border: none;
    color: #8a9aa8;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.2rem;
    padding: 0;
}

.reply-close-btn:hover {
    background: #e9ecef;
    color: #1a1e24;
}

.reply-form {
    padding: 20px;
}

.reply-field {
    margin-bottom: 20px;
}

.reply-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #1a1e24;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.label-emoji {
    font-size: 1rem;
}

.reply-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eaeef2;
    border-radius: 16px;
    font-size: 0.95rem;
    resize: vertical;
    transition: all 0.2s;
    font-family: inherit;
    background: #f8f9fa;
    box-sizing: border-box;
}

.reply-textarea:focus {
    outline: none;
    border-color: #0d6efd;
    background: white;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.field-counter {
    text-align: right;
    font-size: 0.8rem;
    color: #8a9aa8;
    margin-top: 5px;
}

.field-counter .current-length {
    font-weight: 600;
    color: #0d6efd;
}

/* Блок для анонимов */
.reply-anonymous-block {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #eaeef2;
}

.reply-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.reply-input,
.reply-select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #eaeef2;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: white;
    box-sizing: border-box;
}

.reply-input:focus,
.reply-select:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.reply-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* Капча */
.reply-captcha-block {
    margin-top: 15px;
}

.reply-captcha-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.captcha-image-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 8px;
    border-radius: 12px;
    border: 2px solid #eaeef2;
}

.reply-captcha-image {
    width: 120px;
    height: 40px;
    border-radius: 8px;
    background: #f8f9fa;
    object-fit: cover;
}

.captcha-refresh-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding: 0;
}

.captcha-refresh-btn:hover {
    background: #e0e0e0;
}

.captcha-refresh-btn.rotating {
    animation: rotate 0.5s ease;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(180deg);
    }
}

.reply-captcha-input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #eaeef2;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s;
    text-align: center;
    font-weight: 600;
    letter-spacing: 2px;
    background: white;
    box-sizing: border-box;
}

.reply-captcha-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.captcha-hint {
    font-size: 0.75rem;
    color: #8a9aa8;
    margin-top: 5px;
}

/* Кнопки действий */
.reply-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.reply-submit-btn,
.reply-cancel-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
}

.reply-submit-btn {
    background: #333;
    color: white;
    flex: 2;
}

.reply-submit-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.reply-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.reply-cancel-btn {
    background: #f0f0f0;
    color: #1a1e24;
    flex: 1;
}

.reply-cancel-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.btn-emoji {
    font-size: 1rem;
}

.reply-form-footer {
    margin-top: 15px;
    text-align: center;
}

.footer-hint {
    font-size: 0.75rem;
    color: #8a9aa8;
}

/* Адаптивность */
@media (max-width: 768px) {
    .reply-form-container {
        margin-left: 15px;
    }

    .reply-row {
        grid-template-columns: 1fr;
    }

    .reply-actions {
        flex-direction: column;
    }

    .reply-submit-btn,
    .reply-cancel-btn {
        width: 100%;
    }
}

/* Стили для уведомлений */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 50px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    max-width: 350px;
}

.notification-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.notification-error {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.notification-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

/* Уведомление об успешной отправке */
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 20px;
    max-width: 400px;
    z-index: 10000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid #28a745;
}

.success-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.success-notification .notification-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.success-notification .notification-icon {
    font-size: 2rem;
    background: #d4edda;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-notification .notification-text strong {
    display: block;
    font-size: 1.1rem;
    color: #155724;
    margin-bottom: 5px;
}

.success-notification .notification-text p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

.success-notification .notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #8a9aa8;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.success-notification .notification-close:hover {
    background: #f0f0f0;
}

/* Анимация вращения */
.rotating {
    animation: rotate 0.5s ease;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(180deg);
    }
}

/* Для мобильных */
@media (max-width: 768px) {
    .notification-toast,
    .success-notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

/* ============================================ */
/* АДАПТИВНАЯ ФОРМА ОТВЕТА */
/* ============================================ */

.reply-form-container {
    margin-top: 20px;
    margin-left: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #eaeef2;
    overflow: hidden;
    width: calc(100% - 20px);
    max-width: 100%;
}

.reply-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #eaeef2;
}

.reply-form-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #1a1e24;
}

.reply-emoji {
    font-size: 1rem;
}

.reply-close-btn {
    background: none;
    border: none;
    color: #8a9aa8;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    transition: all 0.2s;
}

.reply-close-btn:hover {
    background: #e9ecef;
    color: #1a1e24;
}

.reply-form {
    padding: 16px;
}

.reply-field {
    margin-bottom: 16px;
}

.reply-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: #1a1e24;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.label-emoji {
    font-size: 0.95rem;
}

.reply-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #eaeef2;
    border-radius: 12px;
    font-size: 0.9rem;
    resize: vertical;
    background: #f8f9fa;
    transition: all 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.reply-textarea:focus {
    outline: none;
    border-color: #0d6efd;
    background: white;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.field-counter {
    text-align: right;
    font-size: 0.75rem;
    color: #8a9aa8;
    margin-top: 4px;
}

.field-counter .current-length {
    font-weight: 600;
    color: #0d6efd;
}

/* Блок анонимного пользователя */
.reply-anonymous-block {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.reply-input,
.reply-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #eaeef2;
    border-radius: 10px;
    font-size: 0.9rem;
    background: white;
    transition: all 0.2s;
    box-sizing: border-box;
}

.reply-input:focus,
.reply-select:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.reply-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* Капча */
.reply-captcha-block {
    margin-top: 12px;
}

.captcha-container {
    width: 100%;
}

.captcha-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.captcha-image {
    width: 100px;
    height: 34px;
    border-radius: 6px;
    background: #f8f9fa;
    object-fit: cover;
}

.captcha-refresh-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 6px;
    background: #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    padding: 0;
    flex-shrink: 0;
}

.captcha-refresh-btn:hover {
    background: #e0e0e0;
}

.captcha-refresh-btn.rotating {
    animation: rotate 0.5s ease;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(180deg); }
}

.captcha-hint {
    font-size: 0.7rem;
    color: #8a9aa8;
    margin-top: 4px;
}

/* Кнопки */
.reply-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.reply-submit-btn,
.reply-cancel-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.9rem;
}

.reply-submit-btn {
    background: #333;
    color: white;
    flex: 2;
}

.reply-submit-btn:hover {
    background: #000;
    transform: translateY(-1px);
}

.reply-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.reply-cancel-btn {
    background: #f0f0f0;
    color: #1a1e24;
    flex: 1;
}

.reply-cancel-btn:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.btn-emoji {
    font-size: 0.95rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .reply-form-container {
        margin-left: 10px;
        width: calc(100% - 10px);
    }

    .captcha-row {
        flex-direction: column;
        align-items: stretch;
    }



    .reply-actions {
        flex-direction: column;
    }

    .reply-submit-btn,
    .reply-cancel-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .reply-form-container {
        margin-left: 5px;
        width: calc(100% - 5px);
    }

    .reply-form-header {
        padding: 10px 12px;
    }

    .reply-form {
        padding: 12px;
    }

    .reply-anonymous-block {
        padding: 12px;
    }
}

.sitemap a {
color: #0000EE;
margin-bottom: 0.5rem;
display: block;
}

.sitemap a:hover {
color: #333;
margin-bottom: 0.5rem;
display: block;
text-decoration: underline;
}
/* ============================================
   СТРАНИЦА КОНТАКТЫ
   ============================================ */

.contacts-page {
    padding: 40px 0;
}

/* Заголовок */
.contacts-header {
    text-align: center;
    margin-bottom: 50px;
}

.contacts-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1e24;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title-emoji {
    font-size: 2.5rem;
}

.contacts-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Сетка контактов */
.contacts-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 60px;
}

/* Карточка с контактами */
.contacts-info-card {
    background: white;
    border-radius: 32px;
    padding: 35px;
}

.info-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1e24;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-emoji {
    font-size: 2rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 5px 0;
}

.info-icon {
    font-size: 2rem;
    line-height: 1;
    min-width: 50px;
    text-align: center;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.85rem;
    color: #8a9aa8;
    margin-bottom: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.2rem;
    color: #1a1e24;
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    transition: color 0.2s;
}

.info-value:hover {
    color: #0d6efd;
}

.info-hint {
    font-size: 0.85rem;
    color: #8a9aa8;
}

/* Мини-соцсети */
.social-mini {
    border-top: 1px solid #f0f0f0;
    padding-top: 25px;
}

.social-mini-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1e24;
    margin-bottom: 15px;
}

.social-mini-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-mini-link {
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.2s;
}

.social-mini-link:hover {
    background: #0d6efd;
    color: white;
    transform: translateY(-3px);
}

/* Карточка с формой */
.contacts-form-card {
    background: white;
    border-radius: 32px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1e24;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-emoji {
    font-size: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #1a1e24;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.label-emoji {
    font-size: 1rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.2s;
    background: #f8f9fa;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #0d6efd;
    background: white;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.field-counter {
    text-align: right;
    font-size: 0.8rem;
    color: #8a9aa8;
    margin-top: 5px;
}

.field-counter .current-length {
    font-weight: 600;
    color: #0d6efd;
}

/* Капча */
.captcha-group {
    margin: 20px 0;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 20px;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.captcha-question {
    background: white;
    padding: 12px 20px;
    border-radius: 60px;
    border: 2px solid #f0f0f0;
    font-weight: 700;
    font-size: 1.2rem;
}



/* Согласие */
.form-agreement {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-agreement input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-agreement label {
    color: #4a5568;
    font-size: 0.9rem;
}

.form-agreement a {
    color: #0d6efd;
    text-decoration: none;
}

.form-agreement a:hover {
    text-decoration: underline;
}

/* Кнопка отправки */
.submit-btn {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: white;
    border: none;
    border-radius: 60px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.btn-emoji {
    font-size: 1.2rem;
}

/* FAQ секция */
.faq-section {
    margin-bottom: 60px;
}

.faq-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1e24;
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.faq-emoji {
    font-size: 2rem;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h3 {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.faq-arrow {
    font-size: 0.8rem;
    color: #8a9aa8;
    transition: transform 0.2s;
}

.faq-question.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding-top: 20px;
    color: #4a5568;
    line-height: 1.6;
}

/* Реквизиты */
.requisites-section {
    margin-bottom: 60px;
    padding: 40px;
    background: white;
    border-radius: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.requisites-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1e24;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.requisites-emoji {
    font-size: 2rem;
}

.requisites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.requisite-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.requisite-label {
    font-size: 0.8rem;
    color: #8a9aa8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.requisite-value {
    font-size: 1rem;
    color: #1a1e24;
    font-weight: 500;
    word-break: break-word;
}

/* Карта */
.map-section {
    margin-top: 40px;
}

.map-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1e24;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-emoji {
    font-size: 1.8rem;
}

.map-container {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Адаптивность */
@media (max-width: 992px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .contacts-title {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .requisites-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .info-item {
        flex-direction: column;
        gap: 5px;
    }

    .info-icon {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .contacts-header {
        margin-bottom: 30px;
    }

    .contacts-title {
        font-size: 1.8rem;
    }

    .contacts-info-card,
    .contacts-form-card {
        padding: 25px;
    }

    .captcha-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   ИНТЕРЛИНКИНГ — блок перелинковки
   ======================================== */

.interlinking-section {
    padding: 60px 0;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.interlinking-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.interlinking-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 12px;
    background: #fff;
    border: 1.5px solid #e3e8ef;
    border-radius: 50px;
    text-decoration: none;
    color: #2d3e50;
    font-size: 0.93rem;
    font-weight: 500;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s;
    white-space: nowrap;
}

.interlinking-card:hover {
    border-color: #2e86de;
    box-shadow: 0 4px 16px rgba(46, 134, 222, 0.13);
    transform: translateY(-2px);
    color: #1a6cb8;
    text-decoration: none;
}

.interlinking-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interlinking-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
}

.interlinking-emoji {
    font-size: 1.4rem;
    line-height: 1;
}

.interlinking-name {
    line-height: 1.2;
}

@media (max-width: 600px) {
    .interlinking-section {
        padding: 40px 0;
    }
    .interlinking-title {
        font-size: 1.3rem;
    }
    .interlinking-grid {
        gap: 10px;
    }
    .interlinking-card {
        font-size: 0.88rem;
        padding: 8px 14px 8px 10px;
    }
}x