:root {
    --bg-primary: #f5f2ed;
    --bg-secondary: #ebe6dc;
    --bg-card: #ffffff;
    --bg-elevated: #faf8f4;
    --text-primary: #1a2332;
    --text-secondary: #4a5568;
    --text-muted: #7b8794;
    --accent: #c0623a;
    --accent-hover: #d67348;
    --accent-subtle: rgba(192, 98, 58, 0.08);
    --warm: #b08d57;
    --warm-subtle: rgba(176, 141, 87, 0.1);
    --border-color: rgba(26, 35, 50, 0.1);
    --gradient-hero: linear-gradient(160deg, #1a2332 0%, #2d3a4a 40%, #253040 100%);
    --shadow-sm: 0 2px 8px rgba(26, 35, 50, 0.06);
    --shadow-md: 0 4px 20px rgba(26, 35, 50, 0.1);
    --shadow-lg: 0 8px 40px rgba(26, 35, 50, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Playfair Display', serif;
    --font-display: 'DM Serif Display', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s, visibility 0.3s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(245, 242, 237, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}
.site-header .navbar { padding: 12px 0; }
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-icon {
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}
.brand-text {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}
.brand-text small {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: lowercase;
}
.navbar-toggler {
    border: none;
    padding: 8px;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.toggler-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}
.navbar-toggler.active .toggler-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar-toggler.active .toggler-line:nth-child(2) { opacity: 0; }
.navbar-toggler.active .toggler-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.navbar-nav { gap: 8px; }
.nav-link {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary) !important;
    padding: 10px 16px !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.nav-link:hover, .nav-link.active { background: var(--accent-subtle); color: var(--accent) !important; }
.dropdown-toggle { cursor: pointer; }
.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 220px;
    box-shadow: var(--shadow-md);
}
.dropdown-item {
    color: var(--text-secondary);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}
.dropdown-item:hover { background: var(--accent-subtle); color: var(--accent); }

.hero-section {
    position: relative;
    padding: 140px 0 80px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    color: #fff;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: -1;
}
.hero-bg::before {
    content: '';
    position: absolute;
    top: 15%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(176, 141, 87, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(192, 98, 58, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-section h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 24px;
}
.hero-lead {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 560px;
    line-height: 1.8;
}
.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.stat-item { display: flex; flex-direction: column; }
.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--warm);
}
.stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guides-section { padding: 80px 0; }
.guides-section h2 {
    font-family: var(--font-accent);
    font-size: 2.2rem;
    margin-bottom: 12px;
    font-weight: 600;
}
.section-subtitle { color: var(--text-secondary); margin-bottom: 48px; font-size: 17px; }

.guides-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
}
.guides-side { display: flex; flex-direction: column; gap: 32px; }
.guide-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}
.guide-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.guide-featured { display: flex; flex-direction: column; }
.guide-featured .card-image { height: 320px; }
.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.guide-card:hover .card-image img { transform: scale(1.05); }
.image-source {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.5);
    padding: 4px 8px;
    border-radius: 4px;
}
.card-content { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-category {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 12px;
}
.card-content h3 {
    font-family: var(--font-accent);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 12px;
}
.card-content h3 a:hover { color: var(--accent); }
.card-content p { color: var(--text-secondary); font-size: 15px; flex: 1; }
.card-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
}
.card-difficulty { color: var(--accent); font-weight: 600; font-family: var(--font-heading); }
.card-footer time { color: var(--text-muted); }

.about-preview { padding: 80px 0; background: var(--bg-secondary); }
.about-preview h2 {
    font-family: var(--font-accent);
    font-size: 2rem;
    margin-bottom: 24px;
    font-weight: 600;
}
.about-preview p { color: var(--text-secondary); margin-bottom: 20px; }
.about-image { border-radius: var(--radius-lg); overflow: hidden; }
.about-image img { width: 100%; height: 450px; object-fit: cover; }
.btn-link {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--accent);
    padding-bottom: 4px;
    border-bottom: 2px solid var(--accent);
    margin-top: 12px;
    transition: 0.2s;
}
.btn-link:hover { color: var(--accent-hover); border-color: var(--accent-hover); }

