/* ============================================
   Крампельнхильский Курорт — Стили
   Эстетика XIX века: сепия, пергамент, золото
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-main: #F5F0E8;
    --bg-alt: #EDE6D6;
    --text: #2C1810;
    --text-light: #5C4033;
    --gold: #C4A35A;
    --gold-dark: #A68B3E;
    --green: #4A6741;
    --green-dark: #1A2F1A;
    --brown: #8B4513;
    --dark: #1A1209;
    --white: #FAF8F5;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Cormorant Garamond', Georgia, serif;
    --font-accent: 'IM Fell English', Georgia, serif;
    --max-width: 1200px;
    --header-h: 90px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 19px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg-main);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); text-decoration: none; transition: color .3s; }
a:hover { color: var(--gold); }
ul { list-style: none; }

/* --- Utility --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.text-center { text-align: center; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.3; color: var(--text); }
h1 { font-size: 2.8rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 12px; }
h3 { font-size: 1.5rem; margin-bottom: 8px; }
h4 { font-size: 1.15rem; margin-bottom: 8px; }
p { margin-bottom: 16px; }

.section-title {
    text-align: center;
    margin-bottom: 8px;
    position: relative;
}
.section-subtitle {
    text-align: center;
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 48px;
    font-size: 1.1rem;
}

/* Ornamental divider */
.ornament {
    text-align: center;
    font-size: 1.5rem;
    color: var(--gold);
    margin: 32px 0;
    letter-spacing: 8px;
}
.ornament::before { content: "❧ "; }
.ornament::after { content: " ❧"; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border: 2px solid var(--gold);
    color: var(--text);
    background: transparent;
    cursor: pointer;
    transition: all .3s;
    text-decoration: none;
}
.btn:hover { background: var(--gold); color: var(--white); }
.btn-gold {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-dark); color: var(--white); border-color: var(--gold-dark); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); }

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(26, 18, 9, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all .4s;
}
.site-header.scrolled {
    --header-h: 64px;
    background: rgba(26, 18, 9, 0.88);
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: var(--header-h);
    gap: 24px;
}
.header-gold-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none;
    flex-shrink: 0;
}
.logo:hover { color: var(--gold); }
.logo-monogram {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
    flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; white-space: nowrap; }
.logo-subtitle { font-size: 0.65rem; color: var(--gold); opacity: 0.8; letter-spacing: 1px; white-space: nowrap; }

/* Navigation */
.main-nav { margin-left: auto; }
.nav-list { display: flex; gap: 8px; }
.nav-list a {
    color: rgba(255,255,255,0.85);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 8px 12px;
    transition: color .3s;
    position: relative;
}
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 12px; right: 12px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform .3s;
}
.nav-list a:hover, .nav-list a.active { color: var(--gold); }
.nav-list a:hover::after, .nav-list a.active::after { transform: scaleX(1); }

/* Nav separators */
.nav-list li:not(:last-child)::after {
    content: '|';
    color: rgba(196, 163, 90, 0.3);
    margin-left: 8px;
    font-size: 0.8rem;
}

.header-cta {
    font-size: 0.85rem;
    padding: 8px 20px;
    flex-shrink: 0;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.burger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--gold);
    transition: all .3s;
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--dark);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: url('/images/hero-bg.png') center/cover;
    opacity: 0.3;
    transition: transform .1s linear;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26,18,9,0.4) 0%, rgba(26,18,9,0.7) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
}
.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 8px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero .hero-sub {
    font-family: var(--font-accent);
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 24px;
    font-style: italic;
}
.hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
    color: var(--gold);
    font-size: 1.5rem;
    opacity: 0.7;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* --- Page Header (non-home pages) --- */
.page-header {
    padding: 140px 0 60px;
    background: var(--dark);
    text-align: center;
}
.page-header h1 { color: var(--white); }
.page-header .page-sub {
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--gold);
    font-size: 1.1rem;
}

/* --- Welcome / Quote block --- */
.welcome {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}
.welcome-portrait {
    width: 280px;
    height: 350px;
    border: 3px solid var(--gold);
    border-radius: 50% 50% 4px 4px;
    overflow: hidden;
    background: var(--bg-alt);
}
.welcome-portrait img { width: 100%; height: 100%; object-fit: cover; }
.welcome-text blockquote {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.8;
    border-left: 3px solid var(--gold);
    padding-left: 24px;
    margin-bottom: 16px;
}
.welcome-text .author {
    color: var(--gold);
    font-family: var(--font-heading);
    font-weight: 600;
}

