/* ===== Catalog V2 — 2026 design system ===== */
:root {
    --v2-accent-from: #5B5BF7;
    --v2-accent-to: #7A5AF8;
    --v2-purple: #5B5BF7;
    --v2-purple-dark: #4F46E5;
    --v2-purple-light: #EEF2FF;
    --v2-bg: #F7F9FC;
    --v2-surface: #FFFFFF;
    --v2-text: #111827;
    --v2-text-muted: #6B7280;
    --v2-border: #E9EDF5;
    --v2-radius: 18px;
    --v2-radius-sm: 14px;
    --v2-shadow: 0 12px 40px rgba(17, 24, 39, 0.06);
    --v2-shadow-sm: 0 2px 12px rgba(17, 24, 39, 0.04);
    --v2-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --v2-dur: 220ms;
    --dir-social: #14B8A6;
    --dir-art: #8B5CF6;
    --dir-tech: #3B82F6;
    --dir-science: #22C55E;
    --dir-sport: #F97316;
    --dir-tourism: #EAB308;
    --dir-military: #EF4444;
    --dir-default: #6B7280;
    --v2-glass-blur: 48px;
    --v2-glass-blur-md: 32px;
    --v2-glass-blur-sm: 22px;
    --v2-glass-blur-xs: 14px;
    --v2-glass-saturate: 185%;
    --v2-glass-bg: rgba(255, 255, 255, 0.58);
    --v2-glass-bg-strong: rgba(255, 255, 255, 0.78);
    --v2-glass-border: rgba(255, 255, 255, 0.72);
    --v2-glass-border-soft: rgba(255, 255, 255, 0.45);
    --v2-glass-shadow: 0 8px 32px rgba(17, 24, 39, 0.1), 0 2px 8px rgba(91, 91, 247, 0.06);
    --v2-glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.92), inset 0 -1px 0 rgba(255, 255, 255, 0.18);
}

/* Liquid Glass — усиленный frost (desktop) */
.v2-glass,
.v2-glass-panel {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.84) 0%,
        rgba(255, 255, 255, 0.58) 52%,
        rgba(255, 255, 255, 0.46) 100%
    );
    backdrop-filter: blur(var(--v2-glass-blur)) saturate(var(--v2-glass-saturate));
    -webkit-backdrop-filter: blur(var(--v2-glass-blur)) saturate(var(--v2-glass-saturate));
    border: 1px solid var(--v2-glass-border);
    box-shadow: var(--v2-glass-shadow), var(--v2-glass-inset);
}

.v2-glass-badge {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62));
    backdrop-filter: blur(var(--v2-glass-blur-sm)) saturate(var(--v2-glass-saturate));
    -webkit-backdrop-filter: blur(var(--v2-glass-blur-sm)) saturate(var(--v2-glass-saturate));
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: 0 4px 16px rgba(17, 24, 39, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.v2-glass-frost {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.52));
    backdrop-filter: blur(var(--v2-glass-blur-sm)) saturate(var(--v2-glass-saturate));
    -webkit-backdrop-filter: blur(var(--v2-glass-blur-sm)) saturate(var(--v2-glass-saturate));
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.v2-btn-glass {
    background: linear-gradient(135deg, rgba(91, 91, 247, 0.94) 0%, rgba(122, 90, 248, 0.86) 100%);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow:
        0 8px 24px rgba(91, 91, 247, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        inset 0 -1px 0 rgba(47, 47, 130, 0.15);
    transition: transform var(--v2-dur) var(--v2-ease), box-shadow var(--v2-dur) var(--v2-ease);
}

.v2-btn-glass:hover {
    transform: translateY(-1px);
    box-shadow:
        0 12px 28px rgba(91, 91, 247, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        inset 0 -1px 0 rgba(47, 47, 130, 0.12);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .v2-glass,
    .v2-glass-panel,
    .v2-glass-badge,
    .v2-glass-frost {
        background: rgba(255, 255, 255, 0.94);
    }
}

@media (prefers-reduced-transparency: reduce) {
    .v2-glass,
    .v2-glass-panel,
    .v2-glass-badge,
    .v2-glass-frost,
    .v2-topbar,
    .v2-mobile-toolbar,
    .v2-scroll-top,
    .v2-card__direction,
    .v2-card__direction-mark,
    .course-modal,
    .course-modal-content {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.96);
    }
}

*, *::before, *::after { box-sizing: border-box; }

body.v2-body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background:
        radial-gradient(ellipse 90% 55% at 8% -5%, rgba(91, 91, 247, 0.11) 0%, transparent 58%),
        radial-gradient(ellipse 70% 45% at 96% 4%, rgba(122, 90, 248, 0.09) 0%, transparent 52%),
        radial-gradient(ellipse 55% 35% at 50% 102%, rgba(34, 197, 94, 0.06) 0%, transparent 48%),
        var(--v2-bg);
    color: var(--v2-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ===== Top bar ===== */
.v2-topbar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.72) 100%);
    backdrop-filter: blur(var(--v2-glass-blur-md)) saturate(var(--v2-glass-saturate));
    -webkit-backdrop-filter: blur(var(--v2-glass-blur-md)) saturate(var(--v2-glass-saturate));
    border-bottom: 1px solid var(--v2-glass-border-soft);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    padding: 8px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
}

