:root {
    --film-dark: #0a0a0a;
    --film-darker: #000000;
    --film-gold: #d4af37;
    --film-gold-light: #f4d03f;
    --film-red: #c0392b;
    --film-blue: #1a237e;
    --film-text: #e0e0e0;
    --film-text-dark: #b0b0b0;
    --film-card: #1a1a1a;
    --film-card-hover: #252525;
    --film-border: #333333;
    --shadow-cinema: 0 8px 32px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.3);
}

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

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: var(--film-text);
    background: var(--film-dark);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(192, 57, 43, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Film Grain Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.03"/></svg>');
    pointer-events: none;
    z-index: 9999;
    animation: grain 0.5s steps(6) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

/* Header */
header {
    background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(10,10,10,0.9) 100%);
    color: var(--film-text);
    padding: 1.5rem 0;
    box-shadow: var(--shadow-cinema);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--film-gold);
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--film-gold), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2rem;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--film-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    transition: all 0.3s;
    font-family: 'Arial', sans-serif;
    white-space: nowrap;
}

.logo:hover {
    color: var(--film-gold-light);
    text-shadow: 0 0 10px var(--film-gold);
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--film-gold);
    transition: all 0.3s;
    display: block;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav a {
    color: var(--film-text);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--film-gold);
    transition: width 0.3s;
}

nav a:hover {
    color: var(--film-gold);
}

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: var(--film-gold);
}

nav a.active::after {
    width: 100%;
}

/* Main Content */
main {
    padding: 3rem 0;
    padding-top: calc(3rem + 90px);
    min-height: calc(100vh - 200px);
    animation: fadeIn 1s ease-in;
}

/* Block scroll when menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero {
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.3) 0%, rgba(192, 57, 43, 0.3) 100%);
    color: var(--film-text);
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--film-gold);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    animation: scan 4s infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--film-gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    animation: titleGlow 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(212, 175, 55, 0.5); }
    50% { text-shadow: 0 0 30px rgba(212, 175, 55, 0.8), 0 0 40px rgba(212, 175, 55, 0.4); }
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* Quick Links */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.quick-link-card {
    background: var(--film-card);
    padding: 2rem;
    border-radius: 0;
    border: 2px solid var(--film-border);
    border-top: 3px solid var(--film-gold);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--film-text);
    display: block;
    position: relative;
    overflow: hidden;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s;
}

.quick-link-card:hover::before {
    left: 100%;
}

.quick-link-card:hover {
    transform: translateY(-8px);
    border-color: var(--film-gold);
    box-shadow: var(--shadow-glow);
    background: var(--film-card-hover);
}

