:root {
    --color-primary: #0c1f3d;
    --color-secondary: #1a3458;
    --color-accent: #2fd1c7;
    --color-muted: #5c6f8c;
    --color-light: #f5f7fa;
    --color-soft: #e6ecf5;
    --color-ink: #0b1320;
    --color-body: #1f2a3d;
    --shadow-soft: 0 12px 30px rgba(12, 31, 61, 0.08);
    --shadow-bold: 0 24px 60px rgba(12, 31, 61, 0.16);
    --radius-sm: 0.65rem;
    --radius-md: 0.95rem;
    --radius-lg: 1.6rem;
    --space-xs: 0.65rem;
    --space-sm: 1.1rem;
    --space-md: 2rem;
    --space-lg: 3.5rem;
    --space-xl: 5.5rem;
    --space-xxl: 8rem;
    --font-heading: "Playfair Display", serif;
    --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-base: all 0.35s ease;
    --max-width: 1200px;
    --max-width-wide: 1360px;
    --header-height: 86px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-body);
    background: linear-gradient(180deg, #ffffff 0%, #f1f4f9 100%);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.65;
    overflow-x: hidden;
}

main {
    flex: 1 0 auto;
}

img {
    border: 0;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-base);
}

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

.container {
    width: min(100% - 2.5rem, var(--max-width));
    margin: 0 auto;
}

.container-wide {
    width: min(100% - 2.5rem, var(--max-width-wide));
    margin: 0 auto;
}

.responsive-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(18px);
    background: rgba(245, 247, 250, 0.88);
    box-shadow: 0 16px 40px rgba(11, 19, 32, 0.08);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 2vw, 1.8rem);
    letter-spacing: 0.05em;
    color: var(--color-primary);
    font-weight: 600;
}

.nav-toggle {
    background: rgba(12, 31, 61, 0.08);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.75rem;
    display: none;
    cursor: pointer;
    transition: var(--transition-base);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-primary);
    position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle span::before {
    top: -6px;
}

.nav-toggle span::after {
    top: 6px;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    font-size: 0.98rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    color: var(--color-body);
}

.nav-menu li a:hover,
.nav-menu li a:focus {
    background: rgba(47, 209, 199, 0.12);
    color: var(--color-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--color-accent), #45f0e7);
    color: var(--color-ink);
    font-weight: 600;
    padding: 0.85rem 1.6rem;
    font-size: 0.97rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
}

.btn:hover,
.btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(47, 209, 199, 0.25);
}

.btn.outline {
    background: transparent;
    border-color: rgba(47, 209, 199, 0.5);
    color: var(--color-light);
}

.btn.outline:hover,
.btn.outline:focus {
    background: rgba(47, 209, 199, 0.12);
    color: var(--color-accent);
}

.page-hero {
    position: relative;
    padding: var(--space-xl) 0 var(--space-lg);
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(47, 209, 199, 0.1), transparent 60%),
        radial-gradient(circle at 90% 10%, rgba(12, 31, 61, 0.08), transparent 55%);
    z-index: 0;
}

.page-hero.homepage-hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(12, 31, 61, 0.95), rgba(26, 52, 88, 0.88));
    color: #ffffff;
}

.page-hero.homepage-hero::before {
    background: radial-gradient(circle at 20% 30%, rgba(47, 209, 199, 0.25), transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15), transparent 55%);
    opacity: 0.9;
}

.page-hero.homepage-hero .hero-content h1 {
    color: #ffffff;
}

.page-hero.homepage-hero p {
    color: rgba(255, 255, 255, 0.82);
}

.page-hero.homepage-hero .hero-meta {
    color: rgba(255, 255, 255, 0.72);
}

.page-hero.archive-hero {
    background: linear-gradient(135deg, rgba(12, 31, 61, 0.12), rgba(47, 209, 199, 0.08));
}

.page-hero.article-hero {
    padding-bottom: var(--space-md);
    background: linear-gradient(135deg, rgba(12, 31, 61, 0.1), rgba(12, 31, 61, 0.02));
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    gap: var(--space-lg);
    align-items: center;
}

.hero-content {
    max-width: 640px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.01em;
}

.hero-content p {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    margin-bottom: var(--space-sm);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
}

.hero-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-md) 0;
    display: grid;
    gap: var(--space-xs);
}

.hero-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.98rem;
}

.hero-list li::before {
    content: "";
    width: 10px;
    height: 10px;
    margin-top: 0.35rem;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 0 6px rgba(47, 209, 199, 0.15);
}

.hero-media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-bold);
}

.hero-media img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    filter: saturate(1.05);
}

.stat-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: left;
}

.stat-card.light {
    background: #ffffff;
    border: 1px solid rgba(12, 31, 61, 0.08);
    color: var(--color-body);
}

.stat-card .value {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin-bottom: 0.3rem;
    color: var(--color-accent);
}

.stat-card .label {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.72);
}

