/* Reset i podstawy */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

:root {
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-cinema: 'Georgia', 'Times New Roman', serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: #1a1a1a;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --accent-gold: #d4af37;
    --accent-red: #c41e3a;
    --accent-blue: #1e90ff;
    --shadow-cinema: 0 10px 40px rgba(0, 0, 0, 0.8);
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--dark-bg);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(196, 30, 58, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Cinematic overlay effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 3px
        );
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
}

/* Header */
header {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.85) 100%);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    transition: var(--transition);
    font-family: var(--font-cinema);
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.4s ease;
}

.logo:hover::after {
    width: 100%;
}

.logo:hover {
    color: #f4d03f;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

nav a:hover::before,
nav a.active::before {
    width: 80%;
}

nav a:hover,
nav a.active {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--accent-gold);
    transition: var(--transition);
    border-radius: 3px;
    position: relative;
}

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

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

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

/* Скрываем menu-toggle когда меню открыто */
.menu-toggle.active {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Скрываем menu-close-wrapper на десктопе */
.menu-close-wrapper {
    display: none;
}

/* Main content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
    margin-top: 80px; /* Отступ для фиксированного header */
}

/* Hero section */
.hero {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(10, 10, 10, 0.9) 100%);
    border-radius: 15px;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-cinema);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-image {
    width: 100%;
    max-width: 800px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(212, 175, 55, 0.3);
    animation: fadeIn 1.5s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
    font-family: var(--font-cinema);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Situation tiles */
.situations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 4rem 0;
}

.situation-tile {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 0;
    text-align: center;
    box-shadow: var(--shadow-cinema);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    animation: fadeInUp 0.8s ease-out both;
}

.situation-tile:nth-child(1) { animation-delay: 0.1s; }
.situation-tile:nth-child(2) { animation-delay: 0.2s; }
.situation-tile:nth-child(3) { animation-delay: 0.3s; }
.situation-tile:nth-child(4) { animation-delay: 0.4s; }

.situation-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
    transition: var(--transition);
}

.situation-tile:hover::before {
    background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
}

.situation-tile img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.situation-tile:hover img {
    transform: scale(1.1);
}

.situation-tile > *:not(img) {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.situation-tile:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    border-color: var(--accent-gold);
}

.situation-tile.family {
    border-top: 4px solid #4CAF50;
}

.situation-tile.couple {
    border-top: 4px solid #E91E63;
}

.situation-tile.solo {
    border-top: 4px solid #2196F3;
}

.situation-tile.quick {
    border-top: 4px solid #FF9800;
}

.situation-tile h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
    font-family: var(--font-cinema);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.situation-tile p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Page-specific colors */
.page-family {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(10, 10, 10, 0.9) 100%);
}

.page-couple {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1) 0%, rgba(10, 10, 10, 0.9) 100%);
}

.page-solo {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(10, 10, 10, 0.9) 100%);
}

.page-quick {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(10, 10, 10, 0.9) 100%);
}

.page-family header,
.page-couple header,
.page-solo header,
.page-quick header {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.85) 100%);
}

/* Content cards */
.content-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-cinema);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gold);
    opacity: 0.5;
}

.content-card h2 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    font-family: var(--font-cinema);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.content-card h3 {
    color: var(--text-primary);
    margin: 2rem 0 1rem;
    font-size: 1.6rem;
    font-family: var(--font-cinema);
}

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

.content-card a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
    position: relative;
}

.content-card a:hover {
    border-bottom-color: var(--accent-gold);
    color: #f4d03f;
}

.content-card a::after {
    content: ' →';
    opacity: 0;
    transition: var(--transition);
    display: inline-block;
    transform: translateX(-5px);
}

.content-card a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Убираем стрелочку для кнопок внутри .content-card */
.content-card .btn::after {
    content: none !important;
}

.content-card .btn:hover::after {
    content: none !important;
}