.quick-link-card h3 {
    color: var(--film-gold);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.quick-link-card p {
    color: var(--film-text-dark);
    line-height: 1.6;
}

/* Content Cards */
.content-card {
    background: var(--film-card);
    padding: 3rem;
    border: 2px solid var(--film-border);
    border-left: 4px solid var(--film-gold);
    margin-bottom: 2.5rem;
    position: relative;
    animation: cardSlideIn 0.6s ease-out;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.content-card h1 {
    color: var(--film-gold);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-bottom: 2px solid var(--film-gold);
    padding-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.content-card h2 {
    color: var(--film-gold);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--film-gold);
    padding-bottom: 0.8rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.content-card h3 {
    color: var(--film-gold-light);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.content-card p {
    color: var(--film-text);
    margin-bottom: 1.2rem;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Image Styles */
.content-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 2rem auto;
    display: block;
    border: 3px solid var(--film-gold);
    box-shadow: var(--shadow-cinema);
    transition: transform 0.3s;
    position: relative;
}

.content-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.image-with-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin: 2rem 0;
}

.image-with-text img {
    width: 100%;
    border: 2px solid var(--film-gold);
    box-shadow: var(--shadow-cinema);
}

@media (max-width: 768px) {
    .image-with-text {
        grid-template-columns: 1fr;
    }
}

/* Definition Cards */
.definition-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(192, 57, 43, 0.1) 100%);
    padding: 2rem;
    border-left: 4px solid var(--film-gold);
    border: 2px solid var(--film-border);
    border-left: 4px solid var(--film-gold);
    margin: 2rem 0;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.definition-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--film-gold);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.definition-card h4 {
    color: var(--film-gold);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Info Blocks */
.info-block {
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--film-gold);
    border-left: 4px solid var(--film-gold);
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.info-block::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    border-top: 2px solid var(--film-gold);
    border-right: 2px solid var(--film-gold);
}

.info-block h4 {
    color: var(--film-gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wskrotce {
    background: rgba(26, 35, 126, 0.2);
    border: 2px solid var(--film-blue);
    border-left: 4px solid var(--film-blue);
    padding: 1.5rem;
    margin: 2rem 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.wskrotce h4 {
    color: var(--film-gold-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* Glossary */
.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.glossary-item {
    background: var(--film-card);
    padding: 2rem;
    border: 2px solid var(--film-border);
    border-top: 3px solid var(--film-gold);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.glossary-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--film-gold);
    transition: height 0.3s;
}

.glossary-item:hover::before {
    height: 100%;
}

.glossary-item:hover {
    transform: translateY(-5px);
    border-color: var(--film-gold);
    box-shadow: var(--shadow-glow);
}

.glossary-item h3 {
    color: var(--film-gold);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.glossary-item a {
    color: var(--film-gold-light);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted var(--film-gold);
}

.glossary-item a:hover {
    border-bottom: 1px solid var(--film-gold);
}

/* Search Box */
.search-box {
    margin: 2rem 0;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    border: 2px solid var(--film-border);
    border-radius: 0;
    background: var(--film-card);
    color: var(--film-text);
    transition: all 0.3s;
    font-family: inherit;
}

.search-box input:focus {
    outline: none;
    border-color: var(--film-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.search-box input::placeholder {
    color: var(--film-text-dark);
}

/* Examples Grid */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.example-card {
    background: var(--film-card);
    padding: 0;
    border: 2px solid var(--film-border);
    transition: all 0.4s;
    overflow: hidden;
    position: relative;
}

.example-card:hover {
    transform: translateY(-8px);
    border-color: var(--film-gold);
    box-shadow: var(--shadow-glow);
}

.example-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.example-card:hover img {
    transform: scale(1.1);
}

.example-card h4 {
    color: var(--film-gold);
    margin: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.example-card p {
    color: var(--film-text);
    margin: 0 1.5rem 1.5rem;
    line-height: 1.6;
}

/* CSS Diagrams */
.diagram {
    background: var(--film-card);
    padding: 3rem;
    border: 2px solid var(--film-border);
    margin: 3rem 0;
    text-align: center;
    position: relative;
}

.diagram::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--film-gold), transparent);
}

.diagram-box {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--film-gold) 0%, var(--film-gold-light) 100%);
    color: var(--film-dark);
    margin: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: transform 0.3s;
}

.diagram-box:hover {
    transform: scale(1.1);
}

.diagram-arrow {
    display: inline-block;
    margin: 0 1.5rem;
    font-size: 2rem;
    color: var(--film-gold);
    animation: arrowPulse 2s infinite;
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.6; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(5px); }
}

/* Footer */
footer {
    background: linear-gradient(180deg, var(--film-darker) 0%, #000 100%);
    color: var(--film-text);
    padding: 3rem 0;
    margin-top: 5rem;
    border-top: 2px solid var(--film-gold);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--film-gold), transparent);
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
}

footer h4 {
    margin-bottom: 1.5rem;
    color: var(--film-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
}

footer a {
    color: var(--film-text-dark);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: all 0.3s;
    padding-left: 10px;
    position: relative;
}

footer a::before {
    content: '▶';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s;
    color: var(--film-gold);
}

footer a:hover {
    color: var(--film-gold);
    padding-left: 20px;
}

footer a:hover::before {
    opacity: 1;
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--film-border);
}

.footer-copyright p {
    color: var(--film-text-dark);
    font-size: 0.9rem;
    margin: 0;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.98) 0%, rgba(10,10,10,0.98) 100%);
    color: var(--film-text);
    padding: 2rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.8);
    z-index: 10000;
    display: none;
    border-top: 2px solid var(--film-gold);
    backdrop-filter: blur(10px);
}