/* --- Cards grid --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.card {
    background: var(--white);
    border: 1px solid rgba(196,163,90,0.3);
    padding: 32px 24px;
    text-align: center;
    transition: transform .3s, box-shadow .3s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(44,24,16,0.1);
}
.card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--gold);
}
.card-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 0 auto;
}
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { font-size: 0.92rem; color: var(--text-light); margin-bottom: 0; }

/* Card with image */
.card-img {
    text-align: left;
    padding: 0;
    overflow: hidden;
}
.card-img .card-image {
    height: 200px;
    background: var(--bg-alt) url('/images/placeholder.svg') center/cover;
    border-bottom: 2px solid var(--gold);
}
.card-img .card-body { padding: 24px; }

/* --- Timeline --- */
.timeline {
    position: relative;
    padding: 40px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--gold);
    transform: translateX(-50%);
}
.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 48px;
    position: relative;
}
.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px; height: 16px;
    background: var(--gold);
    border: 3px solid var(--bg-main);
    border-radius: 50%;
    z-index: 1;
}
.timeline-content {
    width: 45%;
    background: var(--white);
    border: 1px solid rgba(196,163,90,0.3);
    padding: 24px;
}
.timeline-year {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--gold);
    font-weight: 700;
}
.timeline-content h3 { margin-top: 4px; font-size: 1.1rem; }
.timeline-content p { font-size: 0.92rem; color: var(--text-light); margin-bottom: 0; }

/* --- Parchment block (legend) --- */
.parchment {
    background: var(--bg-alt);
    border: 2px solid var(--gold);
    padding: 48px;
    position: relative;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}
.parchment::before, .parchment::after {
    content: '❧';
    position: absolute;
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.5;
}
.parchment::before { top: 12px; left: 20px; }
.parchment::after { bottom: 12px; right: 20px; }
.parchment-img {
    height: 300px;
    background: url('/images/placeholder.svg') center/cover;
    border: 2px solid rgba(196,163,90,0.4);
}
.parchment-text {
    font-family: var(--font-accent);
    font-size: 1.05rem;
    line-height: 1.9;
}

/* --- Carousel (testimonials) --- */
.carousel {
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}
.carousel-track {
    display: flex;
    transition: transform .6s ease;
}
.carousel-slide {
    min-width: 100%;
    padding: 48px 60px;
    text-align: center;
}
.carousel-slide blockquote {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 24px;
    position: relative;
}
.carousel-slide blockquote::before {
    content: '«';
    font-size: 3rem;
    color: var(--gold);
    position: absolute;
    top: -20px;
    left: -30px;
    opacity: 0.5;
}
.carousel-slide .author {
    font-family: var(--font-heading);
    color: var(--gold);
    font-weight: 600;
}
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}
.carousel-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(196,163,90,0.3);
    border: none;
    cursor: pointer;
    transition: background .3s;
}
.carousel-dot.active { background: var(--gold); }

/* --- News cards --- */
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.news-card {
    background: var(--white);
    border: 1px solid rgba(196,163,90,0.3);
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(44,24,16,0.1); }
.news-card .news-img {
    height: 200px;
    background: var(--bg-alt) url('/images/placeholder.svg') center/cover;
}
.news-card .news-body { padding: 24px; }
.news-card .news-date {
    font-size: 0.85rem;
    color: var(--gold);
    font-family: var(--font-heading);
    margin-bottom: 8px;
}
.news-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.news-card p { font-size: 0.92rem; color: var(--text-light); }

/* --- Promo block --- */
.promo {
    background: linear-gradient(135deg, var(--dark) 0%, #2C1810 100%);
    color: var(--white);
    padding: 64px;
    text-align: center;
    border: 2px solid var(--gold);
    position: relative;
}
.promo h2 { color: var(--gold); }
.promo .promo-sub { color: var(--white); opacity: 0.8; font-family: var(--font-accent); font-style: italic; margin-bottom: 24px; }
.promo p { color: rgba(255,255,255,0.85); max-width: 700px; margin: 0 auto 24px; }
.promo .price-tag {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold);
    margin: 24px 0;
}