.v2-topbar__info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.v2-topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--v2-text-muted);
    white-space: nowrap;
}

.v2-topbar__item svg {
    flex-shrink: 0;
    color: #9ca3af;
}

.v2-topbar__item a {
    color: var(--v2-text);
    text-decoration: none;
    font-weight: 500;
}

.v2-topbar__item a:hover {
    color: var(--v2-purple);
}

a.v2-topbar__item {
    text-decoration: none;
    color: var(--v2-text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: color .2s;
}

a.v2-topbar__item:hover,
a.v2-topbar__item:hover .v2-topbar__text {
    color: var(--v2-purple);
}

a.v2-topbar__item:hover svg {
    color: var(--v2-purple);
}

.v2-topbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.v2-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f0f1f5;
    transition: background .2s, transform .2s;
}

.v2-social:hover {
    background: var(--v2-purple-light);
    transform: translateY(-1px);
}

.v2-social img {
    width: 18px;
    height: 18px;
}

.v2-login {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 8px;
    background: transparent;
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    border: 1px solid transparent;
    transition: color .2s, background .2s, border-color .2s;
}

.v2-login:hover {
    background: rgba(17, 24, 39, 0.04);
    color: var(--v2-text-muted);
    border-color: var(--v2-border);
}

/* ===== Page layout ===== */
.v2-page {
    max-width: 1520px;
    margin: 0 auto;
    padding: 32px 32px 56px;
}

/* ===== Hero ===== */
.v2-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.v2-hero__intro {
    flex: 1 1 340px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.v2-hero__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--v2-text-muted);
}

.v2-hero__breadcrumb a {
    color: var(--v2-purple);
    text-decoration: none;
}

.v2-hero__breadcrumb a:hover {
    text-decoration: underline;
}

.v2-hero__breadcrumb-sep {
    opacity: 0.55;
}

.v2-hero__title {
    margin: 0 0 6px;
    font-size: clamp(32px, 3.2vw, 44px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--v2-text);
    line-height: 1.1;
}

.v2-hero__subtitle {
    margin: 0;
    font-size: 15px;
    color: var(--v2-text-muted);
    max-width: 620px;
    line-height: 1.55;
}

.v2-hero__stat {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--v2-text-muted);
}

.v2-hero__stat strong {
    color: var(--v2-purple);
    font-size: 16px;
    font-weight: 800;
}

.v2-hero__stat-sep {
    margin: 0 6px;
    opacity: 0.55;
}

.v2-category-chips {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.v2-category-chips__viewport {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.v2-category-chips__viewport::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 36px;
    background: linear-gradient(to right, transparent, var(--v2-bg));
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--v2-dur) var(--v2-ease);
}

.v2-category-chips.is-scrollable .v2-category-chips__viewport::after {
    opacity: 1;
}

.v2-category-chips.is-at-end .v2-category-chips__viewport::after {
    opacity: 0;
}

.v2-category-chips__nav {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--v2-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--v2-text);
    box-shadow: var(--v2-shadow-sm);
    cursor: pointer;
    transition: transform var(--v2-dur) var(--v2-ease), border-color var(--v2-dur) var(--v2-ease), color var(--v2-dur) var(--v2-ease), opacity var(--v2-dur) var(--v2-ease);
}

.v2-category-chips__nav:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(91, 91, 247, 0.28);
    color: var(--v2-purple);
}

.v2-category-chips__nav:disabled {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.v2-category-chips__track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.v2-category-chips__track::-webkit-scrollbar {
    display: none;
}

.v2-category-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--v2-border);
    background: rgba(255, 255, 255, 0.78);
    color: var(--v2-text);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: transform var(--v2-dur) var(--v2-ease), border-color var(--v2-dur) var(--v2-ease), background var(--v2-dur) var(--v2-ease), color var(--v2-dur) var(--v2-ease);
}

.v2-category-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(91, 91, 247, 0.28);
}

.v2-category-chip.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--v2-accent-from), var(--v2-accent-to));
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(91, 91, 247, 0.28);
}