.stat-card.light .label {
    color: var(--color-muted);
}

.subscribe-form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    background: rgba(255, 255, 255, 0.08);
    padding: var(--space-xs);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.subscribe-form.light {
    background: rgba(12, 31, 61, 0.04);
    border: 1px solid rgba(12, 31, 61, 0.08);
}

.subscribe-form input[type="email"] {
    flex: 1 1 260px;
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.3rem;
    font-size: 0.98rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-body);
    outline: none;
}

.subscribe-form.light input[type="email"] {
    background: #ffffff;
    border: 1px solid rgba(12, 31, 61, 0.08);
}

.subscribe-form input[type="email"]::placeholder {
    color: rgba(12, 31, 61, 0.55);
}

.page-section {
    padding: var(--space-lg) 0;
}

.page-section.alt {
    background: rgba(12, 31, 61, 0.03);
}

.section-header {
    max-width: 680px;
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 2.6rem);
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-muted);
}

.grid {
    display: grid;
    gap: var(--space-md);
}

.grid.featured-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.article-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.category-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid.two-column {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid rgba(12, 31, 61, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
}

.card:hover,
.card:focus-within {
    transform: translateY(-6px);
    box-shadow: var(--shadow-bold);
    border-color: rgba(47, 209, 199, 0.35);
}

.card-media {
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.card-content {
    padding: var(--space-sm) var(--space-md) var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin: 0;
    color: var(--color-ink);
}

.card-description {
    color: var(--color-muted);
    font-size: 0.98rem;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(47, 209, 199, 0.16);
    color: var(--color-primary);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.inline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--color-primary);
}

.inline-link svg {
    width: 16px;
    height: 16px;
}

.layout-two-column {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.sidebar {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(12, 31, 61, 0.06);
    position: sticky;
    top: calc(var(--header-height) + var(--space-sm));
}

.sidebar h3 {
    margin-top: 0;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-primary);
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.7rem;
}

.sidebar ul li a {
    color: var(--color-body);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.sidebar ul li a::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    align-items: center;
    margin-bottom: var(--space-md);
}

.search-field {
    flex: 1 1 260px;
    position: relative;
}

.search-input {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(12, 31, 61, 0.14);
    background: #ffffff;
    padding: 0.85rem 1.1rem 0.85rem 2.9rem;
    font-size: 0.95rem;
    color: var(--color-body);
    box-shadow: inset 0 1px 1px rgba(12, 31, 61, 0.05);
}

.search-field svg {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    fill: var(--color-muted);
    width: 18px;
    height: 18px;
}

.filter-button {
    border: 1px solid rgba(12, 31, 61, 0.14);
    background: #ffffff;
    border-radius: 999px;
    padding: 0.65rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-body);
    cursor: pointer;
    transition: var(--transition-base);
}

.filter-button:hover,
.filter-button:focus {
    border-color: rgba(47, 209, 199, 0.6);
    color: var(--color-primary);
}

.filter-button.active {
    background: rgba(47, 209, 199, 0.18);
    border-color: rgba(47, 209, 199, 0.6);
    color: var(--color-primary);
}

#noResults {
    display: none;
    font-weight: 600;
    color: var(--color-muted);
    padding: var(--space-md);
    background: rgba(12, 31, 61, 0.04);
    border-radius: var(--radius-md);
}

.article-header {
    max-width: 820px;
    margin: 0 auto var(--space-md);
    text-align: center;
}

.article-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4vw, 3.1rem);
    margin-bottom: var(--space-xs);
    color: var(--color-primary);
}

.article-subtitle {
    font-size: 1.1rem;
    color: var(--color-muted);
    margin-bottom: var(--space-sm);
}

.article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-xs);
    font-size: 0.95rem;
    color: var(--color-muted);
}

.article-hero-image {
    max-width: 960px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-bold);
}

.article-body {
    max-width: 820px;
    margin: var(--space-lg) auto;
    display: grid;
    gap: var(--space-md);
}

.article-body h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
}

.article-body p {
    font-size: 1.02rem;
    color: var(--color-body);
    margin: 0;
}

.article-body ul {
    padding-left: 1.2rem;
    display: grid;
    gap: 0.4rem;
}

.article-body blockquote {
    margin: 0;
    padding: var(--space-sm) var(--space-md);
    border-left: 4px solid var(--color-accent);
    background: rgba(47, 209, 199, 0.08);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--color-primary);
    font-style: italic;
}