.content-card-image {
    width: 100%;
    max-width: 600px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.movie-card {
    background: rgba(26, 26, 26, 0.8);
    border-left: 4px solid var(--accent-gold);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.movie-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    transform: translate(50%, -50%);
}

.movie-card:hover {
    transform: translateX(10px);
    border-left-color: #f4d03f;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.movie-card h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-family: var(--font-cinema);
}

.movie-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.movie-card a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.movie-card a:hover {
    border-bottom-color: var(--accent-gold);
    color: #f4d03f;
}

.movie-card .why {
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 0.95rem;
}

.movie-card-image {
    width: 100%;
    max-width: 400px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin: 1rem 0;
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
}

/* Checklist */
.checklist {
    background: rgba(26, 26, 26, 0.6);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.checklist-item {
    margin: 1.5rem 0;
    padding-left: 2.5rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.8;
}

.checklist-item::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 0.8rem;
}

.checklist-item strong {
    color: var(--text-primary);
}

.checklist-item a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.checklist-item a:hover {
    border-bottom-color: var(--accent-gold);
    color: #f4d03f;
}

/* General link styles */
a {
    transition: var(--transition);
}

p a, li a, .content-card a, .movie-card a {
    color: var(--accent-gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

p a:hover, li a:hover {
    border-bottom-color: var(--accent-gold);
    color: #f4d03f;
}

/* Form */
form {
    max-width: 700px;
    margin: 3rem auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-cinema);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

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

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

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(10, 10, 10, 0.8);
    color: var(--text-primary);
}

form input:focus,
form input[type="tel"]:focus,
form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    background: rgba(10, 10, 10, 0.9);
}

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

.btn {
    background: linear-gradient(135deg, #f4d03f 0%, var(--accent-gold) 100%);
    color: #000000;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
    color: #000000 !important;
    background: linear-gradient(135deg, #fff9c4 0%, #f4d03f 100%);
}

/* Исправление цвета текста кнопки при hover внутри .content-card */
.content-card .btn {
    color: #000000 !important;
    border-bottom: none !important;
}

.content-card .btn:hover {
    color: #000000 !important;
    border-bottom: none !important;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    box-shadow: 0 5px 20px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 10px 30px rgba(108, 117, 125, 0.5);
}

/* Footer */
footer {
    background: var(--darker-bg);
    color: var(--text-secondary);
    padding: 3rem 0;
    margin-top: 5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
    font-family: var(--font-cinema);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
    position: relative;
}

.footer-section a::before {
    content: '▶';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: var(--transition);
    color: var(--accent-gold);
}

.footer-section a:hover::before {
    opacity: 1;
    left: -15px;
}

.footer-section a:hover {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
    padding-left: 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-secondary);
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 2rem;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    border-top: 2px solid var(--accent-gold);
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
    color: var(--text-secondary);
}

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

.cookie-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.cookie-btn-accept {
    background: var(--accent-gold);
    color: var(--dark-bg);
}

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

.cookie-btn-settings {
    background: var(--accent-blue);
    color: white;
}

.cookie-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.cookie-settings {
    display: none;
    background: rgba(10, 10, 10, 0.9);
    padding: 2rem;
    margin-top: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.cookie-settings.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.cookie-settings h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-family: var(--font-cinema);
}

.cookie-settings label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    cursor: pointer;
    color: var(--text-secondary);
}

.cookie-settings input[type="checkbox"] {
    width: auto;
    accent-color: var(--accent-gold);
}

/* Toast notification */
.toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: var(--accent-gold);
    color: var(--dark-bg);
    padding: 1.25rem 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    z-index: 20000;
    display: none;
    animation: slideInRight 0.4s ease-out;
    border: 2px solid rgba(212, 175, 55, 0.5);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toast.show {
    display: block;
}

.toast.error {
    background: var(--accent-red);
    color: white;
    border-color: rgba(196, 30, 58, 0.5);
}

/* Watchlist */
.watchlist-container {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-cinema);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.watchlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
}

.watchlist-item:hover {
    background: rgba(26, 26, 26, 0.5);
    padding-left: 2rem;
}

.watchlist-item:last-child {
    border-bottom: none;
}

