:root {
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --premium-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --accent-color: #007aff; /* Apple Blue */
}

/* Эффект стекла для карточек */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 8px 16px;
    box-shadow: var(--premium-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #333;
    text-decoration: none;
}

.glass-card:hover {
    transform: translateY(-4px);
    background: #fff;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

/* Навигация */
.main-nav-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 5px 25px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: #1d1d1f !important; /* Apple Text Color */
    padding: 15px 20px !important;
    transition: color 0.3s;
}

.nav-link i {
    opacity: 0.5;
    font-size: 1.1em;
}

/* Иконка стрелочки для вложенных пунктов */
.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.4em;
    vertical-align: 0.2em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    opacity: 0.3;
}

/* Мега меню */
.mega-menu-box {
    border-radius: 24px !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1) !important;
    overflow: hidden;
    margin-top: 15px !important;
}

.mega-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* Поиск Apple Style */
.header-search-wrap { position: relative; }
.search-trigger {
    background: none; border: none; font-size: 20px; color: #333;
}
.search-overlay {
    position: absolute; right: 0; top: 50px; width: 300px;
    background: #fff; border-radius: 15px; padding: 10px;
    box-shadow: var(--premium-shadow);
    display: none; opacity: 0; transform: translateY(10px);
    transition: all 0.3s;
}
.search-overlay.active { display: block; opacity: 1; transform: translateY(0); }