.cookie-banner.active {
    display: block;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.cookie-banner p {
    flex: 1;
    min-width: 250px;
    color: var(--film-text);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.8rem 2rem;
    border: 2px solid;
    border-radius: 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.cookie-btn-accept {
    background: transparent;
    color: var(--film-gold);
    border-color: var(--film-gold);
}

.cookie-btn-accept:hover {
    background: var(--film-gold);
    color: var(--film-dark);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--film-red);
    border-color: var(--film-red);
}

.cookie-btn-reject:hover {
    background: var(--film-red);
    color: white;
}

.cookie-btn-settings {
    background: transparent;
    color: var(--film-text);
    border-color: var(--film-border);
}

.cookie-btn-settings:hover {
    border-color: var(--film-gold);
    color: var(--film-gold);
}

/* Cookie Settings Modal */
.cookie-settings {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--film-card);
    padding: 3rem;
    border: 2px solid var(--film-gold);
    box-shadow: var(--shadow-cinema);
    z-index: 10001;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-settings.active {
    display: block;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.cookie-settings h3 {
    color: var(--film-gold);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--film-gold);
    padding-bottom: 1rem;
}

.cookie-settings-option {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--film-dark);
    border: 1px solid var(--film-border);
}

.cookie-settings-option label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--film-text);
}

.cookie-settings-option input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--film-gold);
}

/* Form */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--film-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--film-border);
    border-radius: 0;
    background: var(--film-dark);
    color: var(--film-text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--film-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    background: var(--film-card);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    accent-color: var(--film-gold);
}

.btn-submit {
    background: transparent;
    color: var(--film-gold);
    padding: 1rem 3rem;
    border: 2px solid var(--film-gold);
    border-radius: 0;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: inherit;
}

.btn-submit:hover {
    background: var(--film-gold);
    color: var(--film-dark);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: var(--film-card);
    color: var(--film-gold);
    padding: 1.5rem 2rem;
    border: 2px solid var(--film-gold);
    box-shadow: var(--shadow-cinema);
    z-index: 10002;
    display: none;
    animation: toastSlideIn 0.4s ease-out;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.toast.active {
    display: block;
}

.toast.error {
    border-color: var(--film-red);
    color: var(--film-red);
}

@keyframes toastSlideIn {
    from {
        transform: translateX(150%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    main {
        padding-top: calc(3rem + 80px);
    }
    
    .menu-toggle {
        display: flex;
        flex-shrink: 0;
        min-width: 35px;
    }
    
    header {
        overflow: visible;
        width: 100%;
        max-width: 100%;
        padding: 1rem 0;
    }
    
    header .container {
        flex-wrap: nowrap;
        gap: 1rem;
        padding: 0 20px;
        overflow: visible;
        min-width: 0;
    }
    
    .logo {
        font-size: 1.4rem;
        letter-spacing: 2px;
        flex-shrink: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    nav {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 300px;
        min-width: 0;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        background: linear-gradient(180deg, rgba(0,0,0,0.98) 0%, rgba(10,10,10,0.98) 100%);
        backdrop-filter: blur(10px);
        border-left: 2px solid var(--film-gold);
        transform: translateX(100%);
        opacity: 0;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0s linear 0.3s;
        z-index: 1000;
        padding: 5rem 2rem 2rem;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.8);
        will-change: transform, opacity;
        visibility: hidden;
        pointer-events: none;
    }
    
    nav.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0s linear 0s;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
        width: 100%;
        flex-wrap: wrap;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav a {
        display: block;
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--film-border);
    }
    
    nav a::after {
        display: none;
    }
    
    /* Overlay для мобильного меню */
    .menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: rgba(0, 0, 0, 0.8);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                    visibility 0s linear 0.3s;
        visibility: hidden;
        pointer-events: none;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                    visibility 0s linear 0s;
    }
    
    .cookie-banner .container {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .content-card {
        padding: 2rem 1.5rem;
    }
    
    .content-card h1 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .content-card h2 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .content-card h3 {
        font-size: 1.2rem;
    }
    
    .definition-card,
    .info-block,
    .wskrotce {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    
    header .container {
        padding: 0 15px;
        gap: 0.75rem;
    }
    
    .menu-toggle {
        padding: 0.4rem;
        min-width: 30px;
    }
    
    .menu-toggle span {
        width: 22px;
        height: 2.5px;
    }
    
    nav {
        width: 85%;
        max-width: 100%;
    }
    
    nav.active {
        transform: translateX(0);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

ul li {
    margin-bottom: 0.8rem;
    color: var(--film-text);
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

strong {
    color: var(--film-gold);
    font-weight: 600;
}

a {
    color: var(--film-gold-light);
    transition: color 0.3s;
}

a:hover {
    color: var(--film-gold);
}
