:root {
    /* Soft Modern Color Palette */
    --clr-bg: #f8faf9;
    --clr-surface: #ffffff;
    --clr-text-main: #2a3f33;
    --clr-text-muted: #5b7566;
    --clr-accent: #e27d60;
    --clr-accent-hover: #c96549;
    --clr-border: #e0e8e4;
    --clr-focus: #e27d60;
    
    /* Spacing Scale */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 16px;
    --sp-4: 24px;
    --sp-5: 40px;
    --sp-6: 64px;
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Radii & Shadows */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 8px 30px rgba(42, 63, 51, 0.06);
    --shadow-float: 0 12px 40px rgba(42, 63, 51, 0.1);
}

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

html {
    font-family: var(--font-sans);
    color: var(--clr-text-main);
    background-color: var(--clr-bg);
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .brand-name {
    margin-top: 0;
    margin-bottom: var(--sp-3);
    line-height: 1.2;
    overflow-wrap: anywhere;
    font-weight: 700;
}

p {
    margin-top: 0;
    margin-bottom: var(--sp-3);
}

a {
    color: var(--clr-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--clr-accent-hover);
}

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

/* Accessibility */
:focus-visible {
    outline: 3px solid var(--clr-focus);
    outline-offset: 2px;
    border-radius: 2px;
}

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

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sp-4);
    min-width: 0;
}

.content-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.section {
    padding: var(--sp-6) 0;
}

.grid {
    display: grid;
    gap: var(--sp-4);
    min-width: 0;
}

/* Header */
.site-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--clr-border);
    height: 64px;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--clr-text-main);
    z-index: 100;
}

.brand svg {
    width: 28px;
    height: 28px;
    fill: var(--clr-accent);
}

.nav-desktop {
    display: flex;
    gap: var(--sp-4);
    align-items: center;
}

.nav-desktop a {
    color: var(--clr-text-main);
    font-weight: 500;
}

.nav-desktop a:hover {
    color: var(--clr-accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--clr-accent);
    color: #ffffff;
    padding: 10px var(--sp-4);
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: var(--clr-accent-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--clr-accent);
    color: var(--clr-accent);
}

.btn-outline:hover {
    background-color: var(--clr-accent);
    color: #ffffff;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--sp-2);
    z-index: 100;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--clr-text-main);
    margin-bottom: 5px;
    transition: 0.3s ease;
}

.nav-toggle span:last-child {
    margin-bottom: 0;
}

.nav-mobile {
    display: none;
}

/* Cards - Glass Overlay Style */
.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 380px;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.3s ease;
    display: block;
}

.card:hover {
    box-shadow: var(--shadow-float);
}

.card-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: var(--sp-3);
    left: var(--sp-3);
    right: var(--sp-3);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--sp-4);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--clr-text-main);
}

.card-title {
    margin-bottom: var(--sp-2);
    font-size: 1.25rem;
}

.card-meta {
    font-size: 0.875rem;
    color: var(--clr-text-muted);
    display: flex;
    gap: var(--sp-3);
    margin-bottom: 0;
}

.stat-group {
    display: flex;
    align-items: center;
    gap: 8px; /* ~12px visual with icon */
}

/* Content Pages */
.page-header {
    background-color: var(--clr-surface);
    padding: var(--sp-6) 0 var(--sp-5);
    border-bottom: 1px solid var(--clr-border);
    margin-bottom: var(--sp-5);
}

.article-meta {
    display: flex;
    gap: var(--sp-4);
    color: var(--clr-text-muted);
    margin-bottom: var(--sp-4);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.article-content h2 {
    margin-top: var(--sp-5);
}

.article-content h3 {
    margin-top: var(--sp-4);
}

.article-content img {
    border-radius: var(--radius-md);
    margin: var(--sp-4) 0;
    box-shadow: var(--shadow-soft);
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
    margin: var(--sp-5) 0;
}

.pro-box, .con-box {
    background: var(--clr-surface);
    padding: var(--sp-4);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    min-width: 0;
}

.pro-box h4 { color: #2a7a4d; }
.con-box h4 { color: #c44536; }

.pro-box ul, .con-box ul {
    padding-left: var(--sp-4);
    margin-bottom: 0;
}

/* Forms */
.form-group {
    margin-bottom: var(--sp-4);
}

.form-label {
    display: block;
    margin-bottom: var(--sp-2);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px var(--sp-3);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--clr-surface);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--clr-focus);
    box-shadow: 0 0 0 3px rgba(226, 125, 96, 0.2);
}

.form-control.is-invalid {
    border-color: #c44536;
    background-color: #fdf3f2;
}

.error-msg {
    display: none;
    color: #c44536;
    font-size: 0.875rem;
    margin-top: var(--sp-1);
}

.is-invalid + .error-msg {
    display: block;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
}

.map-block {
    background: linear-gradient(135deg, #e0e8e4, #f4f7f5);
    border-radius: var(--radius-md);
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--clr-text-muted);
    border: 1px solid var(--clr-border);
}

.map-block svg {
    width: 48px;
    height: 48px;
    fill: var(--clr-accent);
    margin-bottom: var(--sp-2);
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin: var(--sp-4) 0;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--clr-surface);
    min-width: 600px;
}

th, td {
    padding: var(--sp-3);
    text-align: left;
    border-bottom: 1px solid var(--clr-border);
}

th {
    background-color: var(--clr-bg);
    font-weight: 600;
}

/* Footer */
.site-footer {
    background-color: var(--clr-surface);
    border-top: 1px solid var(--clr-border);
    padding: var(--sp-6) 0 var(--sp-4);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--sp-5);
    margin-bottom: var(--sp-5);
}

.footer-col h4 {
    margin-bottom: var(--sp-3);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: var(--sp-2);
}

.footer-col a {
    color: var(--clr-text-muted);
}

.footer-col a:hover {
    color: var(--clr-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--sp-4);
    border-top: 1px solid var(--clr-border);
    color: var(--clr-text-muted);
    font-size: 0.875rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: var(--sp-4);
    left: var(--sp-4);
    right: var(--sp-4);
    background-color: var(--clr-surface);
    padding: var(--sp-4);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-float);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    z-index: 1000;
    border: 1px solid var(--clr-border);
    transform: translateY(150%);
    transition: transform 0.4s ease;
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-text {
    flex: 1 1 300px;
    margin: 0;
    font-size: 0.9rem;
}

.cookie-actions {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
}

/* Media Queries */
@media (max-width: 900px) {
    .pros-cons {
        grid-template-columns: 1fr;
    }
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-header {
        height: 52px;
    }
    
    .nav-desktop {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-mobile {
        position: fixed;
        top: 52px;
        left: 0;
        right: 0;
        background-color: var(--clr-surface);
        padding: var(--sp-4);
        border-bottom: 1px solid var(--clr-border);
        box-shadow: var(--shadow-soft);
        display: none;
        flex-direction: column;
        gap: var(--sp-3);
        z-index: 99;
    }
    
    .nav-mobile.is-open {
        display: flex;
    }
    
    .nav-mobile a {
        color: var(--clr-text-main);
        font-weight: 500;
        padding: var(--sp-2) 0;
        border-bottom: 1px solid var(--clr-border);
    }
    
    .nav-mobile a:last-child {
        border-bottom: none;
    }
    
    .card-overlay {
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        border-left: none;
        border-right: none;
        border-bottom: none;
    }
}

@media (max-width: 399px) {
    .site-header {
        height: 48px;
    }
    
    .nav-mobile {
        top: 48px;
    }
    
    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-actions button {
        width: 100%;
    }
    
    h1 {
        font-size: 1.75rem;
    }
}