:root {
    --apple-gradient: linear-gradient(135deg, #003B95 0%, #00A3E0 100%);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(0, 59, 149, 0.1);
}

/* Верхняя панель во всю ширину */
.header-top-fluid {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    position: relative;
    z-index: 1050;
}

/* Кнопки-выпадашки сверху */
.btn-top-dropdown {
    background: rgba(0, 59, 149, 0.05);
    border: 1px solid transparent;
    border-radius: 50px;
    padding: 4px 15px;
    font-size: 13px;
    transition: all 0.3s ease;
    color: #444;
}

.btn-top-dropdown:hover {
    background: #fff;
    border-color: #00A3E0;
    box-shadow: 0 4px 15px rgba(0, 163, 224, 0.15);
}

/* Эффект при наведении на основное меню */
.nav-link {
    font-weight: 600;
    color: #333 !important;
    padding: 10px 18px !important;
    transition: all 0.3s;
}

.nav-link:hover {
    color: #003B95 !important;
    background: rgba(0, 59, 149, 0.04);
    border-radius: 12px;
}

/* Стрелочка для пунктов с подменю */
.dropdown-toggle::after {
    border: none;
    content: "\F282"; /* Иконка шеврона из Bootstrap Icons */
    font-family: "bootstrap-icons";
    font-size: 10px;
    margin-left: 6px;
    opacity: 0.5;
    transition: transform 0.3s;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Премиальные тени и мега меню */
.shadow-premium {
    box-shadow: 0 25px 80px rgba(0, 59, 149, 0.12) !important;
}

.mega-menu-box {
    border-radius: 28px !important;
    margin-top: 10px !important;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass) !important;
}

/* Анимация Apple Style */
.animate-apple {
    animation: appleSlide 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes appleSlide {
    from { opacity: 0; transform: scale(0.98) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Кнопка поиска */
.search-btn-premium {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--apple-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 59, 149, 0.3);
    transition: transform 0.2s;
}

.search-btn-premium:hover {
    transform: scale(1.1);
}
/* ===== April 2026 redesign ===== */
.premium-header {
    position: relative;
    background:
        linear-gradient(135deg, rgba(11, 76, 163, 0.20), rgba(40, 153, 255, 0.12)),
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.35), transparent 50%);
}

.header-top-fluid {
    border: 1px solid rgba(40, 120, 224, 0.18);
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 8px 24px rgba(8, 41, 94, 0.10);
}

.top-chip {
    background: linear-gradient(120deg, rgba(255,255,255,0.95), rgba(231,243,255,0.88));
    border: 1px solid rgba(75, 141, 226, 0.35);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    box-shadow: 0 8px 18px rgba(9, 52, 119, 0.10);
}

.top-chip-rate {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.currency-orb {
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    box-shadow: inset 0 2px 5px rgba(255,255,255,.45), 0 6px 12px rgba(11, 52, 121, .28);
}

.currency-orb.usd { background: radial-gradient(circle at 30% 25%, #9bf6b4, #2f9e62 62%, #1b6f42); }
.currency-orb.eur { background: radial-gradient(circle at 30% 25%, #add8ff, #4f76f3 62%, #2a42b8); }
.currency-orb.rub { background: radial-gradient(circle at 30% 25%, #ffe0d5, #df7b3d 60%, #b13f2d); }

.social-pill {
    width: 30px;
    height: 30px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(76, 136, 224, 0.35);
    background: linear-gradient(140deg, rgba(255,255,255,.95), rgba(219,235,255,.95));
    color: #1e4f9c;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.social-pill:hover { transform: translateY(-1px); box-shadow: 0 10px 18px rgba(20, 72, 150, 0.2); }

.site-main-nav {
    background: linear-gradient(110deg, rgba(6, 70, 162, 0.92), rgba(0, 144, 255, 0.84));
    border: 1px solid rgba(92, 175, 255, 0.55);
    border-radius: 1rem;
    margin: 0.45rem 1rem;
    box-shadow: 0 20px 36px rgba(10, 54, 129, 0.22);
    backdrop-filter: blur(10px);
}

.premium-nav-grid {
    gap: 0.45rem;
}

.premium-nav-grid > .nav-item {
    flex: 1 1 0;
}

.premium-nav-link {
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.95rem;
    text-align: center;
    font-weight: 700;
    padding: 0.66rem 0.7rem !important;
    background: linear-gradient(130deg, rgba(255,255,255,.16), rgba(255,255,255,.06));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
    position: relative;
    overflow: hidden;
}

.premium-nav-link:hover,
.premium-nav-link:focus,
.nav-item.show > .premium-nav-link {
    background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(139, 211, 255, .18));
    border-color: rgba(255,255,255,.8);
    color: #fff !important;
    box-shadow: 0 0 0 3px rgba(170,220,255,.22), 0 12px 20px rgba(8, 30, 71, .28);
}

.premium-nav-link::before {
    content: "";
    position: absolute;
    inset: -100% auto -100% -45%;
    width: 28%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
    transform: translateX(-220%) rotate(15deg);
    transition: transform .5s ease;
}

.premium-nav-link:hover::before,
.premium-nav-link:focus::before { transform: translateX(560%) rotate(15deg); }

.nav-link-special {
    background: linear-gradient(125deg, rgba(255, 206, 74, 0.95), rgba(255, 151, 29, 0.95));
    color: #1f2b40 !important;
    border-color: rgba(255, 205, 84, 0.95);
}

.nav-link-special:hover {
    color: #111c32 !important;
    box-shadow: 0 10px 24px rgba(255, 167, 24, 0.45);
}

.premium-dropdown-menu {
    border-radius: 0.9rem;
    border: 1px solid rgba(77, 140, 221, 0.35);
    box-shadow: 0 18px 32px rgba(8, 44, 99, 0.24);
}

.navbar .dropdown:hover > .dropdown-menu,
.navbar .dropdown:focus-within > .dropdown-menu {
    display: block;
    margin-top: 0;
}

.speedbar-modern {
    border: 1px solid rgba(80, 143, 229, 0.25);
    border-radius: 0.85rem;
    background: linear-gradient(120deg, rgba(233, 243, 255, 0.85), rgba(249, 252, 255, 0.95));
    padding: 0.65rem 0.95rem;
    color: #20416d;
}

.site-footer-modern {
    background:
        linear-gradient(145deg, rgba(2,24,62,.95), rgba(5,43,91,.94)),
        radial-gradient(circle at top right, rgba(0, 205, 255, .22), transparent 52%);
    color: #dbe5ff;
}

.footer-panel {
    border: 1px solid rgba(123, 156, 216, 0.26);
    border-radius: 1rem;
    background: linear-gradient(160deg, rgba(30, 54, 102, 0.58), rgba(17, 36, 78, 0.72));
    padding: 1rem;
}

.footer-panel h3,
.footer-panel .h6 {
    color: #eaf6ff;
}

.footer-links li + li { margin-top: .45rem; }

.footer-links a {
    color: #e2ecff;
    text-decoration: none;
    display: inline-flex;
    position: relative;
    padding: .1rem .1rem;
    border-radius: .45rem;
}

.footer-links a:hover {
    color: #89d4ff;
    background: linear-gradient(120deg, rgba(150,230,255,.22), rgba(70,147,255,.1));
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: .35rem .8rem;
    border-radius: 999px;
    border: 1px solid rgba(126, 190, 255, .42);
    color: #dff1ff;
    text-decoration: none;
    background: linear-gradient(125deg, rgba(37, 97, 179, .85), rgba(30, 62, 134, .92));
}

.footer-social-btn:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(111, 146, 209, 0.35);
    color: #9fb3dd;
}

.card-film-premium {
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(170deg, rgba(255,255,255,.96), rgba(239,246,255,.96));
    border: 1px solid rgba(93, 149, 226, 0.28) !important;
}

.kino-showcase {
    border: 1px solid rgba(88, 153, 237, .26);
    border-radius: 1rem;
    background: linear-gradient(170deg, rgba(239,246,255,.82), rgba(255,255,255,.96));
    box-shadow: 0 16px 26px rgba(20, 66, 132, .11);
    padding: 1.1rem;
}

.kino-cinema-list {
    border: 1px solid rgba(88, 153, 237, .26);
    border-radius: 1rem;
    background: #fff;
    padding: .95rem;
}

.gov-filter-wrap .gov-filter-btn {
    border-radius: 999px;
}

.film-poster-wrap { aspect-ratio: 2 / 3; overflow: hidden; }

.film-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.card-film-premium:hover .film-poster { transform: scale(1.04); }

.film-age-badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: linear-gradient(115deg, #00a95a, #42d08f);
}

.film-country {
    font-size: 0.9rem;
    color: #54658b;
}

.gov-news-card.is-hidden { display: none; }

.news-card-noimage .card-body {
    background: linear-gradient(160deg, rgba(245,249,255,.95), rgba(255,255,255,.98));
}

.news-card-noimage .news-noimage-tag {
    background: linear-gradient(145deg, #0d5ccd, #1f8dff);
    color: #fff;
    font-size: .7rem;
    letter-spacing: .04em;
    border-radius: 999px;
    padding: .22rem .65rem;
}

@media (max-width: 991px) {
    .site-main-nav { margin: 0.35rem 0.5rem; }
    .premium-nav-grid > .nav-item { flex: 1 1 100%; }
}
