/* ================= FONTS (локальные, как на сайте) ================= */
@font-face {
    font-family: 'Golos';
    src: url('img/golos-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Golos';
    src: url('img/golos-demibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ================= VARIABLES (psb-academy.ru tokens) ================= */
:root {
    --primary-orange: #ed6b30;
    --primary-orange-hover: #ea5614;
    --primary-orange-pressed: #cf4c12;
    --primary-blue: #2b2c84;
    --primary-blue-hover: #23246c;
    --primary-blue-active: #32339a;
    --primary-blue-pressed: #1c1c55;
    --text-color: #050506;
    --text-muted: #595c66;
    --bg-color: #f2f2f2;
    --header-bg: #f2f2f2;
    --card-bg: #ffffff;
    --border-color: #ced0d4;
    --border-light: #f2f2f2;
    --tag-bg: #f2f2f2;
    --shadow-basic: 0 5px 24px 0 rgba(43,44,132,0.11);
    --box-radius: 12px;
}

body {
    font-family: Golos, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0; padding: 0;
    line-height: 1.3;
    letter-spacing: -0.03em;
    font-size: 18px;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* ================= HEADER (точный клон psb-academy.ru из реальных CSS) ================= */
.nav-item-projects-hidden { display: none !important; }
.header {
    opacity: 1;
    z-index: 500;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    background: var(--header-bg);
    transition: all .45s ease-in-out 0s;
}
.header.header-hidden {
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    top: -80px;
}

.header-inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    align-items: center;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 40px;
    height: 78px;
    box-sizing: border-box;
}

/* Отступ body для fixed хедера */
body { padding-top: 78px; }

/* Логотип (через background как на сайте) */
.logo {
    display: inline-flex;
    width: 132px;
    height: 36px;
    background: url('img/logo.svg') 0 50% no-repeat;
    background-size: contain;
    text-decoration: none;
    flex-shrink: 0;
}

/* Правая группа: нав + кнопки */
.header-right-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

/* Навигация */
.nav {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-right: 39px;
}

.nav-item {
    position: relative;
    z-index: 500;
}

.nav-link-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 24px;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    cursor: pointer;
    transition: color 0.15s;
}
.nav-link-wrapper:hover { color: var(--primary-orange-hover); }
.nav-item:hover .nav-link-wrapper { color: var(--primary-orange-hover); }

.nav-arrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease-in-out;
}
.nav-arrow-icon svg { width: 24px; height: 24px; }
.nav-item:hover .nav-arrow-icon {
    transform: rotate(180deg);
}

/* Дропдаун (точные стили Dropdown_content + MenuItem_content) */
.dropdown-menu {
    opacity: 0;
    z-index: 100;
    visibility: hidden;
    position: absolute;
    top: 57px;
    right: 0;
    pointer-events: none;
    border: 1px solid var(--border-light);
    background: var(--card-bg);
    box-shadow: var(--shadow-basic);
    border-radius: 9px;
    transition: all .3s ease-in-out 0s;
    transform: translateY(20px);
    padding: 15px;
    min-width: 272px;
    display: flex;
    flex-direction: column;
}
.dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 36px;
    bottom: 100%;
}
.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 18px;
    letter-spacing: -0.03em;
    transition: color 0.15s;
    margin-top: 15px;
}
.dropdown-link:first-child { margin-top: 0; }
.dropdown-link:hover { color: var(--primary-orange-hover); }
.dropdown-link:active { color: var(--primary-orange-pressed); }

/* Кнопка Войти (точная копия Button_auto + Button_m + Button_sky) */
.btn-login {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    text-align: center;
    line-height: 1;
    letter-spacing: -0.02em;
    cursor: pointer;
    user-select: none;
    transition: all .3s ease-in-out 0s;
    background: var(--primary-blue);
    color: #fff;
    min-width: 152px;
    gap: 6px;
    height: 48px;
    padding: 0 15px;
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
    border: none;
    font-family: 'Golos Text', Golos, sans-serif;
    box-sizing: border-box;
}
.btn-login:hover { background: var(--primary-blue-hover); color: white; }
.btn-login:active { background: var(--primary-blue-pressed); }

