:root {
    /* Основная цветовая палитра */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    
    /* Цвета */
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --accent: #f5576c;
    --dark: #1e293b;
    --dark-text: #0f172a;
    --light: #f7fafc;
    --gray: #475569;
    --white: #ffffff;
    --black: #1a202c;
    
    /* Тени */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 20px rgba(102,126,234,0.3);
    
    /* Анимации */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Comfortaa', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    color: var(--dark-text) !important;
}

/* Убираем подчеркивание у ВСЕХ ссылок */
a {
    text-decoration: none !important;
}

/* Глобальные цвета текста для лучшей читаемости */
body, p, span, li, div, .main-content, .sidebar, .comment, 
.reg_form, .single_post, .all-comments, .preview-text {
    color: var(--dark) !important;
}

/* Заголовки h1 - темные */
h1 {
    color: var(--dark-text) !important;
    font-weight: 800;
}

/* Заголовки h2 - ЯРКИЙ БЕЛЫЙ цвет */
h2 {
    color: var(--white) !important;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

/* Заголовки h3 - ЯРКИЙ ЦВЕТ */
h3 {
    color: var(--primary) !important;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* Заголовки h4, h5, h6 - темные */
h4, h5, h6 {
    color: var(--dark-text) !important;
    font-weight: 700;
}

/* Ссылки - яркие и заметные */
a {
    color: var(--primary) !important;
}

a:hover {
    color: var(--primary-dark) !important;
}

/* Анимированный фон */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    pointer-events: none;
    z-index: -1;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}

/* ========== HEADER СТИЛИ ========== */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(102,126,234,0.2);
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

header h1 {
    margin-top: 13px;
    animation: fadeInLeft 0.6s ease;
}

header h1 a {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 800;
    transition: var(--transition-normal);
}

header h1 a:hover {
    transform: scale(1.05);
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header ul {
    margin: 0;
    padding: 0;
    list-style: none;
    float: right;
    animation: fadeInRight 0.6s ease;
}

header ul li {
    float: left;
    position: relative;
}

header ul li a {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--dark) !important;
    padding: 22px 18px;
    transition: var(--transition-normal);
    position: relative;
}

header ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    transition: var(--transition-normal);
    border-radius: 3px;
}

header ul li a:hover::after {
    width: 80%;
}

header ul li a:hover {
    color: var(--primary) !important;
    transform: translateY(-2px);
}

header ul li ul {
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    display: none;
    z-index: 111;
    overflow: hidden;
}

header ul li:hover ul {
    display: block;
    animation: fadeInDown 0.3s ease;
}

header ul li ul li {
    width: 100%;
}

header ul li ul li a {
    padding: 12px 20px;
    background: var(--white);
    color: var(--dark) !important;
    font-size: 0.9rem;
    text-decoration: none;
}

header ul li ul li a:hover {
    background: var(--primary-gradient);
    color: var(--white) !important;
    transform: translateX(5px);
}

/* ========== SLIDER СТИЛИ ========== */
.slider-title {
    text-align: center;
    padding: 40px 0;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white) !important;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease;
}

.carousel {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    margin-bottom: 30px;
}

.carousel-inner,
.carousel-item {
    border-radius: 20px;
}

.carousel-item img {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
    /* Запрещаем задержку при переключении */
    transition: none;
}

.carousel-item:hover img {
    transform: scale(1.05);
}

.carousel-caption-hack {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    text-align: left;
}

.carousel-caption h5 a {
    color: var(--white) !important;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-normal);
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption h5 a:hover {
    transform: translateX(10px);
    color: var(--primary) !important;
}

/* ========== MAIN CONTENT СТИЛИ ========== */
.main-content {
    background: transparent;
}

/* Специальный стиль для всех h2 в main-content - ЯРКИЙ БЕЛЫЙ */
.main-content h2 {
    margin: 30px 0;
    font-size: 2rem;
    font-weight: 800;
    color: var(--white) !important;
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background: none;
    -webkit-text-fill-color: var(--white);
}

.main-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--white);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Стиль для h3 в карточках постов */
.main-content .post_text h3 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.main-content .post_text h3 a {
    color: var(--primary) !important;
    text-decoration: none;
    transition: var(--transition-normal);
}

.main-content .post_text h3 a:hover {
    color: var(--primary-dark) !important;
    text-decoration: underline;
}

