/* CSS Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --forest-green: #14532d;
    --accent-green: #22c55e;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
	min-height: 150vh;
    display: flex;
    flex-direction: column;
}

/* Navigation Bar */
header {
    background-color: var(--white);
    border-bottom: 3px solid var(--forest-green);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: var(--forest-green);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-blue);
}

.nav-links a.active {
    color: var(--forest-green);
}

.cta-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border: 2px solid transparent;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Main Content Container */
main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 2rem;
	flex: 1;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--secondary-blue);
}

/* Article Typography */
h1 {
    font-size: 2.5rem;
    color: var(--forest-green);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}

/* Hero Image Section */
.hero-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hero-image {
    width: 100%;
    display: block;
    max-height: 600px;
    object-fit: cover;
}

/* Floating Badge */
.category-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-green);
    color: var(--forest-green);
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Interactive Like Bar */
.interaction-bar {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
    gap: 1rem;
}

.like-btn {
    background: none;
    border: 1px solid var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 600;
    transition: all 0.2s ease;
}

.like-btn.liked {
    background-color: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* Table of Contents Section */
.toc-container {
    background-color: #f1f5f9;
    border-left: 4px solid var(--forest-green);
    padding: 2rem;
    margin-top: 2.5rem;
    border-radius: 0 8px 8px 0;
}

.toc-title {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 1rem;
}

.toc-list {
    padding-left: 1.2rem;
    color: var(--text-muted);
}

.toc-list li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.toc-list li::marker {
    color: var(--secondary-blue);
    font-weight: bold;
}

.toc-list a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.toc-list a:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

/* Article Body & Typography Styling */
.article-intro {
    margin-top: 3rem;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1.5rem;
}

.article-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px; /* Offset for smooth scroll under sticky navbar */
}

.section-title {
    font-size: 1.75rem;
    color: var(--forest-green);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.article-section p {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

/* Links to match Blue Accent Theme */
.inline-link {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px dashed var(--secondary-blue);
    transition: all 0.2s ease;
}

.inline-link:hover {
    color: var(--primary-blue);
    border-bottom-style: solid;
    background-color: #eff6ff;
}

/* Inline Content Images */
.section-image-container {
    margin: 2.5rem auto;
    max-width: 700px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.section-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
}
/* Article Outro Closing Statement */
.article-outro {
    margin: 4rem 0 6rem 0;
    font-size: 1.15rem;
    color: var(--text-dark);
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    padding: 0 1rem;
}

/* Footer Container Styling */
footer {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 4rem 2rem;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-column h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

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

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-column ul a:hover {
    color: var(--secondary-blue);
}

/* Social Icon Badges */
.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #1e293b;
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
    background-color: var(--secondary-blue);
}

/* App Download Matrix */
.app-download-wrapper {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.qr-placeholder {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
}

.store-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.store-badge {
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    font-family: inherit;
    transition: background-color 0.2s ease;
}

.store-badge:hover {
    background-color: #1e293b;
}

.store-badge span {
    font-size: 0.65rem;
    opacity: 0.7;
    text-transform: uppercase;
}

.store-badge strong {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive Footer Adaptation */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .app-download-wrapper {
        flex-direction: column;
        align-items: center;
    }
}
.article-cta-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0 2.5rem 0;
    width: 100%;
}

.article-cta-container .cta-btn {
    padding: 0.8rem 2rem; /* Немного увеличил паддинги, чтобы кнопка в теле статьи выглядела солиднее */
    font-size: 0.95rem;
}