/* --- Contact info block --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.contact-info h3 { margin-bottom: 16px; }
.contact-info ul { margin-bottom: 24px; }
.contact-info li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(196,163,90,0.2);
    font-size: 0.95rem;
}
.contact-info li strong { color: var(--text); }
.contact-map {
    height: 400px;
    background: var(--bg-alt) url('/images/placeholder.svg') center/cover;
    border: 2px solid var(--gold);
}

/* --- Tables --- */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
    font-size: 0.92rem;
}
.price-table th {
    background: var(--dark);
    color: var(--gold);
    font-family: var(--font-heading);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
}
.price-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(196,163,90,0.2);
    vertical-align: top;
}
.price-table tr:nth-child(even) td { background: var(--bg-alt); }
.price-table tr:hover td { background: rgba(196,163,90,0.1); }

/* --- FAQ Accordion --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid rgba(196,163,90,0.3);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color .3s;
}
.faq-question:hover { color: var(--gold); }
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--gold);
    transition: transform .3s;
    flex-shrink: 0;
    margin-left: 16px;
}
.faq-item.open .faq-question::after {
    content: '−';
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding .4s;
    font-size: 0.95rem;
    color: var(--text-light);
}
.faq-item.open .faq-answer {
    max-height: 300px;
    padding-bottom: 20px;
}

/* --- Form --- */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid rgba(196,163,90,0.4);
    background: var(--white);
    color: var(--text);
    transition: border-color .3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* --- Working hours table --- */
.hours-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 0.92rem; }
.hours-table td { padding: 10px 16px; border-bottom: 1px solid rgba(196,163,90,0.15); }
.hours-table tr:nth-child(odd) td { background: rgba(196,163,90,0.05); }
.hours-table td:first-child { font-weight: 600; }
.hours-table td:last-child { color: var(--text-light); font-size: 0.85rem; }

/* --- Routes --- */
.routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.route-card {
    background: var(--white);
    border: 1px solid rgba(196,163,90,0.3);
    padding: 32px 24px;
}
.route-card h3 { color: var(--green); }

/* --- Founders / Persons --- */
.person {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin-bottom: 48px;
    align-items: start;
}
.person:nth-child(even) { grid-template-columns: 1fr 250px; }
.person:nth-child(even) .person-img { order: 2; }
.person-img {
    height: 320px;
    background: var(--bg-alt) url('/images/placeholder.svg') center/cover;
    border: 3px solid var(--gold);
}
.person h3 { font-size: 1.3rem; }
.person .person-dates { color: var(--gold); font-family: var(--font-heading); margin-bottom: 12px; }

/* --- Architecture / Buildings --- */
.building {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
    align-items: start;
}
.building:nth-child(even) { direction: rtl; }
.building:nth-child(even) > * { direction: ltr; }
.building-img {
    height: 280px;
    background: var(--bg-alt) url('/images/placeholder.svg') center/cover;
    border: 2px solid rgba(196,163,90,0.4);
}

/* --- Service page --- */
.service-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}
.service-detail-img {
    display: none;
}
.service-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}
.service-info-item {
    background: var(--bg-alt);
    padding: 16px;
    text-align: center;
}
.service-info-item .label { font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }
.service-info-item .value { font-family: var(--font-heading); font-size: 1.3rem; color: var(--gold); }

/* --- Services category tabs --- */
.tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn {
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: all .3s;
}
.tab-btn.active, .tab-btn:hover { background: var(--gold); color: var(--white); }

/* --- Map page --- */
.map-container {
    background: var(--bg-alt);
    border: 3px solid var(--gold);
    padding: 40px;
    position: relative;
    min-height: 600px;
}
.map-legend {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}
.map-legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; }
.map-legend-color { width: 20px; height: 12px; border-radius: 2px; }

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}
.gallery-item {
    height: 200px;
    background: var(--bg-alt) url('/images/placeholder.svg') center/cover;
    border: 2px solid rgba(196,163,90,0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform .3s;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item .gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(26,18,9,0.8);
    color: var(--white);
    padding: 8px 12px;
    font-size: 0.82rem;
    font-family: var(--font-accent);
}

/* --- Seasonal packages --- */
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.package {
    background: var(--white);
    border: 2px solid var(--gold);
    padding: 32px;
    text-align: center;
}
.package h3 { color: var(--gold); }
.package .package-price {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold);
    margin: 16px 0;
}
.package ul { text-align: left; margin-bottom: 24px; }
.package li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(196,163,90,0.15);
    font-size: 0.92rem;
    padding-left: 20px;
    position: relative;
}
.package li::before { content: '·'; position: absolute; left: 4px; color: var(--gold); font-weight: bold; }

