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

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a2e;
    background: #fefefe;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}



/* ===== HEADER ===== */
.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo__icon {
    font-size: 24px;
}

.logo__text {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    white-space: nowrap;
}

/* Навигация */
.nav__list {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__link {
    font-weight: 500;
    color: #333;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.nav__link:hover {
    color: #ff6b35;
    border-bottom-color: #ff6b35;
}

/* Действия в шапке */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.subscribe-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.3s;
    white-space: nowrap;
}

.subscribe-btn:hover {
    background: #e55a2b;
}

/* Поиск */
.header-search form {
    display: flex;
    align-items: center;
}

.header-search input {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 30px 0 0 30px;
    font-size: 13px;
    width: 130px;
}

.header-search button {
    padding: 6px 12px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-size: 13px;
}

/* Мобильное меню */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: #333;
}

/* ===== СЛАЙДЕР ===== */
.slider-simple {
    position: relative;
    background: #667eea;
    height: 500px;
    overflow: hidden;
}

.slider-simple-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 80%;
    margin: 0 auto;
}

.slider-simple-slide {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: 20px;
    overflow-y: auto;  /* добавить прокрутку, если контент не влезает */
}

/* Ограничиваем максимальную высоту содержимого слайда */
.slider-simple-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 70%;
    max-width: 1000px;
    max-height: 90%;   /* ограничиваем высоту */
    overflow-y: auto;  /* прокрутка внутри, если контента много */
    text-align: center;
    color: white;
    box-sizing: border-box;
    padding: 20px;
}
/* Категории внутри слайдера — уменьшаем отступы */

/* Категории внутри слайдера — уменьшаем отступы */
.simple-categories {
    margin-top: 15px;   /* было 30px */
    gap: 15px;          /* было 20px */
}

.simple-category {
    padding: 12px;      /* было 20px */
}

/* Шаги внутри слайдера */
.simple-steps {
    margin-top: 15px;   /* было 30px */
    gap: 15px;          /* было 25px */
}

.simple-step {
    padding: 15px;      /* было 25px */
}

/* Карточки "для кого" */
.simple-for-whom {
    margin-top: 20px;   /* было 40px */
    gap: 20px;          /* было 30px */
}

.simple-for-whom-card {
    padding: 15px 20px; /* было 30px 25px */
}
/* Стили для скролла внутри контента (на случай переполнения) */
.slider-simple-content::-webkit-scrollbar {
    width: 5px;
}
.slider-simple-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}
.slider-simple-content::-webkit-scrollbar-thumb {
    background: white;
    border-radius: 10px;
}

.slider-simple-slide.active {
    display: block;
}

.slider-simple-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
    border-radius: 20px;
}

.slider-simple-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 90%;
    max-width: 1000px;
    text-align: center;
    color: white;
    box-sizing: border-box;
}

.slider-simple-content h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.slider-simple-content p {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Фоновые изображения */
.slide-bg-1 {
    background: url('/assets/images/slide-bg-1.jpg') center/cover no-repeat !important;
}
.slide-bg-2 {
    background: url('/assets/images/slide-bg-2.jpg') center/cover no-repeat !important;
}
.slide-bg-3 {
    background: url('/assets/images/slide-bg-3.jpg') center/cover no-repeat !important;
}
.slide-bg-4 {
    background: url('/assets/images/slide-bg-4.jpg') center/cover no-repeat !important;
}

/* Категории внутри слайдера */
.simple-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.simple-category {
    background: rgba(255,255,255,0.15);
    border-radius: 16px;      /* уменьшено с 20px */
    padding: 12px 15px;       /* уменьшено с 20px */
    width: 200px;             /* уменьшено с 220px */
    flex-shrink: 0;
}

.simple-category span {
    font-size: 32px;          /* уменьшено с 40px */
    display: block;
    margin-bottom: 6px;
}

.simple-category h3 {
    font-size: 16px;          /* уменьшено с 18px */
    margin-bottom: 5px;
}

.simple-category p {
    font-size: 12px;          /* уменьшено с 13px */
    margin: 0;
    line-height: 1.3;
}

/* Шаги внутри слайдера */
/* Шаги внутри слайдера (уменьшенная версия) */
.simple-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;               /* уменьшено с 25px */
    margin-top: 20px;        /* уменьшено с 30px */
}

.simple-step {
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 12px 15px;      /* уменьшено */
    width: 200px;            /* уменьшено с 220px */
    flex-shrink: 0;
}

.simple-step-number {
    font-size: 24px;         /* уменьшено с 36px */
    font-weight: bold;
    opacity: 0.6;
    margin-bottom: 5px;
}