.v2-category-chip:not(.is-active)[style*="--cat-color"] {
    border-color: color-mix(in srgb, var(--cat-color, #6B7280) 28%, var(--v2-border));
    background: color-mix(in srgb, var(--cat-color, #6B7280) 8%, #fff);
}

.v2-catalog-toolbar {
    margin-bottom: 14px;
}

.v2-catalog-toolbar__main {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.v2-catalog-toolbar--filtered .v2-catalog-toolbar__main {
    justify-content: space-between;
}

.v2-results-count {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    letter-spacing: 0.01em;
}

.v2-catalog-toolbar__sort {
    min-width: 200px;
}

.v2-catalog-toolbar__sort .v2-select {
    min-height: 36px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 13px;
    color: var(--v2-text-muted);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.v2-catalog-toolbar__sort .v2-select:hover,
.v2-catalog-toolbar__sort .v2-select:focus {
    color: var(--v2-text);
    border-color: var(--v2-border);
    background: rgba(255, 255, 255, 0.72);
}

.v2-catalog-toolbar__sort-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.v2-field--compact .v2-select {
    min-height: 42px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.v2-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.v2-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--v2-border);
    background: rgba(255, 255, 255, 0.82);
    color: var(--v2-text);
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--v2-dur) var(--v2-ease), border-color var(--v2-dur) var(--v2-ease);
}

.v2-filter-chip:hover {
    background: #fff;
    border-color: rgba(91, 91, 247, 0.28);
}

.v2-filter-chip__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--v2-purple-light);
    color: var(--v2-purple);
    font-size: 14px;
    line-height: 1;
}

.v2-hero__mobile-extra {
    display: none;
    margin: 0;
}

/* ===== Летний мини-баннер ===== */
.v2-summer-banner {
    position: relative;
    flex: 1 1 520px;
    max-width: 760px;
    min-width: 0;
    padding: 18px 18px 18px 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, #5b5bf7 0%, #6d55f7 48%, #7a5af8 100%);
    box-shadow: 0 16px 40px rgba(91, 91, 247, 0.28);
    color: #fff;
    overflow: hidden;
}

.v2-summer-banner.is-hidden {
    display: none;
}

.v2-summer-banner__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--v2-purple-dark);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.v2-summer-banner__close:hover {
    background: #fff;
}

.v2-summer-banner__body {
    display: flex;
    align-items: stretch;
    gap: 16px;
    min-height: 148px;
}

.v2-summer-banner__main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-right: 28px;
}

.v2-summer-banner__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    color: #f59e0b;
}

.v2-summer-banner__text {
    min-width: 0;
}

.v2-summer-banner__title {
    display: block;
    margin: 0 0 8px;
    font-size: clamp(18px, 1.6vw, 22px);
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.v2-summer-banner__desc {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}

.v2-summer-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: #fff;
    color: var(--v2-purple-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
    transition: transform var(--v2-dur) var(--v2-ease), box-shadow var(--v2-dur) var(--v2-ease);
}

.v2-summer-banner__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

.v2-summer-banner__photo {
    flex: 0 0 min(38%, 220px);
    width: min(38%, 220px);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.v2-summer-banner__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.v2-summer-banner__photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-align: center;
    font-size: 11px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.78);
    background:
        linear-gradient(160deg, rgba(255,255,255,.14) 0%, transparent 55%),
        linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
}

/* ===== Mobile-only elements (styled in catalog-v2-mobile.css) ===== */
.v2-mobile-toolbar,
.v2-filters-backdrop,
.v2-filters-sheet-header,
.v2-mobile-filter-hint {
    display: none;
}

/* ===== Sticky filters ===== */
.v2-filters-sticky {
    position: sticky;
    top: 0;
    z-index: 90;
    margin-bottom: 24px;
    padding: 8px 0;
}

.v2-filters-sticky.is-stuck {
    padding-top: 10px;
}

.v2-filters-sticky.is-stuck .v2-filters {
    box-shadow:
        0 16px 48px rgba(17, 24, 39, 0.12),
        0 4px 12px rgba(91, 91, 247, 0.08),
        var(--v2-glass-inset);
}

/* ===== Filters ===== */
.v2-filters {
    border-radius: 20px;
    padding: 20px 22px;
}

.v2-filters__row {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

.v2-filters__row--top {
    grid-template-columns: 1.6fr repeat(4, 1fr);
}

.v2-filters__row--bottom {
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    margin-bottom: 0;
}

.v2-field {
    position: relative;
}

.v2-field__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--v2-text-muted);
    pointer-events: none;
    display: flex;
}

.v2-input,
.v2-select {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 42px;
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius-sm);
    background: #fff;
    font: inherit;
    font-size: 14px;
    color: var(--v2-text);
    appearance: none;
    transition: border-color .2s, box-shadow .2s;
}

.v2-select {
    padding-right: 36px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.v2-input:focus,
.v2-select:focus {
    outline: none;
    border-color: var(--v2-purple);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.12);
}

/* Filter fields — visible outline on glass panel */
.v2-filters .v2-field__icon {
    color: #4B5563;
}

.v2-filters .v2-input,
.v2-filters .v2-select,
.v2-filters .v2-days-trigger {
    border-color: #CBD2E0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.05);
    font-weight: 600;
    color: #1F2937;
}

.v2-filters .v2-input::placeholder {
    color: #374151;
    font-weight: 600;
}

.v2-filters .v2-input:hover,
.v2-filters .v2-select:hover,
.v2-filters .v2-days-trigger:hover {
    border-color: #B4BECD;
}

.v2-filters .v2-input:focus,
.v2-filters .v2-select:focus,
.v2-filters .v2-days-dropdown.is-open .v2-days-trigger {
    border-color: var(--v2-purple);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.12);
}

.v2-input--age {
    padding-left: 42px;
}

.v2-input--no-icon {
    padding-left: 14px;
}

.v2-days-dropdown {
    position: relative;
}

.v2-days-trigger {
    width: 100%;
    height: 48px;
    padding: 0 36px 0 42px;
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius-sm);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    color: var(--v2-text);
}