/* --- Footer --- */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}
.footer-ornament {
    text-align: center;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
}
.footer-col h4 {
    color: var(--gold);
    font-family: var(--font-heading);
    margin-bottom: 16px;
    font-size: 1rem;
}
.footer-logo .logo-monogram {
    margin-bottom: 16px;
}
.footer-copy { font-size: 0.85rem; margin-bottom: 4px; }
.footer-motto { font-family: var(--font-accent); font-style: italic; font-size: 0.85rem; color: var(--gold); }
.footer-links a, .footer-contacts li {
    display: block;
    padding: 4px 0;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color .3s;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(196,163,90,0.2);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}
.footer-deer { margin-right: 8px; }

/* --- Animations (fade in on scroll) --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s ease, transform .8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Lantern flicker --- */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
    75% { opacity: 0.95; }
}
.lantern { animation: flicker 3s infinite; }

/* --- News full article --- */
.article { max-width: 800px; margin: 0 auto; }
.article-date {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.article-img {
    height: 400px;
    background: var(--bg-alt) url('/images/placeholder.svg') center/cover;
    border: 2px solid rgba(196,163,90,0.3);
    margin-bottom: 32px;
}

/* --- Archive filter --- */
.archive-filter {
    max-width: 600px;
    margin: 0 auto 40px;
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: end;
    flex-wrap: wrap;
}

/* --- Archive list --- */
.archive-list { max-width: 800px; margin: 0 auto; }
.archive-item {
    padding: 24px 0;
    border-bottom: 1px solid rgba(196,163,90,0.2);
}
.archive-item .archive-date {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 0.85rem;
}
.archive-item h3 { font-size: 1.1rem; margin: 4px 0 8px; }
.archive-item p { font-size: 0.92rem; color: var(--text-light); margin-bottom: 0; }

/* --- Booking conditions --- */
.conditions { max-width: 700px; }
.conditions li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(196,163,90,0.15);
    font-size: 0.95rem;
}

/* --- Breadcrumb --- */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--text-light);
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span { margin: 0 8px; color: rgba(196,163,90,0.5); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .welcome { grid-template-columns: 1fr; }
    .welcome-portrait { margin: 0 auto; }
    .parchment { grid-template-columns: 1fr; }
    .parchment-img { height: 250px; }
    .person { grid-template-columns: 1fr; }
    .person:nth-child(even) { grid-template-columns: 1fr; }
    .person:nth-child(even) .person-img { order: 0; }
    .person-img { height: 250px; }
    .building { grid-template-columns: 1fr; }
    .building:nth-child(even) { direction: ltr; }
    .service-detail { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --header-h: 70px; }
    body { font-size: 17px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero .hero-sub { font-size: 1.1rem; }
    .section { padding: 48px 0; }

    /* Mobile nav */
    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        background: rgba(26,18,9,0.98);
        padding: 24px;
        transform: translateY(-110%);
        transition: transform .4s;
    }
    .main-nav.open { transform: translateY(0); }
    .nav-list { flex-direction: column; gap: 0; }
    .nav-list li::after { display: none; }
    .nav-list a {
        display: block;
        padding: 12px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(196,163,90,0.15);
    }
    .burger { display: flex; }
    .header-cta { display: none; }
    .logo-subtitle { display: none; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .timeline::before { left: 20px; }
    .timeline-dot { left: 20px; }
    .timeline-item, .timeline-item:nth-child(even) { flex-direction: row; padding-left: 48px; }
    .timeline-content { width: 100%; }
    .cards-grid { grid-template-columns: 1fr; }
    .news-list { grid-template-columns: 1fr; }
    .promo { padding: 40px 24px; }
    .packages { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .service-info-grid { grid-template-columns: 1fr; }

    /* Scrollable tables on mobile */
    .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; align-items: center; }
    .gallery-grid { grid-template-columns: 1fr; }
}