.main-content .post {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.main-content .post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.main-content .post_text {
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
}

.main-content .post_text i {
    margin: 0 20px 15px 0;
    color: var(--primary);
    font-weight: 500;
}

.preview-text {
    color: var(--gray) !important;
    line-height: 1.6;
    margin-top: 10px;
}

/* ========== SIDEBAR СТИЛИ ========== */
.search {
    margin-top: 96px;
}

.sidebar .section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.sidebar .section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Заголовки h3 в сайдбаре - ЯРКИЙ СИНИЙ */
.sidebar .section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary) !important;
    position: relative;
    padding-bottom: 10px;
}

.sidebar .section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.sidebar .topics ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar .topics ul li a {
    display: block;
    padding: 12px 0;
    color: var(--gray) !important;
    text-decoration: none;
    transition: var(--transition-normal);
    font-weight: 500;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar .topics ul li a:hover {
    padding-left: 15px;
    color: var(--primary) !important;
    transform: translateX(5px);
}

/* Поиск */
.search input {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 15px;
    transition: var(--transition-normal);
    font-family: inherit;
    width: 100%;
    color: var(--dark) !important;
    background: var(--white);
}

.search input::placeholder {
    color: var(--gray);
}

.search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* ========== PAGINATION СТИЛИ ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: var(--white);
    border-radius: 10px;
    text-decoration: none;
    color: var(--dark) !important;
    font-weight: 500;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    display: inline-block;
    min-width: 40px;
    text-align: center;
}

.pagination a:hover {
    background: var(--primary-gradient);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pagination .active {
    background: var(--primary-gradient);
    color: var(--white) !important;
}

/* ========== FOOTER СТИЛИ ========== */
.footer {
    background: var(--dark-gradient);
    color: var(--white);
    position: relative;
    margin-top: auto;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.footer .footer-section {
    padding: 55px;
    position: relative;
    z-index: 1;
}

/* Заголовки в футере - белые */
.footer h2, .footer h3, .footer h4 {
    color: var(--white) !important;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    text-shadow: none;
}

.footer h3::after, .footer h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.footer .about .contact span {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 10px;
    opacity: 0.9;
    transition: var(--transition-normal);
    color: #e2e8f0 !important;
}

.footer .about .contact span:hover {
    transform: translateX(5px);
    opacity: 1;
}

.footer .about .socials {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer .about .socials a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: var(--transition-normal);
    color: var(--white) !important;
    font-size: 1.2rem;
    text-decoration: none;
}

.footer .about .socials a:hover {
    background: var(--primary-gradient);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.footer .links ul {
    list-style: none;
    padding: 0;
}

.footer .links ul li {
    margin-bottom: 12px;
}

.footer .links ul li a {
    color: #cbd5e1 !important;
    text-decoration: none;
    transition: var(--transition-normal);
    display: inline-block;
    font-size: 0.95rem;
}

.footer .links ul li a:hover {
    color: var(--white) !important;
    transform: translateX(5px);
}

.footer .contact-form .contact-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white) !important;
    margin-bottom: 15px;
    border-radius: 12px;
    padding: 12px;
    width: 100%;
    transition: var(--transition-normal);
}

.footer .contact-form .contact-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer .contact-form .contact-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
}

.otpr {
    display: inline-block;
    background: var(--primary-gradient);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    transition: var(--transition-normal);
    font-weight: 500;
    cursor: pointer;
}

.otpr:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white) !important;
}

.city {
    width: 100%;
    height: auto;
    opacity: 0.3;
    position: absolute;
    bottom: 0;
    left: 0;
    pointer-events: none;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
    padding: 15px 0;
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
    width: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    color: #94a3b8 !important;
}

/* ========== SINGLE POST СТИЛИ ========== */
.single_post {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.single_post .info {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.single_post .info i {
    margin-right: 20px;
    color: var(--primary);
}

.single_post p {
    color: var(--dark) !important;
    line-height: 1.8;
    font-size: 1.05rem;
}

.single_post a {
    text-decoration: none;
}

/* Заголовки h1, h2, h3 в single_post */
.single_post h1 {
    color: var(--dark-text) !important;
    font-size: 2.5rem;
    font-weight: 800;
}

.single_post h2 {
    color: var(--primary) !important;
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 15px;
    text-shadow: none;
}

.single_post h3 {
    color: var(--primary) !important;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* ========== FORMS СТИЛИ ========== */
.reg_form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    margin: 50px auto;
}

/* Заголовок h2 в форме */
.reg_form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary) !important;
    font-weight: 800;
    text-shadow: none;
    font-size: 2rem;
}

.reg_form label {
    color: var(--dark) !important;
}

.reg_form input {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 15px;
    transition: var(--transition-normal);
    width: 100%;
    color: var(--dark) !important;
    background: var(--white);
}

