@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root,
[data-theme="forest"] {
    --bg: #0f1410;
    --bg-elevated: #1a2118;
    --bg-card: rgba(255, 255, 255, 0.04);
    --border: rgba(200, 170, 110, 0.15);
    --gold: #c9a96e;
    --gold-light: #d4b87a;
    --green: #8fad7a;
    --text: #f5f0e8;
    --text-muted: rgba(245, 240, 232, 0.68);
    --text-dim: rgba(245, 240, 232, 0.45);
    --cta: #c9a96e;
    --cta-hover: #d4b87a;
    --cta-text: #0f1410;
    --header-bg: rgba(15, 20, 16, 0.92);
    --nav-mobile-bg: rgba(15, 20, 16, 0.98);
    --hero-overlay: linear-gradient(135deg, rgba(15, 20, 16, 0.92) 0%, rgba(15, 20, 16, 0.65) 50%, rgba(15, 20, 16, 0.85) 100%);
    --hero-glow: rgba(200, 170, 110, 0.12);
    --gallery-fade: rgba(15, 20, 16, 0.85);
    --input-bg: rgba(0, 0, 0, 0.25);
    --accent-soft: rgba(200, 170, 110, 0.1);
    --accent-soft-hover: rgba(200, 170, 110, 0.12);
    --card-hover-border: rgba(200, 170, 110, 0.35);
    --card-hover-bg: rgba(255, 255, 255, 0.06);
    --success-bg: rgba(143, 173, 122, 0.15);
    --success-border: rgba(143, 173, 122, 0.3);
    --theme-swatch-1: #0f1410;
    --theme-swatch-2: #c9a96e;
    --theme-swatch-3: #8fad7a;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    --transition: 200ms ease;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --nav-height: 72px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--gold-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--text); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.container {
    width: min(100% - 2rem, 1200px);
    margin-inline: auto;
}

.section {
    padding: 5rem 0;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 640px;
    line-height: 1.75;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    transition: background var(--transition), border-color var(--transition);
}

.header.scrolled {
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
}

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

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav a {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition);
}

.nav a:hover { color: var(--text); }

.nav-cta {
    padding: 0.55rem 1.25rem;
    background: var(--gold);
    color: var(--cta-text) !important;
    border-radius: 100px;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--gold-light);
    color: var(--cta-text) !important;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform var(--transition), opacity var(--transition);
}

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--cta-text);
}

.btn-primary:hover {
    background: var(--gold-light);
    color: var(--cta-text);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        var(--hero-overlay),
        radial-gradient(ellipse at 70% 30%, var(--hero-glow) 0%, transparent 55%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: 4rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    background: var(--accent-soft);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.hero-lifespan {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--green);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.hero-lifespan svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Applications */
.applications {
    background: var(--bg-elevated);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: border-color var(--transition), background var(--transition);
}

.card:hover {
    border-color: var(--card-hover-border);
    background: var(--card-hover-bg);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    color: var(--gold);
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.925rem;
    line-height: 1.75;
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

.benefit {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition);
}

.benefit:hover {
    border-color: var(--card-hover-border);
}

.benefit-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    opacity: 0.5;
    line-height: 1;
    flex-shrink: 0;
}

.benefit h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.benefit p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* Gallery */
.gallery {
    background: var(--bg-elevated);
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0 1.5rem;
}

.filter-btn {
    padding: 0.5rem 1.1rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-soft-hover);
    border-color: var(--gold);
    color: var(--gold-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    border: 1px solid var(--border);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--gallery-fade) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-caption {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
}

.lightbox-close svg {
    width: 28px;
    height: 28px;
}

/* FAQ */
.faq-list {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: color var(--transition);
}

.faq-question:hover { color: var(--gold-light); }

.faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--gold);
    transition: transform var(--transition);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.925rem;
    line-height: 1.75;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

/* Contact */
.contact {
    background: var(--bg-elevated);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    color: var(--gold);
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 20px;
    height: 20px;
}

.contact-item-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 0.2rem;
}

.contact-item-value {
    font-size: 1rem;
    font-weight: 500;
}

.contact-messengers {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.messenger-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.messenger-btn:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.messenger-btn svg {
    width: 18px;
    height: 18px;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition);
}

.form-group input::placeholder {
    color: var(--text-dim);
}

.form-group input:focus {
    border-color: var(--gold);
    outline: none;
}

.form-note {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.75rem;
    line-height: 1.5;
}

.form-note a {
    color: var(--gold);
    text-decoration: underline;
}

.form-success {
    padding: 1rem;
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    border-radius: var(--radius-sm);
    color: var(--green);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: none;
}

.form-success.show { display: block; }

.form-error {
    padding: 1rem;
    background: rgba(220, 80, 80, 0.12);
    border: 1px solid rgba(220, 80, 80, 0.3);
    border-radius: var(--radius-sm);
    color: #e88;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: none;
}

.form-error.show { display: block; }

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-left: 1.5rem;
}

.footer-links a:hover { color: var(--gold); }

/* Header actions & theme picker */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--gold);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.theme-toggle:hover {
    border-color: var(--gold);
    background: var(--accent-soft);
    color: var(--gold-light);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-panel {
    position: fixed;
    top: calc(var(--nav-height) + 8px);
    right: 1rem;
    z-index: 150;
    width: min(320px, calc(100vw - 2rem));
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.theme-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-panel-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.theme-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.theme-option:hover {
    border-color: var(--gold);
    color: var(--text);
}

.theme-option.active {
    border-color: var(--gold);
    background: var(--accent-soft);
    color: var(--text);
}

.theme-option-swatches {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.theme-option-swatches span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.theme-option-swatches span:nth-child(1) { background: var(--swatch-1); }
.theme-option-swatches span:nth-child(2) { background: var(--swatch-2); }
.theme-option-swatches span:nth-child(3) { background: var(--swatch-3); }

/* Responsive */
@media (max-width: 1024px) {
    .cards-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--nav-mobile-bg);
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--transition), opacity var(--transition);
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .burger { display: flex; }

    .benefits-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .section { padding: 3.5rem 0; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links a { margin: 0 0.75rem; }
}