.v2-days-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius-sm);
    box-shadow: var(--v2-shadow);
    padding: 10px;
    z-index: 20;
}

.v2-days-dropdown.is-open .v2-days-panel {
    display: block;
}

.v2-days-panel label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.v2-days-panel label:hover {
    background: var(--v2-purple-light);
}

.v2-filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}

.v2-btn-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: var(--v2-text-muted);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: color .2s, background .2s;
}

.v2-btn-reset:hover {
    color: var(--v2-text);
    background: #f0f1f5;
}

.v2-btn-apply {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    color: #fff;
    transition: transform var(--v2-dur) var(--v2-ease), box-shadow var(--v2-dur) var(--v2-ease);
}

.v2-btn-apply.v2-btn-glass:hover,
.v2-btn-apply:hover {
    transform: translateY(-1px);
}

/* ===== Shortcuts ===== */
.v2-shortcuts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.v2-shortcut {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    text-decoration: none;
    border: 1.5px solid transparent;
    box-shadow: 0 4px 16px rgba(17, 24, 39, 0.06);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.v2-shortcut:hover {
    transform: translateY(-2px);
}

.v2-shortcut--trial {
    background: linear-gradient(135deg, #e8e4ff 0%, #d4cbff 100%);
    border-color: #b8a9ff;
    box-shadow: 0 6px 20px rgba(91, 91, 247, 0.18);
}

.v2-shortcut--trial:hover {
    box-shadow: 0 10px 28px rgba(91, 91, 247, 0.28);
    border-color: #9580ff;
}

.v2-shortcut--workshops {
    background: linear-gradient(135deg, #d9fbe8 0%, #b8f5d0 100%);
    border-color: #7ee2a8;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.16);
}

.v2-shortcut--workshops:hover {
    box-shadow: 0 10px 28px rgba(34, 197, 94, 0.26);
    border-color: #4ade80;
}

.v2-shortcut--kanikuly {
    background: linear-gradient(135deg, #ffe8cc 0%, #ffd099 100%);
    border-color: #ffb366;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.16);
}

.v2-shortcut--kanikuly:hover {
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.26);
    border-color: #fb923c;
}

.v2-shortcut__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.08);
}

.v2-shortcut--trial .v2-shortcut__icon {
    color: #4338ca;
    background: rgba(255, 255, 255, 0.92);
}

.v2-shortcut--workshops .v2-shortcut__icon {
    color: #15803d;
    background: rgba(255, 255, 255, 0.92);
}

.v2-shortcut--kanikuly .v2-shortcut__icon {
    color: #c2410c;
    background: rgba(255, 255, 255, 0.92);
}

.v2-shortcut--trial .v2-shortcut__text strong { color: #3730a3; }
.v2-shortcut--workshops .v2-shortcut__text strong { color: #14532d; }
.v2-shortcut--kanikuly .v2-shortcut__text strong { color: #9a3412; }

.v2-shortcut--trial .v2-shortcut__text span { color: #4f46e5; }
.v2-shortcut--workshops .v2-shortcut__text span { color: #166534; }
.v2-shortcut--kanikuly .v2-shortcut__text span { color: #c2410c; }

.v2-shortcut__text strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.v2-shortcut__text span {
    display: block;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.92;
}

.v2-shortcut--trial .v2-shortcut__arrow { color: #6366f1; }
.v2-shortcut--workshops .v2-shortcut__arrow { color: #16a34a; }
.v2-shortcut--kanikuly .v2-shortcut__arrow { color: #ea580c; }

.v2-shortcut__arrow {
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: transform .2s, opacity .2s;
}

.v2-shortcut:hover .v2-shortcut__arrow {
    opacity: 1;
    transform: translateX(2px);
}

/* ===== Newsletter ===== */
.v2-newsletter {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    background: #f3f4f6;
    border: 1px solid var(--v2-border);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 32px;
}

.v2-newsletter--above-filters {
    margin-top: 0;
    margin-bottom: 18px;
}

.v2-newsletter__label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.v2-newsletter__label svg {
    color: var(--v2-purple);
}

.v2-newsletter__form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 240px;
}

.v2-newsletter__input {
    flex: 1;
    min-width: 180px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--v2-border);
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    background: #fff;
}

.v2-newsletter__input:focus {
    outline: none;
    border-color: var(--v2-purple);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.12);
}

.v2-newsletter__submit {
    height: 44px;
    padding: 0 20px;
    border: none;
    background: var(--v2-purple);
    color: #fff;
    border-radius: var(--v2-radius-sm);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}

.v2-newsletter__submit:hover { background: var(--v2-purple-dark); }
.v2-newsletter__submit:disabled { opacity: .6; cursor: not-allowed; }

.v2-newsletter__hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--v2-text-muted);
    white-space: nowrap;
}

.v2-newsletter__message {
    width: 100%;
    font-size: 14px;
    font-weight: 600;
}

.v2-newsletter__message--success { color: #1f9d5c; }
.v2-newsletter__message--error { color: #e03e3e; }

/* ===== Cards grid ===== */
.v2-course-list {
    margin-top: 8px;
}

.v2-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 28px;
    align-items: stretch;
}

.v2-card {
    display: grid;
    grid-template-columns: 130px 1fr;
    background: var(--v2-surface);
    border-radius: 18px;
    border: 1px solid var(--v2-border);
    box-shadow: var(--v2-shadow-sm);
    overflow: hidden;
    min-height: 240px;
    transition: box-shadow var(--v2-dur) var(--v2-ease), transform var(--v2-dur) var(--v2-ease), border-color var(--v2-dur) var(--v2-ease);
}

.v2-card:hover {
    box-shadow: var(--v2-shadow);
    transform: translateY(-2px);
    border-color: #dde3ee;
}

.v2-card--hidden {
    display: none;
}

.v2-card__media {
    position: relative;
    min-height: 100%;
    overflow: hidden;
}

.v2-card__badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--v2-purple);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.v2-card__badge-places {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--v2-text);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.v2-card__badge-places--urgent {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.v2-card__waitlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78));
    backdrop-filter: blur(var(--v2-glass-blur-sm)) saturate(var(--v2-glass-saturate));
    -webkit-backdrop-filter: blur(var(--v2-glass-blur-sm)) saturate(var(--v2-glass-saturate));
    color: var(--v2-purple);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    cursor: pointer;
    transition: transform var(--v2-dur) var(--v2-ease), box-shadow var(--v2-dur) var(--v2-ease), color var(--v2-dur) var(--v2-ease), background var(--v2-dur) var(--v2-ease);
}

.v2-card__waitlist-btn:hover {
    transform: translateY(-1px);
    color: #fff;
    background: linear-gradient(135deg, rgba(91, 91, 247, 0.96), rgba(122, 90, 248, 0.9));
    box-shadow: 0 8px 22px rgba(91, 91, 247, 0.32);
}

.v2-card__waitlist-btn:active {
    transform: translateY(0);
}

.v2-card__waitlist-btn .v2-lucide--waitlist {
    width: 18px;
    height: 18px;
}

.v2-waitlist-modal__intro {
    margin-bottom: 16px;
}

.v2-waitlist-modal__course {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--v2-text);
    word-break: break-word;
}

.v2-waitlist-modal__hint {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--v2-text-muted);
}

.v2-waitlist-modal__content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
    padding: 0 !important;
}