.simple-step h3 {
    font-size: 16px;         /* уменьшено с 20px */
    margin-bottom: 6px;
}

.simple-step p {
    font-size: 12px;         /* уменьшено с 14px */
    margin: 0;
    line-height: 1.3;
}
/* 4-й слайд */

/* 4-й слайд: Кому это будет полезно (компактная версия) */
.simple-for-whom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.simple-for-whom-card {
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 15px 20px;
    width: 240px;
    text-align: center;
    transition: transform 0.3s;
}

.simple-for-whom-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.25);
}

.simple-for-whom-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.simple-for-whom-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.simple-for-whom-card p {
    font-size: 12px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.simple-for-whom-button {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 6px 15px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 12px;
    transition: background 0.3s;
}

.simple-for-whom-button:hover {
    background: rgba(255,255,255,0.4);
}

@media (max-width: 768px) {
    .simple-for-whom-card {
        width: 280px;
        padding: 12px 15px;
    }
}
.simple-for-whom-button:hover {
    background: rgba(255,255,255,0.4);
}

/* Кнопки навигации слайдера */
.slider-simple-prev,
.slider-simple-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    z-index: 20;
    transition: background 0.3s;
}

.slider-simple-prev {
    left: calc(10% + 10px);
}

.slider-simple-next {
    right: calc(10% + 10px);
}

.slider-simple-prev:hover,
.slider-simple-next:hover {
    background: rgba(255,255,255,0.5);
}

/* Точки навигации слайдера */
.slider-simple-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 20;
}

.slider-simple-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-simple-dots .dot.active {
    background: white;
    transform: scale(1.2);
}

/* ===== СЕКЦИИ ===== */
.section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

.section__title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #1a1a2e;
}

/* Стили для скролла в статье администратора */
.admin-article-content::-webkit-scrollbar {
    width: 8px;
}

.admin-article-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.admin-article-content::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 10px;
}

.admin-article-container {
    max-width: 1035px;
    margin: 0 auto;
}

/* For Whom */
.for-whom-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.for-whom-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    width: 300px;
}

.for-whom-card__icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.for-whom-card__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.for-whom-card__description {
    color: #666;
    margin-bottom: 20px;
}

.for-whom-card__button {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 500;
}

.for-whom-card__button:hover {
    background: #e55a2b;
}

/* CTA Block */
.cta-block {
    background: linear-gradient(135deg, #5a67d8 0%, #4c51bf 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
    border-radius: 20px;
    margin: 40px 0;
}

.cta-block__title {
    font-size: 28px;
    margin-bottom: 20px;
}

.cta-block__buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-block__button {
    display: inline-block;
    background: white;
    color: #ff6b35;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
}

.cta-block__button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    position: relative;
    animation: fadeIn 0.3s;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #888;
}

.modal-close:hover {
    color: #333;
}

.modal-content h3 {
    margin-bottom: 10px;
    font-size: 24px;
    color: #333;
}

.modal-content p {
    color: #666;
    margin-bottom: 20px;
}

.modal-subscribe-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-subscribe-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
}

.modal-subscribe-form button {
    padding: 12px 25px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
}

.modal-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    display: none;
}