.watchlist-item button {
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.watchlist-item button:hover {
    background: #a01a2e;
    transform: scale(1.05);
}

.watchlist-empty {
    text-align: center;
    padding: 4rem;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes slideInRightMenu {
    from {
        right: -100%;
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        right: 0;
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Menu Overlay - скрыт на десктопе */
.mobile-menu-overlay {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(15px);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease-out;
        pointer-events: none;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        pointer-events: all;
        animation: fadeIn 0.3s ease-out;
    }
    .hero h1 {
        font-size: 2.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero p {
        font-size: 1.1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .situations-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .mobile-menu-overlay {
        display: block;
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    nav {
        width: 100%;
        order: 3;
        position: relative;
        max-width: 100%;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        max-height: 100vh;
        background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0 2rem;
        margin: 0;
        border-left: 2px solid rgba(212, 175, 55, 0.3);
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.8);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
        opacity: 0;
        transform: translateX(20px);
        box-sizing: border-box;
    }
    
    nav ul.active {
        right: 0;
        opacity: 1;
        transform: translateX(0);
        animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    nav ul::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 80px;
        background: linear-gradient(180deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
        pointer-events: none;
    }
    
    /* Кнопка-крестик для закрытия меню - показываем только на мобильных */
    .menu-close-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        margin-bottom: 1.5rem !important;
        padding-bottom: 1.5rem !important;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        position: relative;
        list-style: none;
        height: 60px;
        display: block !important;
    }
    
    .menu-close {
        position: absolute;
        top: 0;
        right: 1.5rem;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transform: rotate(0deg);
        transition: all 0.3s ease;
        margin: 0;
    }
    
    nav ul.active .menu-close {
        opacity: 1;
        animation: fadeIn 0.3s ease-out 0.2s both;
    }
    
    .menu-close span {
        display: block;
        width: 26px;
        height: 3px;
        background: var(--accent-gold);
        position: absolute;
        border-radius: 3px;
        transition: var(--transition);
    }
    
    .menu-close span:nth-child(1) {
        transform: rotate(45deg);
    }
    
    .menu-close span:nth-child(2) {
        transform: rotate(-45deg);
    }
    
    .menu-close:hover {
        transform: rotate(90deg);
    }
    
    .menu-close:hover span {
        background: #f4d03f;
        box-shadow: 0 0 10px rgba(244, 208, 63, 0.5);
    }
    
    nav li {
        padding: 0 1.5rem;
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.3s ease-out;
    }
    
    nav ul.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    nav ul.active li.menu-close-wrapper {
        opacity: 1;
        transform: translateX(0);
        transition-delay: 0s;
    }
    
    nav ul.active li:nth-child(2) { transition-delay: 0.05s; }
    nav ul.active li:nth-child(3) { transition-delay: 0.1s; }
    nav ul.active li:nth-child(4) { transition-delay: 0.15s; }
    nav ul.active li:nth-child(5) { transition-delay: 0.2s; }
    nav ul.active li:nth-child(6) { transition-delay: 0.25s; }
    nav ul.active li:nth-child(7) { transition-delay: 0.3s; }
    nav ul.active li:nth-child(8) { transition-delay: 0.35s; }
    
    nav a {
        padding: 1.25rem 1.5rem;
        width: 100%;
        text-align: left;
        font-size: 1.05rem;
        border-radius: 0;
        background: transparent;
        transition: all 0.3s ease;
        border-left: 4px solid transparent;
        position: relative;
        display: block;
        margin-bottom: 0.5rem;
    }
    
    nav a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 0;
        background: linear-gradient(90deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
        transition: width 0.3s ease;
    }
    
    nav a.active {
        background: rgba(212, 175, 55, 0.08);
        border-left-color: var(--accent-gold);
        color: var(--accent-gold);
        font-weight: 600;
    }
    
    nav a.active::before {
        width: 100%;
    }
    
    nav a:hover {
        background: rgba(212, 175, 55, 0.12);
        padding-left: 2rem;
        color: var(--accent-gold);
    }
    
    nav a:hover::before {
        width: 100%;
    }
    
    nav a.active:hover {
        background: rgba(212, 175, 55, 0.15);
        border-left-color: #f4d03f;
    }
    
    nav a::after {
        content: none;
    }
    
    .header-container {
        flex-wrap: wrap;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 1rem;
    }
    
    .content-card {
        padding: 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .content-card h2 {
        font-size: 1.6rem;
        word-wrap: break-word;
    }
    
    .content-card h3 {
        font-size: 1.3rem;
        word-wrap: break-word;
    }
    
    .movie-card {
        padding: 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .movie-card h4 {
        font-size: 1.1rem;
        word-wrap: break-word;
    }
    
    .hero {
        padding: 3rem 1.5rem;
    }
    
    .situation-tile h2 {
        font-size: 1.5rem;
        word-wrap: break-word;
    }
    
    .situation-tile p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .checklist-item {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    form {
        padding: 2rem 1.5rem;
    }
    
    .watchlist-container {
        padding: 2rem 1.5rem;
    }
    
    .watchlist-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .watchlist-item button {
        width: 100%;
    }
    
    .hero-image {
        height: 250px;
    }
    
    .content-card-image {
        height: 200px;
    }
    
    .movie-card-image {
        height: 150px;
    }
    
    .situation-tile img {
        height: 200px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .cookie-text {
        min-width: 100%;
    }
    
    .cookie-text p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}
