:root {
    --bg: #0b0b0b;
    --text: #f5f1ea;
    --text-dark: #111111;
    --muted-dark: #6f6a63;
    --line-light: #e9e3db;
    --surface: #ffffff;
    --surface-soft: #f7f4ef;
    --container: 1180px;
    --radius: 18px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--surface);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

.container {
    width: min(100% - 48px, var(--container));
    margin: 0 auto;
}

.section {
    padding: 110px 0;
}

h1,
h2,
h3,
h4 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(3.8rem, 7vw, 5.8rem);
    color: var(--text);
    margin-bottom: 18px;
}

h2 {
    font-size: clamp(2.4rem, 4vw, 4rem);
}

h3 {
    font-size: 2rem;
    margin-bottom: 14px;
}

.reveal,
.reveal-left,
.reveal-right,
.reveal-up {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-60px);
}

.reveal-right {
    transform: translateX(60px);
}

.reveal-up {
    transform: translateY(20px);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-up.active {
    opacity: 1;
    transform: translate(0, 0);
}

.accent-italic {
    font-style: italic;
    font-weight: 500;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted-dark);
}

.eyebrow.light {
    color: rgba(255, 255, 255, 0.62);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.25em;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-register-btn {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.88rem;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.nav-register-btn:hover {
    background: #fff;
    color: #000;
}

.language-switcher {
    position: relative;
}

.lang-toggle {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: transparent;
    padding: 0;
    transition: all 0.3s ease;
}

.lang-toggle img {
    width: 17px;
    height: 17px;
    object-fit: contain;
    filter: invert(1);
    display: block;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

.lang-dropdown {
    position: absolute;
    top: 46px;
    right: 0;
    min-width: 120px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 200;
}

.lang-dropdown.show {
    display: flex;
}

.lang-option {
    color: #fff;
    background: transparent;
    text-align: left;
    padding: 10px 12px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.nav-links {
    display: flex;
    gap: 28px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.94rem;
}

.nav-links a:hover {
    color: #fff;
}

.classes-hero {
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 38%), linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)), #060606;
    text-align: center;
    padding: 110px 0 120px;
}

.hero-inner {
    max-width: 760px;
}

.hero-text {
    max-width: 560px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1rem;
}

.classes-page-section {
    background: var(--surface-soft);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 36px;
    margin-bottom: 34px;
}

.filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.filter-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted-dark);
    margin-right: 6px;
    white-space: nowrap;
}

.filter-btn {
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid #ddd7cf;
    background: #fff;
    color: #111;
    font-size: 0.92rem;
    border-radius: 12px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: #111;
}

.filter-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.course-card {
    border: 1px solid #e6e0d8;
    background: #fff;
    padding: 28px;
    min-height: auto;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.course-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.course-tags span {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border: 1px solid #e4ddd3;
    padding: 4px 8px;
    border-radius: 3px;
    color: #4c4741;
}

.course-tags .dark-tag {
    background: #111;
    color: #fff;
    border-color: #111;
}

.course-card p {
    color: var(--muted-dark);
    font-size: 0.95rem;
    margin-top: 14px;
    margin-bottom: 0;
    line-height: 1.7;
}

.course-card h3 {
    font-size: 2.1rem;
    margin-top: 10px;
    margin-bottom: 0;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #888179;
    font-size: 0.88rem;
    margin-top: 18px;
    margin-bottom: 22px;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid #eee8df;
}

.course-footer strong {
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    line-height: 1;
}

.course-footer a {
    font-size: 0.88rem;
    font-weight: 500;
}

.site-footer {
    background: #050505;
    color: rgba(255, 255, 255, 0.74);
    padding: 76px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
    gap: 34px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: inline-block;
    color: #fff;
    letter-spacing: 0.18em;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-logo span {
    opacity: 0.65;
}

.site-footer h4 {
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 14px;
}

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

.site-footer li {
    margin-bottom: 10px;
}

.footer-bottom {
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.88rem;
}

.footer-bottom-links {
    display: flex;
    gap: 18px;
}

.course-card.hidden {
    display: none;
}

@media (max-width: 1100px) {
    .classes-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .classes-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .nav {
        flex-direction: column;
        justify-content: center;
        padding: 18px 0;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .section {
        padding: 82px 0;
    }
    .container {
        width: min(100% - 32px, var(--container));
    }
}