.modal-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.modal-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== FOOTER ===== */
.footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer__info {
    flex: 1;
    min-width: 200px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer__logo-icon {
    font-size: 28px;
}

.footer__logo-text {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.footer__tagline {
    font-size: 14px;
    margin-bottom: 15px;
    color: #ccc;
}

.footer__links {
    flex: 1;
    min-width: 150px;
}

.footer__title {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer__list {
    list-style: none;
}

.footer__list li {
    margin-bottom: 10px;
}

.footer__list a:hover {
    color: #ff6b35;
}

.footer__small {
    font-size: 12px;
    margin-top: 10px;
}

/* ===== АДАПТАЦИЯ ===== */
@media (max-width: 1024px) {
    .nav__list {
        gap: 10px;
    }
    
    .header-search input {
        width: 100px;
    }
    
    .logo__text {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .header-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        transition: left 0.3s ease;
        z-index: 99;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav__list {
        flex-direction: column;
        align-items: center;
        padding: 30px;
        gap: 20px;
    }
    
    .nav__link {
        font-size: 16px;
    }
    .simple-category {
    width: 260px;
    padding: 10px 12px;
}

.simple-for-whom-card {
    width: 260px;
    padding: 12px 15px;
}
    .simple-step {
    width: 260px;
    padding: 10px 12px;
}

.simple-step-number {
    font-size: 20px;
}

.simple-step h3 {
    font-size: 14px;
}

.simple-step p {
    font-size: 11px;
}
    .slider-simple {
        height: auto;
        min-height: 450px;
    }
    
    .slider-simple-container {
        max-width: 90%;
    }
    
    .slider-simple-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 60px 0;
        margin: 0 auto;
    }
    
    .slider-simple-slide {
        position: relative;
        height: auto;
        min-height: 450px;
    }
    
    .slider-simple-content h2 {
        font-size: 28px;
    }
    
    .slider-simple-content p {
        font-size: 18px;
    }
    
    .simple-category,
    .simple-step,
    .simple-for-whom-card {
        width: 280px;
    }
    
    .slider-simple-prev {
        left: 10px;
    }
    
    .slider-simple-next {
        right: 10px;
    }
    
    .slider-simple-prev,
    .slider-simple-next {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .for-whom-card {
        width: 100%;
        max-width: 320px;
    }
    
    .footer__inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer__logo {
        justify-content: center;
    }
}
/* Footer */
.footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer__info {
    flex: 1;
    min-width: 200px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer__logo-icon {
    font-size: 28px;
}

.footer__logo-text {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.footer__tagline {
    font-size: 14px;
    margin-bottom: 15px;
    color: #ccc;
}

.footer__links {
    flex: 1;
    min-width: 150px;
}

.footer__title {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer__list {
    list-style: none;
}

.footer__list li {
    margin-bottom: 10px;
}

.footer__list a:hover {
    color: #5a67d8;
}

.footer__subscribe {
    flex: 1;
    min-width: 280px;
}

.footer__subscribe .subscribe-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.footer__subscribe .subscribe-form input {
    flex: 2;
    min-width: 200px;
    padding: 14px 18px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    background: #fff;
}

.footer__subscribe .subscribe-form button {
    padding: 14px 28px;
    background: #5a67d8;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s;
}

.footer__subscribe .subscribe-form button:hover {
    background: #4c51bf;
}

.footer__small {
    font-size: 12px;
    margin-top: 12px;
    opacity: 0.7;
}
.footer-message {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    display: none;
}

.footer-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.footer-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}
.footer-message {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    display: none;
}

.footer-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.footer-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}
/* Соцсети в шапке */
.social-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.social-icon {
    font-size: 20px;
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #5a67d8;
}

/* Соцсети в футере */
.footer__social {
    flex: 1;
    min-width: 150px;
}

.footer-social-icons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-social-icon {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-social-icon:hover {
    color: #5a67d8;
}

@media (max-width: 768px) {
    .social-icons {
        display: none;
    }
    
    .footer-social-icons {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
}

/* Баннеры */
.footer-banners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.footer-banner img {
    max-width: 200px;
    max-height: 100px;
    border-radius: 10px;
}

.article-banner {
    text-align: center;
    margin: 20px 0;
}

.article-banner img {
    max-width: 100%;
    border-radius: 12px;
}

.sidebar-banner {
    margin: 20px 0;
}

.sidebar-banner img {
    width: 100%;
    border-radius: 12px;
}
.admin-article-content a,
.article-content a {
    color: #5a67d8;
    text-decoration: underline;
}

.admin-article-content a:hover,
.article-content a:hover {
    color: #4c51bf;
}
/* Стили для ссылок в статьях */
.article-content a,
.admin-article-content a {
    color: #5a67d8;
    text-decoration: underline;
    font-weight: 500;
}

.article-content a:hover,
.admin-article-content a:hover {
    color: #4c51bf;
    text-decoration: none;
}
.article-content a,
.admin-article-content a,
.selected-article-content a {
    color: #5a67d8 !important;
    text-decoration: underline;
}

.article-content a:hover,
.admin-article-content a:hover,
.selected-article-content a:hover {
    color: #4c51bf !important;
}

/* Единый стиль для всех ссылок */
a {
    color: #5a67d8 !important;
    text-decoration: underline;
}

a:hover {
    color: #4c51bf !important;
    text-decoration: none;
}
/* Кнопка подписки на слайдере */
/* Кнопка подписки на слайдере */
.slider-subscribe {
    position: absolute;
    bottom: 30px;
    right: 10%;
    z-index: 25;
    background: linear-gradient(135deg, #5a67d8 0%, #4c51bf 100%);
    color: #ffffff !important;          /* ← добавлено !important */
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none !important;   /* ← добавлено !important */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-subscribe:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #4c51bf 0%, #3c4199 100%);
    color: #ffffff !important;
    text-decoration: none !important;
}
/* Верхняя часть слайда под баннеры */
/* Верхняя часть слайда под баннеры */
/* Верхняя часть слайда под баннеры */
.slide-banners {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 18%;
    background: transparent;      /* прозрачный фон */
    backdrop-filter: none;        /* убираем размытие */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    z-index: 5;
    padding: 0 20px;
    box-sizing: border-box;
}

.slide-banner {
    flex: 1;                         /* все баннеры одинаковой ширины */
    text-align: center;
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    padding: 10px 5px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;             /* текст в одну строку */
    overflow: hidden;
    text-overflow: ellipsis;         /* если не влезает — троеточие */
}

.slide-banner:hover {
    background: white;
    transform: translateY(-2px);
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .slide-banners {
        height: auto;
        position: relative;
        background: rgba(0,0,0,0.5);
        padding: 10px;
        flex-wrap: wrap;
    }
    .slide-banner {
        flex: 1 1 auto;
        min-width: 80px;
        font-size: 10px;
        padding: 6px 4px;
        white-space: normal;         /* на мобильных текст может переноситься */
    }
}

.slide-banner {
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.slide-banner:hover {
    background: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .slide-banners {
        height: auto;
        position: relative;
        background: rgba(0,0,0,0.5);
    }
    .slide-banner {
        padding: 5px 10px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .slider-subscribe {
        bottom: 15px;
        right: 15px;
        padding: 8px 16px;
        font-size: 14px;
    }
}
.slide-banner img {
    max-height: 24px;
    width: auto;
    vertical-align: middle;
}
/* Увеличение баннеров на ВСЕХ слайдах */
.slide-banners .slide-banner img,
.slide-banners img {
    max-height: 60px !important;
    height: auto !important;
}

/* Прозрачный фон для баннеров (убираем белый фон) */
.slide-banner {
    background: transparent !important;
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Чтобы текст баннеров был виден на любом фоне */
.slide-banner span,
.slide-banner {
    color: white !important;
}

/* ===== ФИКСЫ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ ===== */
@media (max-width: 768px) {

    /* 1. Запрещаем элементам вылезать за пределы экрана */
    img, iframe, video, .slider-simple, .container, .admin-article-container {
        max-width: 100% !important;
        height: auto !important;
    }

    /* 2. Делаем отступы по бокам, чтобы текст не прилипал к краям */
    body .container, 
    body .admin-article-container,
    body .section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 3. Уменьшаем размер шрифта для заголовков на телефонах */
    h1 { font-size: 28px !important; line-height: 1.2 !important; }
    h2 { font-size: 22px !important; line-height: 1.2 !important; }
    h3 { font-size: 18px !important; }

    /* 4. Исправляем блок с категориями и шагами (если они в слайдере) */
    .simple-categories,
    .simple-steps,
    .simple-for-whom {
        flex-direction: column !important;
        align-items: center !important;
    }
    .simple-category,
    .simple-step,
    .simple-for-whom-card {
        width: 90% !important;
        margin-bottom: 15px !important;
    }
}
/* ===== ДОПОЛНЕНИЯ И ИСПРАВЛЕНИЯ (ДЛЯ МОБИЛЬНЫХ, БАННЕРОВ, ССЫЛОК) ===== */

/* 1. Делаем ссылку «Читать полностью» заметной */
.admin-article-container a,
.admin-article-content a,
.archive-article-link {
    color: #ff6b35 !important;
    text-decoration: underline;
    font-weight: 600;
}
.admin-article-container a:hover,
.admin-article-content a:hover,
.archive-article-link:hover {
    color: #e55a2b !important;
    text-decoration: none;
}

/* 2. Исправления для телефонов */
@media (max-width: 768px) {

    /* Контент на всю ширину */
    .archive-article-content,
    .article-content,
    .single-article-content,
    .admin-article-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 5px !important;
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    /* Уменьшаем шрифты заголовков */
    h1 { font-size: 28px !important; }
    h2 { font-size: 22px !important; }
    h3 { font-size: 18px !important; }

    /* Баннеры на телефоне — компактно, в 1-2 строки */
    .sidebar-banner,
    .article_bottom_banner,
    .article_top_banner {
        margin: 10px 0 !important;
        text-align: center;
    }
    .sidebar-banner img,
    .article_bottom_banner img,
    .article_top_banner img {
        max-height: 80px !important;
        width: auto !important;
    }
}
/* АДАПТАЦИЯ ДЛЯ ТЕЛЕФОНА: КОЛОНКИ СТАНОВЯТСЯ ВЕРТИКАЛЬНЫМИ */
@media (max-width: 768px) {
    .archive-two-columns {
        flex-direction: column !important;
    }
    
    .archive-two-columns > div:first-child {
        width: 100% !important;
        min-width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
        margin-bottom: 20px !important;
    }
    
    .archive-two-columns > div:first-child > div {
        width: auto !important;
        max-width: 180px !important;
        flex: 1 1 auto !important;
    }
    
    .archive-two-columns > div:first-child img {
        max-height: 70px !important;
        width: auto !important;
    }
    
    .archive-two-columns > div:last-child {
        width: 100% !important;
    }
}

/* ===== СТИЛИ ДЛЯ АРХИВА (ОБЩИЕ) ===== */
.archive-layout {
    display: flex;
    flex-direction: row;
    gap: 40px;
    flex-wrap: wrap;
}

.archive-sidebar {
    width: 30%;
    min-width: 250px;
}

.archive-content {
    width: 65%;
    min-width: 300px;
}

.archive-banner-item {
    margin-bottom: 30px;
    text-align: center;
}

.archive-banner-item img {
    width: 100%;
    border-radius: 12px;
}

.archive-article-card {
    background: #fff5f0;
    border-radius: 20px;
    padding: 30px;
}

.archive-article-card h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.archive-article-meta {
    color: #666;
    margin-bottom: 20px;
}

.archive-article-excerpt {
    line-height: 1.8;
    margin-bottom: 20px;
}

.archive-article-readmore {
    text-align: right;
}

.archive-article-readmore a {
    color: #5a67d8;
    text-decoration: none;
    font-weight: 500;
}

.archive-article-readmore a:hover {
    text-decoration: underline;
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ: ВСЁ ВЕРТИКАЛЬНО ===== */
@media (max-width: 768px) {
    .archive-layout {
        flex-direction: column !important;
    }
    
    .archive-sidebar {
        width: 100% !important;
        min-width: auto !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
        margin-bottom: 20px !important;
    }
    
    .archive-banner-item {
        width: auto !important;
        max-width: 180px !important;
        margin-bottom: 0 !important;
        flex: 1 1 auto !important;
    }
    
    .archive-banner-item img {
        max-height: 80px !important;
        width: auto !important;
    }
    
    .archive-content {
        width: 100% !important;
        min-width: auto !important;
    }
}
/* === БАННЕРЫ НА ТЕЛЕФОНЕ: В 2 СТРОЧКИ === */
@media (max-width: 768px) {
    .archive-sidebar {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
    }
    
    .archive-banner-item {
        flex: 0 1 auto !important;
        width: calc(33% - 10px) !important;
        max-width: 140px !important;
        margin-bottom: 10px !important;
    }
    
    .archive-banner-item img {
        max-height: 70px !important;
        width: auto !important;
    }
}
/* === БАННЕРЫ НА ТЕЛЕФОНЕ: КОМПАКТНО В 2 СТРОЧКИ === */
@media (max-width: 768px) {
    .banners-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
        width: 100% !important;
    }
    
    .archive-sidebar {
        width: 100% !important;
        display: block !important;
    }
    
    .archive-banner-item {
        width: auto !important;
        flex: 0 1 160px !important;
        margin: 0 !important;
    }
    
    .archive-banner-item img {
        max-height: 80px !important;
        width: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }
}
/* === ПЕРЕСТРОЙКА ДЛЯ ТЕЛЕФОНА: ВЕРТИКАЛЬНО, БАННЕРЫ КОМПАКТНО === */
@media (max-width: 768px) {
    .archive-layout {
        flex-direction: column !important;
    }
    
    .archive-sidebar {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
        margin-bottom: 20px !important;
    }
    
    .archive-banner-item {
        width: auto !important;
        max-width: 160px !important;
        flex: 1 1 auto !important;
        margin-bottom: 0 !important;
    }
    
    .archive-banner-item img {
        max-height: 80px !important;
        width: auto !important;
    }
    
    .archive-content {
        width: 100% !important;
    }
}
/* === ТОЛЬКО ДЛЯ ТЕЛЕФОНОВ: БАННЕРЫ В 2 СТРОЧКИ === */
@media (max-width: 768px) {
    .archive-sidebar {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
        width: 100% !important;
    }
    
    .archive-banner-item {
        width: calc(33.33% - 15px) !important;
        max-width: 150px !important;
        min-width: 100px !important;
    }
    
    .archive-banner-item img {
        max-height: 80px !important;
        width: auto !important;
    }
}