.v2-waitlist-modal .registration-header {
    flex-shrink: 0;
    padding: 28px 32px 12px;
}

.v2-waitlist-modal .registration-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 0 32px 28px;
}

.v2-waitlist-modal .course-modal-close {
    top: 20px;
    right: 20px;
}

.v2-waitlist-modal h2 {
    margin: 0;
    padding-right: 44px;
}

.v2-waitlist-modal #waitlist-form .btn-primary {
    margin-top: 4px;
}

.v2-card__direction-mark {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62));
    backdrop-filter: blur(var(--v2-glass-blur-sm)) saturate(var(--v2-glass-saturate));
    -webkit-backdrop-filter: blur(var(--v2-glass-blur-sm)) saturate(var(--v2-glass-saturate));
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    pointer-events: none;
    transition: transform var(--v2-dur) var(--v2-ease), box-shadow var(--v2-dur) var(--v2-ease);
}

.v2-card:hover .v2-card__direction-mark {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.2);
}

.v2-card__direction-mark:not(.v2-card__direction-mark--default) { color: var(--cat-color, var(--dir-default)); }
.v2-card__direction-mark--default { color: var(--dir-default); }

.v2-lucide--mark {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.v2-lucide--banner {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

.v2-lucide--shortcut {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

.v2-lucide--shortcut-arrow {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.v2-card__image {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

.v2-card__media::after,
.v2-course-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.v2-card__placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 220px;
    background:
        linear-gradient(160deg, rgba(255,255,255,.12) 0%, transparent 55%),
        linear-gradient(145deg, #c4b5fd 0%, #a78bfa 38%, #8b7cf8 100%);
}

.v2-card__media[style*="--cat-color"] .v2-card__placeholder {
    background:
        linear-gradient(160deg, rgba(255,255,255,.14) 0%, transparent 55%),
        linear-gradient(145deg, color-mix(in srgb, var(--cat-color) 42%, #fff) 0%, var(--cat-color) 100%);
}

.v2-lucide {
    display: block;
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}

svg.v2-lucide [fill="currentColor"] {
    stroke: none;
}

.v2-lucide--tag { width: 13px; height: 13px; }

.v2-card__body {
    padding: 14px 16px 14px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}

.v2-card__meta-line {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--v2-text-muted);
    line-height: 1.35;
}

.v2-card__dates {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.v2-card__dates > span:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.v2-card__module {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.v2-card__title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    word-break: break-word;
}

.v2-card__reviews {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--v2-text-muted);
    text-decoration: none;
    transition: color var(--v2-dur) var(--v2-ease);
}

.v2-card__reviews:hover {
    color: var(--v2-purple);
}

.v2-card__reviews-stars {
    color: #f5a623;
    font-size: 14px;
    line-height: 1;
}

.v2-card__reviews-count {
    color: var(--v2-text);
}

.v2-recently-viewed {
    margin-bottom: 28px;
}

.v2-recently-viewed__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.v2-recently-viewed__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--v2-text);
}

.v2-recently-viewed__subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--v2-text-muted);
    line-height: 1.4;
}

.v2-recently-viewed--prominent {
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(91, 91, 247, 0.06), rgba(122, 90, 248, 0.04));
    border: 1px solid rgba(91, 91, 247, 0.12);
}

.v2-recently-viewed__intro {
    min-width: 0;
}

.v2-recently-viewed__clear {
    border: none;
    background: transparent;
    color: var(--v2-text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
}

.v2-recently-viewed__clear:hover {
    color: var(--v2-purple);
}

.v2-recently-viewed__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.v2-recent-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    box-shadow: var(--v2-shadow-sm);
    color: inherit;
    transition: transform var(--v2-dur) var(--v2-ease), box-shadow var(--v2-dur) var(--v2-ease), border-color var(--v2-dur) var(--v2-ease);
}

.v2-recent-card:hover {
    transform: translateY(-2px);
    border-color: rgba(91, 91, 247, 0.25);
    box-shadow: var(--v2-shadow-md);
}

.v2-recent-card__main {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.v2-recent-card__enroll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
}

.v2-recent-card__media {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(91, 91, 247, 0.12), rgba(122, 90, 248, 0.2));
}

