/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e5e7eb;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    border-bottom-color: transparent;
}

.site-header-inner {
    min-height: 68px;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 700;
}

.site-brand img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 8px;
}

.site-nav {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: #334155;
    border-radius: 10px;
}

.site-nav a {
    text-decoration: none;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 999px;
}

.site-nav a:hover {
    color: #0f7958;
    background: #ecfdf5;
}

.site-nav a.is-active {
    color: #fff;
    background: linear-gradient(80.78deg, #349979 0%, #0F7958 100%);
}

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

/* Hero Section */
.hero {
    padding: 80px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    flex: 1;
}

.hero-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

.hero-icon {
    width: 435px;
    height: 452px;
    flex-shrink: 0;
}

.highlight {
    background: linear-gradient(80.78deg, #349979 0%, #0F7958 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.8;
    color: #666;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(80.78deg, #349979 0%, #0F7958 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
    color: #666;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Stats Cards */
.stats-cards {
    display: none; /* Скрыто по умолчанию на десктопе */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: -20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(80.78deg, #349979 0%, #0F7958 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.stat-content {
    flex: 1;
}

.stat-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
}

.stat-percent {
    color: #349979;
    font-weight: 600;
    margin-bottom: 3px;
}

.stat-amount {
    color: #666;
    font-size: 0.85rem;
    opacity: 0.8;
}

.stat-btn {
    margin-top: 10px;
    font-size: 11px;
    padding: 6px 10px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Button Styles */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(80.78deg, #349979 0%, #0F7958 100%);
    color: white;
    /* box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3); */
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(80.78deg, #349979 0%, #0F7958 100%);
    box-shadow: 0 6px 20px rgba(52, 153, 121, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #333;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(80.78deg, #349979 0%, #0F7958 100%);
    color: white;
    border-color: transparent;
}

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.page-section-title {
    margin-top: 30px;
    margin-bottom: 24px;
    font-size: 2.1rem;
    line-height: 1.25;
    background: linear-gradient(80.78deg, #349979 0%, #0F7958 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 60px;
}

/* Top Loans Section */
.top-loans {
    padding: 80px 0;
    background: #f8fafc;
}

.loans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.loan-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.loan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.loan-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.loan-rank {
    font-size: 2rem;
    font-weight: 700;
    color: #fbbf24;
}

.loan-approval {
    text-align: right;
}

.approval-percent {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(80.78deg, #349979 0%, #0F7958 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.approval-label {
    font-size: 0.9rem;
    opacity: 0.7;
    color: #666;
}

.loan-content {
    padding: 25px;
}

.loan-logo {
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 15px;
    /* border: 2px solid #e5e7eb;
    background: #f8fafc; */
    padding: 10px;
}

.loan-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.loan-conditions {
    margin-bottom: 20px;
}

.condition {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #666;
}

.condition i {
    color: #2563eb;
    width: 16px;
}

.loan-bonus {
    background: rgba(233, 244, 241, 1);
    background: linear-gradient(80.78deg, #349979 0%, #0F7958 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 12px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.loan-footer {
    padding: 0 25px 25px;
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.loan-footer .btn {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    padding: 8px 12px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.loan-footer .btn-secondary {
    background: transparent !important;
    color: #333 !important;
    border: 2px solid rgba(0, 0, 0, 0.2) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.loan-footer .btn-secondary:hover {
    background: linear-gradient(80.78deg, #349979 0%, #0F7958 100%) !important;
    color: white !important;
    border-color: transparent !important;
}

.load-more-container {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
}

/* Tips Section */
.tips {
    padding: 80px 0;
    background: #f8fafc;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tip-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.tip-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(80.78deg, #349979 0%, #0F7958 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 28px;
}

.tip-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.tip-card p {
    color: #666;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 80px 0;
    background: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-disclaimer {
    background: #f8fafc;
    padding: 25px;
    border-radius: 15px;
    margin-top: 30px;
    border-left: 4px solid #349979;
}

.about-disclaimer h4 {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.about-disclaimer p {
    color: #666;
    line-height: 1.6;
}

/* Companies Info Section */
.companies-info {
    padding: 60px 0;
    background: #f8fafc;
}

.companies-list {
    margin-top: 30px;
}

.company-item {
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
}

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

.company-item strong {
    color: #333;
    font-weight: 600;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #334155;
    color: #cbd5e1;
}

/* Popup Modal */
.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

.loan-details-content {
    max-width: 700px;
    max-height: 85vh;
}

.popup-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    padding: 25px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.popup-close {
    background: none;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.popup-body {
    padding: 30px;
    text-align: center;
}

.popup-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(80.78deg, #349979 0%, #0F7958 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 32px;
}

.popup-body h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.popup-body p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.popup-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.popup-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-weight: 500;
}

.popup-feature i {
    color: #10b981;
    font-size: 18px;
}

.popup-footer {
    padding: 0 30px 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.popup-footer .btn {
    flex: 1;
    min-width: 150px;
}

/* Loan Details Styles */
.loan-details-section {
    text-align: left;
    margin-bottom: 25px;
}

.loan-details-section h4 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    border-bottom: 2px solid #349979;
    padding-bottom: 5px;
}

.loan-details-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.loan-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.loan-details-list li {
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.loan-details-list li:before {
    content: "•";
    color: #349979;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.loan-details-highlight {
    background: linear-gradient(80.78deg, #349979 0%, #0F7958 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    font-weight: 500;
}

.loan-details-warning {
    background: #fef3c7;
    border: 1px solid #349979;
    color: #92400e;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    font-size: 0.9rem;
}

.loan-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.loan-details-item {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #349979;
}

.loan-details-item h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.loan-details-item p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Popup Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .site-header-inner {
        min-height: 60px;
        align-items: center;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .site-brand img {
        width: 32px;
        height: 32px;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .site-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 60px;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid #e5e7eb;
        padding: 10px 16px 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 10px 12px;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-image {
        display: none; /* Скрываем изображение на мобильных */
    }
    
    .hero-buttons {
        display: none; /* Скрываем кнопки на мобильных */
    }
    
    .best-offer {
        display: block !important; /* Показываем на мобильных */
    }
    
    .stats-cards {
        display: grid !important; /* Показываем на мобильных */
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .loans-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .page-section-title {
        font-size: 1.8rem;
        margin-top: 18px;
        margin-bottom: 18px;
    }

    
    .popup-content {
        width: 95%;
        margin: 20px;
    }
    
    .popup-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .loan-card {
        margin: 0 10px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loan-card,
.tip-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
} 

.best-offer {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background: rgba(233, 244, 241, 1);
    color: #178060;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    display: none; /* Скрыто по умолчанию на десктопе */
}

.best-offer p {
    margin: 0;
}

/* Catalog and Admin */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    background: #fff;
    transition: all 0.2s ease;
}

.category-pill:hover {
    border-color: #0f7958;
    color: #0f7958;
}

.category-pill.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(80.78deg, #349979 0%, #0F7958 100%);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.admin-tabs {
    margin-bottom: 28px;
}

.admin-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.admin-modal-card {
    position: relative;
}

.admin-modal-card.is-hidden {
    display: none;
}

.admin-modal-card.is-modal-open {
    position: fixed;
    z-index: 13001;
    inset: 40px auto auto 50%;
    transform: translateX(-50%);
    width: min(720px, calc(100vw - 24px));
    max-height: calc(100vh - 80px);
    overflow: auto;
}

.admin-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 13000;
}

.admin-modal-overlay.is-active {
    display: block;
}

.admin-modal-lock {
    overflow: hidden;
}

.admin-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.admin-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 6px 0 12px;
    font: inherit;
}

.admin-row {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
}

.admin-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.admin-row-meta {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
}

.admin-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.admin-row-actions form {
    margin: 0;
}

@media (max-width: 768px) {
    .admin-tabs {
        margin-bottom: 18px;
    }

    .admin-list-header {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-list-header .btn {
        width: 100%;
        justify-content: center;
    }

    .admin-list-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-row-actions {
        width: 100%;
    }

    .admin-row-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.articles-grid .loan-card {
    display: flex;
    flex-direction: column;
}

.articles-grid .loan-content {
    flex: 1;
}

.article-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.article-excerpt {
    color: #64748b;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    overflow: hidden;
    min-height: calc(1.6em * 5);
}

.article-content p,
.article-content li {
    color: #374151;
    line-height: 1.8;
    margin-bottom: 12px;
}

.article-meta {
    max-width: 900px;
    margin: 0 auto 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #64748b;
    font-size: 14px;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.seo-text-block {
    margin-top: 34px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.seo-text-block h3 {
    margin-bottom: 14px;
    font-size: 1.35rem;
    color: #0f172a;
}

.seo-text-block p {
    color: #475569;
    margin-bottom: 12px;
    line-height: 1.75;
}

.seo-text-block p:last-child {
    margin-bottom: 0;
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 12000;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 12px 26px rgba(2, 6, 23, 0.45);
}

.cookie-banner__text {
    font-size: 14px;
    line-height: 1.45;
}

.cookie-banner__text a {
    color: #86efac;
}

.cookie-banner__btn {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner__btn {
        width: 100%;
        justify-content: center;
    }
}

/* Hide Yandex Metrika debugger floating opener */
.__ymDebuggerOpener {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}