.reg_form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.reg_form button {
    background: var(--primary-gradient);
    color: var(--white) !important;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition-normal);
    width: 100%;
}

.reg_form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.reg_form a {
    text-decoration: none;
    color: var(--primary) !important;
}

/* ========== COMMENTS СТИЛИ ========== */
.all-comments {
    padding-top: 3rem;
}

/* Заголовок h3 в комментариях - ЯРКИЙ БЕЛЫЙ */
.all-comments h3 {
    margin-bottom: 2rem;
    color: var(--white) !important;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.all-comments .one-comment {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 1rem;
    transition: var(--transition-normal);
    border-left: 4px solid var(--primary);
}

.all-comments .one-comment:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.all-comments .one-comment i {
    margin-right: 10px;
    color: var(--primary);
}

.all-comments .one-comment span {
    display: inline-flex;
    margin: 0 20px 15px 0;
    font-weight: 600;
    color: var(--dark) !important;
}

.one-comment .text {
    color: var(--gray) !important;
    line-height: 1.6;
    margin-top: 10px;
}

/* ========== ИЗОБРАЖЕНИЯ ========== */
.img-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    transition: var(--transition-normal);
}

.img-thumbnail:hover {
    transform: scale(1.05);
}

/* ========== АНИМАЦИИ ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ (768px - 992px) ========== */
@media (max-width: 992px) {
    header h1 a {
        font-size: 1.5rem;
    }
    
    header ul li a {
        padding: 22px 12px;
        font-size: 0.9rem;
    }
    
    .slider-title {
        font-size: 2rem;
        padding: 30px 0;
    }
    
    .carousel-caption h5 a {
        font-size: 1.3rem;
    }
    
    .carousel-caption-hack {
        padding: 20px;
    }
    
    .main-content h2 {
        font-size: 1.8rem;
    }
    
    .main-content .post_text h3 {
        font-size: 1.3rem;
    }
    
    .sidebar .section {
        padding: 20px;
    }
    
    .footer .footer-section {
        padding: 40px 30px;
    }
    
    .otpr {
        margin-left: 0;
        display: block;
        text-align: center;
    }
}

/* ========== АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ (576px - 768px) ========== */
@media (max-width: 768px) {
    header .row {
        flex-direction: column;
    }
    
    header h1 {
        text-align: center;
        margin-bottom: 15px;
        margin-top: 10px;
    }
    
    header nav {
        width: 100%;
    }
    
    header ul {
        float: none;
        text-align: center;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    header ul li {
        float: none;
        display: inline-block;
    }
    
    header ul li a {
        padding: 15px 12px;
        font-size: 0.9rem;
    }
    
    header ul li ul {
        top: 50px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 180px;
    }
    
    .slider-title {
        font-size: 1.8rem;
        padding: 25px 0;
    }
    
    .carousel {
        height: auto;
    }
    
    .carousel-caption h5 a {
        font-size: 1rem;
    }
    
    .carousel-caption-hack {
        padding: 15px;
    }
    
    .main-content h2 {
        font-size: 1.5rem;
        display: block;
        text-align: center;
    }
    
    .main-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .main-content .post {
        margin-bottom: 20px;
    }
    
    .main-content .post .img {
        margin-bottom: 15px;
    }
    
    .main-content .post_text {
        padding: 20px;
    }
    
    .main-content .post_text h3 {
        font-size: 1.2rem;
    }
    
    .preview-text {
        font-size: 0.9rem;
    }
    
    .search {
        margin-top: 30px;
    }
    
    .sidebar .section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .footer .footer-section {
        padding: 30px 20px;
        text-align: center;
    }
    
    .footer h3::after,
    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer .about .socials {
        justify-content: center;
    }
    
    .footer .links ul {
        text-align: center;
    }
    
    .footer .contact-form {
        text-align: center;
    }
    
    .footer .contact-form .contact-input {
        width: 100%;
    }
    
    .pagination {
        gap: 8px;
    }
    
    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 0.9rem;
        min-width: 35px;
    }
    
    .img-thumbnail {
        height: 200px;
    }
    
    .reg_form {
        padding: 30px 20px;
        margin: 30px 20px;
    }
}