.v2-recent-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.v2-recent-card__placeholder {
    width: 100%;
    height: 100%;
}

.v2-recent-card__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.v2-recent-card__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--v2-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v2-recent-card__link {
    font-size: 12px;
    font-weight: 600;
    color: var(--v2-purple);
}

.v2-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
}

.v2-card__direction {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.52));
    backdrop-filter: blur(var(--v2-glass-blur-xs)) saturate(var(--v2-glass-saturate));
    -webkit-backdrop-filter: blur(var(--v2-glass-blur-xs)) saturate(var(--v2-glass-saturate));
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transition: transform var(--v2-dur) var(--v2-ease);
    max-width: 100%;
}

.v2-card__direction:hover { transform: translateY(-1px); }

a.v2-card__direction {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.v2-card__status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
    color: #94a3b8;
    max-width: 100%;
}

.v2-card__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.v2-card__status--enrollment .v2-card__status-dot {
    background: #86efac;
}

.v2-card__status--active .v2-card__status-dot {
    background: #93c5fd;
}

.v2-card__direction-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.v2-card__direction:not(.v2-card__direction--default) {
    color: var(--cat-color, var(--dir-default));
    background: color-mix(in srgb, var(--cat-color, #6B7280) 12%, transparent);
    border-color: color-mix(in srgb, var(--cat-color, #6B7280) 24%, transparent);
}
.v2-card__direction--default { color: var(--dir-default); background: #f3f4f6; border-color: var(--v2-border); }

.v2-card__schedule-compact {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 8px;
    min-height: 32px;
}

.v2-card__schedule-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
}

.v2-card__schedule-day {
    flex: 0 0 18px;
    color: var(--v2-text);
    font-weight: 600;
}

.v2-card__schedule-time {
    color: var(--v2-text-muted);
}

.v2-card__teacher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: auto;
    padding-top: 2px;
    padding-bottom: 14px;
    min-height: 28px;
}

.v2-card__teacher-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.v2-card__teacher-avatar--initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--v2-purple-light);
    color: var(--v2-purple);
    font-size: 11px;
    font-weight: 700;
}

.v2-card__teacher-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--v2-text);
    text-decoration: none;
    transition: color var(--v2-dur) var(--v2-ease);
}

.v2-card__teacher-name:hover { color: var(--v2-purple); }

.v2-card__footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f2f6;
}

.v2-card__price {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.2;
}

.v2-card__price-main {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.v2-card__price-prefix {
    font-size: 12px;
    font-weight: 500;
    color: var(--v2-text-muted);
}

.v2-card__price-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--v2-text);
    letter-spacing: -0.02em;
}

.v2-card__price-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--v2-text-muted);
}

.v2-card__price--free {
    font-size: 15px;
    font-weight: 700;
    color: #15803d;
}

.v2-card__actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.v2-card__btn {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
    transition: background var(--v2-dur) var(--v2-ease), color var(--v2-dur) var(--v2-ease), border-color var(--v2-dur) var(--v2-ease), transform var(--v2-dur) var(--v2-ease);
}

.v2-card__btn:hover { transform: translateY(-1px); }

.v2-card__btn--details {
    background: #fff;
    color: var(--v2-text);
    border: 1px solid var(--v2-border);
}

.v2-card__btn--details:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: var(--v2-purple);
}

.v2-card__btn--register { color: #fff; }

.v2-card__btn--trial {
    background: #fff;
    color: var(--v2-purple);
    border: 1px solid rgba(91, 91, 247, 0.35);
}

.v2-card__btn--trial:hover {
    background: var(--v2-purple-light);
}

/* ===== Scroll to top ===== */
.v2-scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 85;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--v2-glass-border);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58));
    backdrop-filter: blur(var(--v2-glass-blur-md)) saturate(var(--v2-glass-saturate));
    -webkit-backdrop-filter: blur(var(--v2-glass-blur-md)) saturate(var(--v2-glass-saturate));
    box-shadow: var(--v2-glass-shadow), var(--v2-glass-inset);
    color: var(--v2-purple);
    cursor: pointer;
    opacity: 0;
    transform: translate3d(0, 8px, 0);
    pointer-events: none;
    transition: opacity var(--v2-dur) var(--v2-ease), transform var(--v2-dur) var(--v2-ease), box-shadow var(--v2-dur) var(--v2-ease);
}