.highlight-box {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border: 1px solid rgba(12, 31, 61, 0.06);
    box-shadow: var(--shadow-soft);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid rgba(12, 31, 61, 0.08);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

thead {
    background: rgba(12, 31, 61, 0.06);
}

th,
td {
    padding: 1rem;
    font-size: 0.95rem;
    text-align: left;
    border-bottom: 1px solid rgba(12, 31, 61, 0.08);
}

th {
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

tbody tr:hover {
    background: rgba(47, 209, 199, 0.08);
}

.pagination {
    display: inline-flex;
    gap: 0.6rem;
    align-items: center;
    margin-top: var(--space-md);
}

.pagination a {
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(12, 31, 61, 0.14);
    color: var(--color-body);
    font-weight: 600;
    transition: var(--transition-base);
}

.pagination a:hover,
.pagination a:focus,
.pagination a.active {
    background: rgba(47, 209, 199, 0.18);
    border-color: rgba(47, 209, 199, 0.5);
    color: var(--color-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.contact-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    border: 1px solid rgba(12, 31, 61, 0.08);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 0.6rem;
}

.contact-card strong {
    font-size: 1.05rem;
    color: var(--color-primary);
}

.contact-card a {
    color: var(--color-primary);
    font-weight: 600;
    word-break: break-word;
}

.form-grid {
    display: grid;
    gap: var(--space-sm);
}

.form-row {
    display: grid;
    gap: var(--space-sm);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

label {
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--color-primary);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(12, 31, 61, 0.12);
    padding: 0.85rem 1rem;
    font-size: 0.97rem;
    background: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

textarea {
    min-height: 160px;
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: rgba(47, 209, 199, 0.6);
    box-shadow: 0 0 0 4px rgba(47, 209, 199, 0.16);
    outline: none;
}

.privacy-section,
.policy-section,
.terms-section {
    margin-bottom: var(--space-md);
    background: #ffffff;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(12, 31, 61, 0.06);
    box-shadow: 0 10px 28px rgba(11, 19, 32, 0.06);
}

.privacy-section h2,
.policy-section h2,
.terms-section h2 {
    margin-top: 0;
    font-family: var(--font-heading);
    font-size: 1.65rem;
    color: var(--color-primary);
}

.privacy-section p,
.policy-section p,
.terms-section p,
.privacy-section ul,
.policy-section ul,
.terms-section ul {
    color: var(--color-body);
    margin-bottom: 0;
}

.privacy-section ul,
.policy-section ul,
.terms-section ul {
    padding-left: 1.1rem;
    display: grid;
    gap: 0.4rem;
}

.cta-panel {
    background: linear-gradient(135deg, rgba(12, 31, 61, 0.95), rgba(26, 52, 88, 0.9));
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: grid;
    gap: var(--space-sm);
    box-shadow: var(--shadow-bold);
}

.cta-panel h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: #ffffff;
}

.cta-panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.site-footer {
    background: #0a1529;
    color: rgba(255, 255, 255, 0.76);
    padding: var(--space-lg) 0 var(--space-md);
    position: relative;
    z-index: 1;
}

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

.footer-brand {
    display: grid;
    gap: 0.8rem;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.05em;
}

.footer-brand p {
    margin: 0;
}

.footer-links,
.footer-contact {
    display: grid;
    gap: 0.6rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.76);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-sm);
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: space-between;
    font-size: 0.9rem;
}

.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: min(360px, calc(100% - 2rem));
    background: rgba(12, 31, 61, 0.92);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
    box-shadow: var(--shadow-bold);
    z-index: 2000;
    display: grid;
    gap: var(--space-xs);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner .cookie-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.cookie-banner .cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.cookie-banner .cookie-actions .btn {
    flex: 1 1 auto;
    font-size: 0.78rem;
    padding: 0.65rem 1rem;
}

.cookie-banner a.policy-link {
    color: var(--color-accent);
    font-weight: 600;
}

.thanks-section {
    text-align: center;
    max-width: 540px;
    margin: 0 auto;
    display: grid;
    gap: var(--space-sm);
}

.thanks-section h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    color: var(--color-primary);
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    .layout-two-column {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: relative;
        top: 0;
    }
    .nav-toggle {
        display: inline-flex;
    }
    .nav-menu {
        position: fixed;
        inset: var(--header-height) 0 auto 0;
        background: rgba(245, 247, 250, 0.98);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-md);
        gap: var(--space-xs);
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s ease, opacity 0.3s ease;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        box-shadow: var(--shadow-bold);
    }
    .nav-menu li a {
        width: 100%;
    }
    .page-hero.homepage-hero {
        padding-top: calc(var(--space-lg) + var(--header-height));
        min-height: auto;
    }
    .cookie-banner {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
        width: auto;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    .page-section {
        padding: var(--space-md) 0;
    }
    .section-header {
        margin-bottom: var(--space-sm);
    }
    .card-media img {
        height: 180px;
    }
    .subscribe-form,
    .subscribe-form.light {
        padding: var(--space-xs);
    }
    .subscribe-form .btn {
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .stat-group {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    .nav-container {
        padding: 0.9rem 0;
    }
    .card-content {
        padding: var(--space-sm);
    }
    .cookie-banner .cookie-actions {
        flex-direction: column;
    }
}

@media (min-width: 1440px) {
    :root {
        --max-width: 1280px;
        --max-width-wide: 1420px;
    }
}

@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;
    }
}