/* ========== АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ (до 576px) ========== */
@media (max-width: 576px) {
    header h1 a {
        font-size: 1.2rem;
    }
    
    header ul li a {
        padding: 12px 8px;
        font-size: 0.8rem;
    }
    
    .slider-title {
        font-size: 1.5rem;
        padding: 20px 0;
    }
    
    .carousel-caption h5 a {
        font-size: 0.85rem;
    }
    
    .carousel-caption-hack {
        padding: 10px;
    }
    
    .main-content h2 {
        font-size: 1.3rem;
        margin: 20px 0;
    }
    
    .main-content .post_text {
        padding: 15px;
    }
    
    .main-content .post_text h3 {
        font-size: 1.1rem;
    }
    
    .main-content .post_text i {
        font-size: 0.8rem;
        margin: 0 10px 10px 0;
    }
    
    .preview-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .sidebar .section {
        padding: 15px;
    }
    
    .sidebar .section h3 {
        font-size: 1.1rem;
    }
    
    .sidebar .topics ul li a {
        font-size: 0.9rem;
        padding: 10px 0;
    }
    
    .footer .footer-section {
        padding: 20px 15px;
    }
    
    .footer h3, .footer h4 {
        font-size: 1.1rem;
    }
    
    .footer .about .contact span {
        font-size: 0.85rem;
    }
    
    .footer .links ul li a {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        font-size: 0.75rem;
        padding: 10px 0;
    }
    
    .otpr {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .pagination a,
    .pagination span {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-width: 30px;
    }
    
    .img-thumbnail {
        height: 180px;
    }
    
    .reg_form {
        padding: 20px 15px;
        margin: 20px 15px;
    }
    
    .reg_form h2 {
        font-size: 1.3rem;
    }
    
    .reg_form input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .all-comments .one-comment {
        padding: 15px;
    }
    
    .all-comments .one-comment span {
        font-size: 0.85rem;
        margin: 0 10px 10px 0;
    }
    
    .one-comment .text {
        font-size: 0.85rem;
    }
    
    .single_post {
        padding: 20px;
    }
    
    .single_post .info i {
        font-size: 0.85rem;
        margin-right: 10px;
    }
    
    .single_post p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .single_post h1 {
        font-size: 1.8rem;
    }
    
    .single_post h2 {
        font-size: 1.3rem;
    }
    
    .single_post h3 {
        font-size: 1.2rem;
    }
}

/* ========== АДАПТИВНОСТЬ ДЛЯ ОЧЕНЬ МАЛЕНЬКИХ ТЕЛЕФОНОВ (до 375px) ========== */
@media (max-width: 375px) {
    header ul li a {
        padding: 10px 6px;
        font-size: 0.75rem;
    }
    
    .slider-title {
        font-size: 1.2rem;
    }
    
    .carousel-caption h5 a {
        font-size: 0.7rem;
    }
    
    .main-content .post_text h3 {
        font-size: 1rem;
    }
    
    .preview-text {
        font-size: 0.8rem;
    }
    
    .img-thumbnail {
        height: 150px;
    }
    
    .pagination a,
    .pagination span {
        padding: 5px 8px;
        font-size: 0.75rem;
        min-width: 28px;
    }
}

/* ========== АДАПТИВНОСТЬ ДЛЯ ПОВОРОТА ЭКРАНА ========== */
@media (orientation: landscape) and (max-height: 600px) {
    header {
        position: relative;
    }
    
    .hero-section {
        padding: 50px 0;
    }
    
    .carousel {
        height: 300px;
    }
    
    .carousel-inner,
    .carousel-item {
        height: 300px;
    }
}

/* ========== АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ В АЛЬБОМНОЙ ОРИЕНТАЦИИ ========== */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .container {
        max-width: 90%;
    }
    
    .main-content .post_text h3 {
        font-size: 1.2rem;
    }
    
    .img-thumbnail {
        height: 220px;
    }
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ УЛУЧШЕНИЯ ДЛЯ ТАЧ-УСТРОЙСТВ ========== */
@media (hover: none) and (pointer: coarse) {
    .pagination a,
    .pagination span,
    .otpr,
    .read-more-btn,
    .search-btn,
    .newsletter-submit {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    header ul li a {
        padding: 15px 12px;
    }
    
    .post-card:hover,
    .sidebar .section:hover,
    .main-content .post:hover {
        transform: none;
    }
}

/* ========== ОБЩИЕ УЛУЧШЕНИЯ ========== */
::selection {
    background: var(--primary);
    color: var(--white);
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Контейнер для адаптивности */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Улучшенная читаемость на мобильных */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
    }
    
    p {
        word-wrap: break-word;
    }
}


/* Отступы для мобильных */
@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .row {
        margin: 0 -10px;
    }
    
    [class*="col-"] {
        padding: 0 10px;
    }
}

.profile-avatar {
    position: relative;
    width: 160px;
    height: 160px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    overflow: hidden;
}

.avatar-upload {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    z-index: 10;
}

.avatar-upload:hover {
    background: #667eea;
    transform: scale(1.1);
}

.avatar-upload input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