/* Кнопка глаза (Button_transparent + Button_m + Button_height) */
.btn-eye {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 9px;
    cursor: pointer;
    user-select: none;
    transition: all .3s ease-in-out 0s;
    background: none;
    border: none;
    color: var(--text-color);
}
.btn-eye:hover { color: var(--primary-orange-hover); }
.btn-eye:active { color: var(--primary-orange-pressed); }
.btn-eye svg { width: 24px; height: 24px; display: block; }

/* Бургер (Button_white + Button_m + Button_height) */
.btn-burger {
    display: none; /* скрыт на десктопе 1220px+ */
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 9px;
    cursor: pointer;
    transition: all .3s ease-in-out 0s;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    color: var(--text-color);
}
.btn-burger:hover { color: var(--primary-orange-hover); }
.btn-burger svg { width: 24px; height: 24px; display: block; }

/* ================= MOBILE MENU (бургер) ================= */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    overflow-x: hidden;
    z-index: 600;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    -webkit-tap-highlight-color: transparent;
}
.mobile-menu.open {
    display: block;
}
.mobile-menu-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    background: var(--card-bg);
    border-radius: 16px 16px 0 0;
    padding: 24px 20px 32px;
    max-height: 75vh;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
    animation: mobileMenuSlideUp 0.3s ease-out;
}
@keyframes mobileMenuSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.mobile-menu-close:hover { opacity: 0.7; }
.mobile-menu-close svg { display: block; }
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
    min-width: 0;
}
.mobile-menu-item {
    /* без серой полоски */
}
.mobile-menu-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 18px 0;
    background: none;
    border: none;
    font-size: 20px;
    font-weight: 400;
    color: var(--text-color);
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}
.mobile-menu-link:hover { color: var(--primary-orange-hover); }
.mobile-menu-chevron {
    font-size: 10px;
    color: var(--text-color);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
.mobile-menu-item.open .mobile-menu-chevron { transform: rotate(180deg); }
.mobile-menu-sublinks {
    display: none;
    flex-direction: column;
    padding-bottom: 12px;
}
.mobile-menu-item.open .mobile-menu-sublinks { display: flex; }
.mobile-menu-sublink {
    padding: 12px 0 12px 16px;
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}
.mobile-menu-sublink:hover { color: var(--primary-orange-hover); }
.mobile-menu-login {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 16px 24px;
    background: var(--primary-blue);
    color: white !important;
    font-size: 18px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    border-radius: 9px;
    font-family: inherit;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.mobile-menu-login:hover { background: var(--primary-blue-hover); color: white !important; }

/* ================= CALENDAR ================= */
.container { width: 100%; max-width: 1440px; margin: 40px auto; padding: 0 32px; box-sizing: border-box; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.calendar-header h1 { font-size: 32px; font-weight: 700; margin: 0; }
.calendar-controls { display: flex; align-items: center; gap: 10px; height: 44px; }

.month-nav {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    height: 44px;
    padding: 0 4px;
    box-sizing: border-box;
}
.btn-month-nav {
    background: none; border: none; border-radius: 8px;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-muted); transition: all 0.2s;
}
.btn-month-nav:hover { color: var(--primary-orange); background: var(--tag-bg); }
.current-month {
    font-size: 16px; font-weight: 600; min-width: 150px; text-align: center;
    color: var(--primary-orange); padding: 0 4px;
}

/* Today Button */
.btn-today {
    background: var(--primary-orange); color: white;
    border: none; height: 44px; box-sizing: border-box;
    padding: 0 22px; border-radius: 10px; font-size: 14px; font-weight: 500;
    cursor: pointer; font-family: 'Golos Text', sans-serif;
    transition: opacity 0.2s; white-space: nowrap;
}
.btn-today:hover { opacity: 0.85; }

/* View Toggle */
.view-toggle {
    display: flex; gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: var(--card-bg);
    height: 44px; box-sizing: border-box;
}
.view-btn {
    background: none; border: none;
    padding: 0 20px; height: 100%; font-size: 14px;
    cursor: pointer; color: var(--text-muted); font-family: 'Golos Text', sans-serif;
    transition: all 0.2s; white-space: nowrap;
}
.view-btn:hover { color: var(--text-color); }
.view-btn.active {
    background: var(--primary-blue); color: white; font-weight: 500;
}

/* Calendar Subheader */
.calendar-subheader { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }

/* Event Counter */
.event-counter { font-size: 15px; color: var(--text-muted); font-weight: 400; }

/* Filter Tabs (стиль psb-academy.ru) */
.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    padding: 16px 0 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.filter-tab {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    color: var(--text-color);
    font-family: 'Golos Text', sans-serif;
    transition: all 0.2s;
    white-space: nowrap;
}
.filter-tab:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}
.filter-tab.active {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

.mobile-dates-row,
.mobile-no-events { display: none; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.weekday { color: var(--text-muted); font-size: 14px; margin-bottom: 10px; }
.days-container { display: contents; }

.day-cell {
    background: var(--card-bg); 
    border-radius: var(--box-radius);
    aspect-ratio: 1;
    min-height: 140px;
    padding: 15px;
    position: relative; display: flex; flex-direction: column; justify-content: space-between;
    transition: transform 0.2s;
}
.day-cell.empty { background: transparent; }
.day-cell:not(.empty):hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

/* События — вся ячейка кликабельна */
.day-cell.has-event {
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    overflow: hidden;
}
.day-cell.has-event::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7)); z-index: 1;
}
.day-cell.has-event .date-number { color: white !important; position: relative; z-index: 2; }
.day-cell.has-event .event-info { position: relative; z-index: 2; }
.event-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; line-height: 1.3; color: white; }
.event-count-badge { background: rgba(255,255,255,0.9); color: #2D3280; font-size: 10px; padding: 2px 6px; border-radius: 10px; margin-left: 6px; }
.btn-details {
    background: var(--primary-blue); color: white; border: none; padding: 8px 16px;
    border-radius: 6px; font-size: 12px; cursor: pointer; width: 100%;
}
.date-number { font-size: 18px; font-weight: 500; }
.date-number.grey { color: #BBB; }
.date-number.orange { color: var(--primary-orange); }

/* ================= MODAL EVENT (SMART POSITION) ================= */
.modal-backdrop, .access-backdrop {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3); z-index: 1000;
}
.access-backdrop { z-index: 2000; backdrop-filter: blur(5px); justify-content: center; align-items: center; }

/* Карточка модалки — всегда по центру экрана */
.modal-box {
    display: none; 
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    overflow: hidden;
    
    background: var(--card-bg); color: var(--text-color);
    
    border-radius: var(--box-radius);
    
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    
    width: 750px;
    max-width: calc(100vw - 48px); 
    padding: 0 !important;
}

.modal-body { display: flex; padding: 32px 36px; gap: 32px; }

/* Левая колонка */
.modal-left { flex-shrink: 0; width: 180px; }
.modal-img-container { 
    width: 180px; height: 180px; 
    /* Радиус картинки тоже берем из переменной или чуть меньше */
    border-radius: var(--box-radius); 
    overflow: hidden; background: #D9D9D9; 
}
.modal-img-container img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Правая колонка */
.modal-right { flex-grow: 1; display: flex; flex-direction: column; }
.modal-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.modal-nav-btn { background: #f2f3f5; border: none; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 16px; }
.modal-nav-btn:hover { background: #e8e8e8; }
.modal-top-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; gap: 15px; }
.modal-title { font-size: 24px; font-weight: 600; line-height: 1.2; margin: 0; }
.rating-badge { background: #EAEAEA; color: #333; font-size: 20px; font-weight: 600; padding: 8px 14px; border-radius: 8px; white-space: nowrap; }

/* Теги дат */
.date-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.tag {
    background: #F2F3F5; color: #666;
    padding: 10px 15px; border-radius: 8px; font-size: 13px; text-align: center;
    white-space: nowrap; line-height: 1.3;
    cursor: pointer; border: 1px solid transparent; transition: 0.2s;
}
.tag.active { background: var(--primary-orange); color: white; }
.tag:hover:not(.active) { background: #E0E0E0; }

.modal-desc { font-size: 14px; line-height: 1.5; margin-bottom: 25px; flex-grow: 1; color: #333; }
.btn-modal-action { display: block; width: 100%; text-align: center; text-decoration: none; background-color: var(--primary-blue); color: white; padding: 12px 20px; border-radius: 8px; font-size: 15px; font-weight: 500; transition: 0.2s; box-sizing: border-box; }
.btn-modal-action:hover { opacity: 0.9; }

/* ACCESS MODAL (версия для слабовидящих — идентично psb-academy.ru) */
.access-modal { 
    background: var(--card-bg); width: 480px; max-width: 92vw; 
    padding: 36px 40px 32px; border-radius: 16px; position: relative; 
}
.access-close { 
    position: absolute; top: 16px; right: 20px; background: none; border: none; 
    font-size: 26px; cursor: pointer; color: #999; line-height: 1; 
}
.access-close:hover { color: var(--text-color); }
.access-section { margin-bottom: 28px; }
.access-section h3 { font-size: 18px; font-weight: 600; margin: 0 0 14px 0; color: var(--text-color); }
.access-hint { font-size: 16px; color: #666; line-height: 1.5; margin: 0 0 16px 0; }

/* Радио-кнопки в ряд */
.radio-row { display: flex; gap: 28px; align-items: center; }
.custom-radio { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 16px; }
.custom-radio input { display: none; }
.checkmark { 
    width: 20px; height: 20px; border: 2px solid #C0C0C0; border-radius: 50%; 
    position: relative; flex-shrink: 0; transition: all 0.15s;
}
.custom-radio input:checked + .checkmark { 
    border-color: var(--primary-orange); background: var(--primary-orange); 
}
.custom-radio input:checked + .checkmark::after { 
    content: ''; position: absolute; left: 5px; top: 2px; 
    width: 6px; height: 10px; border: solid white; 
    border-width: 0 2px 2px 0; transform: rotate(45deg); 
}
.label-text { color: var(--text-color); font-weight: 400; }

/* Клавиши (kbd) */
.kbd-row { display: flex; align-items: center; gap: 8px; }
kbd { 
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; height: 40px; padding: 0 14px;
    background: #F2F3F5; border: none; border-radius: 10px; 
    font-size: 15px; font-weight: 500; color: #333; 
    font-family: 'Golos Text', sans-serif;
}
.kbd-sep { font-size: 15px; color: #666; margin: 0 2px; }

/* Кнопка сброса */
.btn-reset { 
    width: 100%; background: #F5F5F7; color: var(--text-color); 
    border: none; padding: 16px; border-radius: 12px; 
    font-size: 16px; font-weight: 500; cursor: pointer; margin-top: 4px;
}
.btn-reset:hover { background: #EBEBED; }

/* ================= FOOTER (точный клон psb-academy.ru) ================= */
.footer {
    width: 100%;
    max-width: 1440px;
    margin: 60px auto 0;
    padding: 0 32px 32px;
    box-sizing: border-box;
}

.footer-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 396px);
    min-height: 380px;
    background: var(--card-bg);
    border-radius: 15px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 52px;
    padding: 32px 60px 32px 32px;
}

.footer-navigations {
    display: grid;
    grid-template-columns: minmax(0, 180px) minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
}

.footer-logo {
    display: inline-flex;
    width: 132px;
    height: 36px;
    background: url('img/logo.svg') 0 50% no-repeat;
    background-size: contain;
    flex-shrink: 0;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-link {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -0.03em;
    line-height: 1.3;
    transition: color 0.15s;
    cursor: pointer;
}

.footer-link:hover { color: var(--primary-orange-hover); }

.footer-bottom {
    display: grid;
    align-items: flex-end;
    grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
    gap: 48px;
}

.footer-socials {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.soc-icon {
    width: 48px;
    height: 48px;
    border-radius: 9px;
    background: var(--tag-bg);
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}
.soc-icon:hover { color: var(--primary-orange-hover); }
.soc-icon svg { width: 24px; height: 24px; }

.footer-legal {
    display: grid;
    align-items: flex-end;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px 48px;
}

.footer-legal-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-legal-link {
    font-size: 18px;
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1.3;
    letter-spacing: -0.03em;
    transition: color 0.15s;
    cursor: pointer;
}

.footer-legal-link:hover { color: var(--primary-orange-hover); }

.footer-feedback {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 52px;
    padding: 32px;
    border-left: 1px solid var(--border-light);
}

.footer-text {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: -0.03em;
    color: var(--text-color);
}

.footer-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 9px;
    gap: 6px;
    height: 48px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    width: 100%;
    cursor: pointer;
}

.footer-btn:hover { background: var(--primary-blue-hover); color: white; }

/* Версия для слабовидящих — применяемые стили */
body.special-font { font-family: Georgia, 'Times New Roman', serif; font-size: 1.1em; }
body.dark-theme { background: #1a1a1a !important; color: #fff !important; }
body.dark-theme .header { background: #1a1a1a !important; }
body.dark-theme .dropdown-menu { background: #222; border-color: #333; }
body.dark-theme .dropdown-link { color: #e0e0e0; }
body.dark-theme .dropdown-link:hover { color: var(--primary-orange-hover); }
body.dark-theme .btn-burger { background: #222; border-color: #333; color: #e0e0e0; }
body.dark-theme .footer-card, body.dark-theme .modal-box, body.dark-theme .day-cell, body.dark-theme .access-modal { background: #222 !important; color: #fff !important; }
body.dark-theme .footer-link, body.dark-theme .footer-text, body.dark-theme .nav-link-wrapper { color: #fff !important; }
body.dark-theme .footer-legal-link { color: #888 !important; }
body.dark-theme .soc-icon { background: #333; color: #fff; }
body.dark-theme .soc-icon:hover { background: #444; }
body.dark-theme .btn-eye { color: #999; }
body.dark-theme .btn-eye:hover { color: #fff; }
body.dark-theme .date-number, body.dark-theme .modal-title, body.dark-theme .calendar-header h1, body.dark-theme .current-month { color: #fff !important; }
body.dark-theme .label-text, body.dark-theme .access-section h3, body.dark-theme .access-hint { color: #fff !important; }
body.dark-theme .btn-reset { background: #333 !important; color: #fff !important; }
body.dark-theme kbd { background: #333 !important; color: #fff !important; }
body.dark-theme .filter-tab { background: #2a2a2a; border-color: #444; color: #e0e0e0; }
body.dark-theme .filter-tab:hover { border-color: var(--primary-orange); color: var(--primary-orange); }
body.dark-theme .filter-tab.active { background: var(--primary-orange); color: #fff; border-color: var(--primary-orange); }
body.dark-theme .view-toggle { background: #2a2a2a; border-color: #444; }
body.dark-theme .view-btn { color: #999; }
body.dark-theme .view-btn:hover { color: #e0e0e0; }
body.dark-theme .view-btn.active { background: var(--primary-blue); color: white; }
body.dark-theme .month-nav { background: #2a2a2a; border-color: #444; }
body.dark-theme .btn-month-nav { color: #999; }
body.dark-theme .btn-month-nav:hover { color: var(--primary-orange); background: #333; }
body.dark-theme .view-btn { color: #999; }
body.dark-theme .view-btn.active { background: var(--primary-blue); color: white; }
/* iCal button removed */
body.dark-theme .event-tooltip { background: #222; border-color: #444; }
body.dark-theme .tooltip-title { color: #fff; }
body.dark-theme .list-event-row { background: #222; }
body.dark-theme .list-event-title { color: #fff; }
body.dark-theme .event-counter { color: #999; }
body.dark-theme .btn-share { border-color: #444; color: #fff; }
body.dark-theme .btn-share:hover { background: #333; }
body.dark-theme .list-empty { color: #666; }
body.dark-theme .mobile-menu-panel { background: #222 !important; }
body.dark-theme .mobile-menu-link { color: #e0e0e0; }
body.dark-theme .mobile-menu-link:hover { color: var(--primary-orange-hover); }
body.dark-theme .mobile-menu-sublink { color: #999; }
body.dark-theme .mobile-menu-sublink:hover { color: var(--primary-orange-hover); }
body.dark-theme .mobile-menu-close { color: #999; }
body.dark-theme .mobile-menu-close:hover { color: #fff; }

/* ================= CATEGORY COLOR STRIP ================= */
.category-strip {
    position: absolute; top: 0; left: 0; right: 0;
    height: 4px; z-index: 3;
    border-radius: var(--box-radius) var(--box-radius) 0 0;
}

/* ================= SIGN UP LINK (скрыта в ячейках) ================= */
.btn-signup {
    display: none !important; /* Скрыта по запросу */
    margin-top: 6px; font-size: 11px;
    color: rgba(255,255,255,0.85); text-decoration: none;
    transition: color 0.2s; position: relative; z-index: 2;
}
.btn-signup:hover { color: white; text-decoration: underline; }

/* ================= HOVER TOOLTIP ================= */
.event-tooltip {
    position: fixed; z-index: 9999;
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 10px; padding: 12px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    max-width: 280px; pointer-events: none;
}
.tooltip-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; line-height: 1.3; color: var(--text-color); }
.tooltip-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.tooltip-rating { color: #F9A825; font-weight: 600; }
.tooltip-category { color: var(--text-muted); }

/* ================= SHARE BUTTON (MODAL) ================= */
.btn-share {
    background: none; border: 1px solid var(--border-color);
    width: 40px; height: 40px; border-radius: 8px;
    cursor: pointer; font-size: 18px; display: flex;
    align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.2s;
}
.btn-share:hover { border-color: var(--primary-orange); background: var(--tag-bg); }

/* ================= LIST VIEW ================= */
.list-view { display: none; }
.list-event-row {
    display: flex; align-items: center; gap: 16px;
    background: var(--card-bg); border-radius: var(--box-radius);
    padding: 16px 20px; margin-bottom: 8px; transition: transform 0.2s;
}
.list-event-row:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.list-event-color { width: 4px; height: 40px; border-radius: 2px; flex-shrink: 0; }
.list-event-date { font-size: 14px; font-weight: 500; color: var(--text-muted); min-width: 100px; flex-shrink: 0; }
.list-event-date.list-today { color: var(--primary-orange); font-weight: 700; }
.list-event-title { font-size: 15px; font-weight: 600; flex-grow: 1; color: var(--text-color); }
.list-event-rating { font-size: 14px; color: #F9A825; font-weight: 600; flex-shrink: 0; }
.list-event-category { font-size: 12px; color: var(--text-muted); min-width: 120px; text-align: right; flex-shrink: 0; }
.list-btn-details { width: auto; padding: 8px 16px; flex-shrink: 0; }
.list-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); font-size: 16px; }

/* ================= TODAY HIGHLIGHT ================= */
.day-cell.today {
    box-shadow: inset 0 0 0 2px var(--primary-orange);
}
.day-cell.today .date-number {
    color: var(--primary-orange) !important;
    font-weight: 700;
}

/* ================= MODAL ANIMATION ================= */
.modal-box {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.modal-box.modal-animate-in {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ================= MONTH TRANSITION ANIMATION ================= */
.days-container {
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.calendar-slide-out-left .days-container,
.calendar-slide-out-left {
    opacity: 0;
    transform: translateX(-30px);
}
.calendar-slide-out-right .days-container,
.calendar-slide-out-right {
    opacity: 0;
    transform: translateX(30px);
}
.calendar-slide-in-left .days-container,
.calendar-slide-in-left {
    animation: slideInLeft 0.3s ease forwards;
}
.calendar-slide-in-right .days-container,
.calendar-slide-in-right {
    animation: slideInRight 0.3s ease forwards;
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