.site-footer { padding: 60px 0 24px; border-top: 1px solid var(--border-color); background: var(--bg-secondary); }
.footer-brand { margin-bottom: 24px; }
.footer-brand .brand-icon { margin-bottom: 16px; }
.footer-brand p { color: var(--text-secondary); font-size: 14px; max-width: 280px; }
.site-footer h4 {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { color: var(--text-secondary); font-size: 14px; }
.site-footer ul a:hover { color: var(--accent); }
.site-footer .col-lg-4 p { color: var(--text-secondary); font-size: 14px; margin-bottom: 8px; }
.update-date { color: var(--text-muted) !important; font-size: 13px !important; margin-top: 12px !important; }
.footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    z-index: 2000;
    box-shadow: var(--shadow-lg);
    display: none;
}
.cookie-banner.show { display: block; }
.cookie-content h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 12px;
}
.cookie-content > p { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
.cookie-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-cookie {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: 0.2s;
}
.btn-accept { background: var(--accent); color: #fff; }
.btn-accept:hover { background: var(--accent-hover); }
.btn-reject { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-color); }
.btn-reject:hover { border-color: var(--text-secondary); color: var(--text-primary); }
.btn-settings { background: transparent; color: var(--accent); }
.btn-settings:hover { text-decoration: underline; }
.cookie-settings { display: none; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.cookie-settings.show { display: block; }
.cookie-option { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 14px; cursor: pointer; }
.cookie-option input { width: 18px; height: 18px; accent-color: var(--accent); }
.btn-save { margin-top: 12px; background: var(--accent); color: #fff; }

.article-header { padding: 140px 0 40px; background: var(--gradient-hero); color: #fff; }
.article-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--warm);
    margin-bottom: 16px;
}
.article-header h1 {
    font-family: var(--font-accent);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 800px;
}
.article-meta {
    display: flex;
    gap: 24px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}
.article-hero { position: relative; margin-bottom: 48px; }
.article-hero img { width: 100%; max-height: 500px; object-fit: cover; }
.article-content { padding: 0 0 80px; }
.article-content .container { max-width: 800px; }
.article-content .lead { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.9; font-family: var(--font-accent); font-style: italic; }
.article-content h2 {
    font-family: var(--font-accent);
    font-size: 1.6rem;
    margin: 40px 0 20px;
    font-weight: 600;
}
.article-content p { margin-bottom: 20px; color: var(--text-secondary); }
.article-content ul, .article-content ol { margin: 20px 0; padding-left: 24px; }
.article-content li { margin-bottom: 10px; color: var(--text-secondary); list-style: disc; }
.article-content ol li { list-style: decimal; }

.tools-box {
    background: var(--warm-subtle);
    border: 1px solid rgba(176, 141, 87, 0.2);
    border-radius: var(--radius-md);
    padding: 32px;
    margin: 40px 0;
}
.tools-box h3 {
    font-family: var(--font-accent);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.tools-box ul { padding-left: 20px; }
.tools-box li { margin-bottom: 8px; font-size: 15px; color: var(--text-secondary); }

.steps-box {
    margin: 40px 0;
}
.steps-box h3 {
    font-family: var(--font-accent);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.steps-box ol { padding-left: 24px; }
.steps-box li {
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    list-style: decimal;
}

.info-bar {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    padding: 20px 28px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin: 32px 0;
}
.info-item {
    display: flex;
    flex-direction: column;
}
.info-item .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-family: var(--font-heading);
}
.info-item .value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.tips-box {
    background: var(--accent-subtle);
    border: 1px solid rgba(192, 98, 58, 0.15);
    border-radius: var(--radius-md);
    padding: 28px;
    margin: 40px 0;
}
.tips-box h3 {
    font-family: var(--font-accent);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--accent);
}
.tips-box ul { padding-left: 20px; }
.tips-box li { margin-bottom: 8px; font-size: 14px; color: var(--text-secondary); }

.external-links { margin-top: 40px; padding: 24px; background: var(--bg-secondary); border-radius: var(--radius-md); }
.external-links h3 { font-family: var(--font-heading); font-size: 1rem; margin-bottom: 16px; }
.external-links ul { padding-left: 20px; }
.external-links li { margin-bottom: 8px; }
.external-links a { color: var(--accent); }
.external-links a:hover { text-decoration: underline; }

.related-section { padding: 60px 0; background: var(--bg-secondary); }
.related-section h2 { font-family: var(--font-accent); font-size: 1.6rem; margin-bottom: 32px; font-weight: 600; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.related-card {
    display: block;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.related-card img { width: 100%; height: 160px; object-fit: cover; }
.related-card h3 { padding: 16px; font-family: var(--font-accent); font-size: 1.1rem; font-weight: 600; }
.related-card:hover h3 { color: var(--accent); }

.about-page { padding: 140px 0 80px; }
.about-hero { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; margin-bottom: 60px; }
.about-photo { border-radius: var(--radius-lg); overflow: hidden; }
.about-photo img { width: 100%; height: 400px; object-fit: cover; }
.about-intro h1 {
    font-family: var(--font-accent);
    font-size: 2.5rem;
    margin-bottom: 24px;
    font-weight: 600;
}
.about-intro p { color: var(--text-secondary); margin-bottom: 16px; }
.about-content h2 {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    margin: 36px 0 16px;
    font-weight: 600;
}
.about-content p { color: var(--text-secondary); margin-bottom: 16px; }
.about-content ul { padding-left: 24px; margin-bottom: 20px; }
.about-content li { color: var(--text-secondary); margin-bottom: 8px; list-style: disc; }
.about-contact { margin-top: 40px; padding: 28px; background: var(--bg-secondary); border-radius: var(--radius-md); }
.about-contact h3 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 16px; }
.about-contact p { color: var(--text-secondary); margin-bottom: 8px; }

.contact-page { padding: 140px 0 80px; }
.contact-page h1 { font-family: var(--font-accent); font-size: 2.5rem; margin-bottom: 16px; font-weight: 600; }
.contact-intro { color: var(--text-secondary); margin-bottom: 48px; max-width: 600px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 { font-family: var(--font-accent); font-size: 1.3rem; margin-bottom: 20px; font-weight: 600; }
.contact-info p { color: var(--text-secondary); margin-bottom: 12px; }
.contact-info ul { padding-left: 24px; margin-top: 16px; }
.contact-info li { color: var(--text-secondary); margin-bottom: 8px; list-style: disc; }

.policy-page { padding: 140px 0 80px; }
.policy-page h1 { font-family: var(--font-accent); font-size: 2.5rem; margin-bottom: 16px; font-weight: 600; }
.policy-page .update { color: var(--text-muted); margin-bottom: 40px; }
.policy-content h2 { font-family: var(--font-accent); font-size: 1.3rem; margin: 32px 0 16px; font-weight: 600; }
.policy-content p { color: var(--text-secondary); margin-bottom: 16px; }
.policy-content ul { padding-left: 24px; margin-bottom: 20px; }
.policy-content li { color: var(--text-secondary); margin-bottom: 8px; list-style: disc; }

@media (max-width: 991px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: var(--bg-card);
        padding: 80px 24px 24px;
        transition: right 0.3s;
        border-left: 1px solid var(--border-color);
        display: block;
        box-shadow: var(--shadow-lg);
    }
    .navbar-collapse.show { right: 0; }
    .navbar-nav { flex-direction: column; }
    .dropdown-menu { position: static; background: transparent; border: none; padding: 0 0 0 16px; box-shadow: none; }
    .guides-layout { grid-template-columns: 1fr; }
    .about-hero { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .hero-section { padding: 120px 0 60px; min-height: auto; }
    .hero-section h1 { font-size: 1.8rem; }
    .hero-stats { gap: 24px; }
    .stat-number { font-size: 2rem; }
    .about-image img { height: 300px; }
    .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
    .info-bar { gap: 20px; }
}