.v2-scroll-top.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}

.v2-scroll-top:hover {
    box-shadow: 0 12px 36px rgba(91, 91, 247, 0.22), var(--v2-glass-inset);
    transform: translate3d(0, -2px, 0);
}

.v2-scroll-top .v2-lucide {
    width: 20px;
    height: 20px;
}

/* ===== Infinite scroll sentinel & empty ===== */
.v2-scroll-sentinel {
    width: 100%;
    height: 1px;
    margin-top: 8px;
    pointer-events: none;
}

/* ===== Trial registration modal ===== */
.course-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.42);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
}

.course-modal.active {
    display: flex;
}

.course-modal-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 100%);
    backdrop-filter: blur(var(--v2-glass-blur)) saturate(var(--v2-glass-saturate));
    -webkit-backdrop-filter: blur(var(--v2-glass-blur)) saturate(var(--v2-glass-saturate));
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 20px;
    padding: 32px;
    max-width: 620px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 64px rgba(17, 24, 39, 0.18), var(--v2-glass-inset);
    animation: v2ModalSlideIn 0.25s ease-out;
    margin: 0 auto;
}

@keyframes v2ModalSlideIn {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

.course-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.course-modal-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.course-modal h2,
#registration-modal-title {
    margin: 0 0 16px;
    padding-right: 40px;
    font-size: 22px;
    font-weight: 800;
    color: var(--v2-text);
}

.registration-course-meta {
    color: var(--v2-text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.registration-price {
    margin-bottom: 18px;
    padding: 14px 16px;
    background: var(--v2-purple-light);
    border-radius: 10px;
    border-left: 4px solid var(--v2-purple);
}

.registration-price .price-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
}

.registration-price .price-value {
    color: var(--v2-purple);
    font-size: 18px;
    font-weight: 800;
}

.registration-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 14px;
}

.registration-alert-error {
    background: #ffe8e8;
    color: #c0392b;
}

.registration-alert-success {
    background: #e8fbf1;
    color: #1e8449;
}

.course-modal .form-group {
    margin-bottom: 16px;
}

.course-modal .form-group > label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.course-modal input:not([type="checkbox"]),
.course-modal select,
.course-modal textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--v2-border);
    font-size: 15px;
    box-sizing: border-box;
    font-family: inherit;
}

.course-modal textarea {
    min-height: 88px;
    resize: vertical;
    line-height: 1.45;
}

.course-modal input:not([type="checkbox"]):focus,
.course-modal select:focus,
.course-modal textarea:focus {
    outline: none;
    border-color: var(--v2-purple);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.12);
}

.course-modal .help-text {
    font-size: 12px;
    color: var(--v2-text-muted);
    margin-top: 4px;
    display: block;
}

.course-modal .btn-primary,
#registration-submit-btn,
#registration-submit-btn-fixed {
    width: 100%;
    margin-top: 8px;
    font-size: 15px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: var(--v2-purple);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
}

.course-modal .btn-primary:hover,
#registration-submit-btn:hover,
#registration-submit-btn-fixed:hover {
    background: var(--v2-purple-dark);
}

.registration-footer {
    display: none;
}

.course-modal .consent-text {
    margin-bottom: 18px;
    padding: 14px 16px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid var(--v2-border);
    border-left: 3px solid var(--v2-purple);
}

.course-modal .consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 500;
    cursor: pointer;
    color: var(--v2-text);
}

.course-modal .consent-label input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    margin: 1px 0 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 5px;
    border: 2px solid var(--v2-border) !important;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    background: #fff !important;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s;
}

.course-modal .consent-label input[type="checkbox"]:checked {
    background: var(--v2-purple) !important;
    border-color: var(--v2-purple) !important;
}

.course-modal .consent-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 9px;
    margin-top: -1px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.course-modal .consent-label input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.15);
}

.course-modal .consent-label span {
    flex: 1;
    min-width: 0;
}

.course-modal .consent-label a {
    color: var(--v2-purple);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.course-modal .consent-label a:hover {
    color: var(--v2-purple-dark);
}

.course-modal .consent-notice {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--v2-text-muted);
    text-align: center;
}

.course-modal .consent-notice a {
    color: var(--v2-purple);
}

.v2-empty {
    text-align: center;
    padding: 48px 24px;
    background: var(--v2-surface);
    border-radius: var(--v2-radius);
    box-shadow: var(--v2-shadow-sm);
}

.v2-empty h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.v2-empty p {
    margin: 0;
    color: var(--v2-text-muted);
}

.v2-suggestion-empty {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.v2-suggestion-empty__form-wrap {
    margin-top: 24px;
    text-align: left;
}

.v2-suggestion-form__note {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--v2-text-muted);
}

.v2-suggestion-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.v2-suggestion-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.v2-suggestion-form__field--wide {
    grid-column: 1 / -1;
}

