*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #0f3460;
    --bg-accent: #1b2838;
    --text-primary: #e8e8e8;
    --text-secondary: #b0b0c0;
    --text-muted: #8888a0;
    --accent-gold: #c9a96e;
    --accent-copper: #b87333;
    --accent-teal: #4ecdc4;
    --accent-blue: #5c7aea;
    --border-color: rgba(201, 169, 110, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.4);
    --font-heading: 'Cinzel', serif;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Nunito Sans', sans-serif;
    --font-serif: 'Lora', serif;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

body.nav-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-teal);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: 1px;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-family: var(--font-serif);
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.4s ease;
}

.page-loader.loaded {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--bg-card);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.98) 0%, rgba(22, 33, 62, 0.95) 100%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 2rem;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-gold);
    font-weight: 600;
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-gold);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--accent-gold);
    transition: all var(--transition);
}

.burger-menu.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.open span:nth-child(2) {
    opacity: 0;
}

.burger-menu.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 40%, #0a1628 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 50%, rgba(201, 169, 110, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(78, 205, 196, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-gold), #e8c98e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-copper));
    color: var(--bg-primary);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all var(--transition);
}

.hero-cta-offset {
    margin-top: 1rem;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 110, 0.3);
    color: var(--bg-primary);
}

.section-padding {
    padding: 80px 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.featured-caves {
    background: var(--bg-secondary);
}

.cave-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.cave-card {
    position: relative;
    background: var(--bg-accent);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform var(--transition), box-shadow var(--transition);
}

.cave-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.cave-card:first-child {
    grid-column: 1 / -1;
}

.cave-card-image {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.cave-card:first-child .cave-card-image {
    height: 400px;
}

.cave-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cave-card:hover .cave-card-image img {
    transform: scale(1.05);
}

.cave-card-image .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.cave-card-image .card-overlay .location-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(201, 169, 110, 0.2);
    border: 1px solid var(--accent-gold);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.cave-card-body {
    padding: 1.5rem;
}

.cave-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.cave-card-body p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent-teal);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: gap var(--transition);
}

.card-link:hover {
    gap: 14px;
    color: var(--accent-teal);
}

.card-link::after {
    content: '\2192';
}

.info-banner {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.info-stat h4 {
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: var(--accent-teal);
    margin-bottom: 0.5rem;
}

.info-stat p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.guide-section {
    background: var(--bg-primary);
}

.guide-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: center;
}

.guide-grid.reverse {
    grid-template-columns: 1fr 1.3fr;
}

.guide-text h2 {
    margin-bottom: 1.5rem;
}

.guide-text ul {
    list-style: none;
    margin-top: 1rem;
}

.guide-text ul li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-family: var(--font-serif);
}

.guide-text ul li::before {
    content: '\25C6';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-size: 0.7rem;
    top: 0.8rem;
}

.guide-image {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.guide-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.article-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    padding: 100px 2rem 3rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 30%, rgba(26, 26, 46, 0.95) 100%);
}

.article-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.article-hero-content .breadcrumb {
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.breadcrumb span {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0 8px;
}

.article-hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.article-content h3 {
    margin-top: 1.5rem;
    color: var(--accent-teal);
}

.article-content p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-content blockquote {
    border-left: 3px solid var(--accent-gold);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(201, 169, 110, 0.05);
    border-radius: 0 8px 8px 0;
}

.article-content blockquote p {
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 0;
}

.article-image-block {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.article-image-block img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.article-image-block figcaption {
    padding: 0.8rem 1rem;
    background: var(--bg-accent);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-body);
}

.info-box {
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.info-box h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.info-box table {
    width: 100%;
    border-collapse: collapse;
}

.info-box table tr {
    border-bottom: 1px solid var(--border-color);
}

.info-box table td {
    padding: 0.7rem 0;
    font-family: var(--font-serif);
    color: var(--text-secondary);
}

.info-box table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
    width: 40%;
}

.related-articles {
    background: var(--bg-secondary);
    padding: 4rem 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.related-card {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-accent);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: transform var(--transition);
}

.related-card:hover {
    transform: translateY(-4px);
}

.related-card img {
    width: 120px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.related-card-text h4 {
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.related-card-text p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.page-hero {
    padding: 120px 2rem 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

.page-hero h1 {
    margin-bottom: 1rem;
}

.page-hero p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.page-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content h3 {
    margin-top: 1.5rem;
    color: var(--accent-teal);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.contact-info-block {
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.contact-info-block h3 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item-icon {
    width: 40px;
    height: 40px;
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--accent-gold);
}

.contact-item-text h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.contact-item-text p {
    color: var(--text-primary);
    font-family: var(--font-body);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.contact-item-text a {
    color: var(--accent-teal);
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.policy-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.policy-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.policy-content ul li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-family: var(--font-serif);
}

.site-footer {
    background: #0d1117;
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-col ul a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 17, 23, 0.97);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-content {
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-content p {
    flex: 1;
    min-width: 300px;
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-secondary);
    font-family: var(--font-body);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition);
}

.cookie-accept {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.cookie-accept:hover {
    background: #dbb978;
}

.cookie-reject {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.cookie-reject:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.about-intro {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.about-intro-image {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.about-intro-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.value-card {
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform var(--transition);
}

.value-card:hover {
    transform: translateY(-4px);
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.value-card h3 {
    margin-bottom: 0.8rem;
}

.help-list {
    list-style: none;
    padding: 0;
}

.help-list li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-family: var(--font-serif);
}

.help-list li::before {
    content: '\25C6';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-size: 0.7rem;
    top: 0.8rem;
}

.contact-notice {
    max-width: 900px;
    margin: 0 auto;
}

.back-to-top {
    display: inline-block;
    margin-top: 2rem;
    padding: 10px 20px;
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--accent-gold);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition);
}

.back-to-top:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

@media (max-width: 1024px) {
    .cave-grid {
        grid-template-columns: 1fr;
    }

    .cave-card:first-child {
        grid-column: auto;
    }

    .cave-card:first-child .cave-card-image {
        height: 280px;
    }

    .guide-grid,
    .guide-grid.reverse {
        grid-template-columns: 1fr;
    }

    .info-banner {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-intro {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .burger-menu {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        padding: 80px 2rem 2rem;
        transition: right var(--transition);
        border-left: 1px solid var(--border-color);
        z-index: 999;
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 1rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-section {
        min-height: 70vh;
        padding: 100px 1.5rem 40px;
    }

    .section-padding {
        padding: 50px 1.5rem;
    }

    .info-banner {
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .article-hero-content h1 {
        font-size: 2rem;
    }

    .article-hero {
        min-height: 40vh;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-content p {
        min-width: auto;
    }

    .related-card {
        flex-direction: column;
    }

    .related-card img {
        width: 100%;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .info-banner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .header-inner {
        height: 60px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}