*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #f5f0e8;
    --color-bg-alt: #ebe4d6;
    --color-bg-dark: #2c1810;
    --color-bg-card: #faf7f2;
    --color-primary: #8b4513;
    --color-primary-dark: #6b3410;
    --color-primary-light: #a0522d;
    --color-accent: #c0392b;
    --color-accent-light: #e74c3c;
    --color-text: #3a2a1a;
    --color-text-light: #6b5b4b;
    --color-text-muted: #9b8b7b;
    --color-border: #d4c8b8;
    --color-white: #fffdf9;
    --color-gold: #d4a76a;
    --color-gold-dark: #b8924e;
    --font-heading: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-body: 'Nunito Sans', 'Source Sans 3', Arial, sans-serif;
    --shadow-sm: 0 2px 8px rgba(44, 24, 16, 0.08);
    --shadow-md: 0 4px 20px rgba(44, 24, 16, 0.12);
    --shadow-lg: 0 8px 40px rgba(44, 24, 16, 0.16);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-bg-dark);
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    text-align: center;
}

.spinner-ring {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(212, 167, 106, 0.2);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 1.4rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(44, 24, 16, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo:hover {
    color: var(--color-gold-dark);
}

.logo-icon {
    font-size: 1.2rem;
    color: var(--color-accent);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-list a {
    color: #e8ddd0;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition);
    display: block;
}

.nav-list a:hover,
.nav-list a.active {
    background: rgba(212, 167, 106, 0.15);
    color: var(--color-gold);
}

.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-bg-dark);
    border-radius: var(--radius);
    min-width: 220px;
    padding: 8px 0;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    list-style: none;
    z-index: 100;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu a {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 0;
}

.submenu a:hover {
    background: rgba(212, 167, 106, 0.1);
}

.arrow {
    font-size: 0.7rem;
    margin-left: 4px;
}

.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: 26px;
    height: 2px;
    background: var(--color-gold);
    transition: all var(--transition);
    border-radius: 2px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.mobile-overlay.active {
    display: block;
}

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 72px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(44, 24, 16, 0.85) 0%,
        rgba(44, 24, 16, 0.6) 50%,
        rgba(139, 69, 19, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px 24px;
}

.hero h1 {
    color: var(--color-white);
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--color-gold);
    color: var(--color-bg-dark);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius);
    letter-spacing: 1px;
    transition: all var(--transition);
}

.hero-btn:hover {
    background: var(--color-gold-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.section {
    padding: 80px 24px;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-dark {
    background: var(--color-bg-dark);
    color: #e8ddd0;
}

.section-dark h2,
.section-dark h3 {
    color: var(--color-gold);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-gold);
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.crafts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.craft-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.craft-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.craft-card-img {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.craft-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.craft-card:hover .craft-card-img img {
    transform: scale(1.05);
}

.craft-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.craft-card-body {
    padding: 28px;
}

.craft-card-body h3 {
    margin-bottom: 12px;
}

.craft-card-body p {
    color: var(--color-text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.card-link:hover {
    color: var(--color-accent);
    gap: 10px;
}

.intro-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.intro-text h2 {
    margin-bottom: 20px;
}

.intro-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-gold);
    margin-top: 16px;
    border-radius: 2px;
}

.intro-text p {
    color: var(--color-text-light);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.intro-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}

.intro-img::after {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-gold);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.intro-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.features-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-item {
    text-align: center;
    padding: 32px 20px;
    background: rgba(212, 167, 106, 0.08);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 167, 106, 0.15);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
    color: var(--color-bg-dark);
}

.feature-item h4 {
    margin-bottom: 10px;
    color: var(--color-gold);
}

.feature-item p {
    font-size: 0.9rem;
    color: #c0b0a0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-gold);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 32px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -46px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--color-gold);
    border-radius: 50%;
    border: 3px solid var(--color-bg);
}

.timeline-item h3 {
    margin-bottom: 8px;
    color: var(--color-primary);
    font-size: 1.3rem;
}

.timeline-item p {
    color: var(--color-text-light);
}

.article-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    margin-top: 72px;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(44, 24, 16, 0.9), transparent 60%);
}

.article-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    width: 100%;
}

.article-hero h1 {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: 12px;
}

.article-meta {
    color: var(--color-gold);
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.article-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 24px;
}

.article-content h2 {
    margin: 48px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
}

.article-content h3 {
    margin: 32px 0 16px;
}

.article-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--color-text-light);
}

.article-content ul {
    margin: 0 0 24px 24px;
    color: var(--color-text-light);
}

.article-content li {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.article-img {
    margin: 32px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.article-img img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.article-img figcaption {
    background: var(--color-bg-alt);
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.related-articles {
    background: var(--color-bg-alt);
    padding: 48px 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 860px;
    margin: 0 auto;
}

.related-card {
    display: flex;
    gap: 20px;
    background: var(--color-bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.related-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.related-card-img {
    width: 140px;
    min-height: 120px;
    flex-shrink: 0;
}

.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card-body {
    padding: 16px 16px 16px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-card-body h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.related-card-body p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.info-page {
    margin-top: 72px;
    padding: 60px 24px;
}

.info-page .container {
    max-width: 860px;
}

.info-page h1 {
    margin-bottom: 16px;
}

.info-page h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-gold);
    margin-top: 16px;
    border-radius: 2px;
}

.info-page p {
    margin-bottom: 16px;
    color: var(--color-text-light);
    font-size: 1.05rem;
}

.info-page h2 {
    margin: 40px 0 16px;
}

.info-page ul {
    margin: 0 0 24px 24px;
    color: var(--color-text-light);
}

.info-page li {
    margin-bottom: 8px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-box {
    background: var(--color-bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.contact-box h3 {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
}

.contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.contact-label {
    font-weight: 600;
    color: var(--color-text);
    min-width: 80px;
}

.contact-value {
    color: var(--color-text-light);
}

.map-placeholder {
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    border: 2px dashed var(--color-border);
}

.update-date {
    display: inline-block;
    background: var(--color-bg-alt);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.site-footer {
    background: var(--color-bg-dark);
    color: #c0b0a0;
    padding-top: 64px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

.footer-col h3 {
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #c0b0a0;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(212, 167, 106, 0.15);
    padding: 20px 24px;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--color-gold);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(44, 24, 16, 0.97);
    backdrop-filter: blur(10px);
    z-index: 9999;
    padding: 20px 24px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-content p {
    color: #d0c0b0;
    font-size: 0.9rem;
    flex: 1;
}

.cookie-content a {
    color: var(--color-gold);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.cookie-btn.accept {
    background: var(--color-gold);
    color: var(--color-bg-dark);
}

.cookie-btn.accept:hover {
    background: var(--color-gold-dark);
}

.cookie-btn.reject {
    background: transparent;
    color: #c0b0a0;
    border: 1px solid rgba(212, 167, 106, 0.3);
}

.cookie-btn.reject:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.breadcrumb {
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.breadcrumb a {
    color: var(--color-text-muted);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb span {
    margin: 0 8px;
}

@media (max-width: 1024px) {
    .crafts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }

    .burger-menu {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: var(--color-bg-dark);
        padding: 80px 24px 24px;
        transition: right var(--transition);
        z-index: 999;
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 4px;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius);
        margin-top: 4px;
        display: none;
    }

    .submenu.active {
        display: block;
    }

    .hero {
        min-height: 70vh;
        background-attachment: scroll;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .intro-block {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .intro-img {
        order: -1;
    }

    .crafts-grid {
        grid-template-columns: 1fr;
    }

    .features-row {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .article-hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 48px 16px;
    }

    .header-inner {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}