.v2-suggestion-form__field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--v2-text);
}

.v2-suggestion-form__field input,
.v2-suggestion-form__field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--v2-border);
    border-radius: 12px;
    background: #fff;
    font: inherit;
    color: var(--v2-text);
    transition: border-color var(--v2-dur) var(--v2-ease), box-shadow var(--v2-dur) var(--v2-ease);
}

.v2-suggestion-form__field input:focus,
.v2-suggestion-form__field textarea:focus {
    outline: none;
    border-color: rgba(91, 91, 247, 0.45);
    box-shadow: 0 0 0 3px rgba(91, 91, 247, 0.12);
}

.v2-suggestion-form__field textarea {
    resize: vertical;
    min-height: 110px;
}

.v2-suggestion-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--v2-text-muted);
    cursor: pointer;
}

.v2-suggestion-form__consent input {
    margin-top: 3px;
}

.v2-suggestion-form__consent a {
    color: var(--v2-purple);
}

.v2-suggestion-form__alert {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.45;
}

.v2-suggestion-form__alert--error {
    background: #fff1f1;
    color: #c62828;
    border: 1px solid #ffc9c9;
}

.v2-suggestion-form__submit {
    width: 100%;
    margin-top: 16px;
    min-height: 48px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--v2-purple), #7a5af8);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--v2-dur) var(--v2-ease), box-shadow var(--v2-dur) var(--v2-ease), opacity var(--v2-dur) var(--v2-ease);
}

.v2-suggestion-form__submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(91, 91, 247, 0.28);
}

.v2-suggestion-form__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.v2-suggestion-empty--success h2 {
    color: #1f9d5c;
}

.v2-loading {
    text-align: center;
    padding: 48px;
    color: var(--v2-text-muted);
    font-size: 15px;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .v2-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v2-card {
        grid-template-columns: 120px 1fr;
    }
}

@media (max-width: 1100px) {
    .v2-filters__row--top {
        grid-template-columns: 1fr 1fr;
    }
    .v2-filters__row--top .v2-field:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .v2-cards-grid {
        grid-template-columns: 1fr;
    }

    .v2-recently-viewed__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v2-card {
        grid-template-columns: 140px 1fr;
    }
    .v2-shortcuts {
        grid-template-columns: 1fr;
    }
    .v2-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .v2-summer-banner {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .v2-page {
        padding: 20px 16px 40px;
    }
    .v2-topbar {
        padding: 10px 16px;
    }
    .v2-topbar__info {
        gap: 10px;
    }
    .v2-topbar__item span.v2-topbar__text {
        display: none;
    }
    .v2-filters__row--top,
    .v2-filters__row--bottom {
        grid-template-columns: 1fr;
    }
    .v2-filter-actions {
        justify-content: stretch;
    }
    .v2-btn-apply {
        flex: 1;
        justify-content: center;
    }
    .v2-newsletter {
        flex-direction: column;
        align-items: stretch;
    }
    .v2-newsletter__hint {
        justify-content: center;
    }
    .v2-suggestion-form__grid {
        grid-template-columns: 1fr;
    }
    .v2-suggestion-form__field input,
    .v2-suggestion-form__field textarea {
        font-size: 16px;
    }
    .v2-recently-viewed__list {
        grid-template-columns: 1fr;
    }
}

/* ===== Страница записи (мост на mos.ru) ===== */
.v2-body--enroll {
    background: var(--v2-bg);
}

.v2-enroll-page {
    max-width: 720px;
    margin: 0 auto;
}

.v2-enroll-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--v2-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.v2-enroll-back:hover {
    color: var(--v2-purple);
}

.v2-enroll-card,
.v2-enroll-help {
    padding: 24px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.v2-enroll-card__eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--v2-purple);
}

.v2-enroll-card__title {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--v2-text);
}

.v2-enroll-card__lead {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--v2-text-muted);
}

.v2-enroll-steps {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.v2-enroll-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.v2-enroll-step__num {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--v2-purple-light);
    color: var(--v2-purple-dark);
    font-size: 14px;
    font-weight: 800;
}

.v2-enroll-step strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    color: var(--v2-text);
}

.v2-enroll-step p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--v2-text-muted);
}

.v2-enroll-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.v2-enroll-actions__primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
}

.v2-enroll-actions__secondary {
    font-size: 14px;
    font-weight: 600;
    color: var(--v2-purple);
    text-decoration: none;
    text-align: center;
}

.v2-enroll-actions__secondary:hover {
    text-decoration: underline;
}

.v2-enroll-help__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
}

.v2-enroll-help__text {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--v2-text-muted);
}

.v2-enroll-help__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.v2-enroll-help__link {
    font-size: 14px;
    font-weight: 700;
    color: var(--v2-purple);
    text-decoration: none;
}

.v2-enroll-help__link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .v2-enroll-card,
    .v2-enroll-help {
        padding: 18px;
        border-radius: 18px;
    }

    .v2-enroll-card__title {
        font-size: 22px;
    }

    .v2-recently-viewed__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .v2-recently-viewed--prominent {
        padding: 14px;
    }
}
